Package org.hibernate.action
Class CollectionRemoveAction
java.lang.Object
org.hibernate.action.CollectionAction
org.hibernate.action.CollectionRemoveAction
- All Implemented Interfaces:
Serializable,Comparable,Executable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionRemoveAction(Object affectedOwner, CollectionPersister persister, Serializable id, boolean emptySnapshot, SessionImplementor session) Removes a persistent collection from a specified owner.CollectionRemoveAction(PersistentCollection collection, CollectionPersister persister, Serializable id, boolean emptySnapshot, SessionImplementor session) Removes a persistent collection from its loaded owner. -
Method Summary
Methods inherited from class org.hibernate.action.CollectionAction
beforeExecutions, compareTo, evict, getAfterTransactionCompletionProcess, getBeforeTransactionCompletionProcess, getCollection, getKey, getPersister, getPropertySpaces, getSession, toString
-
Constructor Details
-
CollectionRemoveAction
public CollectionRemoveAction(PersistentCollection collection, CollectionPersister persister, Serializable id, boolean emptySnapshot, SessionImplementor session) throws CacheException Removes a persistent collection from its loaded owner. Use this constructor when the collection is non-null.- Parameters:
collection- The collection to to remove; must be non-nullpersister- The collection's persisterid- The collection keyemptySnapshot- Indicates if the snapshot is emptysession- The session- Throws:
AssertionFailure- if collection is null.CacheException
-
CollectionRemoveAction
public CollectionRemoveAction(Object affectedOwner, CollectionPersister persister, Serializable id, boolean emptySnapshot, SessionImplementor session) throws CacheException Removes a persistent collection from a specified owner. Use this constructor when the collection to be removed has not been loaded.- Parameters:
affectedOwner- The collection's owner; must be non-nullpersister- The collection's persisterid- The collection keyemptySnapshot- Indicates if the snapshot is emptysession- The session- Throws:
AssertionFailure- if affectedOwner is null.CacheException
-
-
Method Details
-
execute
Description copied from interface:ExecutableExecute this action- Throws:
HibernateException- Indicates a problem during execution.
-