类 EntityUpdateAction

    • 构造器详细资料

      • 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 identifier
        state - The current (extracted) entity state
        dirtyProperties - The indexes (in reference to state) properties with dirty state
        hasDirtyCollection - Were any collections dirty?
        previousState - The previous (stored) state
        previousVersion - The previous (stored) version
        nextVersion - The incremented version
        instance - The entity instance
        rowId - The entity's row id
        persister - The entity's persister
        session - 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)
      • preUpdate

        protected boolean preUpdate()
      • postUpdate

        protected void postUpdate()
      • postCommitUpdate

        protected void postCommitUpdate​(boolean success)
      • doAfterTransactionCompletion

        public void doAfterTransactionCompletion​(boolean success,
                                                 SharedSessionContractImplementor session)
                                          throws CacheException
        从接口复制的说明: AfterTransactionCompletionProcess
        Perform 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