类 EntityUpdateAction
- java.lang.Object
-
- org.hibernate.action.internal.EntityAction
-
- org.hibernate.action.internal.EntityUpdateAction
-
public class EntityUpdateAction extends EntityAction
The action for performing entity updates.- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 EntityUpdateAction(Serializable id, Object[] state, int[] dirtyProperties, boolean hasDirtyCollection, Object[] previousState, Object previousVersion, Object nextVersion, Object instance, Object rowId, EntityPersister persister, SharedSessionContractImplementor session)Constructs an EntityUpdateAction
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected booleancacheAfterUpdate(EntityDataAccess cache, Object ck)protected booleancacheUpdate(EntityPersister persister, Object previousVersion, Object ck)voiddoAfterTransactionCompletion(boolean success, SharedSessionContractImplementor session)Perform whatever processing is encapsulated here after completion of the transaction.voidexecute()Execute this action.protected ObjectgetCacheEntry()int[]getDirtyFields()protected SoftLockgetLock()ObjectgetNextVersion()Object[]getPreviousNaturalIdValues()Object[]getPreviousState()ObjectgetPreviousVersion()ObjectgetRowId()Object[]getState()booleanhasDirtyCollection()protected booleanhasPostCommitEventListeners()protected voidpostCommitUpdate(boolean success)protected voidpostUpdate()protected booleanpreUpdate()protected voidsetCacheEntry(Object cacheEntry)protected voidsetLock(SoftLock lock)voidsetNextVersion(Object nextVersion)-
从类继承的方法 org.hibernate.action.internal.EntityAction
afterDeserialize, beforeExecutions, compareTo, eventSource, getAfterTransactionCompletionProcess, getBeforeTransactionCompletionProcess, getDelayedId, getEntityName, getId, getInstance, getPersister, getPropertySpaces, getSession, isVeto, listenerGroup, needsAfterTransactionCompletion, setVeto, toString
-
-
-
-
构造器详细资料
-
EntityUpdateAction
public EntityUpdateAction(Serializable id, Object[] state, int[] dirtyProperties, boolean hasDirtyCollection, Object[] previousState, Object previousVersion, Object nextVersion, Object instance, Object rowId, EntityPersister persister, SharedSessionContractImplementor session)
Constructs an EntityUpdateAction- 参数:
id- The entity identifierstate- The current (extracted) entity statedirtyProperties- The indexes (in reference to state) properties with dirty statehasDirtyCollection- Were any collections dirty?previousState- The previous (stored) statepreviousVersion- The previous (stored) versionnextVersion- The incremented versioninstance- The entity instancerowId- The entity's row idpersister- The entity's persistersession- The session
-
-
方法详细资料
-
getState
public Object[] getState()
-
getPreviousState
public Object[] getPreviousState()
-
getPreviousVersion
public Object getPreviousVersion()
-
getNextVersion
public Object getNextVersion()
-
setNextVersion
public void setNextVersion(Object nextVersion)
-
getDirtyFields
public int[] getDirtyFields()
-
hasDirtyCollection
public boolean hasDirtyCollection()
-
getRowId
public Object getRowId()
-
getPreviousNaturalIdValues
public Object[] getPreviousNaturalIdValues()
-
getCacheEntry
protected Object getCacheEntry()
-
setCacheEntry
protected void setCacheEntry(Object cacheEntry)
-
getLock
protected SoftLock getLock()
-
setLock
protected void setLock(SoftLock lock)
-
execute
public void execute() throws HibernateException从接口复制的说明:ExecutableExecute this action.- 抛出:
HibernateException- Indicates a problem during execution.
-
cacheUpdate
protected boolean cacheUpdate(EntityPersister persister, Object previousVersion, Object ck)
-
preUpdate
protected boolean preUpdate()
-
postUpdate
protected void postUpdate()
-
postCommitUpdate
protected void postCommitUpdate(boolean success)
-
hasPostCommitEventListeners
protected boolean hasPostCommitEventListeners()
- 指定者:
hasPostCommitEventListeners在类中EntityAction
-
doAfterTransactionCompletion
public void doAfterTransactionCompletion(boolean success, SharedSessionContractImplementor session) throws CacheException从接口复制的说明:AfterTransactionCompletionProcessPerform whatever processing is encapsulated here after completion of the transaction.- 参数:
success- Did the transaction complete successfully? True means it did.session- The session on which the transaction is completing.- 抛出:
CacheException
-
cacheAfterUpdate
protected boolean cacheAfterUpdate(EntityDataAccess cache, Object ck)
-
-