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

public Class VariableOneToOneMapping

extends ObjectReferenceMapping
implements RelationalMapping
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.mappings.RelationalMapping
Imports
java.security.AccessController, .PrivilegedActionException, java.util.Enumeration, .HashMap, .Iterator, .Map, .Vector, org.eclipse.persistence.descriptors.ClassDescriptor, org.eclipse.persistence.exceptions.ConversionException, .DatabaseException, .DescriptorException, .QueryException, .ValidationException, org.eclipse.persistence.expressions.Expression, .ExpressionBuilder, org.eclipse.persistence.indirection.ValueHolder, org.eclipse.persistence.internal.helper.DatabaseField, .DatabaseTable, .Helper, .NonSynchronizedVector, org.eclipse.persistence.internal.identitymaps.CacheKey, org.eclipse.persistence.internal.queries.JoinedAttributeManager, org.eclipse.persistence.internal.security.PrivilegedAccessHelper, .PrivilegedClassForName, org.eclipse.persistence.internal.sessions.AbstractRecord, .AbstractSession, .ChangeRecord, .ObjectChangeSet, .ObjectReferenceChangeRecord, org.eclipse.persistence.mappings.querykeys.DirectQueryKey, .QueryKey, org.eclipse.persistence.queries.ObjectBuildingQuery, .ObjectLevelModifyQuery, .ObjectLevelReadQuery, .ReadObjectQuery

Purpose: Variable one to one mappings are used to represent a pointer references between a java object and an implementer of an interface. This mapping is usually represented by a single pointer (stored in an instance variable) between the source and target objects. In the relational database tables, these mappings are normally implemented using a foreign key and a type code.

Author
Sati
Since
TOPLink/Java 2.0

Field Summary

Modifier and TypeField and Description
protected Map<K, V>
protected DatabaseField
protected Map<K, V>
typeIndicatorNameTranslation

parallel table typeIndicatorTranslation used prior to initialization to avoid type indicators on Mapping Workbench

protected Map<K, V>
Inherited from org.eclipse.persistence.mappings.ObjectReferenceMapping:
foreignKeyFieldsisForeignKeyRelationship

Constructor Summary

AccessConstructor and Description
public
VariableOneToOneMapping()

PUBLIC: Default constructor.

Method Summary

Modifier and TypeMethod and Description
public void
addClassIndicator(Class<?> implementer, Object typeIndicator)

PUBLIC: Add a type indicator conversion to this mapping.

public void
addClassNameIndicator(String className, Object typeIndicator)

INTERNAL: Add indicators by classname.

public void
addForeignQueryKeyName(DatabaseField sourceForeignKeyField, String targetQueryKeyName)

PUBLIC: A foreign key from the source table and abstract query key from the interface descriptor are added to the mapping.

public void
addForeignQueryKeyName(String sourceForeignKeyFieldName, String targetQueryKeyName)

PUBLIC: A foreign key from the source table and abstract query key from the interface descriptor are added to the mapping.

public void
addTargetForeignQueryKeyName(String targetForeignQueryKeyName, String sourcePrimaryKeyFieldName)

PUBLIC: Define the target foreign key relationship in the Variable 1-1 mapping.

protected Object
batchedValueFromRow(AbstractRecord row, ObjectLevelReadQuery query, CacheKey parentCacheKey)

Overrides org.eclipse.persistence.mappings.ForeignReferenceMapping.batchedValueFromRow.

INTERNAL: Possible for future development, not currently supported.
public Object
clone()

Overrides org.eclipse.persistence.mappings.ForeignReferenceMapping.clone.

INTERNAL: This methods clones all the fields and ensures that each collection refers to the same clones.
protected Vector<E>
collectFields()

Overrides org.eclipse.persistence.mappings.ObjectReferenceMapping.collectFields.

INTERNAL: Return all the fields populated by this mapping.
protected boolean
compareObjectsWithoutPrivateOwned(Object firstObject, Object secondObject, AbstractSession session)

Overrides org.eclipse.persistence.mappings.ObjectReferenceMapping.compareObjectsWithoutPrivateOwned.

INTERNAL: Compare the references of the two objects are the same, not the objects themselves.
public void
convertClassNamesToClasses(ClassLoader
TODO
classLoader
)

Overrides org.eclipse.persistence.mappings.ForeignReferenceMapping.convertClassNamesToClasses.

INTERNAL: Convert all the class-name-based settings in this mapping to actual class-based settings.
public Vector<E>
getClassIndicatorAssociations()

