public abstract class CollectionAction extends java.lang.Object implements Executable, java.io.Serializable, java.lang.Comparable
Modifier | Constructor and Description |
---|---|
protected |
CollectionAction(CollectionPersister persister,
PersistentCollection collection,
java.io.Serializable key,
SharedSessionContractImplementor session) |
Modifier and Type | Method and Description |
---|---|
void |
afterDeserialize(SharedSessionContractImplementor session)
Reconnect to session after deserialization...
|
void |
beforeExecutions()
Called before executing any actions.
|
int |
compareTo(java.lang.Object other) |
protected EventSource |
eventSource() |
protected void |
evict() |
AfterTransactionCompletionProcess |
getAfterTransactionCompletionProcess()
Get the after-transaction-completion process, if any, for this action.
|
BeforeTransactionCompletionProcess |
getBeforeTransactionCompletionProcess()
Get the before-transaction-completion process, if any, for this action.
|
protected PersistentCollection |
getCollection() |
protected java.io.Serializable |
getKey() |
protected CollectionPersister |
getPersister() |
java.io.Serializable[] |
getPropertySpaces()
What spaces (tables) are affected by this action?
|
protected SharedSessionContractImplementor |
getSession() |
protected <T> EventListenerGroup<T> |
listenerGroup(EventType<T> eventType) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
execute
protected CollectionAction(CollectionPersister persister, PersistentCollection collection, java.io.Serializable key, SharedSessionContractImplementor session)
protected PersistentCollection getCollection()
public void afterDeserialize(SharedSessionContractImplementor session)
afterDeserialize
in interface Executable
session
- The session being deserializedpublic final void beforeExecutions() throws CacheException
Executable
beforeExecutions
in interface Executable
CacheException
public BeforeTransactionCompletionProcess getBeforeTransactionCompletionProcess()
Executable
getBeforeTransactionCompletionProcess
in interface Executable
public AfterTransactionCompletionProcess getAfterTransactionCompletionProcess()
Executable
getAfterTransactionCompletionProcess
in interface Executable
public java.io.Serializable[] getPropertySpaces()
Executable
getPropertySpaces
in interface Executable
protected final CollectionPersister getPersister()
protected final java.io.Serializable getKey()
protected final SharedSessionContractImplementor getSession()
protected final void evict() throws CacheException
CacheException
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
protected <T> EventListenerGroup<T> listenerGroup(EventType<T> eventType)
protected EventSource eventSource()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.