public interface FieldConversion
extends java.io.Serializable
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.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
javaToSql(java.lang.Object source)
Convert an object of the persistent class to a counterpart object
supported by the JDBC specification.
|
java.lang.Object |
sqlToJava(java.lang.Object source)
Convert a JDBC object to a persistent class value.
|
java.lang.Object javaToSql(java.lang.Object source) throws ConversionException
ConversionException
java.lang.Object sqlToJava(java.lang.Object source) throws ConversionException
ConversionException
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30