|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.orm.toplink.AbstractSessionFactory
public abstract class AbstractSessionFactory
Abstract SessionFactory implementation that creates proxies for "managed" client Sessions and transaction-aware Session references.
Delegates to two template methods:
getMasterSession()
,
createClientSession()
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
logger
Logger available to subclasses |
Constructor Summary | |
---|---|
AbstractSessionFactory()
|
Method Summary | |
---|---|
protected abstract oracle.toplink.sessions.Session |
createClientSession()
Create a new client Session for this factory's master Session. |
oracle.toplink.sessions.Session |
createManagedClientSession()
Create a "managed" client Session reference for an underlying client Session created for this factory. |
oracle.toplink.sessions.Session |
createSession()
Create a plain client Session for this factory's master Session. |
oracle.toplink.sessions.Session |
createTransactionAwareSession()
Create a transaction-aware Session reference for this factory's master Session, expecting transactions to be registered for this SessionFactory. |
oracle.toplink.sessions.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. |
protected abstract oracle.toplink.sessions.Session |
getMasterSession()
Return this factory's "master" Session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.orm.toplink.SessionFactory |
---|
close |
Field Detail |
---|
protected final org.apache.commons.logging.Log logger
Constructor Detail |
---|
public AbstractSessionFactory()
Method Detail |
---|
public oracle.toplink.sessions.Session createSession() throws oracle.toplink.exceptions.TopLinkException
createSession
in interface SessionFactory
oracle.toplink.exceptions.TopLinkException
- in case of errorscreateClientSession()
public oracle.toplink.sessions.Session createManagedClientSession() throws oracle.toplink.exceptions.TopLinkException
createManagedClientSession
in interface SessionFactory
oracle.toplink.exceptions.TopLinkException
- in case of errorscreateClientSession()
public oracle.toplink.sessions.Session createTransactionAwareSession() throws oracle.toplink.exceptions.TopLinkException
createTransactionAwareSession
in interface SessionFactory
oracle.toplink.exceptions.TopLinkException
- in case of errorsgetMasterSession()
,
Session.getActiveSession()
,
Session.getActiveUnitOfWork()
public oracle.toplink.sessions.Session createTransactionAwareSession(SessionFactory sessionFactory) throws oracle.toplink.exceptions.TopLinkException
This method is public to allow custom SessionFactory facades to access it directly, if necessary.
sessionFactory
- the SessionFactory that transactions
are expected to be registered for
oracle.toplink.exceptions.TopLinkException
getMasterSession()
,
Session.getActiveSession()
,
Session.getActiveUnitOfWork()
protected abstract oracle.toplink.sessions.Session getMasterSession()
Used for creating transaction-aware Session reference.
protected abstract oracle.toplink.sessions.Session createClientSession() throws oracle.toplink.exceptions.TopLinkException
Used for creating plain Sessions and "managed" client Sessions.
oracle.toplink.exceptions.TopLinkException
- if creation of a client Session failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |