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