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
.-
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 JPA-standardEntityTransaction
API, or viaTransaction
.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).Method parameters in org.hibernate with type arguments of type TransactionModifier and TypeMethodDescriptiondefault <R> R
SharedSessionContract.fromTransaction
(Function<? super Transaction, R> action) Obtain a value within the bounds of a transaction associated with this session.default void
SharedSessionContract.inTransaction
(Consumer<? super Transaction> action) Perform an action within the bounds of a transaction associated with this session. -
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.spi
Subinterfaces of Transaction in org.hibernate.engine.transaction.spiModifier and TypeInterfaceDescriptioninterface
Deprecated, for removal: This API element is subject to removal in a future version.This is no longer needed