Lifecycle.SingleUseconnectionName, connectionPassword, connectionURL, dataSource, dataSourceName, driver, driverName, preparedClearSql, preparedLoadSql, preparedRemoveSql, preparedSaveSql, preparedSizeSql, sessionAppCol, sessionDataCol, sessionIdCol, sessionLastAccessedCol, sessionMaxInactiveCol, sessionTable, sessionValidCol, storeName, threadNameAFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
DataSourceStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove all of the Sessions in this Store.
|
protected void |
close(java.sql.Connection dbConnection)
Close the specified database connection.
|
java.lang.String[] |
expiredKeys()
Get only those keys of sessions, that are saved in the Store and are to
be expired.
|
int |
getSize()
Return an integer containing a count of all Sessions
currently saved in this Store.
|
java.lang.String[] |
keys() |
Session |
load(java.lang.String id)
Load the Session associated with the id
id. |
protected java.sql.Connection |
open()
Open (if necessary) and return a database connection for use by
this Store.
|
void |
remove(java.lang.String id)
Remove the Session with the specified session identifier from
this Store, if present.
|
void |
save(Session session)
Save a session to the Store.
|
getConnection, getConnectionName, getConnectionPassword, getConnectionURL, getDataSourceName, getDriverName, getLocalDataSource, getName, getSessionAppCol, getSessionDataCol, getSessionIdCol, getSessionLastAccessedCol, getSessionMaxInactiveCol, getSessionTable, getSessionValidCol, getStoreName, getThreadName, release, setConnectionName, setConnectionPassword, setConnectionURL, setDataSourceName, setDriverName, setLocalDataSource, setSessionAppCol, setSessionDataCol, setSessionIdCol, setSessionLastAccessedCol, setSessionMaxInactiveCol, setSessionTable, setSessionValidCol, startInternal, stopInternaladdPropertyChangeListener, destroyInternal, getManager, getObjectInputStream, initInternal, processExpires, removePropertyChangeListener, setManager, toStringaddLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stoppublic java.lang.String[] expiredKeys()
throws java.io.IOException
StoreBaseexpiredKeys in class JDBCStorejava.io.IOException - if an input-/output error occurredpublic java.lang.String[] keys()
throws java.io.IOException
keys in interface Storekeys in class JDBCStorejava.io.IOException - if an input/output error occurredpublic int getSize()
throws java.io.IOException
0 is returned.public Session load(java.lang.String id) throws java.lang.ClassNotFoundException, java.io.IOException
id.
If no such session is found null is returned.public void remove(java.lang.String id)
throws java.io.IOException
public void clear()
throws java.io.IOException
public void save(Session session) throws java.io.IOException
protected java.sql.Connection open()
throws java.sql.SQLException
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.