INTERNAL: Return the class indicator associations for XML.

public ClassDescriptor
getDescriptorForTarget(Object targetObject, AbstractSession session)

Overrides org.eclipse.persistence.mappings.ObjectReferenceMapping.getDescriptorForTarget.

INTERNAL: Return a descriptor for the target of this mapping For normal ObjectReferenceMappings, we return the reference descriptor.
public Class<?>
getFieldClassification(DatabaseField fieldToClassify)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.getFieldClassification.

INTERNAL: Return the classification for the field contained in the mapping.
public Vector<E>
getForeignKeyFieldNames()

PUBLIC: Return the foreign key field names associated with the mapping.

protected Object
getImplementorForType(Object type, AbstractSession session)

INTERNAL: Return the implementor for a specified type

protected Object
public Vector<E>
getSourceToTargetQueryKeyFieldAssociations()

PUBLIC: Return a collection of the field to query key associations.

public Map<K, V>
getSourceToTargetQueryKeyNames()

INTERNAL: Returns the source keys to target keys fields association.

public DatabaseField
public String
getTypeFieldName()

PUBLIC: This method returns the name of the typeField of the mapping.

protected Object
getTypeForImplementor(Class<?> implementor)

INTERNAL: Return the type for a specified implementor

public Map<K, V>
getTypeIndicatorNameTranslation()

INTERNAL: Return the typeIndicatorName translation Used by the Mapping Workbench to avoid classpath dependencies

public Map<K, V>
getTypeIndicatorTranslation()

INTERNAL: Return the type indicators.

public void
protected void
initializeForeignKeys(AbstractSession session)

INTERNAL: The foreign key names and their primary keys are converted to DatabaseField and stored.

public void
initializeSelectionCriteria(AbstractSession session)

INTERNAL: Selection criteria is created with source foreign keys and target keys.

public boolean
public boolean
public void
preInitialize(AbstractSession session)

Overrides org.eclipse.persistence.mappings.ObjectReferenceMapping.preInitialize.

INTERNAL: Set the type field classification through searching the indicators hashtable.
public void
public void
setClassIndicatorAssociations(Vector<E> classIndicatorAssociations)

PUBLIC: Set the class indicator associations.

public void
setForeignKeyFieldNames(Vector<E> fieldNames)

PUBLIC: Return the foreign key field names associated with the mapping.

public void
setForeignQueryKeyName(String sourceForeignKeyFieldName, String targetQueryKeyName)

PUBLIC: A foreign key from the source table and abstract query key from the interface descriptor are added to the mapping.

public void
setSourceToTargetQueryKeyFieldAssociations(Vector<E> sourceToTargetQueryKeyFieldAssociations)

PUBLIC: Set a collection of the source to target query key/field associations.

protected void
setSourceToTargetQueryKeyFields(Map<K, V> sourceToTargetQueryKeyNames)

INTERNAL: Set the source keys to target keys fields association.

public void
setTypeField(DatabaseField typeField)

INTERNAL: This method set the typeField of the mapping to the parameter field

public void
setTypeFieldName(String typeFieldName)

PUBLIC: This method sets the name of the typeField of the mapping.

protected void
setTypeIndicatorNameTranslation(Map<K, V> translations)

INTERNAL: For avoiding classpath dependencies on the Mapping Workbench

protected void
setTypeIndicatorTranslation(Map<K, V> translations)

INTERNAL: Set the typeIndicatorTranslations hashtable to the new Hashtable translations

public Object
valueFromObject(Object
TODO
object
,
DatabaseField
TODO
field
,
AbstractSession
TODO
session
)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.valueFromObject.

INTERNAL: Get a value from the object and set that in the respective field of the row.
public Object
valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed)

Overrides org.eclipse.persistence.mappings.ForeignReferenceMapping.valueFromRow.

INTERNAL: Return the value of the field from the row or a value holder on the query to obtain the object.
protected void
writeFromNullObjectIntoRow(AbstractRecord record)

INTERNAL: Get a value from the object and set that in the respective field of the row.

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

Overrides org.eclipse.persistence.mappings.DatabaseMapping.writeFromObjectIntoRow.

INTERNAL: Get a value from the object and set that in the respective field of the row.
public void
writeFromObjectIntoRowForShallowInsert(Object object, AbstractRecord record, AbstractSession session)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.writeFromObjectIntoRowForShallowInsert.

