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:
| Constructor and Description |
|---|
JdbcServerAssociationStore() |
JdbcServerAssociationStore(String tableName) |
| Modifier and Type | Method and Description |
|---|---|
Association |
generate(String type,
int expiryIn) |
String |
getTableName() |
Association |
load(String handle) |
void |
remove(String handle) |
void |
setTableName(String tableName) |
public JdbcServerAssociationStore()
public JdbcServerAssociationStore(String tableName)
public String getTableName()
public void setTableName(String tableName)
public Association generate(String type, int expiryIn) throws AssociationException
generate in interface ServerAssociationStoreAssociationExceptionpublic Association load(String handle)
load in interface ServerAssociationStorepublic void remove(String handle)
remove in interface ServerAssociationStoreCopyright © 2013 Sxip. All Rights Reserved.