Package org.hibernate.action
Class CollectionAction
java.lang.Object
org.hibernate.action.CollectionAction
- All Implemented Interfaces:
Serializable,Comparable,Executable
- Direct Known Subclasses:
CollectionRecreateAction,CollectionRemoveAction,CollectionUpdateAction
public abstract class CollectionAction
extends Object
implements Executable, Serializable, Comparable
Any action relating to insert/update/delete of a collection
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionAction(CollectionPersister persister, PersistentCollection collection, Serializable key, SessionImplementor session) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidCalled before executing any actions.intprotected final voidevict()Get the after-transaction-completion process, if any, for this action.Get the before-transaction-completion process, if any, for this action.protected PersistentCollectionprotected final SerializablegetKey()protected final CollectionPersisterWhat spaces (tables) are affected by this action?protected final SessionImplementortoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.action.Executable
execute
-
Constructor Details
-
CollectionAction
public CollectionAction(CollectionPersister persister, PersistentCollection collection, Serializable key, SessionImplementor session) throws CacheException - Throws:
CacheException
-
-
Method Details
-
getCollection
-
beforeExecutions
Description copied from interface:ExecutableCalled before executing any actions. Gives actions a chance to perform any preparation.- Specified by:
beforeExecutionsin interfaceExecutable- Throws:
CacheException
-
getBeforeTransactionCompletionProcess
Description copied from interface:ExecutableGet the before-transaction-completion process, if any, for this action.- Specified by:
getBeforeTransactionCompletionProcessin interfaceExecutable- Returns:
- The before-transaction-completion process, or null if we have no before-transaction-completion process
-
getAfterTransactionCompletionProcess
Description copied from interface:ExecutableGet the after-transaction-completion process, if any, for this action.- Specified by:
getAfterTransactionCompletionProcessin interfaceExecutable- Returns:
- The after-transaction-completion process, or null if we have no after-transaction-completion process
-
getPropertySpaces
Description copied from interface:ExecutableWhat spaces (tables) are affected by this action?- Specified by:
getPropertySpacesin interfaceExecutable- Returns:
- The spaces affected by this action.
-
getPersister
-
getKey
-
getSession
-
evict
- Throws:
CacheException
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable
-