类 CollectionRemoveAction
- java.lang.Object
-
- org.hibernate.action.internal.CollectionAction
-
- org.hibernate.action.internal.CollectionRemoveAction
-
- 所有已实现的接口:
Serializable,Comparable,Executable
public final class CollectionRemoveAction extends CollectionAction
The action for removing a collection- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 CollectionRemoveAction(Object affectedOwner, CollectionPersister persister, Serializable id, boolean emptySnapshot, SharedSessionContractImplementor session)Removes a persistent collection from a specified owner.CollectionRemoveAction(PersistentCollection collection, CollectionPersister persister, Serializable id, boolean emptySnapshot, SharedSessionContractImplementor session)Removes a persistent collection from its loaded owner.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidexecute()Execute this action.-
从类继承的方法 org.hibernate.action.internal.CollectionAction
afterDeserialize, beforeExecutions, compareTo, eventSource, evict, getAfterTransactionCompletionProcess, getBeforeTransactionCompletionProcess, getCollection, getKey, getPersister, getPropertySpaces, getSession, listenerGroup, toString
-
-
-
-
构造器详细资料
-
CollectionRemoveAction
public CollectionRemoveAction(PersistentCollection collection, CollectionPersister persister, Serializable id, boolean emptySnapshot, SharedSessionContractImplementor session)
Removes a persistent collection from its loaded owner. Use this constructor when the collection is non-null.- 参数:
collection- The collection to to remove; must be non-nullpersister- The collection's persisterid- The collection keyemptySnapshot- Indicates if the snapshot is emptysession- The session- 抛出:
AssertionFailure- if collection is null.
-
CollectionRemoveAction
public CollectionRemoveAction(Object affectedOwner, CollectionPersister persister, Serializable id, boolean emptySnapshot, SharedSessionContractImplementor session)
Removes a persistent collection from a specified owner. Use this constructor when the collection to be removed has not been loaded.- 参数:
affectedOwner- The collection's owner; must be non-nullpersister- The collection's persisterid- The collection keyemptySnapshot- Indicates if the snapshot is emptysession- The session- 抛出:
AssertionFailure- if affectedOwner is null.
-
-
方法详细资料
-
execute
public void execute() throws HibernateException从接口复制的说明:ExecutableExecute this action.- 抛出:
HibernateException- Indicates a problem during execution.
-
-