Package org.hibernate.action.internal
Class CollectionAction
java.lang.Object
org.hibernate.action.internal.CollectionAction
- All Implemented Interfaces:
Serializable
,Comparable<ComparableExecutable>
,Executable
,ComparableExecutable
- Direct Known Subclasses:
CollectionRecreateAction
,CollectionRemoveAction
,CollectionUpdateAction
,QueuedOperationCollectionAction
Any action relating to insert/update/delete of a collection
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CollectionAction
(CollectionPersister persister, PersistentCollection<?> collection, Object key, EventSource session) -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterDeserialize
(EventSource session) Reconnect to session after deserialization...final void
Called before executing any actions.int
protected EventSource
protected final void
evict()
Get the after-transaction-completion process, if any, for this action.Get the before-transaction-completion process, if any, for this action.protected PersistentCollection<?>
protected FastSessionServices
Convenience method for all subclasses.protected final Object
getKey()
protected final CollectionPersister
This affect sorting order of the executables, when sorting is enabled.String[]
What spaces (tables) are affected by this action?This affect sorting order of the executables, when sorting is enabled.protected final EventSource
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.action.spi.Executable
execute
-
Constructor Details
-
CollectionAction
protected CollectionAction(CollectionPersister persister, PersistentCollection<?> collection, Object key, EventSource session)
-
-
Method Details
-
getCollection
-
afterDeserialize
Reconnect to session after deserialization...- Specified by:
afterDeserialize
in interfaceExecutable
- Parameters:
session
- The session being deserialized
-
beforeExecutions
Description copied from interface:Executable
Called before executing any actions. Gives actions a chance to perform any preparation.- Specified by:
beforeExecutions
in interfaceExecutable
- Throws:
CacheException
-
getBeforeTransactionCompletionProcess
Description copied from interface:Executable
Get the before-transaction-completion process, if any, for this action.- Specified by:
getBeforeTransactionCompletionProcess
in interfaceExecutable
- Returns:
- The before-transaction-completion process, or null if we have no before-transaction-completion process
-
getAfterTransactionCompletionProcess
Description copied from interface:Executable
Get the after-transaction-completion process, if any, for this action.- Specified by:
getAfterTransactionCompletionProcess
in interfaceExecutable
- Returns:
- The after-transaction-completion process, or null if we have no after-transaction-completion process
-
getPropertySpaces
Description copied from interface:Executable
What spaces (tables) are affected by this action?- Specified by:
getPropertySpaces
in interfaceExecutable
- Returns:
- The spaces affected by this action.
-
getPersister
-
getKey
-
getPrimarySortClassifier
Description copied from interface:ComparableExecutable
This affect sorting order of the executables, when sorting is enabled.- Specified by:
getPrimarySortClassifier
in interfaceComparableExecutable
- Returns:
- the primary sorting attribute; typically the entity name or collection role.
-
getSecondarySortIndex
Description copied from interface:ComparableExecutable
This affect sorting order of the executables, when sorting is enabled.- Specified by:
getSecondarySortIndex
in interfaceComparableExecutable
- Returns:
- the secondary sorting attribute, applied when getPrimarySortClassifier matches during a comparison; typically the entity key or collection key.
-
getSession
-
evict
- Throws:
CacheException
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ComparableExecutable>
-
eventSource
-
getFastSessionServices
Convenience method for all subclasses.- Returns:
- the
FastSessionServices
instance from the SessionFactory.
-