|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.sessions.factories.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:
Field Summary | |
---|---|
protected org.eclipse.persistence.internal.sessions.AbstractSession |
defaultSession
|
protected static SessionManager |
manager
|
protected java.util.Map |
sessions
|
protected static boolean |
shouldPerformDTDValidation
|
protected static boolean |
shouldUseSchemaValidation
Allow for usage of schema validation to be configurable. |
Constructor Summary | |
---|---|
SessionManager()
PUBLIC: The default constructor to create a new session manager. |
Method Summary | |
---|---|
void |
addSession(Session session)
INTERNAL: add an named session to the hashtable. |
void |
addSession(java.lang.String sessionName,
Session session)
ADVANCED: add an named session to the hashtable. |
void |
destroyAllSessions()
INTERNAL: Destroy all sessions held onto by this manager. |
void |
destroySession(java.lang.String sessionName)
INTERNAL: Destroy the session defined by sessionName on this manager. |
Session |
getDefaultSession()
PUBLIC: Return the default session. |
org.eclipse.persistence.internal.sessions.factories.model.SessionConfigs |
getInternalMWConfigObjects(java.lang.String resourceName,
java.lang.ClassLoader objectClassLoader)
INTERNAL: |
org.eclipse.persistence.internal.sessions.factories.model.SessionConfigs |
getInternalMWConfigObjects(java.lang.String resourceName,
java.lang.ClassLoader objectClassLoader,
boolean validate)
INTERNAL: |
static SessionManager |
getManager()
PUBLIC: Return the singleton session manager. |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession(java.lang.String sessionName)
PUBLIC: Return the session by name. |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession(java.lang.String sessionName,
boolean shouldLoginSession)
PUBLIC: Return the session by name. |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession(java.lang.String sessionName,
boolean shouldLoginSession,
boolean shouldRefreshSession)
PUBLIC: Return the session by name. |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession(java.lang.String sessionName,
java.lang.ClassLoader objectClassLoader)
PUBLIC: Return the session by name. |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession(java.lang.String sessionName,
java.lang.Object objectBean)
PUBLIC: Return the session by name, using the classloader of the Object specified. |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession(java.lang.String sessionName,
java.lang.String filename)
PUBLIC: Return the session by name, in the file specified. |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession(java.lang.String sessionName,
java.lang.String filename,
java.lang.ClassLoader classLoader)
PUBLIC: Return the session by name, in the file specified, using the class loader to find the resource. |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession(XMLSessionConfigLoader loader)
PUBLIC: Return the session by name, loading the configuration from the file specified in the loader, using the loading options provided on the loader. |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession(XMLSessionConfigLoader loader,
java.lang.String sessionName,
java.lang.ClassLoader objectClassLoader)
PUBLIC: Return the session by name, loading the configuration from the file specified in the XMLSessionConfigLoader. |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession(XMLSessionConfigLoader loader,
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 loader. |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession(XMLSessionConfigLoader loader,
java.lang.String sessionName,
java.lang.ClassLoader objectClassLoader,
boolean shouldLoginSession,
boolean shouldRefreshSession,
boolean shouldCheckClassLoader)
PUBLIC: Return the session by name, loading the configuration from the file specified in the loader. |
java.util.Map |
getSessions()
INTERNAL: Return a hashtable on all sessions. |
protected static SessionManager |
initializeManager()
INTERNAL: Initialize the singleton session manager. |
void |
setDefaultSession(Session defaultSession)
PUBLIC: Set the default session. |
static void |
setManager(SessionManager theManager)
INTERNAL: Set the singleton session manager. |
void |
setSessions(java.util.Hashtable sessions)
INTERNAL: Set a hashtable of all sessions |
static void |
setShouldUseSchemaValidation(boolean value)
PUBLIC: Set if schema validation will be used when parsing the 10g (10.1.3) sessions XML. |
static boolean |
shouldUseSchemaValidation()
PUBLIC: Return if schema validation will be used when parsing the 10g (10.1.3) sessions XML. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static boolean shouldUseSchemaValidation
protected static SessionManager manager
protected org.eclipse.persistence.internal.sessions.AbstractSession defaultSession
protected java.util.Map sessions
protected static boolean shouldPerformDTDValidation
Constructor Detail |
---|
public SessionManager()
Method Detail |
---|
public static boolean shouldUseSchemaValidation()
public static void setShouldUseSchemaValidation(boolean value)
public void addSession(Session session)
public void addSession(java.lang.String sessionName, Session session)
public Session getDefaultSession()
public void destroySession(java.lang.String sessionName)
public void destroyAllSessions()
public org.eclipse.persistence.internal.sessions.factories.model.SessionConfigs getInternalMWConfigObjects(java.lang.String resourceName, java.lang.ClassLoader objectClassLoader)
public org.eclipse.persistence.internal.sessions.factories.model.SessionConfigs getInternalMWConfigObjects(java.lang.String resourceName, java.lang.ClassLoader objectClassLoader, boolean validate)
public static SessionManager getManager()
protected static SessionManager initializeManager()
public org.eclipse.persistence.internal.sessions.AbstractSession getSession(java.lang.String sessionName)
public org.eclipse.persistence.internal.sessions.AbstractSession getSession(java.lang.String sessionName, boolean shouldLoginSession)
public org.eclipse.persistence.internal.sessions.AbstractSession getSession(java.lang.String sessionName, boolean shouldLoginSession, boolean shouldRefreshSession)
public org.eclipse.persistence.internal.sessions.AbstractSession getSession(java.lang.String sessionName, java.lang.Object objectBean)
public org.eclipse.persistence.internal.sessions.AbstractSession getSession(java.lang.String sessionName, java.lang.String filename)
public org.eclipse.persistence.internal.sessions.AbstractSession getSession(java.lang.String sessionName, java.lang.String filename, java.lang.ClassLoader classLoader)
public org.eclipse.persistence.internal.sessions.AbstractSession getSession(java.lang.String sessionName, java.lang.ClassLoader objectClassLoader)
public org.eclipse.persistence.internal.sessions.AbstractSession getSession(XMLSessionConfigLoader loader, java.lang.String sessionName, java.lang.ClassLoader objectClassLoader)
public org.eclipse.persistence.internal.sessions.AbstractSession getSession(XMLSessionConfigLoader loader, java.lang.String sessionName, java.lang.ClassLoader objectClassLoader, boolean shouldLoginSession, boolean shouldRefreshSession)
public org.eclipse.persistence.internal.sessions.AbstractSession getSession(XMLSessionConfigLoader loader, java.lang.String sessionName, java.lang.ClassLoader objectClassLoader, boolean shouldLoginSession, boolean shouldRefreshSession, boolean shouldCheckClassLoader)
public org.eclipse.persistence.internal.sessions.AbstractSession getSession(XMLSessionConfigLoader loader)
public void setSessions(java.util.Hashtable sessions)
public java.util.Map getSessions()
public void setDefaultSession(Session defaultSession)
public static void setManager(SessionManager theManager)
|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |