org.hibernate.action

Class CollectionRemoveAction

Implemented Interfaces:
Comparable, Executable, Serializable

public final class CollectionRemoveAction
extends CollectionAction

Constructor Summary

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.

Method Summary

void
execute()

Methods inherited from class org.hibernate.action.CollectionAction

afterTransactionCompletion, beforeExecutions, compareTo, evict, getCollection, getKey, getPersister, getPropertySpaces, getSession, hasAfterTransactionCompletion, toString

Constructor Details

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

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

Method Details

execute

public void execute()
            throws HibernateException
Specified by:
execute in interface Executable