INTERNAL: This row is built for shallow insert which happens in case of bidirectional inserts.
public void
writeFromObjectIntoRowForShallowInsertWithChangeRecord(ChangeRecord changeRecord, AbstractRecord record, AbstractSession session)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.writeFromObjectIntoRowForShallowInsertWithChangeRecord.

INTERNAL: This row is built for shallow insert which happens in case of bidirectional inserts.
public void
writeFromObjectIntoRowForUpdateAfterShallowInsert(Object object, AbstractRecord row, AbstractSession session, DatabaseTable table)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.writeFromObjectIntoRowForUpdateAfterShallowInsert.

INTERNAL: This row is built for update after shallow insert which happens in case of bidirectional inserts.
public void
writeFromObjectIntoRowForWhereClause(ObjectLevelModifyQuery query, AbstractRecord record)

Overrides org.eclipse.persistence.mappings.ObjectReferenceMapping.writeFromObjectIntoRowForWhereClause.

INTERNAL: Get a value from the object and set that in the respective field of the row.
public void
writeFromObjectIntoRowWithChangeRecord(ChangeRecord changeRecord, AbstractRecord record, AbstractSession session, DatabaseMapping.WriteType writeType)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.writeFromObjectIntoRowWithChangeRecord.

INTERNAL: Get a value from the object and set that in the respective field of the row.
public void
writeInsertFieldsIntoRow(AbstractRecord record, AbstractSession session)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.writeInsertFieldsIntoRow.

INTERNAL: Write fields needed for insert into the template for with null values.
Inherited from org.eclipse.persistence.mappings.ObjectReferenceMapping:
buildBackupCloneForPartObjectbuildChangeRecordbuildCloneForPartObjectbuildCopybuildExpressionbuildReferencesPKListbuildTargetInterfacesbuildUnitofWorkCloneForPartObjectcascadeDiscoverAndPersistUnregisteredNewObjectscascadeDiscoverAndPersistUnregisteredNewObjectscascadePerformRemoveIfRequiredcascadePerformRemoveIfRequiredcascadePerformRemovePrivateOwnedObjectFromChangeSetIfRequiredcascadeRegisterNewIfRequiredcascadeRegisterNewIfRequiredcollectQueryParameterscompareForChangecompareObjectsWithPrivateOwnedcreateCloneValueHolderearlyPreDeleteextractPrimaryKeyRowForSourceObjectextractPrimaryKeysForReferenceObjectextractPrimaryKeysForReferenceObjectFromRowextractPrimaryKeysFromRealReferenceObjectfixRealObjectReferencesgetForeignKeyFieldsgetRealAttributeValueFromAttributehasConstraintDependencyhasRelationTableMechanisminsertinternalBuildChangeRecordisChangeTrackingSupportedisForeignKeyRelationshipisObjectReferenceMappingiterateOnRealAttributeValueloadAllmergeChangesIntoObjectmergeIntoObjectpostCalculateChangespostDeletepostInsertpostUpdatepreDeletepreInsertpreUpdatereadPrivateOwnedForObjectrecordPrivateOwnedRemovalssetForeignKeyFieldssetIsForeignKeyRelationshipsetNewValueInChangeRecordupdateupdateChangeRecordupdateChangeRecordForSelfMergeuseProxyIndirectionuseProxyIndirectionuseProxyIndirectionvalueFromPKListverifyDeletewriteFromObjectIntoRowForUpdate

Field Detail

sourceToTargetQueryKeyNamesback to summary
protected Map<K, V> sourceToTargetQueryKeyNames
typeFieldback to summary
protected DatabaseField typeField
typeIndicatorNameTranslationback to summary
protected Map<K, V> typeIndicatorNameTranslation

parallel table typeIndicatorTranslation used prior to initialization to avoid type indicators on Mapping Workbench

typeIndicatorTranslationback to summary
protected Map<K, V> typeIndicatorTranslation

Constructor Detail

VariableOneToOneMappingback to summary
public VariableOneToOneMapping()

PUBLIC: Default constructor.

Method Detail

addClassIndicatorback to summary
public void addClassIndicator(Class<?> implementer, Object typeIndicator)

PUBLIC: Add a type indicator conversion to this mapping.

addClassNameIndicatorback to summary
public void addClassNameIndicator(String className, Object typeIndicator)

INTERNAL: Add indicators by classname. For use by the Mapping Workbench to avoid classpath dependencies

addForeignQueryKeyNameback to summary
public void addForeignQueryKeyName(DatabaseField sourceForeignKeyField, String targetQueryKeyName)

PUBLIC: A foreign key from the source table and abstract query key from the interface descriptor are added to the mapping. This method is used if there are multiple foreign keys.

addForeignQueryKeyNameback to summary
public void addForeignQueryKeyName(String sourceForeignKeyFieldName, String targetQueryKeyName)

PUBLIC: A foreign key from the source table and abstract query key from the interface descriptor are added to the mapping. This method is used if there are multiple foreign keys.

addTargetForeignQueryKeyNameback to summary
public void addTargetForeignQueryKeyName(String targetForeignQueryKeyName, String sourcePrimaryKeyFieldName)

PUBLIC: Define the target foreign key relationship in the Variable 1-1 mapping. This method is used for composite target foreign key relationships, that is the target object's table has multiple foreign key fields to the source object's primary key fields. Both the target foreign key query name and the source primary key field name must be specified. The distinction between a foreign key and target foreign key is that the variable 1-1 mapping will not populate the target foreign key value when written (because it is in the target table). Normally 1-1's are through foreign keys but in bi-directional 1-1's the back reference will be a target foreign key. In obscure composite legacy data models a 1-1 may consist of a foreign key part and a target foreign key part, in this case both method will be called with the correct parts.

batchedValueFromRowback to summary
protected Object batchedValueFromRow(AbstractRecord row, ObjectLevelReadQuery query, CacheKey parentCacheKey)

Overrides org.eclipse.persistence.mappings.ForeignReferenceMapping.batchedValueFromRow.

INTERNAL: Possible for future development, not currently supported. Retrieve the value through using batch reading. This executes a single query to read the target for all of the objects and stores the result of the batch query in the original query to allow the other objects to share the results.

Annotations
@Override
cloneback to summary
public Object clone()

Overrides org.eclipse.persistence.mappings.ForeignReferenceMapping.clone.

INTERNAL: This methods clones all the fields and ensures that each collection refers to the same clones.

Returns:Object

Doc from org.eclipse.persistence.mappings.DatabaseMapping.clone.

new instance of itself

Annotations
@Override
collectFieldsback to summary
protected Vector<E> collectFields()

Overrides org.eclipse.persistence.mappings.ObjectReferenceMapping.collectFields.

INTERNAL: Return all the fields populated by this mapping.

Returns:Vector<E>

Doc from org.eclipse.persistence.mappings.DatabaseMapping.collectFields.

TODO

Annotations
@Override
compareObjectsWithoutPrivateOwnedback to summary
protected boolean compareObjectsWithoutPrivateOwned(Object firstObject, Object secondObject, AbstractSession session)

Overrides org.eclipse.persistence.mappings.ObjectReferenceMapping.compareObjectsWithoutPrivateOwned.

INTERNAL: Compare the references of the two objects are the same, not the objects themselves. Used for independent relationships. This is used for testing and validation purposes. Must get separate fields for the objects because we may be adding a different class to the attribute because of the interface

Annotations
@Override
convertClassNamesToClassesback to summary
public void convertClassNamesToClasses(ClassLoader classLoader)

Overrides org.eclipse.persistence.mappings.ForeignReferenceMapping.convertClassNamesToClasses.

INTERNAL: Convert all the class-name-based settings in this mapping to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes.

Parameters
classLoader:ClassLoader

Doc from org.eclipse.persistence.mappings.DatabaseMapping.convertClassNamesToClasses.

TODO

Annotations
@Override
getClassIndicatorAssociationsback to summary
public Vector<E> getClassIndicatorAssociations()

INTERNAL: Return the class indicator associations for XML. List of class-name/value associations.

getDescriptorForTargetback to summary
public ClassDescriptor getDescriptorForTarget(Object targetObject, AbstractSession session)

Overrides org.eclipse.persistence.mappings.ObjectReferenceMapping.getDescriptorForTarget.

INTERNAL: Return a descriptor for the target of this mapping For normal ObjectReferenceMappings, we return the reference descriptor. For a VariableOneToOneMapping, the reference descriptor is often a descriptor for an interface and does not contain adequate information. As a result, we look up the descriptor for the specific class we are looking for Bug 2612571

Annotations
@Override
getFieldClassificationback to summary
public Class<?> getFieldClassification(DatabaseField fieldToClassify)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.getFieldClassification.

INTERNAL: Return the classification for the field contained in the mapping. This is used to convert the row value to a consistent java value.

Annotations
@Override
getForeignKeyFieldNamesback to summary
public Vector<E> getForeignKeyFieldNames()

PUBLIC: Return the foreign key field names associated with the mapping. These are only the source fields that are writable.

getImplementorForTypeback to summary
protected Object getImplementorForType(Object type, AbstractSession session)

INTERNAL: Return the implementor for a specified type

getPrimaryKeyForObjectback to summary
protected Object getPrimaryKeyForObject(Object object, AbstractSession session)

Overrides org.eclipse.persistence.mappings.ObjectReferenceMapping.getPrimaryKeyForObject.

INTERNAL:

Annotations
@Override
getSourceToTargetQueryKeyFieldAssociationsback to summary
public Vector<E> getSourceToTargetQueryKeyFieldAssociations()

PUBLIC: Return a collection of the field to query key associations.

getSourceToTargetQueryKeyNamesback to summary
public Map<K, V> getSourceToTargetQueryKeyNames()

INTERNAL: Returns the source keys to target keys fields association.

getTypeFieldback to summary
public DatabaseField getTypeField()
getTypeFieldNameback to summary
public String getTypeFieldName()

PUBLIC: This method returns the name of the typeField of the mapping. The type field is used to store the type of object the relationship is referencing.

getTypeForImplementorback to summary
protected Object getTypeForImplementor(Class<?> implementor)

INTERNAL: Return the type for a specified implementor

getTypeIndicatorNameTranslationback to summary
public Map<K, V> getTypeIndicatorNameTranslation()

INTERNAL: Return the typeIndicatorName translation Used by the Mapping Workbench to avoid classpath dependencies

getTypeIndicatorTranslationback to summary
public Map<K, V> getTypeIndicatorTranslation()

INTERNAL: Return the type indicators.

initializeback to summary
public void initialize(AbstractSession session)

Overrides org.eclipse.persistence.mappings.ForeignReferenceMapping.initialize.

INTERNAL: Initialize the mapping.

Annotations
@Override
initializeForeignKeysback to summary
protected void initializeForeignKeys(AbstractSession session)

INTERNAL: The foreign key names and their primary keys are converted to DatabaseField and stored.

initializeSelectionCriteriaback to summary
public void initializeSelectionCriteria(AbstractSession session)

INTERNAL: Selection criteria is created with source foreign keys and target keys. This criteria is then used to read target records from the table.

isRelationalMappingback to summary
public boolean isRelationalMapping()

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

INTERNAL:

Annotations
@Override
isVariableOneToOneMappingback to summary
public boolean isVariableOneToOneMapping()

Overrides org.eclipse.persistence.mappings.DatabaseMapping.isVariableOneToOneMapping.

INTERNAL:

Annotations
@Override
preInitializeback to summary
public void preInitialize(AbstractSession session) throws DescriptorException

Overrides org.eclipse.persistence.mappings.ObjectReferenceMapping.preInitialize.

INTERNAL: Set the type field classification through searching the indicators hashtable.

Annotations
@Override
rehashFieldDependanciesback to summary
public void rehashFieldDependancies(AbstractSession session)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.rehashFieldDependancies.

INTERNAL: Rehash any maps based on fields. This is used to clone descriptors for aggregates, which hammer field names.

Annotations
@Override
setClassIndicatorAssociationsback to summary
public void setClassIndicatorAssociations(Vector<E> classIndicatorAssociations)

PUBLIC: Set the class indicator associations.

setForeignKeyFieldNamesback to summary
public void setForeignKeyFieldNames(Vector<E> fieldNames)

PUBLIC: Return the foreign key field names associated with the mapping. These are only the source fields that are writable.

setForeignQueryKeyNameback to summary
public void setForeignQueryKeyName(String sourceForeignKeyFieldName, String targetQueryKeyName)

PUBLIC: A foreign key from the source table and abstract query key from the interface descriptor are added to the mapping. This method is used if foreign key is not composite.

setSourceToTargetQueryKeyFieldAssociationsback to summary
public void setSourceToTargetQueryKeyFieldAssociations(Vector<E> sourceToTargetQueryKeyFieldAssociations)

PUBLIC: Set a collection of the source to target query key/field associations.

setSourceToTargetQueryKeyFieldsback to summary
protected void setSourceToTargetQueryKeyFields(Map<K, V> sourceToTargetQueryKeyNames)

INTERNAL: Set the source keys to target keys fields association.

setTypeFieldback to summary
public void setTypeField(DatabaseField typeField)

INTERNAL: This method set the typeField of the mapping to the parameter field

setTypeFieldNameback to summary
public void setTypeFieldName(String typeFieldName)

PUBLIC: This method sets the name of the typeField of the mapping. The type field is used to store the type of object the relationship is referencing.

