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.
-
SequenceGenerator(JifConnector, String, String)
- Creates a SequenceGenerator object
-
getCurrentValue()
-
-
getNextValue()
-
-
setCurrentValue()
-
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
getNextValue
public int getNextValue()
getCurrentValue
public int getCurrentValue()
setCurrentValue
protected void setCurrentValue()
All Packages Class Hierarchy This Package Previous Next Index