Package org.hibernate.action.internal
Class CollectionAction
- java.lang.Object
-
- org.hibernate.action.internal.CollectionAction
-
- All Implemented Interfaces:
Serializable,Comparable<CollectionAction>,Executable
- Direct Known Subclasses:
CollectionRecreateAction,CollectionRemoveAction,CollectionUpdateAction,QueuedOperationCollectionAction
public abstract class CollectionAction extends Object implements Executable, Serializable, Comparable<CollectionAction>
Any action relating to insert/update/delete of a collection- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCollectionAction(CollectionPersister persister, PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterDeserialize(SharedSessionContractImplementor session)Reconnect to session after deserialization...voidbeforeExecutions()Called before executing any actions.intcompareTo(CollectionAction action)protected EventSourceeventSource()protected voidevict()AfterTransactionCompletionProcessgetAfterTransactionCompletionProcess()Get the after-transaction-completion process, if any, for this action.BeforeTransactionCompletionProcessgetBeforeTransactionCompletionProcess()Get the before-transaction-completion process, if any, for this action.protected PersistentCollection<?>getCollection()protected FastSessionServicesgetFastSessionServices()Convenience method for all subclasses.protected ObjectgetKey()protected CollectionPersistergetPersister()Serializable[]getPropertySpaces()What spaces (tables) are affected by this action?protected SharedSessionContractImplementorgetSession()StringtoString()-
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 Detail
-
CollectionAction
protected CollectionAction(CollectionPersister persister, PersistentCollection<?> collection, Object key, SharedSessionContractImplementor session)
-
-
Method Detail
-
getCollection
protected PersistentCollection<?> getCollection()
-
afterDeserialize
public void afterDeserialize(SharedSessionContractImplementor session)
Reconnect to session after deserialization...- Specified by:
afterDeserializein interfaceExecutable- Parameters:
session- The session being deserialized
-
beforeExecutions
public final void beforeExecutions() throws CacheExceptionDescription copied from interface:ExecutableCalled before executing any actions. Gives actions a chance to perform any preparation.- Specified by:
beforeExecutionsin interfaceExecutable- Throws:
CacheException
-
getBeforeTransactionCompletionProcess
public BeforeTransactionCompletionProcess 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
public AfterTransactionCompletionProcess 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
public Serializable[] 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
protected final CollectionPersister getPersister()
-
getKey
protected final Object getKey()
-
getSession
protected final SharedSessionContractImplementor getSession()
-
evict
protected final void evict() throws CacheException- Throws:
CacheException
-
compareTo
public int compareTo(CollectionAction action)
- Specified by:
compareToin interfaceComparable<CollectionAction>
-
eventSource
protected EventSource eventSource()
-
getFastSessionServices
protected FastSessionServices getFastSessionServices()
Convenience method for all subclasses.- Returns:
- the
FastSessionServicesinstance from the SessionFactory.
-
-