public final class CollectionRemoveAction extends CollectionAction
Constructor and Description |
---|
CollectionRemoveAction(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.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute this action
|
afterDeserialize, beforeExecutions, compareTo, eventSource, evict, getAfterTransactionCompletionProcess, getBeforeTransactionCompletionProcess, getCollection, getKey, getPersister, getPropertySpaces, getSession, listenerGroup, toString
public CollectionRemoveAction(PersistentCollection collection, CollectionPersister persister, Serializable id, boolean emptySnapshot, SessionImplementor session)
collection
- The collection to to remove; must be non-nullpersister
- The collection's persisterid
- The collection keyemptySnapshot
- Indicates if the snapshot is emptysession
- The sessionAssertionFailure
- if collection is null.public CollectionRemoveAction(Object affectedOwner, CollectionPersister persister, Serializable id, boolean emptySnapshot, SessionImplementor session)
affectedOwner
- The collection's owner; must be non-nullpersister
- The collection's persisterid
- The collection keyemptySnapshot
- Indicates if the snapshot is emptysession
- The sessionAssertionFailure
- if affectedOwner is null.public void execute() throws HibernateException
Executable
HibernateException
- Indicates a problem during execution.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.