|
EclipseLink 2.4.0, build 'v20111118-r10419' API Reference | ||||||||
| 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.foundation.AbstractAttributeDirectMapping
public abstract class AbstractAttributeDirectMapping
Purpose: Maps an attribute to the corresponding database field type. The list of field types that are supported by EclipseLink'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. NOTE: Much of the content of this class was extracted from AbstractDirectMapping. With the new MultitenantPrimaryKeyMapping (property mapping) where an attribute does not exist, attribute mapping code has been extracted here with AbstractDirectMapping containing the common code used for both attribute and property mappings to a direct field.
Converter,
ObjectTypeConverter,
TypeConversionConverter,
SerializedObjectConverter,
ClassInstanceConverter,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.persistence.mappings.DatabaseMapping |
|---|
DatabaseMapping.WriteType |
| Field Summary | |
|---|---|
protected java.lang.Class |
attributeClassification
To specify the conversion type |
protected java.lang.String |
attributeClassificationName
|
protected java.lang.Class |
attributeObjectClassification
PERF: Also store object class of attribute in case of primitive. |
protected Converter |
converter
Allows user defined conversion between the object attribute value and the database value. |
protected java.lang.String |
converterClassName
|
protected java.lang.String |
fieldClassificationClassName
|
protected boolean |
isInsertable
Flag to support insertable JPA setting |
protected java.lang.Boolean |
isMutable
PERF: Indicates if this mapping's attribute is a simple atomic value and cannot be modified, only replaced. |
protected boolean |
isUpdatable
Flag to support updatable JPA setting |
protected org.eclipse.persistence.internal.helper.DatabaseTable |
keyTableForMapKey
|
protected java.lang.Object |
nullValue
Support specification of the value to use for null. |
| Fields inherited from class org.eclipse.persistence.mappings.foundation.AbstractDirectMapping |
|---|
field |
| Fields inherited from class org.eclipse.persistence.mappings.DatabaseMapping |
|---|
attributeAccessor, attributeName, derivedIdMapping, derivesId, descriptor, fields, isCacheable, isJPAId, isLazy, isMapKeyMapping, isOptional, isPrimaryKeyMapping, isReadOnly, isRemotelyInitialized, mapsIdValue, NO_FIELDS, NO_WEIGHT, properties, weight, WEIGHT_AGGREGATE, WEIGHT_DIRECT, WEIGHT_TO_ONE, WEIGHT_TRANSFORM |
| Constructor Summary | |
|---|---|
AbstractAttributeDirectMapping()
|
|
| Method Summary | |
|---|---|
void |
addAdditionalFieldsToQuery(ReadQuery selectionQuery,
Expression baseExpression)
INTERNAL: Used when initializing queries for mappings that use a Map. |
void |
addFieldsForMapKey(org.eclipse.persistence.internal.sessions.AbstractRecord joinRow)
INTERNAL: Used when initializing queries for mappings that use a Map Called when the insert query is being initialized to ensure the fields for the map key are in the insert query. |
void |
addKeyToDeletedObjectsList(java.lang.Object object,
java.util.Map deletedObjects)
INTERNAL: For mappings used as MapKeys in MappedKeyContainerPolicy. |
void |
buildBackupClone(java.lang.Object clone,
java.lang.Object backup,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork)
INTERNAL: Clone the attribute from the clone and assign it to the backup. |
org.eclipse.persistence.internal.sessions.ChangeRecord |
buildChangeRecord(java.lang.Object clone,
org.eclipse.persistence.internal.sessions.ObjectChangeSet owner,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Directly build a change record without comparison |
void |
buildClone(java.lang.Object original,
org.eclipse.persistence.internal.identitymaps.CacheKey cacheKey,
java.lang.Object clone,
org.eclipse.persistence.internal.sessions.AbstractSession cloningSession)
INTERNAL: Clone the attribute from the original and assign it to the clone. |
protected java.lang.Object |
buildCloneValue(java.lang.Object attributeValue,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Clone the actual value represented by this mapping. |
void |
buildCloneValue(java.lang.Object original,
java.lang.Object clone,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Clone the attribute from the original and assign it to the clone. |
void |
buildCopy(java.lang.Object copy,
java.lang.Object original,
CopyGroup group)
INTERNAL: Copy of the attribute of the object. |
java.lang.Object |
buildElementClone(java.lang.Object attributeValue,
java.lang.Object parent,
org.eclipse.persistence.internal.identitymaps.CacheKey cacheKey,
org.eclipse.persistence.internal.sessions.AbstractSession cloningSession,
boolean isExisting)
Build a clone of the given element in a unitOfWork. |
ReadQuery |
buildSelectionQueryForDirectCollectionKeyMapping(org.eclipse.persistence.internal.queries.ContainerPolicy containerPolicy)
INTERNAL: Certain key mappings favor different types of selection query. |
void |
cascadeDiscoverAndPersistUnregisteredNewObjects(java.lang.Object object,
java.util.Map newObjects,
java.util.Map unregisteredExistingObjects,
java.util.Map visitedObjects,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow,
boolean getAttributeValueFromObject,
java.util.Set cascadeErrors)
INTERNAL: Cascade discover and persist new objects during commit to the map key. |
void |
cascadePerformRemoveIfRequired(java.lang.Object object,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow,
java.util.Map visitedObjects,
boolean getAttributeValueFromObject)
INTERNAL: Cascade perform delete through mappings that require the cascade. |
void |
cascadeRegisterNewIfRequired(java.lang.Object object,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow,
java.util.Map visitedObjects,
boolean getAttributeValueFromObject)
INTERNAL: Cascade registerNew for Create through mappings that require the cascade. |
org.eclipse.persistence.internal.sessions.ChangeRecord |
compareForChange(java.lang.Object clone,
java.lang.Object backUp,
org.eclipse.persistence.internal.sessions.ObjectChangeSet owner,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Compare the clone and backup clone values and return a change record if the value changed. |
boolean |
compareObjects(java.lang.Object firstObject,
java.lang.Object secondObject,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Compare the attributes belonging to this mapping for the objects. |
protected boolean |
compareObjectValues(java.lang.Object firstValue,
java.lang.Object secondValue,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Compare the attribute values. |
void |
convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL: Convert all the class-name-based settings in this mapping to actual class-based settings This method is implemented by subclasses as necessary. |
java.lang.Object |
createMapComponentFromJoinedRow(org.eclipse.persistence.internal.sessions.AbstractRecord dbRow,
org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManger,
ObjectBuildingQuery query,
org.eclipse.persistence.internal.identitymaps.CacheKey parentCacheKey,
org.eclipse.persistence.internal.sessions.AbstractSession session,
boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection and a join query is executed. |
java.lang.Object |
createMapComponentFromRow(org.eclipse.persistence.internal.sessions.AbstractRecord dbRow,
ObjectBuildingQuery query,
org.eclipse.persistence.internal.identitymaps.CacheKey parentCacheKey,
org.eclipse.persistence.internal.sessions.AbstractSession session,
boolean isTargetProtected)
INTERNAL Called when a DatabaseMapping is used to map the key in a collection. |
java.util.List<java.lang.Object> |
createMapComponentsFromSerializableKeyInfo(java.lang.Object[] keyInfo,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Create an instance of the Key object from the key information extracted from the map. |
QueryKey |
createQueryKeyForMapKey()
INTERNAL: Create a query key that links to the map key. |
java.lang.Object |
createSerializableMapKeyInfo(java.lang.Object key,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Creates the Array of simple types used to recreate this map. |
java.lang.Object |
createStubbedMapComponentFromSerializableKeyInfo(java.lang.Object keyInfo,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Create an instance of the Key object from the key information extracted from the map. |
void |
deleteMapKey(java.lang.Object objectDeleted,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: For mappings used as MapKeys in MappedKeyContainerPolicy, Delete the passed object if necessary. |
java.util.Map |
extractIdentityFieldsForQuery(java.lang.Object object,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Extract the fields for the Map key from the object to use in a query. |
Expression |
getAdditionalSelectionCriteriaForMapKey()
INTERNAL: Return the selection criteria necessary to select the target object when this mapping is a map key. |
java.util.List<org.eclipse.persistence.internal.helper.DatabaseTable> |
getAdditionalTablesForJoinQuery()
INTERNAL: Return any tables that will be required when this mapping is used as part of a join query. |
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
getAllFieldsForMapKey()
INTERNAL: Get all the fields for the map key. |
java.lang.Class |
getAttributeClassification()
PUBLIC: Some databases do not properly support all of the base data types. |
java.lang.String |
getAttributeClassificationName()
INTERNAL: Return the class name of the attribute type. |
java.lang.Object |
getAttributeValue(java.lang.Object fieldValue,
Session session)
INTERNAL: Allows for subclasses to convert the attribute value. |
Converter |
getConverter()
PUBLIC: Return the converter on the mapping. |
java.lang.Class |
getFieldClassification(org.eclipse.persistence.internal.helper.DatabaseField fieldToClassify)
INTERNAL: Return the classification for the field contained in the mapping. |
java.lang.Object |
getFieldValue(java.lang.Object attributeValue,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Convert the attribute value to a field value. |
java.util.Map<org.eclipse.persistence.internal.helper.DatabaseField,org.eclipse.persistence.internal.helper.DatabaseField> |
getForeignKeyFieldsForMapKey()
INTERNAL: Return a Map of any foreign keys defined within the the MapKey. |
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> |
getIdentityFieldsForMapKey()
INTERNAL: Return the fields that make up the identity of the mapped object. |
java.lang.Class |
getMapKeyTargetType()
INTERNAL: Return the class this key mapping maps or the descriptor for it |
ObjectLevelReadQuery |
getNestedJoinQuery(org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager,
ObjectLevelReadQuery query,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Return the query that is used when this mapping is part of a joined relationship This method is used when this mapping is used to map the key in a Map. |
java.lang.Object |
getNullValue()
PUBLIC: Allow for the value used for null to be specified. |
java.lang.Object |
getObjectValue(java.lang.Object fieldValue,
Session session)
INTERNAL: Allows for subclasses to convert the attribute value. |
java.lang.Object |
getTargetVersionOfSourceObject(java.lang.Object object,
java.lang.Object parent,
org.eclipse.persistence.internal.sessions.MergeManager mergeManager,
org.eclipse.persistence.internal.sessions.AbstractSession targetSession)
INTERNAL: If required, get the targetVersion of the source object from the merge manager. |
boolean |
hasConverter()
Indicates if the mapping has a converter set on it. |
void |
initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: The mapping is initialized with the given session. |
org.eclipse.persistence.internal.sessions.ChangeRecord |
internalBuildChangeRecord(java.lang.Object newValue,
java.lang.Object oldValue,
org.eclipse.persistence.internal.sessions.ObjectChangeSet owner)
INTERNAL: Build a change record. |
boolean |
isAbstractAttributeDirectMapping()
INTERNAL: |
boolean |
isChangeTrackingSupported(Project project)
INTERNAL: Return if this mapping supports change tracking. |
boolean |
isDirectToFieldMapping()
INTERNAL: |
boolean |
isInsertable()
PUBLIC: By default mappings are insertable. |
boolean |
isMutable()
PUBLIC: Return true if the attribute for this mapping is a simple atomic value that cannot be modified, only replaced. |
boolean |
isUpdatable()
PUBLIC: By default mappings are updatable. |
void |
iterateOnMapKey(org.eclipse.persistence.internal.descriptors.DescriptorIterator iterator,
java.lang.Object element)
INTERNAL: Called when iterating through descriptors to handle iteration on this mapping when it is used as a MapKey. |
void |
mergeChangesIntoObject(java.lang.Object target,
org.eclipse.persistence.internal.sessions.ChangeRecord changeRecord,
java.lang.Object source,
org.eclipse.persistence.internal.sessions.MergeManager mergeManager,
org.eclipse.persistence.internal.sessions.AbstractSession targetSession)
INTERNAL: Merge changes from the source to the target object. |
void |
mergeIntoObject(java.lang.Object target,
boolean isTargetUnInitialized,
java.lang.Object source,
org.eclipse.persistence.internal.sessions.MergeManager mergeManager,
org.eclipse.persistence.internal.sessions.AbstractSession targetSession)
INTERNAL: Merge changes from the source to the target object. |
void |
postInitializeMapKey(org.eclipse.persistence.internal.queries.MappedKeyMapContainerPolicy policy)
INTERNAL: Making any mapping changes necessary to use a the mapping as a map key after initializing the mapping. |
void |
preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Initialize the attribute classification. |
void |
preinitializeMapKey(org.eclipse.persistence.internal.helper.DatabaseTable table)
INTERNAL: Making any mapping changes necessary to use a the mapping as a map key prior to initializing the mapping. |
void |
remoteInitialization(DistributedSession session)
INTERNAL: Once descriptors are serialized to the remote session. |
boolean |
requiresDataModificationEventsForMapKey()
INTERNAL: Return whether this mapping requires extra queries to update the rows if it is used as a key in a map. |
void |
setAttributeClassification(java.lang.Class attributeClassification)
PUBLIC: Some databases do not properly support all of the base data types. |
void |
setAttributeClassificationName(java.lang.String attributeClassificationName)
INTERNAL: Set the name of the class for MW usage. |
void |
setConverter(Converter converter)
PUBLIC: Set the converter on the mapping. |
void |
setConverterClassName(java.lang.String converterClassName)
PUBLIC: Set the converter class name on the mapping. |
void |
setFieldClassificationClassName(java.lang.String className)
INTERNAL: Set the name of the class that will be used for setFieldClassification and deploy time Used internally by JPA deployment. |
void |
setIsMutable(boolean isMutable)
PUBLIC: Return true if the attribute for this mapping is a simple atomic value that cannot be modified, only replaced. |
void |
setNullValue(java.lang.Object nullValue)
PUBLIC: Allow for the value used for null to be specified. |
java.lang.Object |
unwrapKey(java.lang.Object key,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Allow the key mapping to unwrap the object. |
void |
updateChangeRecord(java.lang.Object clone,
java.lang.Object newValue,
java.lang.Object oldValue,
org.eclipse.persistence.internal.sessions.ObjectChangeSet objectChangeSet,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow)
INTERNAL: Either create a new change record or update with the new value. |
java.lang.Object |
valueFromObject(java.lang.Object object,
org.eclipse.persistence.internal.helper.DatabaseField field,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Get the value from the object for this mapping. |
java.lang.Object |
valueFromResultSet(java.sql.ResultSet resultSet,
ObjectBuildingQuery query,
org.eclipse.persistence.internal.sessions.AbstractSession session,
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor accessor,
java.sql.ResultSetMetaData metaData,
int columnNumber,
org.eclipse.persistence.internal.databaseaccess.DatabasePlatform platform)
INTERNAL: Returns the value for the mapping directly from the result-set. |
java.lang.Object |
valueFromRow(org.eclipse.persistence.internal.sessions.AbstractRecord row,
org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager,
ObjectBuildingQuery query,
org.eclipse.persistence.internal.identitymaps.CacheKey cacheKey,
org.eclipse.persistence.internal.sessions.AbstractSession executionSession,
boolean isTargetProtected,
java.lang.Boolean[] wasCacheUsed)
INTERNAL: Return the mapping's attribute value from the row. |
java.lang.Object |
wrapKey(java.lang.Object key,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Allow the key mapping to wrap the object. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.persistence.mappings.foundation.MapKeyMapping |
|---|
getReferenceDescriptor |
| Field Detail |
|---|
protected transient java.lang.Class attributeClassification
protected transient java.lang.String attributeClassificationName
protected transient java.lang.Class attributeObjectClassification
protected Converter converter
protected java.lang.String converterClassName
protected org.eclipse.persistence.internal.helper.DatabaseTable keyTableForMapKey
protected boolean isInsertable
protected boolean isUpdatable
protected java.lang.Boolean isMutable
protected transient java.lang.Object nullValue
protected java.lang.String fieldClassificationClassName
| Constructor Detail |
|---|
public AbstractAttributeDirectMapping()
| Method Detail |
|---|
public void addFieldsForMapKey(org.eclipse.persistence.internal.sessions.AbstractRecord joinRow)
addFieldsForMapKey in interface MapKeyMapping
public void addAdditionalFieldsToQuery(ReadQuery selectionQuery,
Expression baseExpression)
addAdditionalFieldsToQuery in interface MapKeyMapping
public void addKeyToDeletedObjectsList(java.lang.Object object,
java.util.Map deletedObjects)
addKeyToDeletedObjectsList in interface MapKeyMapping
public void buildBackupClone(java.lang.Object clone,
java.lang.Object backup,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork)
buildBackupClone in class DatabaseMapping
public void buildClone(java.lang.Object original,
org.eclipse.persistence.internal.identitymaps.CacheKey cacheKey,
java.lang.Object clone,
org.eclipse.persistence.internal.sessions.AbstractSession cloningSession)
buildClone in class DatabaseMapping
protected java.lang.Object buildCloneValue(java.lang.Object attributeValue,
org.eclipse.persistence.internal.sessions.AbstractSession session)
public void buildCloneValue(java.lang.Object original,
java.lang.Object clone,
org.eclipse.persistence.internal.sessions.AbstractSession session)
public org.eclipse.persistence.internal.sessions.ChangeRecord buildChangeRecord(java.lang.Object clone,
org.eclipse.persistence.internal.sessions.ObjectChangeSet owner,
org.eclipse.persistence.internal.sessions.AbstractSession session)
buildChangeRecord in class DatabaseMapping
public void buildCopy(java.lang.Object copy,
java.lang.Object original,
CopyGroup group)
buildCopy in class DatabaseMapping
public java.lang.Object buildElementClone(java.lang.Object attributeValue,
java.lang.Object parent,
org.eclipse.persistence.internal.identitymaps.CacheKey cacheKey,
org.eclipse.persistence.internal.sessions.AbstractSession cloningSession,
boolean isExisting)
buildElementClone in interface MapKeyMappingpublic ReadQuery buildSelectionQueryForDirectCollectionKeyMapping(org.eclipse.persistence.internal.queries.ContainerPolicy containerPolicy)
buildSelectionQueryForDirectCollectionKeyMapping in interface MapKeyMapping
public void cascadeDiscoverAndPersistUnregisteredNewObjects(java.lang.Object object,
java.util.Map newObjects,
java.util.Map unregisteredExistingObjects,
java.util.Map visitedObjects,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow,
boolean getAttributeValueFromObject,
java.util.Set cascadeErrors)
cascadeDiscoverAndPersistUnregisteredNewObjects in interface MapKeyMapping
public void cascadePerformRemoveIfRequired(java.lang.Object object,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow,
java.util.Map visitedObjects,
boolean getAttributeValueFromObject)
cascadePerformRemoveIfRequired in interface MapKeyMapping
public void cascadeRegisterNewIfRequired(java.lang.Object object,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow,
java.util.Map visitedObjects,
boolean getAttributeValueFromObject)
cascadeRegisterNewIfRequired in interface MapKeyMapping
public org.eclipse.persistence.internal.sessions.ChangeRecord compareForChange(java.lang.Object clone,
java.lang.Object backUp,
org.eclipse.persistence.internal.sessions.ObjectChangeSet owner,
org.eclipse.persistence.internal.sessions.AbstractSession session)
compareForChange in class DatabaseMapping
public boolean compareObjects(java.lang.Object firstObject,
java.lang.Object secondObject,
org.eclipse.persistence.internal.sessions.AbstractSession session)
compareObjects in class DatabaseMapping
protected boolean compareObjectValues(java.lang.Object firstValue,
java.lang.Object secondValue,
org.eclipse.persistence.internal.sessions.AbstractSession session)
public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
convertClassNamesToClasses in class DatabaseMapping
public java.lang.Object createMapComponentFromJoinedRow(org.eclipse.persistence.internal.sessions.AbstractRecord dbRow,
org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManger,
ObjectBuildingQuery query,
org.eclipse.persistence.internal.identitymaps.CacheKey parentCacheKey,
org.eclipse.persistence.internal.sessions.AbstractSession session,
boolean isTargetProtected)
createMapComponentFromJoinedRow in interface MapKeyMapping
public java.lang.Object createMapComponentFromRow(org.eclipse.persistence.internal.sessions.AbstractRecord dbRow,
ObjectBuildingQuery query,
org.eclipse.persistence.internal.identitymaps.CacheKey parentCacheKey,
org.eclipse.persistence.internal.sessions.AbstractSession session,
boolean isTargetProtected)
createMapComponentFromRow in interface MapComponentMapping
public java.util.List<java.lang.Object> createMapComponentsFromSerializableKeyInfo(java.lang.Object[] keyInfo,
org.eclipse.persistence.internal.sessions.AbstractSession session)
createMapComponentsFromSerializableKeyInfo in interface MapKeyMappingpublic QueryKey createQueryKeyForMapKey()
createQueryKeyForMapKey in interface MapKeyMapping
public java.lang.Object createSerializableMapKeyInfo(java.lang.Object key,
org.eclipse.persistence.internal.sessions.AbstractSession session)
createSerializableMapKeyInfo in interface MapKeyMapping
public java.lang.Object createStubbedMapComponentFromSerializableKeyInfo(java.lang.Object keyInfo,
org.eclipse.persistence.internal.sessions.AbstractSession session)
createStubbedMapComponentFromSerializableKeyInfo in interface MapKeyMapping
public void deleteMapKey(java.lang.Object objectDeleted,
org.eclipse.persistence.internal.sessions.AbstractSession session)
deleteMapKey in interface MapKeyMapping
public java.util.Map extractIdentityFieldsForQuery(java.lang.Object object,
org.eclipse.persistence.internal.sessions.AbstractSession session)
extractIdentityFieldsForQuery in interface MapKeyMappingpublic Expression getAdditionalSelectionCriteriaForMapKey()
getAdditionalSelectionCriteriaForMapKey in interface MapKeyMappingpublic java.util.List<org.eclipse.persistence.internal.helper.DatabaseTable> getAdditionalTablesForJoinQuery()
getAdditionalTablesForJoinQuery in interface MapKeyMappingpublic java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> getAllFieldsForMapKey()
getAllFieldsForMapKey in interface MapKeyMappingpublic java.lang.Class getAttributeClassification()
getAttributeClassification in class DatabaseMappingpublic java.lang.String getAttributeClassificationName()
getAttributeClassificationName in class AbstractDirectMappingorg.eclipse.persistence.mappings.foundation.AbstractAttributeDirectMapping.getAttributeClassificationName()
public java.lang.Object getAttributeValue(java.lang.Object fieldValue,
Session session)
getAttributeValue in class AbstractDirectMappingAbstractDirectMapping.getObjectValue(Object, Session),
which implements getAttributeValue()public Converter getConverter()
getConverter in class AbstractDirectMappingpublic java.lang.Class getFieldClassification(org.eclipse.persistence.internal.helper.DatabaseField fieldToClassify)
getFieldClassification in class DatabaseMapping
public java.lang.Object getFieldValue(java.lang.Object attributeValue,
org.eclipse.persistence.internal.sessions.AbstractSession session)
getFieldValue in class AbstractDirectMappingpublic java.util.Map<org.eclipse.persistence.internal.helper.DatabaseField,org.eclipse.persistence.internal.helper.DatabaseField> getForeignKeyFieldsForMapKey()
getForeignKeyFieldsForMapKey in interface MapKeyMappingpublic java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> getIdentityFieldsForMapKey()
getIdentityFieldsForMapKey in interface MapKeyMappingpublic java.lang.Class getMapKeyTargetType()
getMapKeyTargetType in interface MapKeyMapping
public ObjectLevelReadQuery getNestedJoinQuery(org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager,
ObjectLevelReadQuery query,
org.eclipse.persistence.internal.sessions.AbstractSession session)
getNestedJoinQuery in interface MapKeyMappingpublic java.lang.Object getNullValue()
getNullValue in class AbstractDirectMapping
public java.lang.Object getObjectValue(java.lang.Object fieldValue,
Session session)
getObjectValue in class AbstractDirectMapping
public java.lang.Object getTargetVersionOfSourceObject(java.lang.Object object,
java.lang.Object parent,
org.eclipse.persistence.internal.sessions.MergeManager mergeManager,
org.eclipse.persistence.internal.sessions.AbstractSession targetSession)
getTargetVersionOfSourceObject in interface MapKeyMapping
public void mergeChangesIntoObject(java.lang.Object target,
org.eclipse.persistence.internal.sessions.ChangeRecord changeRecord,
java.lang.Object source,
org.eclipse.persistence.internal.sessions.MergeManager mergeManager,
org.eclipse.persistence.internal.sessions.AbstractSession targetSession)
mergeChangesIntoObject in class DatabaseMapping
public void mergeIntoObject(java.lang.Object target,
boolean isTargetUnInitialized,
java.lang.Object source,
org.eclipse.persistence.internal.sessions.MergeManager mergeManager,
org.eclipse.persistence.internal.sessions.AbstractSession targetSession)
mergeIntoObject in class DatabaseMappingpublic void postInitializeMapKey(org.eclipse.persistence.internal.queries.MappedKeyMapContainerPolicy policy)
postInitializeMapKey in interface MapKeyMapping
public void preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
throws DescriptorException
preInitialize in class DatabaseMappingDescriptorException
public void preinitializeMapKey(org.eclipse.persistence.internal.helper.DatabaseTable table)
throws DescriptorException
preinitializeMapKey in interface MapKeyMappingDescriptorExceptionpublic boolean hasConverter()
hasConverter in class AbstractDirectMapping
public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
throws DescriptorException
initialize in class DatabaseMappingDescriptorException
public org.eclipse.persistence.internal.sessions.ChangeRecord internalBuildChangeRecord(java.lang.Object newValue,
java.lang.Object oldValue,
org.eclipse.persistence.internal.sessions.ObjectChangeSet owner)
public boolean isAbstractAttributeDirectMapping()
isAbstractAttributeDirectMapping in class DatabaseMappingpublic boolean isChangeTrackingSupported(Project project)
isChangeTrackingSupported in class DatabaseMappingpublic boolean isDirectToFieldMapping()
isDirectToFieldMapping in class DatabaseMappingpublic boolean isInsertable()
AbstractDirectMapping
isInsertable in class AbstractDirectMappingpublic boolean isMutable()
isMutable in class AbstractDirectMappingpublic boolean isUpdatable()
AbstractDirectMapping
isUpdatable in class AbstractDirectMapping
public void iterateOnMapKey(org.eclipse.persistence.internal.descriptors.DescriptorIterator iterator,
java.lang.Object element)
iterateOnMapKey in interface MapKeyMappingpublic void remoteInitialization(DistributedSession session)
remoteInitialization in class DatabaseMappingpublic boolean requiresDataModificationEventsForMapKey()
requiresDataModificationEventsForMapKey in interface MapKeyMappingpublic void setAttributeClassification(java.lang.Class attributeClassification)
setAttributeClassification in class AbstractDirectMappingorg.eclipse.persistence.mappings.foundation.AbstractAttributeDirectMapping.setAttributeClassification(Class)public void setAttributeClassificationName(java.lang.String attributeClassificationName)
setAttributeClassificationName in class AbstractDirectMappingorg.eclipse.persistence.mappings.foundation.AbstractAttributeDirectMapping.setAttributeClassificationName(String)public void setConverter(Converter converter)
setConverter in class AbstractDirectMappingpublic void setConverterClassName(java.lang.String converterClassName)
public void setFieldClassificationClassName(java.lang.String className)
className - AbstractDirectMapping.setFieldClassification(Class fieldType)public void setIsMutable(boolean isMutable)
setIsMutable in class AbstractDirectMappingpublic void setNullValue(java.lang.Object nullValue)
setNullValue in class AbstractDirectMapping
public void updateChangeRecord(java.lang.Object clone,
java.lang.Object newValue,
java.lang.Object oldValue,
org.eclipse.persistence.internal.sessions.ObjectChangeSet objectChangeSet,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow)
updateChangeRecord in class DatabaseMapping
public java.lang.Object unwrapKey(java.lang.Object key,
org.eclipse.persistence.internal.sessions.AbstractSession session)
unwrapKey in interface MapKeyMapping
public java.lang.Object valueFromObject(java.lang.Object object,
org.eclipse.persistence.internal.helper.DatabaseField field,
org.eclipse.persistence.internal.sessions.AbstractSession session)
throws DescriptorException
valueFromObject in class DatabaseMappingDescriptorException
public java.lang.Object valueFromRow(org.eclipse.persistence.internal.sessions.AbstractRecord row,
org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager,
ObjectBuildingQuery query,
org.eclipse.persistence.internal.identitymaps.CacheKey cacheKey,
org.eclipse.persistence.internal.sessions.AbstractSession executionSession,
boolean isTargetProtected,
java.lang.Boolean[] wasCacheUsed)
valueFromRow in class DatabaseMapping
public java.lang.Object valueFromResultSet(java.sql.ResultSet resultSet,
ObjectBuildingQuery query,
org.eclipse.persistence.internal.sessions.AbstractSession session,
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor accessor,
java.sql.ResultSetMetaData metaData,
int columnNumber,
org.eclipse.persistence.internal.databaseaccess.DatabasePlatform platform)
throws java.sql.SQLException
valueFromResultSet in class DatabaseMappingjava.sql.SQLException
public java.lang.Object wrapKey(java.lang.Object key,
org.eclipse.persistence.internal.sessions.AbstractSession session)
wrapKey in interface MapKeyMapping
|
EclipseLink 2.4.0, build 'v20111118-r10419' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||