org.openid4java.consumer
Class JdbcConsumerAssociationStore

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.jdbc.core.support.JdbcDaoSupport
          extended by org.openid4java.consumer.JdbcConsumerAssociationStore
All Implemented Interfaces:
ConsumerAssociationStore, org.springframework.beans.factory.InitializingBean

public class JdbcConsumerAssociationStore
extends org.springframework.jdbc.core.support.JdbcDaoSupport
implements ConsumerAssociationStore

The specified table must have the following structure:

Author:
Andrew Evenson, Graff Haley

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
JdbcConsumerAssociationStore()
           
JdbcConsumerAssociationStore(java.lang.String tableName)
           
 
Method Summary
 java.lang.String getTableName()
           
 Association load(java.lang.String opUrl)
           
 Association load(java.lang.String opUrl, java.lang.String handle)
           
 void remove(java.lang.String opUrl, java.lang.String handle)
           
 void save(java.lang.String opUrl, Association association)
           
 void setTableName(java.lang.String tableName)
           
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcConsumerAssociationStore

public JdbcConsumerAssociationStore()

JdbcConsumerAssociationStore

public JdbcConsumerAssociationStore(java.lang.String tableName)
Method Detail

getTableName

public java.lang.String getTableName()

setTableName

public void setTableName(java.lang.String tableName)

load

public Association load(java.lang.String opUrl,
                        java.lang.String handle)
Specified by:
load in interface ConsumerAssociationStore

load

public Association load(java.lang.String opUrl)
Specified by:
load in interface ConsumerAssociationStore

remove

public void remove(java.lang.String opUrl,
                   java.lang.String handle)
Specified by:
remove in interface ConsumerAssociationStore

save

public void save(java.lang.String opUrl,
                 Association association)
Specified by:
save in interface ConsumerAssociationStore


Copyright © 2011 Sxip. All Rights Reserved.