|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.tools.sessionmanagement.SessionManager
public class 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()
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. |
Session |
getDefaultSession()
Return the default session. |
static SessionManager |
getManager()
Return the singleton session manager. |
oracle.toplink.internal.sessions.AbstractSession |
getSession(java.lang.String sessionName)
Return the session by name. |
oracle.toplink.internal.sessions.AbstractSession |
getSession(java.lang.String sessionName,
boolean shouldLoginSession)
Return the session by name. |
oracle.toplink.internal.sessions.AbstractSession |
getSession(java.lang.String sessionName,
boolean shouldLoginSession,
boolean shouldRefreshSession)
Return the session by name. |
oracle.toplink.internal.sessions.AbstractSession |
getSession(java.lang.String sessionName,
java.lang.ClassLoader objectClassLoader)
Return the session by name. |
oracle.toplink.internal.sessions.AbstractSession |
getSession(java.lang.String sessionName,
java.lang.Object objectBean)
Return the session by name, using the classloader of the Object specified. |
oracle.toplink.internal.sessions.AbstractSession |
getSession(java.lang.String sessionName,
java.lang.String filename)
Return the session by name, in the file specified. |
oracle.toplink.internal.sessions.AbstractSession |
getSession(java.lang.String sessionName,
java.lang.String filename,
java.lang.ClassLoader classLoader)
Return the session by name, in the file specified, using the class loader to find the resource. |
oracle.toplink.internal.sessions.AbstractSession |
getSession(XMLLoader xmlLoader,
java.lang.String sessionName,
java.lang.ClassLoader objectClassLoader)
Deprecated. since OracleAS TopLink 10g (10.1.3). Replaced by getSession(XMLSessionConfigLoader, String, ClassLoader) |
oracle.toplink.internal.sessions.AbstractSession |
getSession(XMLLoader xmlLoader,
java.lang.String sessionName,
java.lang.ClassLoader objectClassLoader,
boolean shouldLoginSession,
boolean shouldRefreshSession)
Deprecated. since OracleAS TopLink 10g (10.1.3). Replaced by getSession(XMLSessionConfigLoader, String, ClassLoader, boolean, boolean) |
oracle.toplink.internal.sessions.AbstractSession |
getSession(XMLSessionConfigLoader loader)
Return the session by name, loading the configuration from the file specified in the loader, using the loading options provided on the loader. |
oracle.toplink.internal.sessions.AbstractSession |
getSession(XMLSessionConfigLoader loader,
java.lang.String sessionName,
java.lang.ClassLoader objectClassLoader)
Return the session by name, loading the configuration from the file specified in the XMLSessionConfigLoader. |
oracle.toplink.internal.sessions.AbstractSession |
getSession(XMLSessionConfigLoader loader,
java.lang.String sessionName,
java.lang.ClassLoader objectClassLoader,
boolean shouldLoginSession,
boolean shouldRefreshSession)
Return the session by name, loading the configuration from the file specified in the loader. |
oracle.toplink.internal.sessions.AbstractSession |
getSession(XMLSessionConfigLoader loader,
java.lang.String sessionName,
java.lang.ClassLoader objectClassLoader,
boolean shouldLoginSession,
boolean shouldRefreshSession,
boolean shouldCheckClassLoader)
Return the session by name, loading the configuration from the file specified in the loader. |
void |
setDefaultSession(Session defaultSession)
Set the default session. |
static void |
setShouldPerformDTDValidation(boolean shouldPerformDTDValidation0)
Deprecated. since OracleAS TopLink 10g (10.1.3). Replaced by setShouldUseSchemaValidation(boolean) |
static void |
setShouldUseSchemaValidation(boolean value)
Set if schema validation will be used when parsing the 10g (10.1.3) sessions XML. |
static boolean |
shouldPerformDTDValidation()
Deprecated. since OracleAS TopLink 10g (10.1.3). Replaced by shouldUseSchemaValidation() |
static boolean |
shouldUseSchemaValidation()
Return if schema validation will be used when parsing the 10g (10.1.3) sessions XML. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionManager()
Method Detail |
---|
public static boolean shouldUseSchemaValidation()
public static void setShouldUseSchemaValidation(boolean value)
public void addSession(java.lang.String sessionName, Session session)
public Session getDefaultSession()
public static SessionManager getManager()
public oracle.toplink.internal.sessions.AbstractSession getSession(java.lang.String sessionName)
public oracle.toplink.internal.sessions.AbstractSession getSession(java.lang.String sessionName, boolean shouldLoginSession)
public oracle.toplink.internal.sessions.AbstractSession getSession(java.lang.String sessionName, boolean shouldLoginSession, boolean shouldRefreshSession)
public oracle.toplink.internal.sessions.AbstractSession getSession(java.lang.String sessionName, java.lang.Object objectBean)
public oracle.toplink.internal.sessions.AbstractSession getSession(java.lang.String sessionName, java.lang.String filename)
public oracle.toplink.internal.sessions.AbstractSession getSession(java.lang.String sessionName, java.lang.String filename, java.lang.ClassLoader classLoader)
public oracle.toplink.internal.sessions.AbstractSession getSession(java.lang.String sessionName, java.lang.ClassLoader objectClassLoader)
public oracle.toplink.internal.sessions.AbstractSession getSession(XMLLoader xmlLoader, java.lang.String sessionName, java.lang.ClassLoader objectClassLoader)
getSession(XMLSessionConfigLoader, String, ClassLoader)
public oracle.toplink.internal.sessions.AbstractSession getSession(XMLSessionConfigLoader loader, java.lang.String sessionName, java.lang.ClassLoader objectClassLoader)
public oracle.toplink.internal.sessions.AbstractSession getSession(XMLLoader xmlLoader, java.lang.String sessionName, java.lang.ClassLoader objectClassLoader, boolean shouldLoginSession, boolean shouldRefreshSession)
getSession(XMLSessionConfigLoader, String, ClassLoader, boolean, boolean)
public oracle.toplink.internal.sessions.AbstractSession getSession(XMLSessionConfigLoader loader, java.lang.String sessionName, java.lang.ClassLoader objectClassLoader, boolean shouldLoginSession, boolean shouldRefreshSession)
public oracle.toplink.internal.sessions.AbstractSession getSession(XMLSessionConfigLoader loader, java.lang.String sessionName, java.lang.ClassLoader objectClassLoader, boolean shouldLoginSession, boolean shouldRefreshSession, boolean shouldCheckClassLoader)
public oracle.toplink.internal.sessions.AbstractSession getSession(XMLSessionConfigLoader loader)
public void setDefaultSession(Session defaultSession)
public static boolean shouldPerformDTDValidation()
shouldUseSchemaValidation()
public static void setShouldPerformDTDValidation(boolean shouldPerformDTDValidation0)
setShouldUseSchemaValidation(boolean)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |