|
spring-orm | ||||||||
PREV NEXT | FRAMES NO FRAMES |
FactoryBean
that
creates a local JPA EntityManagerFactory
instance within a Spring application context.JpaVendorAdapter
implementation that defines common properties,
to be translated into vendor-specific JPA properties by concrete subclasses.null
).
FactoryBean
that creates
a Hibernate SessionFactory
within a Spring application
context, providing general infrastructure not related to Hibernate's
specific configuration API.Session
from the thread and close it (in
single session mode), or process deferred close for all sessions that have
been opened during the current request (in deferred close mode).
Session
from the thread and close it).
Transaction.begin
method.
Transaction.begin
method.
null
).
null
).
null
).
SessionFactory
.
beginTransaction
implementation does not require any cleanup.
Session
cache, and
cancel all pending saves, updates and deletes.
null
).
Connection.close
.
Iterator
created by any of the various
iterate(..)
operations, instead of waiting until the
session is closed or disconnected.
org.springframework.dao
hierarchy.
org.springframework.dao
hierarchy.
org.springframework.dao
hierarchy.
org.springframework.dao
hierarchy.
org.springframework.dao
hierarchy.
org.springframework.dao
hierarchy.
org.springframework.dao
hierarchy.
org.springframework.dao
hierarchy.
org.springframework.dao
hierarchy, using the
given SQLExceptionTranslator.
org.springframework.dao
hierarchy.
org.springframework.dao
hierarchy, using the
given SQLExceptionTranslator.
org.springframework.dao
hierarchy.
org.springframework.dao
hierarchy.
org.springframework.dao
hierarchy.
org.springframework.dao
hierarchy.
joinTransaction()
method, but is not automatically
managed by the container.
joinTransaction()
method, but is not automatically
managed by the container.
joinTransaction()
method, but is not automatically
managed by the container.
getObject()
method.
persistence.xml
file:
"classpath*:META-INF/persistence.xml".
JdoDialect
interface.JpaDialect
interface.PersistenceUnitManager
interface.HibernateTemplate.execute
with an active
Hibernate Session
.
JdoTemplate.execute
with an active JDO
PersistenceManager
.
JpaTemplate.execute
with an active
JPA EntityManager
.
SqlMapClientTemplate.execute
with an active
SqlMapExecutor
.
JpaDialect
implementation for Eclipse
Persistence Services (EclipseLink).JpaVendorAdapter
implementation for Eclipse
Persistence Services (EclipseLink).Filter
for the given filter name.
EntityManagerFactory
.EntityManager
to be implemented by
EntityManager proxies.Session
cache.
Session
.
List
.
SqlMapClientTemplate.execute(org.springframework.orm.ibatis.SqlMapClientCallback)
method
SqlMapClientTemplate.execute(org.springframework.orm.ibatis.SqlMapClientCallback)
method
Session
.
Session
.
null
if not found.
null
if not found.
null
if not found.
null
if not found.
Callable
to bind the Hibernate
session
to the async request thread.
Callable
to bind the Hibernate
session
to the async request thread.
persistence.xml
against Spring-managed DataSource instances.
persistence.xml
.
null
if none.
null
if none.
Session
(in single session mode).
null
,
indicating that no JDBC Connection can be provided.
null
if not known.
null
if there is none.
null
if not known.
EntityManager
.
null
if it is an unnamed default.
HibernateTemplate
and HibernateInterceptor
,
defining common properties such as SessionFactory and flushing behavior.PersistenceExceptionTranslator
capable of translating HibernateException
instances to Spring's DataAccessException
hierarchy.PersistenceExceptionTranslator
capable of translating HibernateException
instances to Spring's DataAccessException
hierarchy.JpaDialect
implementation for
Hibernate EntityManager.FactoryBean
that exposes the underlying SessionFactory
behind a Hibernate-backed JPA EntityManagerFactory
.JpaVendorAdapter
implementation for
Hibernate EntityManager.HibernateTemplate
.org.springframework.dao
exceptions.org.springframework.dao
exceptions.PlatformTransactionManager
implementation for a single Hibernate SessionFactory
.PlatformTransactionManager
implementation for a single Hibernate SessionFactory
.merge
method).TransactionAwarePersistenceManagerFactoryProxy
and
SpringPersistenceManagerProxyBean
)TransactionAwarePersistenceManagerFactoryProxy
and
SpringPersistenceManagerProxyBean
)TransactionAwarePersistenceManagerFactoryProxy
and SpringPersistenceManagerProxyBean
)org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor
TransactionAwarePersistenceManagerFactoryProxy
and
SpringPersistenceManagerProxyBean
)org.springframework.dao
exceptions.TransactionAwarePersistenceManagerFactoryProxy
and
SpringPersistenceManagerProxyBean
)PlatformTransactionManager
implementation
for a single JDO PersistenceManagerFactory
.@PersistenceContext
)@PersistenceContext
)@PersistenceContext
)@PersistenceContext
) and
AOP-driven exception translation through
org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor
@PersistenceContext
).
Note that this interface did not get upgraded to JPA 2.0 and never will.org.springframework.dao
exceptions.@PersistenceContext
)
Note that this class did not get upgraded to JPA 2.0 and never will.PlatformTransactionManager
implementation
for a single JPA EntityManagerFactory
.FactoryBean
that creates a JPA
EntityManagerFactory
according to JPA's standard
container bootstrap contract.FactoryBean
that creates a JPA
EntityManagerFactory
according to JPA's standard
standalone bootstrap contract.FactoryBean
that creates a
JDO PersistenceManagerFactory
.FactoryBean
that creates a
Hibernate SessionFactory
.FactoryBean
that creates a Hibernate
SessionFactory
.Configuration
class,
adding SpringSessionContext
as a default and providing convenient ways
to specify a DataSource and an application class loader.TransactionManagerLookup
interface
that returns a Spring-managed JTA TransactionManager
, determined
by LocalSessionFactoryBean's "jtaTransactionManager" property.PersistenceUnitInfo
interface,
used to bootstrap an EntityManagerFactory in a container.JpaDialect
implementation for Apache OpenJPA.JpaVendorAdapter
implementation for Apache OpenJPA.Session
to the
thread for the entire processing of the request.OpenSessionInViewInterceptor
,
turning the default flushMode to FLUSH_NEVER
.
Session
to the
thread for the entire processing of the request.org.springframework.orm.hibernate3
package.org.springframework.orm.hibernate4
package.org.springframework.orm.ibatis
package.org.springframework.orm.jdo
package.org.springframework.orm.jpa
package.SessionFactory
toString()
representation for the "participate in existing
session handling" request attribute.
SessionFactory
toString()
representation for the "participate in existing
session handling" request attribute.
PersistenceUnit
and PersistenceContext
annotations, for injection of
the corresponding JPA resources EntityManagerFactory
and EntityManager
.Session
before view rendering, if necessary.
Session
from the main thread but leave
the Session
open for further use from the async thread.
Session
from the main thread leaving
it open for further use from an async thread.
AnnotationSessionFactoryBean.postProcessAnnotationConfiguration(org.hibernate.cfg.AnnotationConfiguration)
.
Session
according to the settings of this
HibernateAccessor
and bind it to the thread via the
TransactionSynchronizationManager
.
Session
according to the settings of this
HibernateAccessor
and bind it to the thread via the
TransactionSynchronizationManager
.
persistence.xml
files,
parsing all matching files, configuring and post-processing them.
getJdbcConnection
.
getJdbcConnection
.
saveOrUpdate
or merge
usage
Configuration
.
Session
should be created when no transactional
Session
can be found for the current thread.
setDataSource
.
setDataSource
.
getConnectionFactory()
method.
Database
enum:
DB2, DERBY, H2, HSQL, INFORMIX, MYSQL, ORACLE, POSTGRESQL, SQL_SERVER, SYBASE
persistence.xml
against Spring-managed DataSource instances.
persistence.xml
against Spring-managed DataSources.
persistence.xml
.
@PersistenceUnit
/
@PersistenceContext
annotation.
org.springframework.dao
exception hierarchy.
org.springframework.dao
exception hierarchy.
org.springframework.dao
exception hierarchy.
getCurrentSession()
method, returning the
Session that's associated with the current Spring-managed transaction, if any.
Session
.
SessionFactory.getCurrentSession()
instead of SessionFactory.openSession()
(with a Spring
TransactionSynchronizationManager
check preceding it).
SessionFactory.getCurrentSession()
instead of SessionFactory.openSession()
(with a Spring
TransactionSynchronizationManager
check preceding it).
JDOHelper.getPersistenceManagerFactory
(if any).
Persistence.createEntityManagerFactory
(if any).
EntityManagerFactory.createEntityManager(Map)
(if any).
EntityManagerFactory.createEntityManager(Map)
(if any).
Persistence.createEntityManagerFactory
(if any).
EntityManagerFactory.createEntityManager(Map)
(if any).
EntityManagerFactory.createEntityManager(Map)
(if any).
<mapping-file>
entries in persistence.xml
) for the default persistence unit.
<mapping-file>
entries in persistence.xml
) for the default persistence unit.
persistence.xml
markers in them.
persistence.xml
markers in them.
persistence.xml
file
we want to use.
persistence.xml
files to load.
persistence.xml
files to load.
<properties>
tag in the sql-map-config.xml
file.
FactoryBean
that exposes a shared JPA EntityManager
reference for a given EntityManagerFactory.EntityManager
for a given EntityManagerFactory
.LocalEntityManagerFactoryBean
and
PersistenceUnitManager
implementations.FlushMode.MANUAL
for read-only transactions.PersistenceManager
interface,
delegating to the current thread-bound PersistenceManager (the Spring-managed
transactional PersistenceManager or the single OpenPersistenceManagerInView
PersistenceManager, if any) on each invocation.SqlMapExecutor
interface.FactoryBean
that creates an
iBATIS SqlMapClient
.SqlMapClientTemplate
.SqlMapClient
API, converting checked
SQLExceptions into unchecked DataAccessExceptions, following the
org.springframework.dao
exception hierarchy.PersistenceManager
interface,
delegating to a thread-bound PersistenceManager on each invocation -
as defined by the JDO 2.1 specification.false
: We cannot guarantee
to receive the same Connection within a transaction, not even when
dealing with a JNDI DataSource.
true
,
since we're assuming a JTA DataSource.
true
: We can guarantee
to receive the same Connection within a transaction, as we are
exposing a TransactionAwareDataSourceProxy.
EclipseLinkJpaDialect
EclipseLinkJpaVendorAdapter
PersistenceManagerFactory
,
returning the current thread-bound PersistenceManager (the Spring-managed
transactional PersistenceManager or the single OpenPersistenceManagerInView
PersistenceManager) on getPersistenceManager()
, if any.org.springframework.dao
hierarchy if necessary, or
return the exception itself if it is not persistence related
Session
.
Session
.
Session
.
Session
.
|
spring-orm | ||||||||
PREV NEXT | FRAMES NO FRAMES |