| org.apache.ojb.broker.accesslayer.conversions.FieldConversion
All known Subclasses: org.apache.ojb.broker.accesslayer.conversions.IntList2VarcharFieldConversion, org.apache.ojb.broker.accesslayer.conversions.TimeList2VarcharFieldConversion, org.apache.ojb.broker.accesslayer.conversions.Object2Base64StringFieldConversion, org.apache.ojb.broker.accesslayer.conversions.Calendar2TimestampFieldConversion, org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlDateFieldConversion, org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlTimestampFieldConversion, org.apache.ojb.broker.accesslayer.conversions.StringList2VarcharFieldConversion, org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFieldConversion, org.apache.ojb.broker.accesslayer.conversions.Object2ByteArrFieldConversion, org.apache.ojb.broker.accesslayer.conversions.Int2IntegerFieldConversion, xdoclet.modules.ojb.tests.TestConversionClass, org.apache.ojb.broker.accesslayer.conversions.StringVector2VarcharFieldConversion, org.apache.ojb.broker.accesslayer.conversions.FieldConversionDefaultImpl, org.apache.ojb.broker.accesslayer.conversions.Object2ByteArrUncompressedFieldConversion, org.apache.ojb.broker.accesslayer.conversions.Calendar2DateFieldConversion, org.apache.ojb.broker.accesslayer.conversions.GUID2StringFieldConversion, org.apache.ojb.broker.accesslayer.conversions.BlankString2NullFieldConversion,
FieldConversion | public interface FieldConversion extends Serializable(Code) | | The class FieldConversion declares a protocol for type and value
conversions between persistent classes attributes and counterpart objects supported by the
JDBC specification, e.g. String is supported by JDBC, so only an empty field
conversion is needed. But if the persistent class attribute is of type int[] a
field conversion to a supported field type is needed - e.g. int[] ---> String .
The default implementation
FieldConversionDefaultImpl does not modify its input.
OJB users can use predefined implementation and can also
build their own conversions that perform arbitrary mappings.
The mapping has to defined in the OJB mapping configuration file - more see documentation.
author: Thomas Mahler version: $Id: FieldConversion.java,v 1.6.2.2 2005/12/21 22:23:38 tomdz Exp $ |
Method Summary | |
public Object | javaToSql(Object source) Convert an object of the persistent class to a counterpart object
supported by the JDBC specification. | public Object | sqlToJava(Object source) Convert a JDBC object to a persistent class value. |
|
|