|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.upgrade.util.UpgradeUtils
public class UpgradeUtils
Constructor Summary | |
---|---|
UpgradeUtils(OfBizDelegator delegator)
|
Method Summary | |
---|---|
void |
clearColumn(String tableName,
String column)
|
static void |
doColumnsOrTablesExist(List tableColumnCheckResults)
|
static String |
getExactColumnName(String tableName,
String columnName)
Returns the exact column name according to the database. |
static String |
getExactTableName(String entityName)
|
static int |
getJIRABuildVersionNumber()
This will return the current build version of JIRA present in the database. |
static boolean |
tableExists(String tableName)
This method is used to verify if a named table exists or not within the database. |
void |
transformTableColumn(String tableName,
String sourceColumn,
String targetColumn,
org.apache.commons.collections.Transformer transformer)
Transform a column in a table into another column on that same table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpgradeUtils(OfBizDelegator delegator)
Method Detail |
---|
public void transformTableColumn(String tableName, String sourceColumn, String targetColumn, org.apache.commons.collections.Transformer transformer)
tableName
- name of table @NotNullsourceColumn
- name of source column @NotNulltargetColumn
- name of target columns @NotNulltransformer
- the transformer used to transform the columnpublic void clearColumn(String tableName, String column)
public static boolean tableExists(String tableName)
tableName
- is the name of the table to look for.
public static String getExactColumnName(String tableName, String columnName)
tableName
- columnName
-
public static String getExactTableName(String entityName)
public static int getJIRABuildVersionNumber()
public static void doColumnsOrTablesExist(List tableColumnCheckResults)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |