|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.core.database.recman.PMDSessionManager
public class PMDSessionManager
Implements the SessionManagerIfc for the page managed database and is responsible for managing the lifecycle all sessions. A session-per-thread restriction is enforced, meaning that a session belongs to one and only one session and that threads cannot share sessions.
This class conforms to the singleton design pattern and is accessible through PMDSessionManager.instance(). for a number of interfaces and i
SessionManagerIfc
,
org,exolab.core.foundation.SessionIfc
Method Summary | |
---|---|
void |
destroySession()
Destroy the session associated with thew current thread. |
SessionIfc |
getSession()
Return the session associated with the current thread. |
static void |
init(PageManagedDatabase database)
This static method must be called to initialise the session manager with a database. |
static PMDSessionManager |
instance()
This method returns the sxingleton instance of the PMDSessionManager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void init(PageManagedDatabase database)
Although not programmatically enforced this method must be called before accessing any other class or instance method
database
- public static PMDSessionManager instance()
public SessionIfc getSession() throws FailedToCreateSessionException
SessionManagerIfc
getSession
in interface SessionManagerIfc
FailedToCreateSessionException
public void destroySession() throws FailedToDestroySessionException
SessionManagerIfc
destroySession
in interface SessionManagerIfc
FailedToDestroySessionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |