| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.hsqldb.SessionManager
Container that maintains a map of session id's to Session objects. Responsible for managing opening and closing of sessions.
| 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 | 
public SessionManager(Database db,
                      org.hsqldb.User sysUser)
| Method Detail | 
public Session newSession(Database db,
                          org.hsqldb.User user,
                          boolean readonly)
Database.connect(username,password)
  as the final step, when a successful connection has been made.
db - the database to which the new Session is initially connecteduser - the initial Session Userreadonly - the initial ReadOnly attribute for the new Sessionpublic Session getSysSession()
public void closeAllSessions()
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||