Top Description Fields Constructors Methods
org.hibernate.action.internal

public final Class CollectionUpdateAction

extends CollectionAction
Class Inheritance
Imports
org.hibernate.AssertionFailure, .HibernateException, org.hibernate.collection.spi.PersistentCollection, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.event.spi.EventSource, .PostCollectionUpdateEvent, .PostCollectionUpdateEventListener, .PreCollectionUpdateEvent, .PreCollectionUpdateEventListener, org.hibernate.persister.collection.CollectionPersister, org.hibernate.stat.spi.StatisticsImplementor

The action for updating a collection

Field Summary

Modifier and TypeField and Description
private final boolean

Constructor Summary

AccessConstructor and Description
public
CollectionUpdateAction(final PersistentCollection<?>
The collection to update
collection
,
final CollectionPersister
The collection persister
persister
,
final Object
The collection key
id
,
final boolean
Indicates if the snapshot is empty
emptySnapshot
,
final EventSource
The session
session
)

Constructs a CollectionUpdateAction

Method Summary

Modifier and TypeMethod and Description
public void
execute()

Implements org.hibernate.action.spi.Executable.execute.

Execute this action.
private PostCollectionUpdateEvent
private PreCollectionUpdateEvent
private void
private void
Inherited from org.hibernate.action.internal.CollectionAction:
afterDeserializebeforeExecutionscompareToeventSourceevictgetAfterTransactionCompletionProcessgetBeforeTransactionCompletionProcessgetCollectiongetFastSessionServicesgetKeygetPersistergetPrimarySortClassifiergetPropertySpacesgetSecondarySortIndexgetSessiontoString

Field Detail

emptySnapshotback to summary
private final boolean emptySnapshot

Constructor Detail

CollectionUpdateActionback to summary
public CollectionUpdateAction(final PersistentCollection<?> collection, final CollectionPersister persister, final Object id, final boolean emptySnapshot, final EventSource session)

Constructs a CollectionUpdateAction

Parameters
collection:PersistentCollection<?>

The collection to update

persister:CollectionPersister

The collection persister

id:Object

The collection key

emptySnapshot:boolean

Indicates if the snapshot is empty

session:EventSource

The session

Method Detail

executeback to summary
public void execute() throws HibernateException

Implements org.hibernate.action.spi.Executable.execute.

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

Execute this action.

Annotations
@Override
Exceptions
HibernateException:
Indicates a problem during execution.
newPostCollectionUpdateEventback to summary
private PostCollectionUpdateEvent newPostCollectionUpdateEvent()
newPreCollectionUpdateEventback to summary
private PreCollectionUpdateEvent newPreCollectionUpdateEvent()
postUpdateback to summary
private void postUpdate()
preUpdateback to summary
private void preUpdate()