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
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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SessionStoreJdbcCloudscape
public SessionStoreJdbcCloudscape()
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 tablessrid
- the random number for cookie checksuserid
- the userexpire
- 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 tablessid
- 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 tablessid
- the session idobjects
- the hashtable of objects to be saved- Throws:
- FailedSessionException - if there is a database error or the session cannot be found