org.hsqldb
Class SessionManager

java.lang.Object
  extended byorg.hsqldb.SessionManager

public class SessionManager
extends Object

Container that maintains a map of session id's to Session objects. Responsible for managing opening and closing of sessions.

Since:
1.7.2
Version:
1.7.2
Author:
fredt@usrs

Constructor Summary
SessionManager(Database db, org.hsqldb.User sysUser)
          Constructs an new SessionManager handling the specified Database using the specified SYS User
 
Method Summary
 void closeAllSessions()
          Closes all Sessions registered with this SessionManager.
 Session getSysSession()
          Retrieves the special SYS Session.
 Session newSession(Database db, org.hsqldb.User user, boolean readonly)
          Binds the specified Session object into this SessionManager's active Session registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionManager

public SessionManager(Database db,
                      org.hsqldb.User sysUser)
Constructs an new SessionManager handling the specified Database using the specified SYS User

Method Detail

newSession

public Session newSession(Database db,
                          org.hsqldb.User user,
                          boolean readonly)
Binds the specified Session object into this SessionManager's active Session registry. This method is typically called internally from Database.connect(username,password) as the final step, when a successful connection has been made.

Parameters:
db - the database to which the new Session is initially connected
user - the initial Session User
readonly - the initial ReadOnly attribute for the new Session

getSysSession

public Session getSysSession()
Retrieves the special SYS Session.

Returns:
the special SYS Session

closeAllSessions

public void closeAllSessions()
Closes all Sessions registered with this SessionManager.



Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.