public class DBVersionManager extends Object
| Constructor and Description |
|---|
DBVersionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
ensureUptoDate(List<Task> tasklist,
Connection con) |
void |
ensureUptoDate(Target target,
List<Task> tasklist,
Connection con) |
void |
executeUpgrade(Target target,
Version version,
List<Task> taskList,
Connection con) |
void |
executeUpgrade(Version targetVersion,
List<Task> taskList,
Connection con) |
Version |
getCurrentVersion(Connection con) |
String |
getSchema() |
String |
getTableName() |
String |
getTableNameWithSchema() |
List<String> |
getTasksAlreadyRun(Connection con) |
void |
setSchema(String schema) |
void |
setTableName(String tableName) |
public String getTableName()
public void setTableName(String tableName)
public String getSchema()
public void setSchema(String schema)
public String getTableNameWithSchema()
public void ensureUptoDate(List<Task> tasklist, Connection con) throws SQLException
SQLExceptionpublic void ensureUptoDate(Target target, List<Task> tasklist, Connection con) throws SQLException
SQLExceptionpublic Version getCurrentVersion(Connection con) throws SQLException
con - SQLExceptionpublic void executeUpgrade(Version targetVersion, List<Task> taskList, Connection con) throws SQLException
SQLExceptionpublic void executeUpgrade(Target target, Version version, List<Task> taskList, Connection con) throws SQLException
SQLExceptionpublic List<String> getTasksAlreadyRun(Connection con) throws SQLException
SQLExceptionCopyright © 2015. All rights reserved.