com.arsdigita.db
Class Sequences
java.lang.Object
com.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionId
public static final String versionId
- See Also:
- Constant Field Values
Sequences
public Sequences()
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 21 2004:2337 UTC