java.lang.Object
javatools.db.DbSequence
- public class DbSequence
- extends java.lang.Object
Generates unique values for use as keys. Constructor is not public. Use
DbDatabase.getSequence().
- Version:
- 0.7
|
Method Summary |
int |
next()
Gets the next value. |
int |
next(DbConnection dbcon)
Returns the next value, with a specific connection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
db
DbDatabase db
- The database to be used.
name
java.lang.String name
- The name for this sequence.
DbSequence
DbSequence(DbDatabase db,
java.lang.String name)
- Creates a new DbSequence.
next
public int next()
throws DbException
- Gets the next value.
next
public int next(DbConnection dbcon)
throws DbException
- Returns the next value, with a specific connection.