- java.lang.Object
-
- org.eclipse.persistence.sdo.helper.metadata.TypeStringConverter
-
- All Implemented Interfaces:
Serializable,CoreConverter<DatabaseMapping,Session>,Converter,XMLConverter
public class TypeStringConverter extends Object implements XMLConverter
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TypeStringConverter(SDOTypeHelper helper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectconvertDataValueToObjectValue(Object value, Session session)PUBLIC: Convert the databases' data representation of the value to the object's representation.ObjectconvertDataValueToObjectValue(Object value, Session session, XMLUnmarshaller unmarshaller)ObjectconvertObjectValueToDataValue(Object object, Session session)PUBLIC: Convert the object's representation of the value to the databases' data representation.ObjectconvertObjectValueToDataValue(Object object, Session session, XMLMarshaller marshaller)voidinitialize(DatabaseMapping mapping, Session session)PUBLIC: Allow for any initialization.booleanisMutable()PUBLIC: If the converter converts the value to a mutable value, i.e.
-
-
-
Constructor Detail
-
TypeStringConverter
public TypeStringConverter(SDOTypeHelper helper)
-
-
Method Detail
-
isMutable
public boolean isMutable()
Description copied from interface:ConverterPUBLIC: 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.
-
initialize
public void initialize(DatabaseMapping mapping, Session session)
Description copied from interface:ConverterPUBLIC: Allow for any initialization.- Specified by:
initializein interfaceConverter- Specified by:
initializein interfaceCoreConverter<DatabaseMapping,Session>
-
convertObjectValueToDataValue
public Object convertObjectValueToDataValue(Object object, Session session, XMLMarshaller marshaller)
- Specified by:
convertObjectValueToDataValuein interfaceXMLConverter
-
convertDataValueToObjectValue
public Object convertDataValueToObjectValue(Object value, Session session, XMLUnmarshaller unmarshaller)
- Specified by:
convertDataValueToObjectValuein interfaceXMLConverter
-
convertObjectValueToDataValue
public Object convertObjectValueToDataValue(Object object, Session session)
Description copied from interface:ConverterPUBLIC: 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:
convertObjectValueToDataValuein interfaceConverter- Specified by:
convertObjectValueToDataValuein interfaceCoreConverter<DatabaseMapping,Session>
-
convertDataValueToObjectValue
public Object convertDataValueToObjectValue(Object value, Session session)
Description copied from interface:ConverterPUBLIC: 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:
convertDataValueToObjectValuein interfaceConverter- Specified by:
convertDataValueToObjectValuein interfaceCoreConverter<DatabaseMapping,Session>
-
-