|
Oracle Application Server TopLink API Reference 10g (9.0.4) B10491-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.toplink.tools.sessionmanagement.SessionManager
Purpose: Global session location.
Description: This allows for a global session local which can be accessed globally from other classes. This is needed for EJB data stores as they must have a globally accessible place to access the session. This can be by EJB session beans, BMP beans and CMP beans as well as Servlets and other three-tier services.
Responsibilities:
Constructor Summary | |
SessionManager() PUBLIC: The default constructor to create a new session manager. |
Method Summary | |
void |
addSession(java.lang.String sessionName, Session session) ADVANCED: add an named session to the hashtable. |
void |
destroyAllSessions() PUBLIC: Destroy all sessions held onto by this manager. |
void |
destroySession(java.lang.String sessionName) PUBLIC: Destroy the session defined by sessionName on this manager. |
Session |
getDefaultSession() PUBLIC: Return the default session. |
static SessionManager |
getManager() PUBLIC: Return the singleton session manager. |
oracle.toplink.publicinterface.Session |
getSession(java.lang.String sessionName) PUBLIC: Return the session by name. |
oracle.toplink.publicinterface.Session |
getSession(java.lang.String sessionName, boolean shouldLoginSession) PUBLIC: Return the session by name. |
oracle.toplink.publicinterface.Session |
getSession(java.lang.String sessionName, java.lang.ClassLoader objectClassLoader) PUBLIC: Return the session by name. |
oracle.toplink.publicinterface.Session |
getSession(java.lang.String sessionName, java.lang.Object objectBean) Deprecated. |
oracle.toplink.publicinterface.Session |
getSession(XMLLoader xmlLoader, java.lang.String sessionName, java.lang.ClassLoader objectClassLoader) PUBLIC: Return the session by name, loading the configuration from the file specified in the xmlLoader. |
oracle.toplink.publicinterface.Session |
getSession(XMLLoader xmlLoader, java.lang.String sessionName, java.lang.ClassLoader objectClassLoader, boolean shouldLoginSession, boolean shouldRefreshSession) PUBLIC: Return the session by name, loading the configuration from the file specified in the xmlLoader. |
void |
setDefaultSession(Session defaultSession) PUBLIC: Set the default session. |
static void |
setShouldPerformDTDValidation(boolean shouldPerformDTDValidation0) PUBLIC: Set the shouldPerformDTDValidation flag. |
static boolean |
shouldPerformDTDValidation() PUBLIC: Get the shouldPerformDTDValidation flag. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SessionManager()
Method Detail |
public void addSession(java.lang.String sessionName, Session session)
public Session getDefaultSession()
public void destroySession(java.lang.String sessionName)
public void destroyAllSessions()
public static SessionManager getManager()
public oracle.toplink.publicinterface.Session getSession(java.lang.String sessionName)
public oracle.toplink.publicinterface.Session getSession(java.lang.String sessionName, boolean shouldLoginSession)
public oracle.toplink.publicinterface.Session getSession(java.lang.String sessionName, java.lang.Object objectBean)
public oracle.toplink.publicinterface.Session getSession(java.lang.String sessionName, java.lang.ClassLoader objectClassLoader)
public oracle.toplink.publicinterface.Session getSession(XMLLoader xmlLoader, java.lang.String sessionName, java.lang.ClassLoader objectClassLoader)
public oracle.toplink.publicinterface.Session getSession(XMLLoader xmlLoader, java.lang.String sessionName, java.lang.ClassLoader objectClassLoader, boolean shouldLoginSession, boolean shouldRefreshSession)
public void setDefaultSession(Session defaultSession)
public static boolean shouldPerformDTDValidation()
public static void setShouldPerformDTDValidation(boolean shouldPerformDTDValidation0)
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |