org.springframework.orm.jdo |
Package providing integration of JDO (Java Date Objects) with Spring concepts.
Contains PersistenceManagerFactory helper classes, a template plus callback for JDO
access, and an implementation of Spring's transaction SPI for local JDO transactions.
|
Java Source File Name | Type | Comment |
DefaultJdoDialect.java | Class | Default implementation of the JdoDialect interface. |
JdoAccessor.java | Class | Base class for JdoTemplate and JdoInterceptor, defining common
properties such as PersistenceManagerFactory and flushing behavior.
Note: With JDO, modifications to persistent objects are just possible
within a transaction (in contrast to Hibernate). |
JdoCallback.java | Interface | Callback interface for JDO code. |
JdoDialect.java | Interface | SPI strategy that encapsulates certain functionality that standard JDO 1.0 does
not offer despite being relevant in the context of O/R mapping, such as access to
the underlying JDBC Connection and explicit flushing of changes to the database.
Also defines various further hooks that even go beyond standard JDO 2.0.
To be implemented for specific JDO providers such as JPOX, Kodo, Lido,
Versant Open Access. |
JdoInterceptor.java | Class | This interceptor binds a new JDO PersistenceManager 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 PersistenceManager (e.g. |
JdoObjectRetrievalFailureException.java | Class | JDO-specific subclass of ObjectRetrievalFailureException. |
JdoOperations.java | Interface | Interface that specifies a basic set of JDO operations,
implemented by
JdoTemplate . |
JdoOptimisticLockingFailureException.java | Class | JDO-specific subclass of ObjectOptimisticLockingFailureException. |
JdoResourceFailureException.java | Class | JDO-specific subclass of DataAccessResourceFailureException. |
JdoSystemException.java | Class | JDO-specific subclass of UncategorizedDataAccessException,
for JDO system errors that do not match any concrete
org.springframework.dao exceptions. |
JdoTemplate.java | Class | Helper class that simplifies JDO data access code, and converts
JDOExceptions into Spring DataAccessExceptions, following the
org.springframework.dao exception hierarchy.
The central method is execute , supporting JDO access code
implementing the
JdoCallback interface. |
JdoTransactionManager.java | Class | org.springframework.transaction.PlatformTransactionManager implementation
for a single JDO
javax.jdo.PersistenceManagerFactory . |
JdoUsageException.java | Class | JDO-specific subclass of InvalidDataAccessApiUsageException. |
LocalPersistenceManagerFactoryBean.java | Class | org.springframework.beans.factory.FactoryBean that creates a
JDO
javax.jdo.PersistenceManagerFactory . |
PersistenceManagerFactoryUtils.java | Class | Helper class featuring methods for JDO PersistenceManager handling,
allowing for reuse of PersistenceManager instances within transactions.
Also provides support for exception translation.
Used by JdoTemplate, JdoInterceptor, and JdoTransactionManager.
Can also be used directly in application code, e.g. |
PersistenceManagerHolder.java | Class | Holder wrapping a JDO PersistenceManager. |
TransactionAwarePersistenceManagerFactoryProxy.java | Class | Proxy for a target JDO
javax.jdo.PersistenceManagerFactory ,
returning the current thread-bound PersistenceManager (the Spring-managed
transactional PersistenceManager or a the single OpenPersistenceManagerInView
PersistenceManager) on getPersistenceManager() , if any.
Essentially, getPersistenceManager() calls get seamlessly
forwarded to
PersistenceManagerFactoryUtils.getPersistenceManager .
Furthermore, PersistenceManager.close calls get forwarded to
PersistenceManagerFactoryUtils.releasePersistenceManager .
The main advantage of this proxy is that it allows DAOs to work with a
plain JDO PersistenceManagerFactory reference, while still participating in
Spring's (or a J2EE server's) resource and transaction management. |