public class

Sequences

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

Class Overview

Utility methods to manipulate entity engine database sequences.

Summary

Public Constructors
Sequences()
Public Methods
void update(Connection connection, String sequenceName, String tableName)
Update the sequence value for the next id to use for this table.
Protected Methods
String convertToSchemaTableName(String tableName)
GenericDelegator getDelegator()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Sequences ()

Public Methods

public void update (Connection connection, String sequenceName, String tableName)

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

Protected Methods

protected String convertToSchemaTableName (String tableName)

protected GenericDelegator getDelegator ()