|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.orm.toplink.AbstractSessionFactory org.springframework.orm.toplink.ServerSessionFactory
public class ServerSessionFactory
Full-fledged default implementation of the SessionFactory interface: creates ClientSessions for a given ServerSession.
Can create a special ClientSession subclass for managed Sessions, carrying an active UnitOfWork that expects to be committed at transaction completion (just like a plain TopLink Session does within a JTA transaction).
Can also create a transaction-aware Session reference that returns the
active transactional Session on getActiveSession
.
SingleSessionFactory
,
Session.getActiveUnitOfWork()
,
Session.getActiveSession()
Field Summary |
---|
Fields inherited from class org.springframework.orm.toplink.AbstractSessionFactory |
---|
logger |
Constructor Summary | |
---|---|
ServerSessionFactory(oracle.toplink.threetier.ServerSession serverSession)
Create a new ServerSessionFactory for the given ServerSession. |
Method Summary | |
---|---|
void |
close()
Shut the pre-configured TopLink ServerSession down. |
protected oracle.toplink.sessions.Session |
createClientSession()
Create a plain ClientSession for this factory's ServerSession. |
protected oracle.toplink.sessions.Session |
getMasterSession()
Return this factory's ServerSession as-is. |
Methods inherited from class org.springframework.orm.toplink.AbstractSessionFactory |
---|
createManagedClientSession, createSession, createTransactionAwareSession, createTransactionAwareSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerSessionFactory(oracle.toplink.threetier.ServerSession serverSession)
serverSession
- the TopLink ServerSession to create ClientSessions forMethod Detail |
---|
protected oracle.toplink.sessions.Session getMasterSession()
getMasterSession
in class AbstractSessionFactory
protected oracle.toplink.sessions.Session createClientSession() throws oracle.toplink.exceptions.TopLinkException
createClientSession
in class AbstractSessionFactory
oracle.toplink.exceptions.TopLinkException
- if creation of a client Session failedServerSession.acquireClientSession()
public void close()
DatabaseSession.logout()
,
Session.release()
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |