接口 TransactionImplementor
-
- 所有超级接口:
javax.persistence.EntityTransaction,Transaction
- 所有已知实现类:
TransactionImpl
public interface TransactionImplementor extends Transaction
- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 已过时的方法 修饰符和类型 方法 说明 default voidinvalidate()已过时。(since 5.2) as part of effort to consolidate support for JPA and Hibernate SessionFactory, Session, etc natively, support for local Transaction delegates to remain "valid" after they are committed or rolled-back (and to a degree after the owning Session is closed) to more closely comply with the JPA spec natively in terms of allowing that extended access after Session is closed.booleanisActive(boolean isMarkedRollbackConsideredActive)Indicate whether a resource transaction is in progress.-
从接口继承的方法 javax.persistence.EntityTransaction
begin, commit, getRollbackOnly, isActive, rollback, setRollbackOnly
-
从接口继承的方法 org.hibernate.Transaction
getStatus, getTimeout, markRollbackOnly, registerSynchronization, setTimeout
-
-
-
-
方法详细资料
-
invalidate
@Deprecated default void invalidate()
已过时。(since 5.2) as part of effort to consolidate support for JPA and Hibernate SessionFactory, Session, etc natively, support for local Transaction delegates to remain "valid" after they are committed or rolled-back (and to a degree after the owning Session is closed) to more closely comply with the JPA spec natively in terms of allowing that extended access after Session is closed. Hibernate impls have all been changed to no-op here.Invalidates a transaction handle. This might happen, e.g., when:- The transaction is committed
- The transaction is rolled-back
- The session that owns the transaction is closed
-
isActive
boolean isActive(boolean isMarkedRollbackConsideredActive)
Indicate whether a resource transaction is in progress.- 参数:
isMarkedRollbackConsideredActive- whether to considerTransactionStatus.MARKED_ROLLBACKas active.- 返回:
- boolean indicating whether transaction is in progress
- 抛出:
HibernateException- if an unexpected error condition is encountered.
-
-