Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.ejb.transaction | |
org.hibernate.engine |
This package contains classes that are "shared" by other packages,
and implementations of some key algorithms.
|
org.hibernate.envers.entities.mapper.relation.lazy | |
org.hibernate.impl |
This package contains implementations of the
central Hibernate APIs, especially the
Hibernate session.
|
org.hibernate.jdbc |
This package abstracts the mechanism for dispatching SQL statements
to the database, and implements interaction with JDBC.
|
org.hibernate.transaction |
This package abstracts the underlying transaction mechanism
(JTA or JDBC) and provides strategies for obtaining application
server TransactionManagers.
|
org.hibernate.transaction.synchronization |
Modifier and Type | Method and Description |
---|---|
Transaction |
Session.beginTransaction()
Begin a unit of work and return the associated Transaction object.
|
Transaction |
StatelessSession.beginTransaction()
Begin a Hibernate transaction.
|
Transaction |
Session.getTransaction()
Get the Transaction instance associated with this session.
|
Transaction |
StatelessSession.getTransaction()
Get the current Hibernate transaction.
|
Modifier and Type | Method and Description |
---|---|
void |
Interceptor.afterTransactionBegin(Transaction tx)
Called when a Hibernate transaction is begun via the Hibernate Transaction
API.
|
void |
EmptyInterceptor.afterTransactionBegin(Transaction tx) |
void |
Interceptor.afterTransactionCompletion(Transaction tx)
Called after a transaction is committed or rolled back.
|
void |
EmptyInterceptor.afterTransactionCompletion(Transaction tx) |
void |
Interceptor.beforeTransactionCompletion(Transaction tx)
Called before a transaction is committed (but not before rollback).
|
void |
EmptyInterceptor.beforeTransactionCompletion(Transaction tx) |
Modifier and Type | Class and Description |
---|---|
class |
JoinableCMTTransaction
Implements a joinable transaction.
|
Modifier and Type | Method and Description |
---|---|
Transaction |
JoinableCMTTransactionFactory.createTransaction(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
JoinableCMTTransactionFactory.isTransactionInProgress(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext,
Transaction transaction) |
Modifier and Type | Method and Description |
---|---|
void |
SessionImplementor.afterTransactionCompletion(boolean successful,
Transaction tx)
Notify the session that the transaction completed, so we no longer
own the old locks.
|
void |
SessionImplementor.beforeTransactionCompletion(Transaction tx)
Notify the session that the transaction is about to complete
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractDelegateSessionImplementor.afterTransactionCompletion(boolean successful,
Transaction tx) |
void |
AbstractDelegateSessionImplementor.beforeTransactionCompletion(Transaction tx) |
Modifier and Type | Method and Description |
---|---|
Transaction |
StatelessSessionImpl.beginTransaction() |
Transaction |
SessionImpl.beginTransaction() |
Transaction |
StatelessSessionImpl.getTransaction() |
Transaction |
SessionImpl.getTransaction() |
Modifier and Type | Method and Description |
---|---|
void |
StatelessSessionImpl.afterTransactionBegin(Transaction tx) |
void |
SessionImpl.afterTransactionBegin(Transaction tx) |
void |
StatelessSessionImpl.afterTransactionCompletion(boolean successful,
Transaction tx) |
void |
SessionImpl.afterTransactionCompletion(boolean success,
Transaction tx) |
void |
StatelessSessionImpl.beforeTransactionCompletion(Transaction tx) |
void |
SessionImpl.beforeTransactionCompletion(Transaction tx) |
Modifier and Type | Method and Description |
---|---|
Transaction |
JDBCContext.getTransaction() |
Modifier and Type | Method and Description |
---|---|
void |
JDBCContext.afterTransactionBegin(Transaction tx)
We cannot rely upon this method being called! It is only
called if we are using Hibernate Transaction API.
|
void |
JDBCContext.Context.afterTransactionBegin(Transaction tx)
We cannot rely upon this method being called! It is only
called if we are using Hibernate Transaction API.
|
void |
JDBCContext.afterTransactionCompletion(boolean success,
Transaction tx) |
void |
JDBCContext.Context.afterTransactionCompletion(boolean success,
Transaction tx) |
void |
JDBCContext.beforeTransactionCompletion(Transaction tx) |
void |
JDBCContext.Context.beforeTransactionCompletion(Transaction tx) |
Modifier and Type | Class and Description |
---|---|
class |
CMTTransaction
Implements a basic transaction strategy for CMT transactions.
|
class |
JDBCTransaction
Transaction implementation based on transaction management through a JDBC Connection . |
class |
JTATransaction
Transaction implementation based on transaction management through
a JTA UserTransaction . |
Modifier and Type | Method and Description |
---|---|
Transaction |
JDBCTransactionFactory.createTransaction(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext)
Begin a transaction and return the associated Transaction instance.
|
Transaction |
CMTTransactionFactory.createTransaction(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext) |
Transaction |
TransactionFactory.createTransaction(JDBCContext jdbcContext,
TransactionFactory.Context context)
Begin a transaction and return the associated Transaction instance.
|
Transaction |
JTATransactionFactory.createTransaction(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext)
Begin a transaction and return the associated Transaction instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
JDBCTransactionFactory.isTransactionInProgress(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext,
Transaction transaction)
Determine whether an underlying transaction is in progress.
|
boolean |
CMTTransactionFactory.isTransactionInProgress(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext,
Transaction transaction) |
boolean |
TransactionFactory.isTransactionInProgress(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext,
Transaction transaction)
Determine whether an underlying transaction is in progress.
|
boolean |
JTATransactionFactory.isTransactionInProgress(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext,
Transaction transaction)
Determine whether an underlying transaction is in progress.
|
Constructor and Description |
---|
CacheSynchronization(TransactionFactory.Context ctx,
JDBCContext jdbcContext,
Transaction transaction,
Transaction tx) |
Constructor and Description |
---|
CallbackCoordinator(TransactionFactory.Context ctx,
JDBCContext jdbcContext,
Transaction jtaTransaction,
Transaction hibernateTransaction) |
Copyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved