org.kuali.kfs.coa.util
Class OjbAccountActiveIndicatorConversion
java.lang.Object
org.kuali.rice.core.framework.persistence.ojb.conversion.OjbCharBooleanConversion
org.kuali.kfs.coa.util.OjbAccountActiveIndicatorConversion
- All Implemented Interfaces:
- Serializable, org.apache.ojb.broker.accesslayer.conversions.FieldConversion
public class OjbAccountActiveIndicatorConversion
- extends org.kuali.rice.core.framework.persistence.ojb.conversion.OjbCharBooleanConversion
This implementation is used to do two conversions on the account closed indicator
1) convert the closed indicator into the active indicator
2) convert the indicator as an approperite type
- See Also:
- Serialized Form
Fields inherited from class org.kuali.rice.core.framework.persistence.ojb.conversion.OjbCharBooleanConversion |
DATABASE_BOOLEAN_FALSE_STRING_REPRESENTATION, DATABASE_BOOLEAN_TRUE_STRING_REPRESENTATION |
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 |
INDICATOR_NO
public static final String INDICATOR_NO
- See Also:
- Constant Field Values
INDICATOR_YES
public static final String INDICATOR_YES
- See Also:
- Constant Field Values
OjbAccountActiveIndicatorConversion
public OjbAccountActiveIndicatorConversion()
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
- Overrides:
javaToSql
in class org.kuali.rice.core.framework.persistence.ojb.conversion.OjbCharBooleanConversion
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
- Overrides:
sqlToJava
in class org.kuali.rice.core.framework.persistence.ojb.conversion.OjbCharBooleanConversion
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.