public class Boolean01BigDecimalConverter extends Object implements javax.persistence.AttributeConverter<Boolean,BigDecimal>
Constructor and Description |
---|
Boolean01BigDecimalConverter() |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
convertToDatabaseColumn(Boolean objectValue)
This implementation will convert from a false or true value to a 0 or 1 Decimal numeric type value.
|
Boolean |
convertToEntityAttribute(BigDecimal dataValue)
This implementation will convert from a 0 or 1 Decimal numeric type value to a false or true value.
|
public Boolean01BigDecimalConverter()
public BigDecimal convertToDatabaseColumn(Boolean objectValue)
convertToDatabaseColumn
in interface javax.persistence.AttributeConverter<Boolean,BigDecimal>
public Boolean convertToEntityAttribute(BigDecimal dataValue)
convertToEntityAttribute
in interface javax.persistence.AttributeConverter<Boolean,BigDecimal>
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.