Method Summary |
|
public void | clear() Remove all of the Sessions in this Store. |
protected void | close(Connection dbConnection) Close the specified database connection. |
protected Connection | getConnection() Check the connection associated with this store, if it's
null or closed try to reopen it. |
public String | getConnectionName() Return the username to use to connect to the database. |
public String | getConnectionPassword() Return the password to use to connect to the database. |
public String | getConnectionURL() Return the Connection URL for this Store. |
public String | getDriverName() Return the driver for this Store. |
public String | getInfo() Return the info for this Store. |
public String | getName() |
public String | getSessionAppCol() Return the web application name column for the table. |
public String | getSessionDataCol() |
public String | getSessionIdCol() Return the Id column for the table. |
public String | getSessionLastAccessedCol() |
public String | getSessionMaxInactiveCol() |
public String | getSessionTable() Return the table for this Store. |
public String | getSessionValidCol() |
public int | getSize() Return an integer containing a count of all Sessions
currently saved in this Store. |
public String | getStoreName() Return the name for this Store, used for logging. |
public String | getThreadName() Return the thread name for this Store. |
public String[] | keys() Return an array containing the session identifiers of all Sessions
currently saved in this Store. |
public Session | load(String id) Load the Session associated with the id id . |
protected Connection | open() Open (if necessary) and return a database connection for use by
this Realm. |
protected void | release(Connection conn) Release the connection, not needed here since the
connection is not associated with a connection pool. |
public void | remove(String id) Remove the Session with the specified session identifier from
this Store, if present. |
public void | save(Session session) Save a session to the Store. |
public void | setConnectionName(String connectionName) Set the username to use to connect to the database. |
public void | setConnectionPassword(String connectionPassword) Set the password to use to connect to the database. |
public void | setConnectionURL(String connectionURL) Set the Connection URL for this Store. |
public void | setDriverName(String driverName) Set the driver for this Store. |
public void | setSessionAppCol(String sessionAppCol) Set the App column for the table. |
public void | setSessionDataCol(String sessionDataCol) |
public void | setSessionIdCol(String sessionIdCol) Set the Id column for the table. |
public void | setSessionLastAccessedCol(String sessionLastAccessedCol) |
public void | setSessionMaxInactiveCol(String sessionMaxInactiveCol) |
public void | setSessionTable(String sessionTable) Set the table for this Store. |
public void | setSessionValidCol(String sessionValidCol) |
public void | start() Called once when this Store is first started. |
public void | stop() Gracefully terminate everything associated with our db. |