com.arsdigita.db
Class GenericSequenceImpl

java.lang.Object
  extended bycom.arsdigita.db.SequenceImpl
      extended bycom.arsdigita.db.GenericSequenceImpl

public class GenericSequenceImpl
extends SequenceImpl

A generic Sequence implementation appropriate for use with databases that don't support Oracle style sequences.

Author:
Kevin Scaldeferri

Field Summary
static String versionId
           
 
Method Summary
static GenericSequenceImpl createSequence(String sequenceName)
          This creation method should be used to obtain instances of GenericSequenceImpl.
 BigDecimal getCurrentValue()
           
 BigDecimal getCurrentValue(Connection conn)
           
 BigDecimal getNextValue()
          Gets the next value in the sequence
 BigDecimal getNextValue(Connection conn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Method Detail

createSequence

public static GenericSequenceImpl createSequence(String sequenceName)
This creation method should be used to obtain instances of GenericSequenceImpl.


getNextValue

public BigDecimal getNextValue()
                        throws SQLException
Gets the next value in the sequence

Throws:
SQLException

getCurrentValue

public BigDecimal getCurrentValue()
                           throws SQLException
Throws:
SQLException

getNextValue

public BigDecimal getNextValue(Connection conn)
                        throws SQLException
Specified by:
getNextValue in class SequenceImpl
Throws:
SQLException

getCurrentValue

public BigDecimal getCurrentValue(Connection conn)
                           throws SQLException
Specified by:
getCurrentValue in class SequenceImpl
Throws:
SQLException


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC