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

java.lang.Object
  extended by org.kuali.rice.core.framework.persistence.ojb.conversion.OjbCharBooleanConversion3
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.accesslayer.conversions.FieldConversion

public class OjbCharBooleanConversion3
extends Object
implements org.apache.ojb.broker.accesslayer.conversions.FieldConversion

This class originates from a similar class in the Kuali Financial System and has been adapted from that original state which was originally authored by the Kuali Nervous System team. For records in the KEW tables, "0" and "1" are used to represent "false" and "true" respectively which is the standard way to represent these values in OJB. This differs from other pieces of the KNS where "N" and "Y" are used.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Constructor Summary
OjbCharBooleanConversion3()
           
 
Method Summary
 Object javaToSql(Object source)
          This handles checking any incoming String value and converts them to the appropriate Boolean value.
 Object sqlToJava(Object source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OjbCharBooleanConversion3

public OjbCharBooleanConversion3()
Method Detail

javaToSql

public Object javaToSql(Object source)
This handles checking any incoming String value and converts them to the appropriate Boolean value.

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

sqlToJava

public Object sqlToJava(Object source)
Specified by:
sqlToJava in interface org.apache.ojb.broker.accesslayer.conversions.FieldConversion


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