EclipseLink 1.1.4, build 'v20100812-r7860' API Reference

org.eclipse.persistence.sdo.helper.metadata
Class TypeStringConverter

java.lang.Object
  extended by org.eclipse.persistence.sdo.helper.metadata.TypeStringConverter
All Implemented Interfaces:
java.io.Serializable, Converter, XMLConverter

public class TypeStringConverter
extends java.lang.Object
implements XMLConverter

See Also:
Serialized Form

Constructor Summary
TypeStringConverter(SDOTypeHelper helper)
           
 
Method Summary
 java.lang.Object convertDataValueToObjectValue(java.lang.Object value, Session session)
          PUBLIC: Convert the databases' data representation of the value to the object's representation.
 java.lang.Object convertDataValueToObjectValue(java.lang.Object value, Session session, XMLUnmarshaller unmarshaller)
           
 java.lang.Object convertObjectValueToDataValue(java.lang.Object object, Session session)
          PUBLIC: Convert the object's representation of the value to the databases' data representation.
 java.lang.Object convertObjectValueToDataValue(java.lang.Object object, Session session, XMLMarshaller marshaller)
           
 void initialize(DatabaseMapping mapping, Session session)
          PUBLIC: Allow for any initialization.
 boolean isMutable()
          PUBLIC: If the converter converts the value to a mutable value, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeStringConverter

public TypeStringConverter(SDOTypeHelper helper)
Method Detail

isMutable

public boolean isMutable()
Description copied from interface: Converter
PUBLIC: If the converter converts the value to a mutable value, i.e. a value that can have its' parts changed without being replaced, then it must return true. If the value is not mutable, cannot be changed without replacing the whole value then false must be returned. This is used within the UnitOfWork to determine how to clone.

Specified by:
isMutable in interface Converter

initialize

public void initialize(DatabaseMapping mapping,
                       Session session)
Description copied from interface: Converter
PUBLIC: Allow for any initialization.

Specified by:
initialize in interface Converter

convertObjectValueToDataValue

public java.lang.Object convertObjectValueToDataValue(java.lang.Object object,
                                                      Session session,
                                                      XMLMarshaller marshaller)
Specified by:
convertObjectValueToDataValue in interface XMLConverter

convertDataValueToObjectValue

public java.lang.Object convertDataValueToObjectValue(java.lang.Object value,
                                                      Session session,
                                                      XMLUnmarshaller unmarshaller)
Specified by:
convertDataValueToObjectValue in interface XMLConverter

convertObjectValueToDataValue

public java.lang.Object convertObjectValueToDataValue(java.lang.Object object,
                                                      Session session)
Description copied from interface: Converter
PUBLIC: Convert the object's representation of the value to the databases' data representation. For example this could convert between a Calendar Java type and the sql.Time datatype.

Specified by:
convertObjectValueToDataValue in interface Converter

convertDataValueToObjectValue

public java.lang.Object convertDataValueToObjectValue(java.lang.Object value,
                                                      Session session)
Description copied from interface: Converter
PUBLIC: Convert the databases' data representation of the value to the object's representation. For example this could convert between an sql.Time datatype and the Java Calendar type.

Specified by:
convertDataValueToObjectValue in interface Converter

EclipseLink 1.1.4, build 'v20100812-r7860' API Reference