henplus
Class SessionManager

java.lang.Object
  extended by henplus.SessionManager

public final class SessionManager
extends Object


Method Summary
 void addSession(String sessionName, SQLSession session)
           
 void closeAll()
           
 boolean closeCurrentSession()
           
 Iterator completeSessionName(String partialSession)
          Used from several commands that need session name completion.
 SQLSession getCurrentSession()
           
 String getFirstSessionName()
           
static SessionManager getInstance()
           
 SQLSession getSessionByName(String name)
           
 int getSessionCount()
           
 SortedSet getSessionNames()
           
 boolean hasSessions()
           
 SQLSession removeSessionWithName(String sessionName)
           
 int renameSession(String oldSessionName, String newSessionName)
           
 boolean sessionNameExists(String sessionName)
           
 void setCurrentSession(SQLSession session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SessionManager getInstance()

addSession

public void addSession(String sessionName,
                       SQLSession session)

removeSessionWithName

public SQLSession removeSessionWithName(String sessionName)

getSessionByName

public SQLSession getSessionByName(String name)

getFirstSessionName

public String getFirstSessionName()

closeCurrentSession

public boolean closeCurrentSession()

closeAll

public void closeAll()

renameSession

public int renameSession(String oldSessionName,
                         String newSessionName)

getSessionNames

public SortedSet getSessionNames()

getSessionCount

public int getSessionCount()

hasSessions

public boolean hasSessions()

sessionNameExists

public boolean sessionNameExists(String sessionName)

setCurrentSession

public void setCurrentSession(SQLSession session)

getCurrentSession

public SQLSession getCurrentSession()

completeSessionName

public Iterator completeSessionName(String partialSession)
Used from several commands that need session name completion.



? 1997..2006 Henner Zeller