Class KualiPercentConverter
java.lang.Object
org.kuali.rice.krad.data.jpa.converters.KualiPercentConverter
- All Implemented Interfaces:
javax.persistence.AttributeConverter<KualiPercent,BigDecimal>
public class KualiPercentConverter
extends Object
implements javax.persistence.AttributeConverter<KualiPercent,BigDecimal>
Converts the custom
KualiPercent objects for OJB by converting them to/from BigDecimal.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToDatabaseColumn(KualiPercent objectValue) This implementation will convert from aKualiPercentto aBigDecimal.convertToEntityAttribute(BigDecimal dataValue) This implementation will convert from aBigDecimalto aKualiPercent.
-
Constructor Details
-
KualiPercentConverter
public KualiPercentConverter()
-
-
Method Details
-
convertToDatabaseColumn
This implementation will convert from aKualiPercentto aBigDecimal.- Specified by:
convertToDatabaseColumnin interfacejavax.persistence.AttributeConverter<KualiPercent,BigDecimal>
-
convertToEntityAttribute
This implementation will convert from aBigDecimalto aKualiPercent.- Specified by:
convertToEntityAttributein interfacejavax.persistence.AttributeConverter<KualiPercent,BigDecimal>
-