Package org.hibernate.action.internal
Class CollectionUpdateAction
java.lang.Object
org.hibernate.action.internal.CollectionAction
org.hibernate.action.internal.CollectionUpdateAction
- All Implemented Interfaces:
Serializable,Comparable<ComparableExecutable>,Executable,ComparableExecutable
The action for updating a collection
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionUpdateAction(PersistentCollection<?> collection, CollectionPersister persister, Object id, boolean emptySnapshot, EventSource session) Constructs a CollectionUpdateAction -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ComparableExecutable executable) Sort update actions with deletions to the start of the line in order to limit the chance of a unique key violation.voidexecute()Execute this action.Methods inherited from class org.hibernate.action.internal.CollectionAction
afterDeserialize, beforeExecutions, eventSource, evict, getAfterTransactionCompletionProcess, getBeforeTransactionCompletionProcess, getCollection, getEventListenerGroups, getKey, getPersister, getPrimarySortClassifier, getPropertySpaces, getSecondarySortIndex, getSession, toString
-
Constructor Details
-
CollectionUpdateAction
public CollectionUpdateAction(PersistentCollection<?> collection, CollectionPersister persister, Object id, boolean emptySnapshot, EventSource session) Constructs a CollectionUpdateAction- Parameters:
collection- The collection to updatepersister- The collection persisterid- The collection keyemptySnapshot- Indicates if the snapshot is emptysession- The session
-
-
Method Details
-
execute
Description copied from interface:ExecutableExecute this action.- Throws:
HibernateException- Indicates a problem during execution.
-
compareTo
Sort update actions with deletions to the start of the line in order to limit the chance of a unique key violation.- Specified by:
compareToin interfaceComparable<ComparableExecutable>- Overrides:
compareToin classCollectionAction
-