org.kuali.rice.core.framework.persistence.ojb.conversion
Class OjbDecimalPercentageFieldConversion

java.lang.Object
  extended by org.kuali.rice.core.framework.persistence.ojb.conversion.OjbKualiDecimalFieldConversion
      extended by org.kuali.rice.core.framework.persistence.ojb.conversion.OjbDecimalPercentageFieldConversion
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.accesslayer.conversions.FieldConversion
Direct Known Subclasses:
OjbKualiIntegerPercentageFieldConversion

public class OjbDecimalPercentageFieldConversion
extends OjbKualiDecimalFieldConversion
implements org.apache.ojb.broker.accesslayer.conversions.FieldConversion

See Also:
Serialized Form

Constructor Summary
OjbDecimalPercentageFieldConversion()
           
 
Method Summary
 Object javaToSql(Object source)
          Convert percentages to decimals for proper storage.
 Object sqlToJava(Object source)
          Convert database decimals to 'visual' percentages for use in our business objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OjbDecimalPercentageFieldConversion

public OjbDecimalPercentageFieldConversion()
Method Detail

javaToSql

public Object javaToSql(Object source)
Convert percentages to decimals for proper storage.

Specified by:
javaToSql in interface org.apache.ojb.broker.accesslayer.conversions.FieldConversion
Overrides:
javaToSql in class OjbKualiDecimalFieldConversion
See Also:
FieldConversion.javaToSql(Object)

sqlToJava

public Object sqlToJava(Object source)
Convert database decimals to 'visual' percentages for use in our business objects.

Specified by:
sqlToJava in interface org.apache.ojb.broker.accesslayer.conversions.FieldConversion
Overrides:
sqlToJava in class OjbKualiDecimalFieldConversion
See Also:
FieldConversion.sqlToJava(Object)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.