setTypeIndicatorNameTranslationback to summary
protected void setTypeIndicatorNameTranslation(Map<K, V> translations)

INTERNAL: For avoiding classpath dependencies on the Mapping Workbench

setTypeIndicatorTranslationback to summary
protected void setTypeIndicatorTranslation(Map<K, V> translations)

INTERNAL: Set the typeIndicatorTranslations hashtable to the new Hashtable translations

valueFromObjectback to summary
public Object valueFromObject(Object object, DatabaseField field, AbstractSession session)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.valueFromObject.

INTERNAL: Get a value from the object and set that in the respective field of the row.

Parameters
object:Object

Doc from org.eclipse.persistence.core.mappings.CoreMapping.valueFromObject.

TODO

field:DatabaseField

Doc from org.eclipse.persistence.core.mappings.CoreMapping.valueFromObject.

TODO

session:AbstractSession

Doc from org.eclipse.persistence.core.mappings.CoreMapping.valueFromObject.

TODO

Returns:Object

Doc from org.eclipse.persistence.core.mappings.CoreMapping.valueFromObject.

TODO

Annotations
@Override
valueFromRowback to summary
public Object valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) throws DatabaseException

Overrides org.eclipse.persistence.mappings.ForeignReferenceMapping.valueFromRow.

INTERNAL: Return the value of the field from the row or a value holder on the query to obtain the object. Check for batch + aggregation reading.

Annotations
@Override
writeFromNullObjectIntoRowback to summary
protected void writeFromNullObjectIntoRow(AbstractRecord record)

INTERNAL: Get a value from the object and set that in the respective field of the row.

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

Overrides org.eclipse.persistence.mappings.DatabaseMapping.writeFromObjectIntoRow.

INTERNAL: Get a value from the object and set that in the respective field of the row. If the mapping id target foreign key, you must only write the type into the roe, the rest will be updated when the object itself is written

Annotations
@Override
writeFromObjectIntoRowForShallowInsertback to summary
public void writeFromObjectIntoRowForShallowInsert(Object object, AbstractRecord record, AbstractSession session)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.writeFromObjectIntoRowForShallowInsert.

INTERNAL: This row is built for shallow insert which happens in case of bidirectional inserts. The foreign keys must be set to null to avoid constraints.

Annotations
@Override
writeFromObjectIntoRowForShallowInsertWithChangeRecordback to summary
public void writeFromObjectIntoRowForShallowInsertWithChangeRecord(ChangeRecord changeRecord, AbstractRecord record, AbstractSession session)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.writeFromObjectIntoRowForShallowInsertWithChangeRecord.

INTERNAL: This row is built for shallow insert which happens in case of bidirectional inserts. The foreign keys must be set to null to avoid constraints.

Annotations
@Override
writeFromObjectIntoRowForUpdateAfterShallowInsertback to summary
public void writeFromObjectIntoRowForUpdateAfterShallowInsert(Object object, AbstractRecord row, AbstractSession session, DatabaseTable table)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.writeFromObjectIntoRowForUpdateAfterShallowInsert.

INTERNAL: This row is built for update after shallow insert which happens in case of bidirectional inserts. It contains the foreign keys with non null values that were set to null for shallow insert. If mapping overrides writeFromObjectIntoRowForShallowInsert method it must override this one, too.

Annotations
@Override
writeFromObjectIntoRowForWhereClauseback to summary
public void writeFromObjectIntoRowForWhereClause(ObjectLevelModifyQuery query, AbstractRecord record)

Overrides org.eclipse.persistence.mappings.ObjectReferenceMapping.writeFromObjectIntoRowForWhereClause.

INTERNAL: Get a value from the object and set that in the respective field of the row.

Annotations
@Override
writeFromObjectIntoRowWithChangeRecordback to summary
public void writeFromObjectIntoRowWithChangeRecord(ChangeRecord changeRecord, AbstractRecord record, AbstractSession session, DatabaseMapping.WriteType writeType)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.writeFromObjectIntoRowWithChangeRecord.

INTERNAL: Get a value from the object and set that in the respective field of the row. If the mapping id target foreign key, you must only write the type into the roe, the rest will be updated when the object itself is written

Annotations
@Override
writeInsertFieldsIntoRowback to summary
public void writeInsertFieldsIntoRow(AbstractRecord record, AbstractSession session)

Overrides org.eclipse.persistence.mappings.DatabaseMapping.writeInsertFieldsIntoRow.

INTERNAL: Write fields needed for insert into the template for with null values.

Annotations
@Override