vishnu.sessions
Class AbstractSessionHandler

java.lang.Object
  extended by vishnu.sessions.AbstractSessionHandler
All Implemented Interfaces:
SessionHandler
Direct Known Subclasses:
DefaultSessionHandler, TransactionalSessionHandler

public abstract class AbstractSessionHandler
extends java.lang.Object
implements SessionHandler

 

Field Summary
protected  SessionPool pool
           
protected  RelationalDatabaseService service
           
 
Constructor Summary
AbstractSessionHandler(SessionPool pool)
           
 
Method Summary
 void attach(RelationalDatabaseService service)
           
 Session login(java.lang.String databaseName, java.lang.String username, java.lang.String password)
           
protected abstract  void loginOperations(Session s)
           
 void logout(Session s)
           
protected abstract  void logoutOperations(Session s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pool

protected SessionPool pool

service

protected RelationalDatabaseService service
Constructor Detail

AbstractSessionHandler

public AbstractSessionHandler(SessionPool pool)
Method Detail

attach

public void attach(RelationalDatabaseService service)
Specified by:
attach in interface SessionHandler

login

public Session login(java.lang.String databaseName,
                     java.lang.String username,
                     java.lang.String password)
Specified by:
login in interface SessionHandler

logout

public void logout(Session s)
Specified by:
logout in interface SessionHandler

loginOperations

protected abstract void loginOperations(Session s)

logoutOperations

protected abstract void logoutOperations(Session s)