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 allows for customizing integration with a specific JDO provider,
in particular regarding transaction management and exception translation. |
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 internally by
JdoTemplate ,
JdoInterceptor and
JdoTransactionManager . |
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. |