Package org.hibernate.engine
Class Cascade
java.lang.Object
org.hibernate.engine.Cascade
Delegate responsible for, in conjunction with the various
actions, implementing cascade processing.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA cascade point that occurs just after eviction of the parent entity from the session cachestatic final intA cascade point that occurs just after the insertion of the parent entity and just before deletionstatic final intA cascade point that occurs just after the insertion of the parent entity and just before deletion, inside a collectionstatic final intA cascade point that occurs just after refreshing a parent entitystatic final intA cascade point that occurs just after update of the parent entitystatic final intA cascade point that occurs just before the session is flushedstatic final intA cascade point that occurs just before the insertion of the parent entity and just after deletionstatic final intA cascade point that occurs just before merging from a transient parent entity into the object in the session cachestatic final intA cascade point that occurs just after locking a transient parent entity into the session cache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcascade(EntityPersister persister, Object parent) Cascade an action from the parent entity instance to all its children.voidcascade(EntityPersister persister, Object parent, Object anything) Cascade an action from the parent entity instance to all its children.
-
Field Details
-
AFTER_INSERT_BEFORE_DELETE
public static final int AFTER_INSERT_BEFORE_DELETEA cascade point that occurs just after the insertion of the parent entity and just before deletion- See Also:
-
BEFORE_INSERT_AFTER_DELETE
public static final int BEFORE_INSERT_AFTER_DELETEA cascade point that occurs just before the insertion of the parent entity and just after deletion- See Also:
-
AFTER_INSERT_BEFORE_DELETE_VIA_COLLECTION
public static final int AFTER_INSERT_BEFORE_DELETE_VIA_COLLECTIONA cascade point that occurs just after the insertion of the parent entity and just before deletion, inside a collection- See Also:
-
AFTER_UPDATE
public static final int AFTER_UPDATEA cascade point that occurs just after update of the parent entity- See Also:
-
BEFORE_FLUSH
public static final int BEFORE_FLUSHA cascade point that occurs just before the session is flushed- See Also:
-
AFTER_EVICT
public static final int AFTER_EVICTA cascade point that occurs just after eviction of the parent entity from the session cache- See Also:
-
BEFORE_REFRESH
public static final int BEFORE_REFRESHA cascade point that occurs just after locking a transient parent entity into the session cache- See Also:
-
AFTER_LOCK
public static final int AFTER_LOCKA cascade point that occurs just after refreshing a parent entity- See Also:
-
BEFORE_MERGE
public static final int BEFORE_MERGEA cascade point that occurs just before merging from a transient parent entity into the object in the session cache- See Also:
-
-
Constructor Details
-
Cascade
-
-
Method Details
-
cascade
Cascade an action from the parent entity instance to all its children.- Parameters:
persister- The parent's entity persisterparent- The parent reference.- Throws:
HibernateException
-
cascade
public void cascade(EntityPersister persister, Object parent, 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.- Parameters:
persister- The parent's entity persisterparent- The parent reference.anything- Anything ;) Typically some form of cascade-local cache which is specific to each CascadingAction type- Throws:
HibernateException
-