Top Methods
org.hibernate.engine.transaction.spi

public Interface TransactionImplementor

extends Transaction
Known Direct Implementers
org.hibernate.engine.transaction.internal.TransactionImpl
Imports
org.hibernate.HibernateException, .Transaction, org.hibernate.resource.transaction.spi.TransactionStatus

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public 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.
Invalidates a transaction handle.
public boolean

Returns:

boolean indicating whether transaction is in progress
isActive
(boolean
whether to consider TransactionStatus#MARKED_ROLLBACK as active.
isMarkedRollbackConsideredActive
)

Indicate whether a resource transaction is in progress.

Inherited from org.hibernate.Transaction:
getStatusgetTimeoutmarkRollbackOnlyregisterSynchronizationsetTimeout

Method Detail

invalidateback to summary
public 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.

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
Annotations
@Deprecated
isActiveback to summary
public boolean isActive(boolean isMarkedRollbackConsideredActive)

Indicate whether a resource transaction is in progress.

Parameters
isMarkedRollbackConsideredActive:boolean

whether to consider TransactionStatus#MARKED_ROLLBACK as active.

Returns:boolean

boolean indicating whether transaction is in progress

Exceptions
HibernateException:
if an unexpected error condition is encountered.