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.
|
boolean |
sequenceNextValueValid(java.lang.String sequenceName,
java.lang.Long nextValue)
Are there any values greater or equal to the next value.
|
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 boolean sequenceNextValueValid(java.lang.String sequenceName, java.lang.Long nextValue) throws java.sql.SQLException
sequenceName
- nextValue
- 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