Class jif.sql.SequenceGenerator
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jif.sql.SequenceGenerator

java.lang.Object
   |
   +----jif.sql.SequenceGenerator

public class SequenceGenerator
extends Object
This class will generate a unique sequence for a table. Some RDBMS's can do this on the server side. This class retrieves all the rows and calculates the maximum and adds one.

Constructor Index

 o SequenceGenerator(JifConnector, String, String)
Creates a SequenceGenerator object

Method Index

 o getCurrentValue()
 o getNextValue()
 o setCurrentValue()

Constructors

 o SequenceGenerator
  public SequenceGenerator(JifConnector connector,
                           String table,
                           String column)
Creates a SequenceGenerator object
Parameters:
connector - The database connection object
table - The table to check
column - The column to get

Methods

 o getNextValue
  public int getNextValue()
 o getCurrentValue
  public int getCurrentValue()
 o setCurrentValue
  protected void setCurrentValue()

All Packages  Class Hierarchy  This Package  Previous  Next  Index