actions, implementing cascade processing.
CascadingAction
| Modifier and Type | Field and Description |
|---|---|
| private CascadingAction | |
| public static final int | AFTER_EVICT
A cascade point that occurs just after eviction of the parent entity from the session cache |
| public static final int | AFTER_INSERT_BEFORE_DELETE
A cascade point that occurs just after the insertion of the parent entity and just before deletion |
| public static final int | AFTER_INSERT_BEFORE_DELETE_VIA_COLLECTION
A cascade point that occurs just after the insertion of the parent entity and just before deletion, inside a collection |
| public static final int | AFTER_LOCK
A cascade point that occurs just after refreshing a parent entity |
| public static final int | AFTER_UPDATE
A cascade point that occurs just after update of the parent entity |
| public static final int | BEFORE_FLUSH
A cascade point that occurs just before the session is flushed |
| public static final int | BEFORE_INSERT_AFTER_DELETE
A cascade point that occurs just before the insertion of the parent entity and just after deletion |
| public static final int | BEFORE_MERGE
A cascade point that occurs just before merging from a transient parent entity into the object in the session cache |
| public static final int | BEFORE_REFRESH
A cascade point that occurs just after locking a transient parent entity into the session cache |
| private int | |
| private Stack | |
| private EventSource | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | cascade(final EntityPersister
The parent's entity persister persister, final Object The parent reference. parent)Cascade an action from the parent entity instance to all its children. |
| public void | cascade(final EntityPersister
The parent's entity persister persister, final Object The parent reference. parent, final Object Anything ;) Typically some form of cascade-local cache
which is specific to each CascadingAction type anything)Cascade an action from the parent entity instance to all its children. |
| private void | cascadeAssociation(final Object parent, final Object child, final Type type, final CascadeStyle style, final Object anything, final boolean isCascadeDeleteEnabled)
|
| private boolean | |
| private void | cascadeCollection(final Object parent, final Object child, final CascadeStyle style, final Object anything, final CollectionType type)
Cascade an action to a collection |
| private void | cascadeCollectionElements(final Object parent, final Object child, final CollectionType collectionType, final CascadeStyle style, final Type elemType, final Object anything, final boolean isCascadeDeleteEnabled)
Cascade to the collection elements |
| private void | cascadeComponent(final Object parent, final Object child, final CompositeType componentType, final String componentPropertyName, final Object anything)
|
| private void | cascadeProperty(final Object parent, final Object child, final Type type, final CascadeStyle style, final String propertyName, final Object anything, final boolean isCascadeDeleteEnabled)
Cascade an action to the child or children |
| private void | cascadeToOne(final Object parent, final Object child, final Type type, final CascadeStyle style, final Object anything, final boolean isCascadeDeleteEnabled)
Cascade an action to a to-one association or any type |
| private String | |
| private void | deleteOrphans(String entityName, PersistentCollection pc)
Delete any entities that were removed from the collection |
| private SessionFactoryImplementor | |
| private boolean | Returns: True if the attribute represents a logical one to one associationThe type representing the attribute metadata type)Check if the association is a one to one in the logical model (either a shared-pk or unique fk). |
| action | back to summary |
|---|---|
| private CascadingAction action | |
| AFTER_EVICT | back to summary |
|---|---|
| public static final int AFTER_EVICT A cascade point that occurs just after eviction of the parent entity from the session cache | |
| AFTER_INSERT_BEFORE_DELETE | back to summary |
|---|---|
| public static final int AFTER_INSERT_BEFORE_DELETE A cascade point that occurs just after the insertion of the parent entity and just before deletion | |
| AFTER_INSERT_BEFORE_DELETE_VIA_COLLECTION | back to summary |
|---|---|
| public static final int AFTER_INSERT_BEFORE_DELETE_VIA_COLLECTION A cascade point that occurs just after the insertion of the parent entity and just before deletion, inside a collection | |
| AFTER_LOCK | back to summary |
|---|---|
| public static final int AFTER_LOCK A cascade point that occurs just after refreshing a parent entity | |
| AFTER_UPDATE | back to summary |
|---|---|
| public static final int AFTER_UPDATE A cascade point that occurs just after update of the parent entity | |
| BEFORE_FLUSH | back to summary |
|---|---|
| public static final int BEFORE_FLUSH A cascade point that occurs just before the session is flushed | |
| BEFORE_INSERT_AFTER_DELETE | back to summary |
|---|---|
| public static final int BEFORE_INSERT_AFTER_DELETE A cascade point that occurs just before the insertion of the parent entity and just after deletion | |
| BEFORE_MERGE | back to summary |
|---|---|
| public static final int BEFORE_MERGE A cascade point that occurs just before merging from a transient parent entity into the object in the session cache | |
| BEFORE_REFRESH | back to summary |
|---|---|
| public static final int BEFORE_REFRESH A cascade point that occurs just after locking a transient parent entity into the session cache | |
| cascadeTo | back to summary |
|---|---|
| private int cascadeTo | |
| componentPathStack | back to summary |
|---|---|
| private Stack<E> componentPathStack | |
| eventSource | back to summary |
|---|---|
| private EventSource eventSource | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| Cascade | back to summary |
|---|---|
| public Cascade(final CascadingAction action, final int cascadeTo, final EventSource eventSource) | |
| cascade | back to summary |
|---|---|
| public void cascade(final EntityPersister persister, final Object parent) throws HibernateException Cascade an action from the parent entity instance to all its children.
| |
| cascade | back to summary |
|---|---|
| public void cascade(final EntityPersister persister, final Object parent, final Object anything) throws HibernateException Cascade an action from the parent entity instance to all its children. This form is typicaly called from within cascade actions.
| |
| cascadeAssociation | back to summary |
|---|---|
| private void cascadeAssociation(final Object parent, final Object child, final Type type, final CascadeStyle style, final Object anything, final boolean isCascadeDeleteEnabled) | |
| cascadeAssociationNow | back to summary |
|---|---|
| private boolean cascadeAssociationNow(AssociationType associationType) | |
| cascadeCollection | back to summary |
|---|---|
| private void cascadeCollection(final Object parent, final Object child, final CascadeStyle style, final Object anything, final CollectionType type) Cascade an action to a collection | |
| cascadeCollectionElements | back to summary |
|---|---|
| private void cascadeCollectionElements(final Object parent, final Object child, final CollectionType collectionType, final CascadeStyle style, final Type elemType, final Object anything, final boolean isCascadeDeleteEnabled) throws HibernateException Cascade to the collection elements | |
| cascadeComponent | back to summary |
|---|---|
| private void cascadeComponent(final Object parent, final Object child, final CompositeType componentType, final String componentPropertyName, final Object anything) | |
| cascadeProperty | back to summary |
|---|---|
| private void cascadeProperty(final Object parent, final Object child, final Type type, final CascadeStyle style, final String propertyName, final Object anything, final boolean isCascadeDeleteEnabled) throws HibernateException Cascade an action to the child or children | |
| cascadeToOne | back to summary |
|---|---|
| private void cascadeToOne(final Object parent, final Object child, final Type type, final CascadeStyle style, final Object anything, final boolean isCascadeDeleteEnabled) Cascade an action to a to-one association or any type | |
| composePropertyPath | back to summary |
|---|---|
| private String composePropertyPath(String propertyName) | |
| deleteOrphans | back to summary |
|---|---|
| private void deleteOrphans(String entityName, PersistentCollection pc) throws HibernateException Delete any entities that were removed from the collection | |
| getFactory | back to summary |
|---|---|
| private SessionFactoryImplementor getFactory() | |
| isLogicalOneToOne | back to summary |
|---|---|
| private boolean isLogicalOneToOne(Type type) Check if the association is a one to one in the logical model (either a shared-pk or unique fk).
| |