com.arsdigita.db
Class SequenceImpl

java.lang.Object
  extended bycom.arsdigita.db.SequenceImpl
Direct Known Subclasses:
GenericSequenceImpl, OracleSequenceImpl, PostgresSequenceImpl

public abstract class SequenceImpl
extends Object

the Sequence class provides functionality akin to Oracle sequences, i.e. unique integer values appropriate for use as primary keys n this abstract class should be implemented by concrete classes appropriate to a given database

Author:
Kevin Scaldeferri

Field Summary
static String versionId
           
 
Constructor Summary
SequenceImpl()
           
 
Method Summary
abstract  BigDecimal getCurrentValue(Connection conn)
           
abstract  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
Constructor Detail

SequenceImpl

public SequenceImpl()
Method Detail

getCurrentValue

public abstract BigDecimal getCurrentValue(Connection conn)
                                    throws SQLException
Throws:
SQLException

getNextValue

public abstract BigDecimal getNextValue(Connection conn)
                                 throws SQLException
Throws:
SQLException


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