org.kuali.rice.krad.data.platform.testincrementers
Class CustomIncrementerMySQLVersion5

java.lang.Object
  extended by org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
      extended by org.springframework.jdbc.support.incrementer.AbstractColumnMaxValueIncrementer
          extended by org.kuali.rice.krad.data.platform.testincrementers.CustomIncrementerMySQLVersion5
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer

public class CustomIncrementerMySQLVersion5
extends org.springframework.jdbc.support.incrementer.AbstractColumnMaxValueIncrementer

Mock incrementer used to test custom incrementers


Field Summary
 
Fields inherited from class org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
paddingLength
 
Constructor Summary
CustomIncrementerMySQLVersion5()
           
 
Method Summary
protected  long getNextKey()
           
 int nextIntValue()
           
 long nextLongValue()
           
 String nextStringValue()
           
 
Methods inherited from class org.springframework.jdbc.support.incrementer.AbstractColumnMaxValueIncrementer
afterPropertiesSet, getCacheSize, getColumnName, setCacheSize, setColumnName
 
Methods inherited from class org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
getDataSource, getIncrementerName, getPaddingLength, setDataSource, setIncrementerName, setPaddingLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomIncrementerMySQLVersion5

public CustomIncrementerMySQLVersion5()
Method Detail

nextIntValue

public int nextIntValue()
                 throws org.springframework.dao.DataAccessException
Specified by:
nextIntValue in interface org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer
Overrides:
nextIntValue in class org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
Throws:
org.springframework.dao.DataAccessException

nextLongValue

public long nextLongValue()
                   throws org.springframework.dao.DataAccessException
Specified by:
nextLongValue in interface org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer
Overrides:
nextLongValue in class org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
Throws:
org.springframework.dao.DataAccessException

nextStringValue

public String nextStringValue()
                       throws org.springframework.dao.DataAccessException
Specified by:
nextStringValue in interface org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer
Overrides:
nextStringValue in class org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
Throws:
org.springframework.dao.DataAccessException

getNextKey

protected long getNextKey()
Specified by:
getNextKey in class org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.