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

public final Class CollectionUpdateAction

extends CollectionAction
Class Inheritance
Imports
java.io.Serializable, org.hibernate.AssertionFailure, .HibernateException, org.hibernate.collection.spi.PersistentCollection, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.event.service.spi.EventListenerGroup, org.hibernate.event.spi.EventType, .PostCollectionUpdateEvent, .PostCollectionUpdateEventListener, .PreCollectionUpdateEvent, .PreCollectionUpdateEventListener, org.hibernate.persister.collection.CollectionPersister, org.hibernate.pretty.MessageHelper, 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 Serializable
The collection key
id
,
final boolean
Indicates if the snapshot is empty
emptySnapshot
,
final SharedSessionContractImplementor
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:
afterDeserializebeforeExecutionscompareToeventSourceevictgetAfterTransactionCompletionProcessgetBeforeTransactionCompletionProcessgetCollectiongetFastSessionServicesgetKeygetPersistergetPropertySpacesgetSessionlistenerGrouptoString

Field Detail

emptySnapshotback to summary
private final boolean emptySnapshot

Constructor Detail

CollectionUpdateActionback to summary
public CollectionUpdateAction(final PersistentCollection collection, final CollectionPersister persister, final Serializable id, final boolean emptySnapshot, final SharedSessionContractImplementor session)

Constructs a CollectionUpdateAction

Parameters
collection:PersistentCollection

The collection to update

persister:CollectionPersister

The collection persister

id:Serializable

The collection key

emptySnapshot:boolean

Indicates if the snapshot is empty

session:SharedSessionContractImplementor

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()