org.kuali.rice.krad.dao.jdbc
Class SequenceAccessorDaoJdbc

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.jdbc.core.support.JdbcDaoSupport
          extended by org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
              extended by org.kuali.rice.core.framework.persistence.jdbc.dao.PlatformAwareDaoBaseJdbc
                  extended by org.kuali.rice.krad.dao.jdbc.SequenceAccessorDaoJdbc
All Implemented Interfaces:
PlatformAwareDao, SequenceAccessorDao, org.springframework.beans.factory.InitializingBean

public class SequenceAccessorDaoJdbc
extends PlatformAwareDaoBaseJdbc
implements SequenceAccessorDao

This class uses the KualiDBPlatform to get the next number from a given sequence.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
SequenceAccessorDaoJdbc()
           
 
Method Summary
 Long getNextAvailableSequenceNumber(String sequenceName)
           
 Long getNextAvailableSequenceNumber(String sequenceName, Class<? extends BusinessObject> clazz)
           
 
Methods inherited from class org.kuali.rice.core.framework.persistence.jdbc.dao.PlatformAwareDaoBaseJdbc
getDbPlatform, setDbPlatform
 
Methods inherited from class org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
getSimpleJdbcTemplate, initTemplateConfig
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, 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

SequenceAccessorDaoJdbc

public SequenceAccessorDaoJdbc()
Method Detail

getNextAvailableSequenceNumber

public Long getNextAvailableSequenceNumber(String sequenceName,
                                           Class<? extends BusinessObject> clazz)
Specified by:
getNextAvailableSequenceNumber in interface SequenceAccessorDao

getNextAvailableSequenceNumber

public Long getNextAvailableSequenceNumber(String sequenceName)
Specified by:
getNextAvailableSequenceNumber in interface SequenceAccessorDao
See Also:
SequenceAccessorDao.getNextAvailableSequenceNumber(java.lang.String)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.