org.kuali.rice.kns.util
Class OjbCharBooleanFieldAIConversion

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

public class OjbCharBooleanFieldAIConversion
extends Object
implements org.apache.ojb.broker.accesslayer.conversions.FieldConversion

This class converts the "A" or "I" value from the database into a true or false in Java.

See Also:
Serialized Form

Field Summary
private static String FALSE
           
private static String TRUE
           
 
Constructor Summary
OjbCharBooleanFieldAIConversion()
           
 
Method Summary
 Object javaToSql(Object source)
           
 Object sqlToJava(Object source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRUE

private static final String TRUE
See Also:
Constant Field Values

FALSE

private static final String FALSE
See Also:
Constant Field Values
Constructor Detail

OjbCharBooleanFieldAIConversion

public OjbCharBooleanFieldAIConversion()
Method Detail

javaToSql

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

sqlToJava

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


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.