|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.locomotive.loco.store.session.SessionStore
|
+--org.locomotive.loco.store.session.SessionStoreJdbc
| Constructor Summary | |
SessionStoreJdbc()
|
|
| Method Summary | |
void |
associateUser(java.sql.Connection conn,
User user,
long sid)
associate a user with this session, persistantly. |
long |
createNewSession(java.sql.Connection conn,
int srid,
int userid,
java.sql.Timestamp expire)
Saves a new Session and returns its sid |
void |
expire(java.sql.Connection conn,
long sid,
java.sql.Timestamp expireTime)
expires this session, in the database returns false if the operation failed |
LocoSessionRow |
getLocoSessionRow(java.sql.Connection conn,
long sid)
Returns an individual session row if it can be found. |
protected java.math.BigInteger |
getNextSessionId(java.sql.Connection conn)
Returns the next available id to use when saving a new session |
java.util.Hashtable |
getSessionObjects(java.sql.Connection conn,
long sid)
Returns the objects for the individual session |
void |
removeObjects(java.sql.Connection conn,
long sid)
Removes the objects for this session, either from the cache, if it's being used, or from the database |
void |
resetExpiration(java.sql.Connection conn,
long sid,
java.sql.Timestamp expireTime)
Advances the expiration time of the session by exp_seconds if the session is persistant, the new time will be committed to the session database |
void |
storeObjects(java.sql.Connection conn,
long sid,
java.util.Hashtable objects)
Stores the session_objects table in the database. |
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 |
| Constructor Detail |
public SessionStoreJdbc()
| Method Detail |
protected java.math.BigInteger getNextSessionId(java.sql.Connection conn)
throws IdException
conn - a JDBC connection with access to the Loco id table
public void associateUser(java.sql.Connection conn,
User user,
long sid)
throws FailedSessionException
conn - a JDBC connection with access to the Loco tablesuser - the user to be associatedsid - the session id
public void expire(java.sql.Connection conn,
long sid,
java.sql.Timestamp expireTime)
throws FailedSessionException
conn - a JDBC connection with access to the Loco session tablessid - the session idexpireTime - The timestamp
public void storeObjects(java.sql.Connection conn,
long sid,
java.util.Hashtable objects)
throws java.sql.SQLException
conn - a JDBC connection with access to the Loco session tablessid - the session idobjects - the hashtable of objects to be saved
public void removeObjects(java.sql.Connection conn,
long sid)
throws FailedSessionException
conn - a JDBC connection with access to the Loco session tablessid - the session id
public void resetExpiration(java.sql.Connection conn,
long sid,
java.sql.Timestamp expireTime)
throws FailedSessionException
conn - a JDBC connection with access to
the Loco session tablessid - the session idexpireTime - The timestamp
public LocoSessionRow getLocoSessionRow(java.sql.Connection conn,
long sid)
throws FailedSessionException
conn - a JDBC connection with access to
the Loco session tablessid - the session id
public java.util.Hashtable getSessionObjects(java.sql.Connection conn,
long sid)
throws FailedSessionException
conn - a JDBC connection with access to
the Loco session tablessid - the session id
public void storeSessionObjects(java.sql.Connection conn,
java.util.Hashtable objects)
conn - a JDBC connection with access to
the Loco session tablessid - the session idobjects - the hashtable of objects to be saved
public long createNewSession(java.sql.Connection conn,
int srid,
int userid,
java.sql.Timestamp expire)
throws FailedSessionException
conn - a JDBC connection with access to
the Loco session tablessrid - the random number for cookie checksuserid - the userexpire - the timestamp
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||