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

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
          extended by org.kuali.rice.core.framework.persistence.ojb.conversion.OjbKualiIntegerPercentageFieldConversion
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.accesslayer.conversions.FieldConversion

public class OjbKualiIntegerPercentageFieldConversion
extends OjbDecimalPercentageFieldConversion

See Also:
Serialized Form

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

OjbKualiIntegerPercentageFieldConversion

public OjbKualiIntegerPercentageFieldConversion()
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 OjbDecimalPercentageFieldConversion
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 OjbDecimalPercentageFieldConversion
See Also:
FieldConversion.sqlToJava(Object)


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