com.objectwave.transactionalSupport
Class SessionManager

java.lang.Object
  |
  +--com.objectwave.transactionalSupport.SessionManager

public class SessionManager
extends java.lang.Object

Used to manage multiple threads. It is probably better for the application programmer to use the convience methods on Session rather than referencing this singleton object.

Version:
2.2 March 2000
See Also:
Session

Constructor Summary
SessionManager()
           
 
Method Summary
 Session create(java.lang.String name)
          Create a new session object with the provided name.
static SessionManager getDefaultManager()
           
 Session getSession()
          Get the session associated with the current thread.
protected  void join(Session s)
          Have the current thread join the session provided by the parameter.
protected  void join(java.lang.Thread d, Session s)
          Deprecated. - Only the current thread can join a session, nobody can do it for you.
 void leave()
          Have the current thread leave the session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionManager

public SessionManager()
Method Detail

create

public Session create(java.lang.String name)
Create a new session object with the provided name. Update transaction log to be aware that Sessions are being used to manage transactions.


getDefaultManager

public static final SessionManager getDefaultManager()
Returns:
SessionManager The singleton instance.

getSession

public Session getSession()
Get the session associated with the current thread. Useful if you have lost a reference to the current session.


join

protected void join(Session s)
Have the current thread join the session provided by the parameter.


join

protected void join(java.lang.Thread d,
                    Session s)
Deprecated. - Only the current thread can join a session, nobody can do it for you.


leave

public void leave()
Have the current thread leave the session. This will have an effect upon the transactional view of the thread.