org.springframework.orm.hibernate3 |
Package providing integration of
Hibernate3
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 3.x only.
See the org.springframework.orm.hibernate package for Hibernate 2.1 support.
|
Java Source File Name | Type | Comment |
AbstractSessionFactoryBean.java | Class | Abstract
org.springframework.beans.factory.FactoryBean that creates
a Hibernate
org.hibernate.SessionFactory within a Spring application
context. |
FilterDefinitionFactoryBean.java | Class | Convenient FactoryBean for defining Hibernate FilterDefinitions. |
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. |
HibernateTransactionManager.java | Class | org.springframework.transaction.PlatformTransactionManager implementation for a single Hibernate
org.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
org.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. |
SpringSessionContext.java | Class | Implementation of Hibernate 3.1's CurrentSessionContext interface
that delegates to Spring's SessionFactoryUtils for providing a
Spring-managed current Session.
Used by Spring's LocalSessionFactoryBean if told to not expose a
transaction-aware SessionFactory proxy. |
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. |
TypeDefinitionBean.java | Class | Bean that encapsulates a Hibernate type definition. |