org.kuali.rice.krad.data.jpa.converters
Class KualiDecimalConverter
java.lang.Object
org.kuali.rice.krad.data.jpa.converters.KualiDecimalConverter
- All Implemented Interfaces:
- javax.persistence.AttributeConverter<KualiDecimal,BigDecimal>
public class KualiDecimalConverter
- extends Object
- implements javax.persistence.AttributeConverter<KualiDecimal,BigDecimal>
Converts the custom KualiDecimal objects for OJB by converting them to/from BigDecimal.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KualiDecimalConverter
public KualiDecimalConverter()
convertToDatabaseColumn
public BigDecimal convertToDatabaseColumn(KualiDecimal objectValue)
-
This implementation will convert from a
KualiDecimal to a BigDecimal.
- Specified by:
convertToDatabaseColumn in interface javax.persistence.AttributeConverter<KualiDecimal,BigDecimal>
convertToEntityAttribute
public KualiDecimal convertToEntityAttribute(BigDecimal dataValue)
-
This implementation will convert from a
BigDecimal to a KualiDecimal.
- Specified by:
convertToEntityAttribute in interface javax.persistence.AttributeConverter<KualiDecimal,BigDecimal>
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.