public class EvolutionQuery extends Object
Constructor and Description |
---|
EvolutionQuery() |
Modifier and Type | Method and Description |
---|---|
static void |
alterForModuleSupport(String dbName,
Connection connection) |
static void |
apply(Connection connection,
boolean runScript,
Evolution evolution,
String moduleKey) |
static void |
closeConnection(Connection connection) |
static void |
closeResultSet(ResultSet resultSet) |
static void |
closeStatement(Statement statement) |
static void |
createTable(String dbName) |
static RowSet |
getEvolutions(Connection connection,
String moduleKey) |
static RowSet |
getEvolutionsToApply(Connection connection,
String moduleKey) |
static Connection |
getNewConnection() |
static Connection |
getNewConnection(String dbName) |
static Connection |
getNewConnection(String dbName,
boolean autoCommit) |
static void |
resolve(String dbName,
int revision,
String moduleKey) |
static void |
setProblem(Connection connection,
int applying,
String moduleKey,
String message) |
public static void createTable(String dbName) throws SQLException
SQLException
public static void alterForModuleSupport(String dbName, Connection connection) throws SQLException
SQLException
public static void resolve(String dbName, int revision, String moduleKey) throws SQLException
SQLException
public static void apply(Connection connection, boolean runScript, Evolution evolution, String moduleKey) throws SQLException
SQLException
public static void setProblem(Connection connection, int applying, String moduleKey, String message) throws SQLException
SQLException
public static RowSet getEvolutionsToApply(Connection connection, String moduleKey) throws SQLException
SQLException
public static RowSet getEvolutions(Connection connection, String moduleKey) throws SQLException
SQLException
public static Connection getNewConnection() throws SQLException
SQLException
public static Connection getNewConnection(String dbName) throws SQLException
SQLException
public static Connection getNewConnection(String dbName, boolean autoCommit) throws SQLException
SQLException
public static void closeResultSet(ResultSet resultSet)
public static void closeStatement(Statement statement)
public static void closeConnection(Connection connection)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly