类 EntityAction

    • 构造器详细资料

      • EntityAction

        protected EntityAction​(SharedSessionContractImplementor session,
                               Serializable id,
                               Object instance,
                               EntityPersister persister)
        Instantiate an action.
        参数:
        session - The session from which this action is coming.
        id - The id of the entity
        instance - The entity instance
        persister - The entity persister
    • 方法详细资料

      • isVeto

        public boolean isVeto()
      • setVeto

        public void setVeto​(boolean veto)
      • hasPostCommitEventListeners

        protected abstract boolean hasPostCommitEventListeners()
      • needsAfterTransactionCompletion

        protected boolean needsAfterTransactionCompletion()
      • getEntityName

        public String getEntityName()
        entity name accessor
        返回:
        The entity name
      • getId

        public final Serializable getId()
        entity id accessor
        返回:
        The entity id
      • getInstance

        public final Object getInstance()
        entity instance accessor
        返回:
        The entity instance
      • getPersister

        public final EntityPersister getPersister()
        entity persister accessor
        返回:
        The entity persister
      • getPropertySpaces

        public final Serializable[] getPropertySpaces()
        从接口复制的说明: Executable
        What spaces (tables) are affected by this action?
        指定者:
        getPropertySpaces 在接口中 Executable
        返回:
        The spaces affected by this action.
      • beforeExecutions

        public void beforeExecutions()
        从接口复制的说明: Executable
        Called before executing any actions. Gives actions a chance to perform any preparation.
        指定者:
        beforeExecutions 在接口中 Executable