Top Description Fields Constructors Methods
org.eclipse.persistence.mappings

public Class DirectToFieldMapping

extends AbstractDirectMapping
implements RelationalMapping
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.mappings.RelationalMapping
Known Direct Subclasses
org.eclipse.persistence.mappings.xdb.DirectToXMLTypeMapping
Imports
org.eclipse.persistence.internal.helper.DatabaseField, org.eclipse.persistence.mappings.foundation.AbstractDirectMapping, org.eclipse.persistence.internal.sessions.AbstractRecord

Purpose: Maps an attribute to the corresponding database field type. The list of field types that are supported by TopLink's direct to field mapping is dependent on the relational database being used. A converter can be used to convert between the object and data type if they do not match.
Author
Sati
Since
TopLink/Java 1.0
See Also
org.eclipse.persistence.mappings.converters.Converter, org.eclipse.persistence.mappings.converters.ObjectTypeConverter, org.eclipse.persistence.mappings.converters.TypeConversionConverter, org.eclipse.persistence.mappings.converters.SerializedObjectConverter

Field Summary

Inherited from org.eclipse.persistence.mappings.foundation.AbstractDirectMapping:
attributeClassificationattributeClassificationNameattributeObjectClassificationbypassDefaultNullValueCheckfieldClassificationClassNameisMutablekeyTableForMapKeynullValue

Constructor Summary

AccessConstructor and Description
public
DirectToFieldMapping()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public boolean
public void
setFieldName(String FieldName)

PUBLIC: Set the field name in the mapping.

protected void
Inherited from org.eclipse.persistence.mappings.foundation.AbstractDirectMapping:
addAdditionalFieldsToQueryaddFieldsForMapKeyaddKeyToDeletedObjectsListbuildBackupClonebuildChangeRecordbuildClonebuildCloneFromRowbuildCloneValuebuildCloneValuebuildCopybuildElementClonebuildExpressionbuildSelectionQueryForDirectCollectionKeyMappingbuildShallowOriginalFromRowcascadeDiscoverAndPersistUnregisteredNewObjectscascadePerformRemoveIfRequiredcascadePerformRemoveIfRequiredcascadeRegisterNewIfRequiredcascadeRegisterNewIfRequiredcompareForChangecompareObjectscompareObjectValuesconvertClassNamesToClassescreateMapComponentFromJoinedRowcreateMapComponentFromRowcreateMapComponentsFromSerializableKeyInfocreateQueryKeyForMapKeycreateSerializableMapKeyInfocreateStubbedMapComponentFromSerializableKeyInfodeleteMapKeyextractIdentityFieldsForQuerygetAdditionalSelectionCriteriaForMapKeygetAdditionalTablesForJoinQuerygetAllFieldsForMapKeygetAttributeClassificationgetAttributeClassificationNamegetFieldClassificationgetFieldClassificationgetFieldClassificationClassNamegetFieldNamegetFieldValuegetForeignKeyFieldsForMapKeygetIdentityFieldsForMapKeygetMapKeyTargetTypegetNestedJoinQuerygetNullValuegetObjectValuegetObjectValueWithoutClassCheckgetReferenceDescriptorgetTargetVersionOfSourceObjectgetWeightinitializeinternalBuildChangeRecordisAbstractDirectMappingisChangeTrackingSupportedisCloningRequiredisDirectToFieldMappingisMutableiterateOnMapKeymergeChangesIntoObjectmergeIntoObjectpostInitializeMapKeypreInitializepreinitializeMapKeyremoteInitializationrequiresDataModificationEventsForMapKeysetAttributeClassificationsetAttributeClassificationNamesetFieldClassificationsetFieldClassificationClassNamesetFieldTypesetIsMutablesetNullValuetoStringunwrapKeyupdateChangeRecordvalidateBeforeInitializationvalueFromObjectvalueFromResultSetvalueFromRowwrapKeywriteFromObjectIntoRowwriteFromObjectIntoRowForUpdatewriteFromObjectIntoRowWithChangeRecordwriteInsertFieldsIntoRowwriteUpdateFieldsIntoRow

Constructor Detail

DirectToFieldMappingback to summary
public DirectToFieldMapping()

Default constructor.

Method Detail

isRelationalMappingback to summary
public boolean isRelationalMapping()

Overrides org.eclipse.persistence.mappings.DatabaseMapping.isRelationalMapping.

INTERNAL:

Annotations
@Override
setFieldNameback to summary
public void setFieldName(String FieldName)

PUBLIC: Set the field name in the mapping.

writeValueIntoRowback to summary
protected void writeValueIntoRow(AbstractRecord row, DatabaseField field, Object fieldValue)

Implements abstract org.eclipse.persistence.mappings.foundation.AbstractDirectMapping.writeValueIntoRow.

Doc from org.eclipse.persistence.mappings.foundation.AbstractColumnMapping.writeValueIntoRow.

INTERNAL:

Annotations
@Override