org.kuali.rice.ken.util
Class OjbCharBooleanConversion
java.lang.Object
org.kuali.rice.ken.util.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.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
- Serialized Form
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 |
OjbCharBooleanConversion
public OjbCharBooleanConversion()
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 © 2004-2011 The Kuali Foundation. All Rights Reserved.