Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javatools.db
Class DbSequence  view DbSequence download DbSequence.java

java.lang.Object
  extended byjavatools.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

Field Summary
(package private)  DbDatabase db
          The database to be used.
(package private)  java.lang.String name
          The name for this sequence.
 
Constructor Summary
(package private) DbSequence(DbDatabase db, java.lang.String name)
          Creates a new DbSequence.
 
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
 

Field Detail

db

DbDatabase db
The database to be used.


name

java.lang.String name
The name for this sequence.

Constructor Detail

DbSequence

DbSequence(DbDatabase db,
           java.lang.String name)
Creates a new DbSequence.

Method Detail

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.