org.springframework.jdbc.support.incrementer
Class DB2SequenceMaxValueIncrementer
java.lang.Object
org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
org.springframework.jdbc.support.incrementer.AbstractSequenceMaxValueIncrementer
org.springframework.jdbc.support.incrementer.DB2SequenceMaxValueIncrementer
- All Implemented Interfaces:
- InitializingBean, DataFieldMaxValueIncrementer
public class DB2SequenceMaxValueIncrementer
- extends AbstractSequenceMaxValueIncrementer
DataFieldMaxValueIncrementer that retrieves the next value of a given DB2 sequence.
Thanks to Mark MacMahon for the suggestion!
- Since:
- 1.1.3
- Author:
- Juergen Hoeller
Method Summary |
protected String |
getSequenceQuery()
Return the database-specific query to use for retrieving a sequence value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DB2SequenceMaxValueIncrementer
public DB2SequenceMaxValueIncrementer()
- Default constructor.
DB2SequenceMaxValueIncrementer
public DB2SequenceMaxValueIncrementer(DataSource ds,
String incrementerName)
- Convenience constructor.
- Parameters:
ds
- the DataSource to useincrementerName
- the name of the sequence to use
getSequenceQuery
protected String getSequenceQuery()
- Description copied from class:
AbstractSequenceMaxValueIncrementer
- Return the database-specific query to use for retrieving a sequence value.
- Specified by:
getSequenceQuery
in class AbstractSequenceMaxValueIncrementer
Copyright © 2002-2006 The Spring Framework.