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