javatools.db
Class DbSequence

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().


Field Summary
(package private)  DbDatabase db
           
(package private)  java.lang.String name
           
 
Constructor Summary
(package private) DbSequence(DbDatabase db, java.lang.String name)
           
 
Method Summary
 int next()
           
 int next(DbConnection dbcon)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

db

DbDatabase db

name

java.lang.String name
Constructor Detail

DbSequence

DbSequence(DbDatabase db,
           java.lang.String name)
Method Detail

next

public int next()
         throws DbException
DbException

next

public int next(DbConnection dbcon)
         throws DbException
DbException