Class Sequences

java.lang.Object
com.atlassian.jira.upgrade.tasks.util.Sequences

public class Sequences extends Object
Utility methods to manipulate entity engine database sequences.
Since:
v4.4
  • 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

      protected String convertToSchemaTableName(String tableName)