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

public Class EISDirectMapping

extends AbstractDirectMapping
implements EISMapping
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.eis.mappings.EISMapping
Imports
org.eclipse.persistence.eis.EISDescriptor, org.eclipse.persistence.internal.helper.DatabaseField, org.eclipse.persistence.internal.sessions.AbstractRecord, .AbstractSession, org.eclipse.persistence.mappings.foundation.AbstractDirectMapping, org.eclipse.persistence.oxm.XMLField, org.eclipse.persistence.oxm.record.XMLRecord

EIS Direct Mappings map a simple Java attribute to and from an EIS Record according to its descriptor's record type.

Record formats
Record Type Description
Indexed Ordered collection of record elements. The indexed record EIS format enables Java class attribute values to be retreived by position or index.
Mapped Key-value map based representation of record elements. The mapped record EIS format enables Java class attribute values to be retreived by an object key.
XML Record/Map representation of an XML DOM element.
Since
Oracle TopLink 10g Release 2 (10.1.3)
See Also
org.eclipse.persistence.eis.EISDescriptor#useIndexedRecordFormat, org.eclipse.persistence.eis.EISDescriptor#useMappedRecordFormat, org.eclipse.persistence.eis.EISDescriptor#useXMLRecordFormat

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

String the XPath String associated with this Mapping
getXPath
()

Get the XPath String associated with this Mapping

public boolean
public void
setFieldName(String fieldName)

PUBLIC: Set the field name in the mapping.

public void
setXPath(String
String
xpathString
)

Set the Mapping field name attribute to the given XPath String.

public void
writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, DatabaseMapping.WriteType writeType)

Overrides org.eclipse.persistence.mappings.foundation.AbstractDirectMapping.writeFromObjectIntoRow.

INTERNAL: We override this method in order to set the session on the record if the data format is XML.
protected void
Inherited from org.eclipse.persistence.mappings.foundation.AbstractDirectMapping:
addAdditionalFieldsToQueryaddFieldsForMapKeyaddKeyToDeletedObjectsListbuildBackupClonebuildChangeRecordbuildClonebuildCloneFromRowbuildCloneValuebuildCloneValuebuildCopybuildElementClonebuildExpressionbuildSelectionQueryForDirectCollectionKeyMappingbuildShallowOriginalFromRowcascadeDiscoverAndPersistUnregisteredNewObjectscascadePerformRemoveIfRequiredcascadePerformRemoveIfRequiredcascadeRegisterNewIfRequiredcascadeRegisterNewIfRequiredcompareForChangecompareObjectscompareObjectValuesconvertClassNamesToClassescreateMapComponentFromJoinedRowcreateMapComponentFromRowcreateMapComponentsFromSerializableKeyInfocreateQueryKeyForMapKeycreateSerializableMapKeyInfocreateStubbedMapComponentFromSerializableKeyInfodeleteMapKeyextractIdentityFieldsForQuerygetAdditionalSelectionCriteriaForMapKeygetAdditionalTablesForJoinQuerygetAllFieldsForMapKeygetAttributeClassificationgetAttributeClassificationNamegetFieldClassificationgetFieldClassificationgetFieldClassificationClassNamegetFieldNamegetFieldValuegetForeignKeyFieldsForMapKeygetIdentityFieldsForMapKeygetMapKeyTargetTypegetNestedJoinQuerygetNullValuegetObjectValuegetObjectValueWithoutClassCheckgetReferenceDescriptorgetTargetVersionOfSourceObjectgetWeightinitializeinternalBuildChangeRecordisAbstractDirectMappingisChangeTrackingSupportedisCloningRequiredisDirectToFieldMappingisMutableiterateOnMapKeymergeChangesIntoObjectmergeIntoObjectpostInitializeMapKeypreInitializepreinitializeMapKeyremoteInitializationrequiresDataModificationEventsForMapKeysetAttributeClassificationsetAttributeClassificationNamesetFieldClassificationsetFieldClassificationClassNamesetFieldTypesetIsMutablesetNullValuetoStringunwrapKeyupdateChangeRecordvalidateBeforeInitializationvalueFromObjectvalueFromResultSetvalueFromRowwrapKeywriteFromObjectIntoRowForUpdatewriteFromObjectIntoRowWithChangeRecordwriteInsertFieldsIntoRowwriteUpdateFieldsIntoRow

Constructor Detail

EISDirectMappingback to summary
public EISDirectMapping()

Method Detail

getXPathback to summary
public String getXPath()

Get the XPath String associated with this Mapping

Returns:String

String the XPath String associated with this Mapping

isEISMappingback to summary
public boolean isEISMapping()

Overrides org.eclipse.persistence.mappings.DatabaseMapping.isEISMapping.

INTERNAL:

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

PUBLIC: Set the field name in the mapping.

setXPathback to summary
public void setXPath(String xpathString)

Set the Mapping field name attribute to the given XPath String.

Parameters
xpathString:String

String

writeFromObjectIntoRowback to summary
public void writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, DatabaseMapping.WriteType writeType)

Overrides org.eclipse.persistence.mappings.foundation.AbstractDirectMapping.writeFromObjectIntoRow.

INTERNAL: We override this method in order to set the session on the record if the data format is XML. Get a value from the object and set that in the respective field of the row.

Annotations
@Override
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