public class MaxSequenceProvider
extends java.lang.Object
| Constructor and Description |
|---|
MaxSequenceProvider()
Constructor sets up the provider to return unique IDs for the given
table column.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getUniqueID(java.sql.Connection con,
java.lang.String tbname,
java.lang.String name)
Returns a uniqueID for a given table and column defined in maxsequence table.
|
void |
init(java.sql.Connection con)
Calls
init with second parameter True, to load all sequences. |
void |
init(java.sql.Connection conn,
boolean loadAll)
Initializes the sequences.
|
public MaxSequenceProvider()
tbname - Name of the table.name - Name of the column.public void init(java.sql.Connection con)
throws java.lang.Exception
init with second parameter True, to load all sequences.con - java.lang.Exceptionpublic void init(java.sql.Connection conn,
boolean loadAll)
throws java.lang.Exception
con - ConnectionloadAll - True will load all sequences.
False will load only the sequences used by Maximo metadata tables (maxobject, maxattribute, etc.).
See MaximoDD reload.java.lang.Exceptionpublic long getUniqueID(java.sql.Connection con,
java.lang.String tbname,
java.lang.String name)
throws java.lang.Exception
con - Database connectiontbname - Table namename - Column name in the associated table (tbname) for which the unique number is generated.java.lang.Exception