org.springframework.orm.toplink |
Package providing integration of
Oracle TopLink
with Spring concepts.
Contains SessionFactory helper classes, a template plus callback
for TopLink access, and an implementation of Spring's transaction SPI
for local TopLink transactions.
|
Java Source File Name | Type | Comment |
AbstractSessionFactory.java | Class | Abstract SessionFactory implementation that creates proxies for
"managed" client Sessions and transaction-aware Session references. |
LocalSessionFactory.java | Class | Convenient JavaBean-style factory for a TopLink SessionFactory instance.
Loads a TopLink sessions.xml file from the class path, exposing a
specific TopLink Session defined there (usually a ServerSession).
TopLink Session configuration is done using a sessions.xml file.
The most convenient way to create the sessions.xml file is to use
the Oracle TopLink SessionsEditor workbench. |
LocalSessionFactoryBean.java | Class | org.springframework.beans.factory.FactoryBean that creates a
TopLink
SessionFactory . |
ServerSessionFactory.java | Class | Full-fledged default implementation of the SessionFactory interface:
creates ClientSessions for a given ServerSession. |
SessionBrokerSessionFactory.java | Class | Spring SessionFactory implementation allowing users to
inject a TopLink Session built from a TopLink SessionBroker.
SessionBrokers are used identically to any other TopLink Session. |
SessionFactory.java | Interface | The SessionFactory interface serves as factory for TopLink Sessions,
allowing for dependency injection on thread-safe TopLink-based DAOs. |
SessionFactoryUtils.java | Class | Helper class featuring methods for TopLink Session handling,
allowing for reuse of TopLink Session instances within transactions. |
SessionHolder.java | Class | Session holder, wrapping a TopLink Session. |
SessionReadCallback.java | Class | Convenient abstract implementation of the TopLinkCallback interface,
exposing either the plain TopLink Session or the TopLink UnitOfWork
(which extends the Session interface) to code that reads persistent objects. |
SingleSessionFactory.java | Class | Simple implementation of the SessionFactory interface: always returns
the passed-in Session as-is. |
TopLinkAccessor.java | Class | Base class for TopLinkTemplate and TopLinkInterceptor, defining common properties
such as SessionFactory and JDBC exception translator.
Not intended to be used directly. |
TopLinkCallback.java | Interface | Callback interface for TopLink code. |
TopLinkInterceptor.java | Class | This interceptor binds a new TopLink 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. |
TopLinkJdbcException.java | Class | TopLink-specific subclass of DataAccessException, for JDBC exceptions
that TopLink rethrew. |
TopLinkOperations.java | Interface | Interface that specifies a basic set of TopLink operations,
implemented by
TopLinkTemplate . |
TopLinkOptimisticLockingFailureException.java | Class | TopLink-specific subclass of ObjectOptimisticLockingFailureException. |
TopLinkQueryException.java | Class | TopLink-specific subclass of InvalidDataAccessResourceUsageException,
thrown on invalid TopLink query syntax or behavior. |
TopLinkSystemException.java | Class | TopLink-specific subclass of UncategorizedDataAccessException,
for TopLink system errors that do not match any concrete
org.springframework.dao exceptions. |
TopLinkTemplate.java | Class | Helper class that simplifies TopLink data access code, and converts
TopLinkExceptions into unchecked DataAccessExceptions, following the
org.springframework.dao exception hierarchy.
The central method is execute , supporting TopLink access code
implementing the
TopLinkCallback interface. |
TopLinkTransactionManager.java | Class | org.springframework.transaction.PlatformTransactionManager implementation
for a single TopLink
SessionFactory . |
UnitOfWorkCallback.java | Class | Convenient abstract implementation of the TopLinkCallback interface,
exposing a UnitOfWork to perform write operations on. |