|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.mappings.DatabaseMapping
org.eclipse.persistence.mappings.foundation.AbstractDirectMapping
org.eclipse.persistence.mappings.DirectToFieldMapping
org.eclipse.persistence.mappings.TypeConversionMapping
TypeConversionConverter
public class TypeConversionMapping
Purpose: Type conversion mappings are used to explicitly map a database type to a Java type. Note this functionality has been somewhat replaced by TypeConversionConverter which can be used to obtain the same functionality on DirectToField and DirectCollection mappings.
TypeConversionConverter
,
Serialized FormField Summary |
---|
Fields inherited from class org.eclipse.persistence.mappings.foundation.AbstractDirectMapping |
---|
attributeClassification, attributeClassificationName, attributeObjectClassification, converter, converterClassName, field, isMutable, nullValue |
Fields inherited from class org.eclipse.persistence.mappings.DatabaseMapping |
---|
attributeAccessor, attributeName, descriptor, fields, isLazy, isOptional, isReadOnly, isRemotelyInitialized, NO_FIELDS, NO_WEIGHT, primaryKeyMapping, properties, weight, WEIGHT_1 |
Constructor Summary | |
---|---|
TypeConversionMapping()
Deprecated. PUBLIC: Default constructor. |
Method Summary | |
---|---|
java.lang.Object |
getAttributeValue(java.lang.Object fieldValue,
AbstractSession session)
Deprecated. INTERNAL: Need to override as attribute conversion is based on attribute-classification. |
java.lang.Class |
getFieldClassification()
Deprecated. PUBLIC: Returns the field type. |
java.lang.Class |
getFieldClassification(DatabaseField fieldToClassify)
Deprecated. INTERNAL: Return the classifiction for the field contained in the mapping. |
java.lang.String |
getFieldClassificationName()
Deprecated. INTERNAL: Return the field class name as a string for MW usage. |
TypeConversionConverter |
getTypeConversionConverter()
Deprecated. INTERNAL: Return and cast the converter. |
boolean |
isTypeConversionMapping()
Deprecated. INTERNAL: |
void |
setFieldClassification(java.lang.Class fieldType)
Deprecated. PUBLIC: Set the field type. |
void |
setFieldClassificationName(java.lang.String className)
Deprecated. INTERNAL: Return the field class name as a string for MW usage. |
Methods inherited from class org.eclipse.persistence.mappings.DirectToFieldMapping |
---|
isRelationalMapping, setFieldName, writeValueIntoRow |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TypeConversionMapping()
Method Detail |
---|
public TypeConversionConverter getTypeConversionConverter()
public java.lang.Class getFieldClassification()
getFieldClassification
in class AbstractDirectMapping
public java.lang.String getFieldClassificationName()
public java.lang.Class getFieldClassification(DatabaseField fieldToClassify)
getFieldClassification
in class AbstractDirectMapping
public boolean isTypeConversionMapping()
isTypeConversionMapping
in class DatabaseMapping
public void setFieldClassification(java.lang.Class fieldType)
setFieldClassification
in class AbstractDirectMapping
public void setFieldClassificationName(java.lang.String className)
public java.lang.Object getAttributeValue(java.lang.Object fieldValue, AbstractSession session)
getAttributeValue
in class AbstractDirectMapping
|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |