org.kuali.rice.krad.data.jpa.converters
Class KualiDecimalConverter

java.lang.Object
  extended by 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)

Constructor Summary
KualiDecimalConverter()
           
 
Method Summary
 BigDecimal convertToDatabaseColumn(KualiDecimal objectValue)
           This implementation will convert from a KualiDecimal to a BigDecimal.
 KualiDecimal convertToEntityAttribute(BigDecimal dataValue)
           This implementation will convert from a BigDecimal to a KualiDecimal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KualiDecimalConverter

public KualiDecimalConverter()
Method Detail

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.