Top Fields Constructors Methods
org.hibernate.action

public final Class CollectionRemoveAction

extends CollectionAction
Class Inheritance
Imports
org.hibernate.HibernateException, .AssertionFailure, org.hibernate.event.PostCollectionRemoveEvent, .PreCollectionRemoveEvent, .PreCollectionRemoveEventListener, .EventSource, .PostCollectionRemoveEventListener, org.hibernate.cache.CacheException, org.hibernate.collection.PersistentCollection, org.hibernate.engine.SessionImplementor, org.hibernate.persister.collection.CollectionPersister, java.io.Serializable

Field Summary

Modifier and TypeField and Description
private final Object
private boolean

Constructor Summary

AccessConstructor and Description
public
CollectionRemoveAction(final PersistentCollection
The collection to to remove; must be non-null
collection
,
final CollectionPersister
The collection's persister
persister
,
final Serializable
The collection key
id
,
final boolean
Indicates if the snapshot is empty
emptySnapshot
,
final SessionImplementor
The session
session
)

Removes a persistent collection from its loaded owner.

public
CollectionRemoveAction(final Object
The collection's owner; must be non-null
affectedOwner
,
final CollectionPersister
The collection's persister
persister
,
final Serializable
The collection key
id
,
final boolean
Indicates if the snapshot is empty
emptySnapshot
,
final SessionImplementor
The session
session
)

Removes a persistent collection from a specified owner.

Method Summary

Modifier and TypeMethod and Description
public void
execute()

Implements org.hibernate.action.Executable.execute.

Execute this action
private void
private void
Inherited from org.hibernate.action.CollectionAction:
beforeExecutionscompareToevictgetAfterTransactionCompletionProcessgetBeforeTransactionCompletionProcessgetCollectiongetKeygetPersistergetPropertySpacesgetSessiontoString

Field Detail

affectedOwnerback to summary
private final Object affectedOwner
emptySnapshotback to summary
private boolean emptySnapshot

Constructor Detail

CollectionRemoveActionback to summary
public CollectionRemoveAction(final PersistentCollection collection, final CollectionPersister persister, final Serializable id, final boolean emptySnapshot, final SessionImplementor session) throws CacheException

Removes a persistent collection from its loaded owner. Use this constructor when the collection is non-null.

Parameters
collection:PersistentCollection

The collection to to remove; must be non-null

persister:CollectionPersister

The collection's persister

id:Serializable

The collection key

emptySnapshot:boolean

Indicates if the snapshot is empty

session:SessionImplementor

The session

Exceptions
AssertionFailure:
if collection is null.
CollectionRemoveActionback to summary
public CollectionRemoveAction(final Object affectedOwner, final CollectionPersister persister, final Serializable id, final boolean emptySnapshot, final 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:Object

The collection's owner; must be non-null

persister:CollectionPersister

The collection's persister

id:Serializable

The collection key

emptySnapshot:boolean

Indicates if the snapshot is empty

session:SessionImplementor

The session

Exceptions
AssertionFailure:
if affectedOwner is null.

Method Detail

executeback to summary
public void execute() throws HibernateException

Implements org.hibernate.action.Executable.execute.

Doc from org.hibernate.action.Executable.execute.

Execute this action

Exceptions
HibernateException:
Indicates a problem during execution.
postRemoveback to summary
private void postRemove()
preRemoveback to summary
private void preRemove()