public final class

CollectionRemoveAction

extends CollectionAction
java.lang.Object
   ↳ org.hibernate.action.CollectionAction
     ↳ org.hibernate.action.CollectionRemoveAction

Summary

Public Constructors
CollectionRemoveAction(PersistentCollection collection, CollectionPersister persister, Serializable id, boolean emptySnapshot, SessionImplementor session)
Removes a persistent collection from its loaded owner.
CollectionRemoveAction(Object affectedOwner, CollectionPersister persister, Serializable id, boolean emptySnapshot, SessionImplementor session)
Removes a persistent collection from a specified owner.
Public Methods
void execute()
[Expand]
Inherited Methods
From class org.hibernate.action.CollectionAction
From class java.lang.Object
From interface java.lang.Comparable
From interface org.hibernate.action.Executable

Public Constructors

public CollectionRemoveAction (PersistentCollection collection, CollectionPersister persister, Serializable id, boolean emptySnapshot, SessionImplementor session)

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-null
persister The collection's persister
id The collection key
emptySnapshot Indicates if the snapshot is empty
session The session
Throws
AssertionFailure if collection is null.
CacheException

public CollectionRemoveAction (Object affectedOwner, CollectionPersister persister, Serializable id, boolean emptySnapshot, SessionImplementor session)

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-null
persister The collection's persister
id The collection key
emptySnapshot Indicates if the snapshot is empty
session The session
Throws
AssertionFailure if affectedOwner is null.
CacheException

Public Methods

public void execute ()