org.kuali.rice.kns.util
Class OjbDecimalKualiPercentFieldConversion

java.lang.Object
  extended by org.kuali.rice.kns.util.OjbKualiDecimalFieldConversion
      extended by org.kuali.rice.kns.util.OjbDecimalKualiPercentFieldConversion
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.accesslayer.conversions.FieldConversion

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

This class...

See Also:
Serialized Form

Constructor Summary
OjbDecimalKualiPercentFieldConversion()
           
 
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

OjbDecimalKualiPercentFieldConversion

public OjbDecimalKualiPercentFieldConversion()
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 © 2004-2012 The Kuali Foundation. All Rights Reserved.