com.arsdigita.db
Class Sequences

java.lang.Object
  extended bycom.arsdigita.db.Sequences

public class Sequences
extends Object

the Sequence class provides functionality akin to Oracle sequences, i.e. unique integer values appropriate for use as primary keys the Sequence class does not actually provide an implementation. the database dependent implementation must be implemented elsewhere The thread's current connection will be used for the sequence, unless one does not exist in which case a new connection will be retrieved and closed by the specific implementation class.

Author:
Kevin Scaldeferri

Field Summary
static String versionId
           
 
Constructor Summary
Sequences()
           
 
Method Summary
static BigDecimal getCurrentValue()
           
static BigDecimal getCurrentValue(Connection conn)
           
static BigDecimal getCurrentValue(String sequenceName)
           
static BigDecimal getCurrentValue(String sequenceName, Connection conn)
           
static BigDecimal getNextValue()
           
static BigDecimal getNextValue(Connection conn)
           
static BigDecimal getNextValue(String sequenceName)
           
static BigDecimal getNextValue(String sequenceName, 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

Sequences

public Sequences()
Method Detail

getCurrentValue

public static BigDecimal getCurrentValue()
                                  throws SQLException
Throws:
SQLException

getNextValue

public static BigDecimal getNextValue()
                               throws SQLException
Throws:
SQLException

getCurrentValue

public static BigDecimal getCurrentValue(String sequenceName)
                                  throws SQLException
Throws:
SQLException

getNextValue

public static BigDecimal getNextValue(String sequenceName)
                               throws SQLException
Throws:
SQLException

getCurrentValue

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

getNextValue

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

getCurrentValue

public static BigDecimal getCurrentValue(String sequenceName,
                                         Connection conn)
                                  throws SQLException
Throws:
SQLException

getNextValue

public static BigDecimal getNextValue(String sequenceName,
                                      Connection conn)
                               throws SQLException
Throws:
SQLException


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