org.kuali.kfs.module.bc.util
Class OjbPendingBCAppointmentFundingActiveIndicatorConversion
java.lang.Object
org.kuali.rice.kns.util.OjbCharBooleanConversion
org.kuali.kfs.module.bc.util.OjbPendingBCAppointmentFundingActiveIndicatorConversion
- All Implemented Interfaces:
- Serializable, org.apache.ojb.broker.accesslayer.conversions.FieldConversion
public class OjbPendingBCAppointmentFundingActiveIndicatorConversion
- extends org.kuali.rice.kns.util.OjbCharBooleanConversion
Handles conversion of active indicator so as to piggy back onto appointmentFundingDeleteIndicator by reversing the values.
Converts database delete values of Y and N to java active N and Y and back.
- See Also:
- Serialized Form
Fields inherited from class org.kuali.rice.kns.util.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
OjbPendingBCAppointmentFundingActiveIndicatorConversion
public OjbPendingBCAppointmentFundingActiveIndicatorConversion()
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.kns.util.OjbCharBooleanConversion
- 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
- Overrides:
sqlToJava
in class org.kuali.rice.kns.util.OjbCharBooleanConversion
- See Also:
FieldConversion#sqlToJava(Object)
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.