org.apache.ojb.broker.accesslayer.conversions
Class Int2IntegerFieldConversion
java.lang.Object
org.apache.ojb.broker.accesslayer.conversions.Int2IntegerFieldConversion
- All Implemented Interfaces:
- FieldConversion, java.io.Serializable
- public class Int2IntegerFieldConversion
- extends java.lang.Object
- implements FieldConversion
this implementation of the FieldConversion interface converts
int to Integer, Integer to int. If the int is zero, then
we don't have a value for the key and it must be set to null, not
zero.
- Version:
- $Id: Int2IntegerFieldConversion.java,v 1.5 2004/04/04 23:53:32 brianm Exp $
- Author:
- Aaron Oathout
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
javaToSql(java.lang.Object obj)
Convert an object of the persistent class to a counterpart object
supported by the JDBC specification. |
java.lang.Object |
sqlToJava(java.lang.Object obj)
Convert a JDBC object to a persistent class value. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Int2IntegerFieldConversion
public Int2IntegerFieldConversion()
javaToSql
public java.lang.Object javaToSql(java.lang.Object obj)
throws ConversionException
- Description copied from interface:
FieldConversion
- Convert an object of the persistent class to a counterpart object
supported by the JDBC specification.
- Specified by:
javaToSql
in interface FieldConversion
- Throws:
ConversionException
sqlToJava
public java.lang.Object sqlToJava(java.lang.Object obj)
throws ConversionException
- Description copied from interface:
FieldConversion
- Convert a JDBC object to a persistent class value.
- Specified by:
sqlToJava
in interface FieldConversion
- Throws:
ConversionException
(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2