| java.lang.Object org.springframework.orm.toplink.AbstractSessionFactory
All known Subclasses: org.springframework.orm.toplink.SessionBrokerSessionFactory, org.springframework.orm.toplink.ServerSessionFactory,
Field Summary | |
final protected Log | logger |
Method Summary | |
abstract protected Session | createClientSession() Create a new client Session for this factory's master Session. | public Session | createManagedClientSession() Create a "managed" client Session reference for an underlying
client Session created for this factory. | public Session | createSession() Create a plain client Session for this factory's master Session. | public Session | createTransactionAwareSession() Create a transaction-aware Session reference for this factory's master Session,
expecting transactions to be registered for this SessionFactory. | public Session | createTransactionAwareSession(SessionFactory sessionFactory) Create a transaction-aware Session reference for this factory's master Session,
expecting transactions to be registered for the given SessionFactory. | abstract protected Session | getMasterSession() Return this factory's "master" Session. |
logger | final protected Log logger(Code) | | Logger available to subclasses
|
createClientSession | abstract protected Session createClientSession() throws TopLinkException(Code) | | Create a new client Session for this factory's master Session.
For example, a TopLink ClientSession.
Used for creating plain Sessions and "managed" client Sessions.
throws: TopLinkException - if creation of a client Session failed |
createManagedClientSession | public Session createManagedClientSession() throws TopLinkException(Code) | | Create a "managed" client Session reference for an underlying
client Session created for this factory.
See Also: AbstractSessionFactory.createClientSession() |
createTransactionAwareSession | public Session createTransactionAwareSession() throws TopLinkException(Code) | | Create a transaction-aware Session reference for this factory's master Session,
expecting transactions to be registered for this SessionFactory.
See Also: AbstractSessionFactory.getMasterSession() See Also: oracle.toplink.sessions.Session.getActiveSession See Also: oracle.toplink.sessions.Session.getActiveUnitOfWork |
createTransactionAwareSession | public Session createTransactionAwareSession(SessionFactory sessionFactory) throws TopLinkException(Code) | | Create a transaction-aware Session reference for this factory's master Session,
expecting transactions to be registered for the given SessionFactory.
This method is public to allow custom SessionFactory facades to access
it directly, if necessary.
Parameters: sessionFactory - the SessionFactory that transactionsare expected to be registered for See Also: AbstractSessionFactory.getMasterSession() See Also: oracle.toplink.sessions.Session.getActiveSession See Also: oracle.toplink.sessions.Session.getActiveUnitOfWork |
getMasterSession | abstract protected Session getMasterSession()(Code) | | Return this factory's "master" Session.
For example, a TopLink ServerSession.
Used for creating transaction-aware Session reference.
|
|
|