org.apache.ojb.broker.accesslayer.conversions
Class Object2Base64StringFieldConversion
java.lang.Object
org.apache.ojb.broker.accesslayer.conversions.Object2Base64StringFieldConversion
- All Implemented Interfaces:
- Serializable, FieldConversion
public class Object2Base64StringFieldConversion
- extends Object
- implements FieldConversion
this implementation of the FieldConversion interface converts
between java.lang.Objects values and char[] values in the rdbms.
This conversion is useful to store serialized objects in database
columns. For an example have a look at the mapping of
org.apache.ojb.odmg.collections.DlistEntry.
- Version:
- $Id: Object2Base64StringFieldConversion.java,v 1.1 2007-08-24 22:17:31 ewestfal Exp $
- Author:
- Thomas Mahler, Scott C. Gray
- See Also:
- Serialized Form
Method Summary |
Object |
javaToSql(Object source)
Convert an object of the persistent class to a counterpart object
supported by the JDBC specification. |
Object |
sqlToJava(Object source)
Convert a JDBC object to a persistent class value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
byteOut
private ByteArrayOutputStream byteOut
uuOut
private Base64.OutputStream uuOut
gzipOut
private GZIPOutputStream gzipOut
objOut
private ObjectOutputStream objOut
Object2Base64StringFieldConversion
public Object2Base64StringFieldConversion()
javaToSql
public Object javaToSql(Object source)
- 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
sqlToJava
public Object sqlToJava(Object source)
- Description copied from interface:
FieldConversion
- Convert a JDBC object to a persistent class value.
- Specified by:
sqlToJava
in interface FieldConversion
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.