类 EntityIdentityInsertAction

    • 构造器详细资料

      • EntityIdentityInsertAction

        public EntityIdentityInsertAction​(Object[] state,
                                          Object instance,
                                          EntityPersister persister,
                                          boolean isVersionIncrementDisabled,
                                          SharedSessionContractImplementor session,
                                          boolean isDelayed)
        Constructs an EntityIdentityInsertAction
        参数:
        state - The current (extracted) entity state
        instance - The entity instance
        persister - The entity persister
        isVersionIncrementDisabled - Whether version incrementing is disabled
        session - The session
        isDelayed - Are we in a situation which allows the insertion to be delayed?
        抛出:
        HibernateException - Indicates an illegal state
    • 方法详细资料

      • doAfterTransactionCompletion

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

        protected void postInsert()
      • postCommitInsert

        protected void postCommitInsert​(boolean success)
      • preInsert

        protected boolean preInsert()
      • getGeneratedId

        public final Serializable getGeneratedId()
        Access to the generated identifier
        返回:
        The generated identifier
      • setGeneratedId

        protected void setGeneratedId​(Serializable generatedId)
      • getDelayedEntityKey

        @Deprecated
        public EntityKey getDelayedEntityKey()
        已过时。
        No Hibernate code currently uses this method
        Access to the delayed entity key
        返回:
        The delayed entity key
      • isEarlyInsert

        public boolean isEarlyInsert()
        从类复制的说明: AbstractEntityInsertAction
        Does this insert action need to be executed as soon as possible (e.g., to generate an ID)?
        指定者:
        isEarlyInsert 在类中 AbstractEntityInsertAction
        返回:
        true, if it needs to be executed as soon as possible; false, otherwise.
      • setEntityKey

        protected void setEntityKey​(EntityKey entityKey)
      • generateDelayedEntityKey

        protected EntityKey generateDelayedEntityKey()