Uses of Interface
org.hibernate.Transaction
Packages that use Transaction
Package
Description
This package defines the central Hibernate APIs, beginning with
SessionFactory
, which represents an instance of
Hibernate at runtime and is the source of new instances of
Session
and StatelessSession
,
the most important APIs exposing persistence-related operations for
entities.This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
An SPI abstracting the object which implements
Transaction
.An internal package containing implementations of central Hibernate APIs,
mostly defined in
org.hibernate
.-
Uses of Transaction in org.hibernate
Methods in org.hibernate that return TransactionModifier and TypeMethodDescriptionSharedSessionContract.beginTransaction()
Begin a unit of work and return the associatedTransaction
object.SharedSessionContract.getTransaction()
Get theTransaction
instance associated with this session.Methods in org.hibernate with parameters of type TransactionModifier and TypeMethodDescriptiondefault void
Interceptor.afterTransactionBegin
(Transaction tx) Called when a Hibernate transaction is begun via the HibernateTransaction
API.default void
Interceptor.afterTransactionCompletion
(Transaction tx) Called after a transaction is committed or rolled back.default void
Interceptor.beforeTransactionCompletion
(Transaction tx) Called before a transaction is committed (but not before rollback). -
Uses of Transaction in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return TransactionModifier and TypeMethodDescriptionSessionDelegatorBaseImpl.accessTransaction()
SharedSessionContractImplementor.accessTransaction()
Retrieves the currentTransaction
, or creates a new transaction if there is no transaction active.SharedSessionDelegatorBaseImpl.accessTransaction()
SessionDelegatorBaseImpl.beginTransaction()
SessionLazyDelegator.beginTransaction()
SharedSessionDelegatorBaseImpl.beginTransaction()
SessionDelegatorBaseImpl.getTransaction()
SessionLazyDelegator.getTransaction()
SharedSessionDelegatorBaseImpl.getTransaction()
-
Uses of Transaction in org.hibernate.engine.transaction.internal
Classes in org.hibernate.engine.transaction.internal that implement Transaction -
Uses of Transaction in org.hibernate.engine.transaction.spi
Subinterfaces of Transaction in org.hibernate.engine.transaction.spiModifier and TypeInterfaceDescriptioninterface
Defines the "internal contract" for an implementation ofTransaction
. -
Uses of Transaction in org.hibernate.internal
Methods in org.hibernate.internal that return TransactionModifier and TypeMethodDescriptionAbstractSharedSessionContract.accessTransaction()
AbstractSharedSessionContract.beginTransaction()
AbstractSharedSessionContract.getTransaction()
Methods in org.hibernate.internal with parameters of type TransactionModifier and TypeMethodDescriptionstatic <S> void
TransactionManagement.manageTransaction
(S session, Transaction transaction, Consumer<S> consumer) static <S,
R> R TransactionManagement.manageTransaction
(S session, Transaction transaction, Function<S, R> function)