@ManagedObject public class JDBCSessionDataStore extends AbstractSessionDataStore
| Modifier and Type | Class and Description |
|---|---|
static class |
JDBCSessionDataStore.SessionTableSchema
SessionTableSchema
|
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.ListenerContainer.InheritedListener, Container.Listener| Modifier and Type | Field and Description |
|---|---|
static String |
NULL_CONTEXT_PATH
Used for Oracle and other databases where "" is treated as NULL
|
| Constructor and Description |
|---|
JDBCSessionDataStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(String id)
Delete session data
|
Set<String> |
doGetExpired(Set<String> candidates)
Implemented by subclasses to resolve which sessions this node
should attempt to expire.
|
SessionData |
doLoad(String id)
Load the session from persistent store.
|
void |
doStore(String id,
SessionData data,
long lastSaveTime)
Store the session data persistently.
|
boolean |
exists(String id)
Test if data exists for a given session id.
|
void |
initialize() |
boolean |
isPassivating()
True if this type of datastore will passivate session objects
|
void |
setDatabaseAdaptor(DatabaseAdaptor dbAdaptor) |
void |
setSessionTableSchema(JDBCSessionDataStore.SessionTableSchema schema) |
getExpired, getGracePeriodSec, getSavePeriodSec, initialize, load, newSessionData, setGracePeriodSec, setSavePeriodSec, store, toStringaddBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stopdumpContainer, dumpIterable, dumpMapEntries, dumpObjects, dumpSelf, namedpublic static final String NULL_CONTEXT_PATH
public SessionData doLoad(String id) throws Exception
AbstractSessionDataStoredoLoad in class AbstractSessionDataStoreid - the id of the session to loadException - if unable to load the sessionpublic boolean delete(String id) throws Exception
SessionDataMapid - identity of session to deleteException - if unable to delete session datapublic void doStore(String id, SessionData data, long lastSaveTime) throws Exception
AbstractSessionDataStoredoStore in class AbstractSessionDataStoreid - identity of session to storedata - info of the sessionlastSaveTime - time of previous save or 0 if never savedException - if unable to store datapublic Set<String> doGetExpired(Set<String> candidates)
AbstractSessionDataStoredoGetExpired in class AbstractSessionDataStorecandidates - the ids of sessions the SessionDataStore thinks has expiredpublic void setDatabaseAdaptor(DatabaseAdaptor dbAdaptor)
public void setSessionTableSchema(JDBCSessionDataStore.SessionTableSchema schema)
@ManagedAttribute(value="does this store serialize sessions", readonly=true) public boolean isPassivating()
SessionDataStorepublic boolean exists(String id) throws Exception
SessionDataStoreid - Identity of session whose existence should be checkedException - if problem checking existence with persistence layerCopyright © 2010 - 2020 Adobe. All Rights Reserved