类 TransactionImpl

    • 方法详细资料

      • begin

        public void begin()
        指定者:
        begin 在接口中 javax.persistence.EntityTransaction
      • commit

        public void commit()
        指定者:
        commit 在接口中 javax.persistence.EntityTransaction
      • rollback

        public void rollback()
        指定者:
        rollback 在接口中 javax.persistence.EntityTransaction
      • isActive

        public boolean isActive()
        指定者:
        isActive 在接口中 javax.persistence.EntityTransaction
      • getStatus

        public TransactionStatus getStatus()
        从接口复制的说明: Transaction
        Get the current local status of this transaction.

        This only accounts for the local view of the transaction status. In other words it does not check the status of the actual underlying transaction.

        指定者:
        getStatus 在接口中 Transaction
        返回:
        The current local status.
      • registerSynchronization

        public void registerSynchronization​(javax.transaction.Synchronization synchronization)
                                     throws HibernateException
        从接口复制的说明: Transaction
        Register a user synchronization callback for this transaction.
        指定者:
        registerSynchronization 在接口中 Transaction
        参数:
        synchronization - The Synchronization callback to register.
        抛出:
        HibernateException - Indicates a problem registering the synchronization.
      • setTimeout

        public void setTimeout​(int seconds)
        从接口复制的说明: Transaction
        Set the transaction timeout for any transaction started by a subsequent call to EntityTransaction.begin() on this instance.
        指定者:
        setTimeout 在接口中 Transaction
        参数:
        seconds - The number of seconds before a timeout.
      • getTimeout

        public int getTimeout()
        从接口复制的说明: Transaction
        Retrieve the transaction timeout set for this transaction. A negative indicates no timeout has been set.
        指定者:
        getTimeout 在接口中 Transaction
        返回:
        The timeout, in seconds.
      • markRollbackOnly

        public void markRollbackOnly()
        从接口复制的说明: Transaction
        Make a best effort to mark the underlying transaction for rollback only.
        指定者:
        markRollbackOnly 在接口中 Transaction
      • setRollbackOnly

        public void setRollbackOnly()
        指定者:
        setRollbackOnly 在接口中 javax.persistence.EntityTransaction
      • getRollbackOnly

        public boolean getRollbackOnly()
        指定者:
        getRollbackOnly 在接口中 javax.persistence.EntityTransaction
      • allowFailedCommitToPhysicallyRollback

        protected boolean allowFailedCommitToPhysicallyRollback()