org.kuali.rice.kew.ojb
Class OjbCharBooleanConversion

java.lang.Object
  extended by org.kuali.rice.kew.ojb.OjbCharBooleanConversion
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.accesslayer.conversions.FieldConversion

public class OjbCharBooleanConversion
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
OjbCharBooleanConversion()
           
 
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

OjbCharBooleanConversion

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