|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.mappings.converters.TypeConversionConverter
public class TypeConversionConverter
Purpose: Type conversion converters are used to explicitly map a database type to a Java type.
Field Summary | |
---|---|
protected java.lang.Class |
dataClass
Field type |
protected java.lang.String |
dataClassName
|
protected DatabaseMapping |
mapping
|
protected java.lang.Class |
objectClass
Object type |
protected java.lang.String |
objectClassName
|
Constructor Summary | |
---|---|
TypeConversionConverter()
PUBLIC: Default constructor. |
|
TypeConversionConverter(DatabaseMapping mapping)
PUBLIC: Default constructor. |
Method Summary | |
---|---|
void |
convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL: Convert all the class-name-based settings in this converter to actual class-based settings. |
java.lang.Object |
convertDataValueToObjectValue(java.lang.Object fieldValue,
Session session)
INTERNAL: The field value must first be converted to the field type, then the attribute type. |
java.lang.Object |
convertObjectValueToDataValue(java.lang.Object attributeValue,
Session session)
INTERNAL: Convert to the field class. |
java.lang.Class |
getDataClass()
PUBLIC: Returns the class type of the data value. |
java.lang.String |
getDataClassName()
INTERNAL: Return the name of the data type for the MW usage. |
protected DatabaseMapping |
getMapping()
INTERNAL: Return the mapping. |
java.lang.Class |
getObjectClass()
PUBLIC: Returns the class type of the object value. |
java.lang.String |
getObjectClassName()
INTERNAL: Return the name of the object type for the MW usage. |
void |
initialize(DatabaseMapping mapping,
Session session)
INTERNAL: Set the mapping. |
boolean |
isMutable()
INTERNAL: If the converter converts the value to a non-atomic value, i.e. |
void |
setDataClass(java.lang.Class dataClass)
PUBLIC: Set the class type of the data value. |
void |
setDataClassName(java.lang.String dataClassName)
INTERNAL: Set the name of the data type for the MW usage. |
void |
setObjectClass(java.lang.Class objectClass)
PUBLIC: Set the class type of the object value. |
void |
setObjectClassName(java.lang.String objectClassName)
INTERNAL: Set the name of the object type for the MW usage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DatabaseMapping mapping
protected java.lang.Class dataClass
protected java.lang.String dataClassName
protected java.lang.Class objectClass
protected java.lang.String objectClassName
Constructor Detail |
---|
public TypeConversionConverter()
public TypeConversionConverter(DatabaseMapping mapping)
Method Detail |
---|
public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
classLoader
- public java.lang.Object convertDataValueToObjectValue(java.lang.Object fieldValue, Session session)
convertDataValueToObjectValue
in interface Converter
public java.lang.Class getObjectClass()
public java.lang.String getObjectClassName()
public java.lang.Class getDataClass()
public java.lang.String getDataClassName()
public void setDataClass(java.lang.Class dataClass)
public void setDataClassName(java.lang.String dataClassName)
public void setObjectClass(java.lang.Class objectClass)
public void setObjectClassName(java.lang.String objectClassName)
public java.lang.Object convertObjectValueToDataValue(java.lang.Object attributeValue, Session session)
convertObjectValueToDataValue
in interface Converter
public void initialize(DatabaseMapping mapping, Session session)
initialize
in interface Converter
protected DatabaseMapping getMapping()
public boolean isMutable()
isMutable
in interface Converter
|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |