public class JdbcServerAssociationStore extends org.springframework.jdbc.core.support.JdbcDaoSupport implements ServerAssociationStore
The JdbcServerAssociation store requires a javax.sql.DataSource to be configured and passed in to it with the setDataSource setter method. The table name also needs to be specified, either through the constructor, or through the setTableName setter.
The specified table must have the following structure:
Modifier and Type | Field and Description |
---|---|
private static long |
_lastCleanup |
private static org.apache.commons.logging.Log |
_log |
private static java.util.Random |
_random |
private java.lang.String |
_tableName |
private static int |
CLEANUP_INTERVAL |
private static boolean |
DEBUG |
Constructor and Description |
---|
JdbcServerAssociationStore() |
JdbcServerAssociationStore(java.lang.String tableName) |
Modifier and Type | Method and Description |
---|---|
private void |
cleanupExpired() |
Association |
generate(java.lang.String type,
int expiryIn) |
java.lang.String |
getTableName() |
Association |
load(java.lang.String handle) |
void |
remove(java.lang.String handle) |
void |
setTableName(java.lang.String tableName) |
private static org.apache.commons.logging.Log _log
private static final boolean DEBUG
private static java.util.Random _random
private static final int CLEANUP_INTERVAL
private static long _lastCleanup
private java.lang.String _tableName
public JdbcServerAssociationStore()
public JdbcServerAssociationStore(java.lang.String tableName)
public java.lang.String getTableName()
public void setTableName(java.lang.String tableName)
public Association generate(java.lang.String type, int expiryIn) throws AssociationException
generate
in interface ServerAssociationStore
AssociationException
public Association load(java.lang.String handle)
load
in interface ServerAssociationStore
public void remove(java.lang.String handle)
remove
in interface ServerAssociationStore
private void cleanupExpired()
Copyright 2006-2008 Sxip Identity Corporation