public interface IMigrationClient
Modifier and Type | Method and Description |
---|---|
void |
addColumn(String tableName,
String columnName,
String columnDefinition) |
void |
alterColumn(String tableName,
String columnName,
String columnDefinition) |
void |
createIndex(String indexSuffix,
String tableName,
String columnName) |
void |
createTable(Class<?> entity) |
void |
dropColumn(String tableName,
String columnName) |
void |
dropSequence(String sequenceName) |
void |
dropTable(Class<?> entity) |
void |
dropTable(String tableName) |
void |
executeRaw(String rawQuery) |
User |
getAdminUser() |
String |
getColumnName(String columnName) |
String |
getDatabaseSchemaVersion() |
int |
getDatabaseSchemaVersionInt() |
HashMap<String,String> |
getRow(List<HashMap<String,String>> rows,
String column,
String value) |
HashMap<String,String> |
getRow(String tableName,
String column,
String value) |
List<HashMap<String,String>> |
getRows(String tableName) |
String |
getTableName(String tableName) |
boolean |
hasColumn(String tableName,
String columnName) |
boolean |
hasTable(String tableName) |
void |
renameColumn(String tableName,
String oldColumnName,
String newColumnName) |
void |
renameSequence(String sequenceName,
String newSequenceName) |
void |
renameTable(String tableName,
String newTableName) |
boolean hasColumn(String tableName, String columnName) throws SQLException
SQLException
void dropColumn(String tableName, String columnName) throws SQLException
SQLException
void renameColumn(String tableName, String oldColumnName, String newColumnName) throws SQLException
SQLException
void alterColumn(String tableName, String columnName, String columnDefinition) throws SQLException
SQLException
void addColumn(String tableName, String columnName, String columnDefinition) throws SQLException
SQLException
boolean hasTable(String tableName) throws SQLException
SQLException
void renameTable(String tableName, String newTableName) throws SQLException
SQLException
void dropTable(String tableName) throws SQLException
SQLException
void renameSequence(String sequenceName, String newSequenceName) throws SQLException
SQLException
void dropSequence(String sequenceName) throws SQLException
SQLException
void createIndex(String indexSuffix, String tableName, String columnName) throws SQLException
SQLException
void dropTable(Class<?> entity) throws SQLException
SQLException
void createTable(Class<?> entity) throws SQLException
SQLException
HashMap<String,String> getRow(List<HashMap<String,String>> rows, String column, String value) throws SQLException
SQLException
User getAdminUser()
void executeRaw(String rawQuery) throws SQLException
SQLException
String getDatabaseSchemaVersion()
int getDatabaseSchemaVersionInt()
Copyright © 2015–2019. All rights reserved.