public class MaximoSequence
extends java.lang.Object
Used by the IntegrityCheck
,
Ought to be used here.
,
Ought to be used here.
Constructor and Description |
---|
MaximoSequence(java.sql.Connection con)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
createSequence(java.lang.String sequenceName,
java.lang.Long maxReserved)
Create the sequence.
|
void |
dropSequence(java.lang.String sequenceName)
Drops the sequence.
|
java.lang.Long |
getLargestTargetValue(java.lang.String sequenceName)
Returns the largest value from the columns where the sequence is used.
|
public MaximoSequence(java.sql.Connection con) throws java.sql.SQLException
con
- A connection to the database.
If the database has MT enabled, this should be a MTConnection.java.sql.SQLException
public java.lang.Long getLargestTargetValue(java.lang.String sequenceName) throws java.sql.SQLException
sequenceName
- java.sql.SQLException
public void dropSequence(java.lang.String sequenceName) throws java.sql.SQLException
sequenceName
- java.sql.SQLException
public void createSequence(java.lang.String sequenceName, java.lang.Long maxReserved) throws java.lang.Exception
sequenceName
- maxReserved
- The starting value of the sequence.java.lang.Exception