Module org.eclipse.persistence.core
Class CascadeLockingPolicy
java.lang.Object
org.eclipse.persistence.internal.descriptors.CascadeLockingPolicy
INTERNAL:
-
Field Summary
Modifier and TypeFieldDescriptionprotected ClassDescriptor
protected boolean
protected boolean
protected Map
<DatabaseField, DatabaseField> protected Class
<?> protected ClassDescriptor
protected DatabaseMapping
protected ReadObjectQuery
protected Map
<DatabaseField, DatabaseField> protected boolean
protected DataReadQuery
protected Map
<DatabaseField, DatabaseField> -
Constructor Summary
ConstructorDescriptionCascadeLockingPolicy
(ClassDescriptor parentDescriptor, ClassDescriptor descriptor) INTERNAL: -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractRecord
getMappedTranslationRow
(Object changedObj, UnitOfWorkImpl uow) INTERNAL:protected ClassDescriptor
getParentDescriptorFromInheritancePolicy
(Object parentObj) Get the descriptor that really represents this object In the case of inheritance, the object may represent a subclass of class the descriptor represents.protected DatabaseMapping
INTERNAL:protected ReadObjectQuery
getQuery()
INTERNAL:protected AbstractRecord
getUnmappedTranslationRow
(Object changedObj, UnitOfWorkImpl uow) INTERNAL:void
INTERNAL: Identify mapped and not mapped fields (should be done once).void
INTERNAL: This method called in case there are m_unmappedQueryKeyFields.void
lockNotifyParent
(Object obj, UnitOfWorkChangeSet changeSet, UnitOfWorkImpl uow) INTERNAL:void
setQueryKeyFields
(Map<DatabaseField, DatabaseField> queryKeyFields) INTERNAL:void
setQueryKeyFields
(Map<DatabaseField, DatabaseField> queryKeyFields, boolean lookForParentMapping) INTERNAL:void
setShouldHandleUnmappedFields
(boolean shouldHandleUnmappedFields) INTERNAL: Indicates whether to expect unmapped fields.boolean
INTERNAL:
-
Field Details
-
m_parentClass
-
m_query
-
m_descriptor
-
m_parentDescriptor
-
m_queryKeyFields
-
m_mappedQueryKeyFields
-
m_unmappedQueryKeyFields
-
m_parentMapping
-
m_lookForParentMapping
protected boolean m_lookForParentMapping -
m_shouldHandleUnmappedFields
protected boolean m_shouldHandleUnmappedFields -
m_hasCheckedForUnmappedFields
protected boolean m_hasCheckedForUnmappedFields -
m_unmappedFieldsQuery
-
-
Constructor Details
-
CascadeLockingPolicy
INTERNAL:
-
-
Method Details
-
getQuery
INTERNAL: -
getParentMapping
INTERNAL: -
getParentDescriptorFromInheritancePolicy
Get the descriptor that really represents this object In the case of inheritance, the object may represent a subclass of class the descriptor represents. If there is no InheritancePolicy, we return our parentDescriptor If there is inheritance we will search for a descriptor that represents parentObj and return that descriptor -
getMappedTranslationRow
INTERNAL: -
getUnmappedTranslationRow
INTERNAL: -
initUnmappedFields
INTERNAL: Identify mapped and not mapped fields (should be done once). The result - either two non-empty Maps m_unmappedQueryKeyFields and m_mappedQueryKeyFields, or m_unmappedQueryKeyFields == null and m_mappedQueryKeyFields == m_queryKeyFields. -
initUnmappedFieldsQuery
INTERNAL: This method called in case there are m_unmappedQueryKeyFields. It creates a query that would fetch the values for this fields from the db. -
lockNotifyParent
INTERNAL: -
setQueryKeyFields
INTERNAL: -
setQueryKeyFields
public void setQueryKeyFields(Map<DatabaseField, DatabaseField> queryKeyFields, boolean lookForParentMapping) INTERNAL: -
setShouldHandleUnmappedFields
public void setShouldHandleUnmappedFields(boolean shouldHandleUnmappedFields) INTERNAL: Indicates whether to expect unmapped fields. That should be set to true for UnidirectionalOneToManyMapping. -
shouldHandleUnmappedFields
public boolean shouldHandleUnmappedFields()INTERNAL:
-