类 CollectionAction
- java.lang.Object
-
- org.hibernate.action.internal.CollectionAction
-
- 所有已实现的接口:
Serializable,Comparable,Executable
- 直接已知子类:
CollectionRecreateAction,CollectionRemoveAction,CollectionUpdateAction,QueuedOperationCollectionAction
public abstract class CollectionAction extends Object implements Executable, Serializable, Comparable
Any action relating to insert/update/delete of a collection- 作者:
- Gavin King
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 限定符 构造器 说明 protectedCollectionAction(CollectionPersister persister, PersistentCollection collection, Serializable key, SharedSessionContractImplementor session)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidafterDeserialize(SharedSessionContractImplementor session)Reconnect to session after deserialization...voidbeforeExecutions()Called before executing any actions.intcompareTo(Object other)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 PersistentCollectiongetCollection()protected SerializablegetKey()protected CollectionPersistergetPersister()Serializable[]getPropertySpaces()What spaces (tables) are affected by this action?protected SharedSessionContractImplementorgetSession()protected <T> EventListenerGroup<T>listenerGroup(EventType<T> eventType)StringtoString()-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 org.hibernate.action.spi.Executable
execute
-
-
-
-
构造器详细资料
-
CollectionAction
protected CollectionAction(CollectionPersister persister, PersistentCollection collection, Serializable key, SharedSessionContractImplementor session)
-
-
方法详细资料
-
getCollection
protected PersistentCollection getCollection()
-
afterDeserialize
public void afterDeserialize(SharedSessionContractImplementor session)
Reconnect to session after deserialization...- 指定者:
afterDeserialize在接口中Executable- 参数:
session- The session being deserialized
-
beforeExecutions
public final void beforeExecutions() throws CacheException从接口复制的说明:ExecutableCalled before executing any actions. Gives actions a chance to perform any preparation.- 指定者:
beforeExecutions在接口中Executable- 抛出:
CacheException
-
getBeforeTransactionCompletionProcess
public BeforeTransactionCompletionProcess getBeforeTransactionCompletionProcess()
从接口复制的说明:ExecutableGet the before-transaction-completion process, if any, for this action.- 指定者:
getBeforeTransactionCompletionProcess在接口中Executable- 返回:
- The before-transaction-completion process, or null if we have no before-transaction-completion process
-
getAfterTransactionCompletionProcess
public AfterTransactionCompletionProcess getAfterTransactionCompletionProcess()
从接口复制的说明:ExecutableGet the after-transaction-completion process, if any, for this action.- 指定者:
getAfterTransactionCompletionProcess在接口中Executable- 返回:
- The after-transaction-completion process, or null if we have no after-transaction-completion process
-
getPropertySpaces
public Serializable[] getPropertySpaces()
从接口复制的说明:ExecutableWhat spaces (tables) are affected by this action?- 指定者:
getPropertySpaces在接口中Executable- 返回:
- The spaces affected by this action.
-
getPersister
protected final CollectionPersister getPersister()
-
getKey
protected final Serializable getKey()
-
getSession
protected final SharedSessionContractImplementor getSession()
-
evict
protected final void evict() throws CacheException- 抛出:
CacheException
-
compareTo
public int compareTo(Object other)
- 指定者:
compareTo在接口中Comparable
-
listenerGroup
protected <T> EventListenerGroup<T> listenerGroup(EventType<T> eventType)
-
eventSource
protected EventSource eventSource()
-
-