public interface TransactionImplementor extends Transaction
Modifier and Type | Method and Description |
---|---|
default void |
invalidate()
Deprecated.
(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.
|
boolean |
isActive(boolean isMarkedRollbackConsideredActive)
Indicate whether a resource transaction is in progress.
|
getStatus, getTimeout, markRollbackOnly, registerSynchronization, setTimeout
begin, commit, getRollbackOnly, isActive, rollback, setRollbackOnly
@Deprecated default void invalidate()
Invalidates a transaction handle. This might happen, e.g., when:<ul> <li>The transaction is committed</li> <li>The transaction is rolled-back</li> <li>The session that owns the transaction is closed</li> </ul>
boolean isActive(boolean isMarkedRollbackConsideredActive)
Indicate whether a resource transaction is in progress.
isMarkedRollbackConsideredActive
- whether to consider TransactionStatus.MARKED_ROLLBACK
as active.HibernateException
- if an unexpected error condition is encountered.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.