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

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

public class OjbCharBooleanConversion2
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.

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

Constructor Summary
OjbCharBooleanConversion2()
           
 
Method Summary
 Object javaToSql(Object source)
          This handles checking the boolean value coming in and converts it to the appropriate Y or N value.
 Object sqlToJava(Object source)
          This handles checking the sql coming back from the database and converting it to the appropriate boolean true or false value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OjbCharBooleanConversion2

public OjbCharBooleanConversion2()
Method Detail

javaToSql

public Object javaToSql(Object source)
This handles checking the boolean value coming in and converts it to the appropriate Y or N value.

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

sqlToJava

public Object sqlToJava(Object source)
This handles checking the sql coming back from the database and converting it to the appropriate boolean true or false value.

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


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