EclipseLink 1.0_1.0M2 API Reference - Incubation

org.eclipse.persistence.mappings
Class TypeConversionMapping

java.lang.Object
  extended by org.eclipse.persistence.mappings.DatabaseMapping
      extended by org.eclipse.persistence.mappings.foundation.AbstractDirectMapping
          extended by org.eclipse.persistence.mappings.DirectToFieldMapping
              extended by org.eclipse.persistence.mappings.TypeConversionMapping
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, RelationalMapping

Deprecated. since OracleAS TopLink 10g (10.1.3). This class is replaced by TypeConversionConverter

public class TypeConversionMapping
extends DirectToFieldMapping

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.

See Also:
TypeConversionConverter, Serialized Form
Author:
Sati
Since:
TopLink/Java 1.0

Field 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 org.eclipse.persistence.mappings.foundation.AbstractDirectMapping
buildBackupClone, buildChangeRecord, buildClone, buildCloneFromRow, buildCloneValue, buildCopy, buildExpression, buildShallowOriginalFromRow, cascadePerformRemoveIfRequired, cascadeRegisterNewIfRequired, clone, collectFields, compareForChange, compareObjects, convertClassNamesToClasses, fixObjectReferences, getAttributeClassification, getAttributeClassificationName, getConverter, getField, getFieldName, getFieldValue, getNullValue, getWeight, hasConverter, initialize, internalBuildChangeRecord, isAbstractDirectMapping, isChangeTrackingSupported, isCloningRequired, isDirectToFieldMapping, isMutable, iterate, mergeChangesIntoObject, mergeIntoObject, preInitialize, setAttributeClassification, setAttributeClassificationName, setConverter, setConverterClassName, setField, setFieldType, setIsMutable, setNullValue, toString, updateChangeRecord, validateBeforeInitialization, valueFromObject, valueFromResultSet, valueFromRow, writeFromObjectIntoRow, writeFromObjectIntoRowForUpdate, writeFromObjectIntoRowWithChangeRecord, writeInsertFieldsIntoRow
 
Methods inherited from class org.eclipse.persistence.mappings.DatabaseMapping
addToCollectionChangeRecord, buildBackupCloneForPartObject, buildCloneForPartObject, buildObjectJoinExpression, buildObjectJoinExpression, calculateDeferredChanges, cascadeDiscoverAndPersistUnregisteredNewObjects, cascadeMerge, cloneFields, createUnitOfWorkValueHolder, extractNestedExpressions, fixRealObjectReferences, getAttributeAccessor, getAttributeName, getAttributeValueFromObject, getContainerPolicy, getDescriptor, getFields, getGetMethodName, getObjectCorrespondingTo, getProperties, getProperty, getRealAttributeValueFromObject, getRealCollectionAttributeValueFromObject, getReferenceDescriptor, getRelationshipPartner, getSelectFields, getSelectTables, getSetMethodName, getValueFromRemoteValueHolder, hasConstraintDependency, hasDependency, hasInverseConstraintDependency, hasRootExpressionThatShouldUseOuterJoin, isAbstractCompositeCollectionMapping, isAbstractCompositeDirectCollectionMapping, isAbstractCompositeObjectMapping, isAggregateCollectionMapping, isAggregateMapping, isAggregateObjectMapping, isCascadedLockingSupported, isCollectionMapping, isDatabaseMapping, isDirectCollectionMapping, isDirectMapMapping, isDirectToXMLTypeMapping, isEISMapping, isForeignReferenceMapping, isJoiningSupported, isLazy, isManyToManyMapping, isNestedTableMapping, isObjectReferenceMapping, isObjectTypeMapping, isOneToManyMapping, isOneToOneMapping, isOptional, isPrimaryKeyMapping, isPrivateOwned, isReadOnly, isReferenceMapping, isRemotelyInitialized, isSerializedObjectMapping, isStructureMapping, isTransformationMapping, isUsingMethodAccess, isVariableOneToOneMapping, isWriteOnly, isXMLMapping, iterateOnRealAttributeValue, performDataModificationEvent, postDelete, postInitialize, postInsert, postUpdate, preDelete, preInsert, prepareCascadeLockingPolicy, preUpdate, readFromResultSetIntoObject, readFromRowIntoObject, readFromRowIntoObject, readOnly, readWrite, rehashFieldDependancies, remoteInitialization, remotelyInitialized, removeFromCollectionChangeRecord, replaceValueHoldersIn, setAttributeAccessor, setAttributeName, setAttributeValueInObject, setChangeListener, setDescriptor, setFields, setGetMethodName, setIsLazy, setIsOptional, setIsPrimaryKeyMapping, setIsReadOnly, setProperties, setProperty, setRealAttributeValueInObject, setSetMethodName, setWeight, simpleAddToCollectionChangeRecord, simpleRemoveFromCollectionChangeRecord, validateAfterInitialization, valueFromResultSet, valueFromRow, verifyDelete, writeFromAttributeIntoRow, writeFromObjectIntoRowForShallowInsert, writeFromObjectIntoRowForShallowInsertWithChangeRecord, writeFromObjectIntoRowForWhereClause, writeUpdateFieldsIntoRow
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeConversionMapping

public TypeConversionMapping()
Deprecated. 
PUBLIC: Default constructor.

Method Detail

getTypeConversionConverter

public TypeConversionConverter getTypeConversionConverter()
Deprecated. 
INTERNAL: Return and cast the converter.


getFieldClassification

public java.lang.Class getFieldClassification()
Deprecated. 
PUBLIC: Returns the field type. For this mapping both field classification and attribute classification are specified. Field classification is used when writing to the database.

Overrides:
getFieldClassification in class AbstractDirectMapping

getFieldClassificationName

public java.lang.String getFieldClassificationName()
Deprecated. 
INTERNAL: Return the field class name as a string for MW usage.


getFieldClassification

public java.lang.Class getFieldClassification(DatabaseField fieldToClassify)
Deprecated. 
INTERNAL: Return the classifiction for the field contained in the mapping. This is used to convert the row value to a consistent java value.

Overrides:
getFieldClassification in class AbstractDirectMapping

isTypeConversionMapping

public boolean isTypeConversionMapping()
Deprecated. 
INTERNAL:

Overrides:
isTypeConversionMapping in class DatabaseMapping

setFieldClassification

public void setFieldClassification(java.lang.Class fieldType)
Deprecated. 
PUBLIC: Set the field type. For this mapping both field classification and attribute classification are specified. Field classification is used when writing to the database.

Overrides:
setFieldClassification in class AbstractDirectMapping

setFieldClassificationName

public void setFieldClassificationName(java.lang.String className)
Deprecated. 
INTERNAL: Return the field class name as a string for MW usage.


getAttributeValue

public java.lang.Object getAttributeValue(java.lang.Object fieldValue,
                                          AbstractSession session)
Deprecated. 
INTERNAL: Need to override as attribute conversion is based on attribute-classification.

Overrides:
getAttributeValue in class AbstractDirectMapping

EclipseLink 1.0_1.0M2 API Reference - Incubation