Class Sequences
java.lang.Object
com.atlassian.jira.upgrade.tasks.util.Sequences
Utility methods to manipulate entity engine database sequences.
- Since:
- v4.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringconvertToSchemaTableName(String tableName) protected org.ofbiz.core.entity.GenericDelegatorvoidupdate(Connection connection, String sequenceName, String tableName) Update the sequence value for the next id to use for this table.
-
Constructor Details
-
Sequences
public Sequences()
-
-
Method Details
-
update
public void update(Connection connection, String sequenceName, String tableName) throws SQLException Update the sequence value for the next id to use for this table.- Parameters:
connection- The database connection to use to update the sequence.sequenceName- The name of the sequence to update.tableName- The name of the table that uses the value of the sequence for its primary key. The column which stores the PK is assumed to be named "id"- Throws:
SQLException- SQL exception
-
getDelegator
protected org.ofbiz.core.entity.GenericDelegator getDelegator() -
convertToSchemaTableName
-