org.springframework.jdbc.support.incrementer
Class OracleSequenceMaxValueIncrementer

java.lang.Object
  extended byorg.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
      extended byorg.springframework.jdbc.support.incrementer.AbstractSequenceMaxValueIncrementer
          extended byorg.springframework.jdbc.support.incrementer.OracleSequenceMaxValueIncrementer
All Implemented Interfaces:
DataFieldMaxValueIncrementer, InitializingBean

public class OracleSequenceMaxValueIncrementer
extends AbstractSequenceMaxValueIncrementer

Class to retrieve the next value of a given Oracle Sequence.

Version:
$Id: OracleSequenceMaxValueIncrementer.java,v 1.3 2004/03/18 02:46:11 trisberg Exp $
Author:
Dmitriy Kopylenko, Thomas Risberg, Juergen Hoeller

Field Summary
 
Fields inherited from class org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
paddingLength
 
Constructor Summary
OracleSequenceMaxValueIncrementer()
          Default constructor.
OracleSequenceMaxValueIncrementer(javax.sql.DataSource ds, java.lang.String incrementerName)
          Convenience constructor.
 
Method Summary
protected  java.lang.String getSequenceQuery()
          Return the database-specific query to use for retrieving a sequence value.
 
Methods inherited from class org.springframework.jdbc.support.incrementer.AbstractSequenceMaxValueIncrementer
getNextKey
 
Methods inherited from class org.springframework.jdbc.support.incrementer.AbstractDataFieldMaxValueIncrementer
afterPropertiesSet, getDataSource, getIncrementerName, getPaddingLength, nextIntValue, nextLongValue, nextStringValue, setDataSource, setIncrementerName, setPaddingLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleSequenceMaxValueIncrementer

public OracleSequenceMaxValueIncrementer()
Default constructor.


OracleSequenceMaxValueIncrementer

public OracleSequenceMaxValueIncrementer(javax.sql.DataSource ds,
                                         java.lang.String incrementerName)
Convenience constructor.

Parameters:
ds - the DataSource to use
incrementerName - the name of the sequence/table to use
Method Detail

getSequenceQuery

protected java.lang.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 (C) 2003-2004 The Spring Framework Project.