public class Boolean01Converter extends Object implements javax.persistence.AttributeConverter<Boolean,BigInteger>
The conversion treats the values as follows: 1 is true and 0 is false.
| Constructor and Description |
|---|
Boolean01Converter() |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
convertToDatabaseColumn(Boolean objectValue)
This implementation will convert from a false or true value to a 0 or 1 value.
|
Boolean |
convertToEntityAttribute(BigInteger dataValue)
This implementation will convert from a false or true value to a 0 or 1 value.
|
public Boolean01Converter()
public BigInteger convertToDatabaseColumn(Boolean objectValue)
convertToDatabaseColumn in interface javax.persistence.AttributeConverter<Boolean,BigInteger>public Boolean convertToEntityAttribute(BigInteger dataValue)
convertToEntityAttribute in interface javax.persistence.AttributeConverter<Boolean,BigInteger>Copyright © 2005–2015 The Kuali Foundation. All rights reserved.