public interface TransactionImplementor extends Transaction
|Modifier and Type||Method and Description|
(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.
Indicate whether a resource transaction is in progress.
getStatus, getTimeout, markRollbackOnly, registerSynchronization, setTimeout
begin, commit, getRollbackOnly, isActive, rollback, setRollbackOnly
@Deprecated default void invalidate()
boolean isActive(boolean isMarkedRollbackConsideredActive)
isMarkedRollbackConsideredActive- whether to consider
HibernateException- if an unexpected error condition is encountered.
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.