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 ServerAssociationStore
AssociationException
public Association load(String handle)
load
in interface ServerAssociationStore
public void remove(String handle)
remove
in interface ServerAssociationStore
Copyright © 2016 Sxip. All rights reserved.