org.springframework.orm.hibernate |
Package providing integration of
Hibernate 2.1
with Spring concepts.
Contains SessionFactory helper classes, a template plus callback
for Hibernate access, and an implementation of Spring's transaction SPI
for local Hibernate transactions.
This package supports Hibernate 2.1 only.
See the org.springframework.orm.hibernate3 package for Hibernate 3.x support.
|
Java Source File Name | Type | Comment |
HibernateAccessor.java | Class | Base class for
HibernateTemplate and
HibernateInterceptor ,
defining common properties such as SessionFactory and flushing behavior. |
HibernateCallback.java | Interface | Callback interface for Hibernate code. |
HibernateInterceptor.java | Class | This interceptor binds a new Hibernate Session to the thread before a method
call, closing and removing it afterwards in case of any method outcome.
If there already is a pre-bound Session (e.g. |
HibernateJdbcException.java | Class | Hibernate-specific subclass of UncategorizedDataAccessException,
for JDBC exceptions that Hibernate rethrew. |
HibernateObjectRetrievalFailureException.java | Class | Hibernate-specific subclass of ObjectRetrievalFailureException. |
HibernateOperations.java | Interface | Interface that specifies a basic set of Hibernate operations,
implemented by
HibernateTemplate . |
HibernateOptimisticLockingFailureException.java | Class | Hibernate-specific subclass of ObjectOptimisticLockingFailureException. |
HibernateQueryException.java | Class | Hibernate-specific subclass of InvalidDataAccessResourceUsageException,
thrown on invalid HQL query syntax. |
HibernateSystemException.java | Class | Hibernate-specific subclass of UncategorizedDataAccessException,
for Hibernate system errors that do not match any concrete
org.springframework.dao exceptions. |
HibernateTemplate.java | Class | Helper class that simplifies Hibernate data access code, and converts
checked HibernateExceptions into unchecked DataAccessExceptions,
following the org.springframework.dao exception hierarchy.
Uses the same SQLExceptionTranslator mechanism as JdbcTemplate.
Typically used to implement data access or business logic services that
use Hibernate within their implementation but are Hibernate-agnostic in their
interface. |
HibernateTransactionManager.java | Class | org.springframework.transaction.PlatformTransactionManager implementation for a single Hibernate
net.sf.hibernate.SessionFactory .
Binds a Hibernate Session from the specified factory to the thread, potentially
allowing for one thread-bound Session per factory. |
LocalDataSourceConnectionProvider.java | Class | Hibernate connection provider for local DataSource instances
in an application context. |
LocalSessionFactoryBean.java | Class | org.springframework.beans.factory.FactoryBean that creates a
Hibernate
net.sf.hibernate.SessionFactory . |
LocalTransactionManagerLookup.java | Class | Implementation of Hibernate's TransactionManagerLookup interface that
returns a Spring-managed JTA TransactionManager, determined by
LocalSessionFactoryBean's "transactionManager" property.
The main advantage of this TransactionManagerLookup is that it avoids
double configuration of JTA specifics. |
SessionFactoryUtils.java | Class | Helper class featuring methods for Hibernate Session handling,
allowing for reuse of Hibernate Session instances within transactions.
Also provides support for exception translation.
Supports synchronization with both Spring-managed JTA transactions
(see
org.springframework.transaction.jta.JtaTransactionManager )
and non-Spring JTA transactions (i.e. |
SessionHolder.java | Class | Session holder, wrapping a Hibernate Session and a Hibernate Transaction. |
SpringSessionSynchronization.java | Class | Callback for resource cleanup at the end of a Spring-managed JTA transaction,
that is, when participating in a JtaTransactionManager transaction. |
TransactionAwareDataSourceConnectionProvider.java | Class | Subclass of LocalDataSourceConnectionProvider that returns a
transaction-aware proxy for the exposed DataSource. |