org.locomotive.loco.store.session
Class SessionStoreJdbcCloudscape

java.lang.Object
  |
  +--org.locomotive.loco.store.session.SessionStore
        |
        +--org.locomotive.loco.store.session.SessionStoreJdbc
              |
              +--org.locomotive.loco.store.session.SessionStoreJdbcCloudscape

public class SessionStoreJdbcCloudscape
extends SessionStoreJdbc


Constructor Summary
SessionStoreJdbcCloudscape()
           
 
Method Summary
 long createNewSession(java.sql.Connection conn, int srid, int userid, java.sql.Timestamp expire)
          Saves a new Session and returns its sid
 java.util.Hashtable getSessionObjects(java.sql.Connection conn, long sid)
          Returns the objects for the individual session
 void storeSessionObjects(java.sql.Connection conn, java.util.Hashtable objects)
          Saves a new Session and returns its sid
 
Methods inherited from class org.locomotive.loco.store.session.SessionStoreJdbc
associateUser, expire, getLocoSessionRow, getNextSessionId, removeObjects, resetExpiration, storeObjects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionStoreJdbcCloudscape

public SessionStoreJdbcCloudscape()
Method Detail

createNewSession

public long createNewSession(java.sql.Connection conn,
                             int srid,
                             int userid,
                             java.sql.Timestamp expire)
                      throws FailedSessionException
Description copied from class: SessionStore
Saves a new Session and returns its sid
Overrides:
createNewSession in class SessionStoreJdbc
Tags copied from class: SessionStore
Parameters:
conn - a JDBC connection with access to the Loco session tables
srid - the random number for cookie checks
userid - the user
expire - the timestamp
Throws:
FailedSessionException - if there is a database error or the session cannot be found

getSessionObjects

public java.util.Hashtable getSessionObjects(java.sql.Connection conn,
                                             long sid)
                                      throws FailedSessionException
Description copied from class: SessionStore
Returns the objects for the individual session
Overrides:
getSessionObjects in class SessionStoreJdbc
Tags copied from class: SessionStore
Parameters:
conn - a JDBC connection with access to the Loco session tables
sid - the session id
Throws:
FailedSessionException - if there is a database error or the session cannot be found

storeSessionObjects

public void storeSessionObjects(java.sql.Connection conn,
                                java.util.Hashtable objects)
Description copied from class: SessionStore
Saves a new Session and returns its sid
Overrides:
storeSessionObjects in class SessionStoreJdbc
Tags copied from class: SessionStore
Parameters:
conn - a JDBC connection with access to the Loco session tables
sid - the session id
objects - the hashtable of objects to be saved
Throws:
FailedSessionException - if there is a database error or the session cannot be found