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
SQLExceptionvoid dropColumn(String tableName, String columnName) throws SQLException
SQLExceptionvoid renameColumn(String tableName, String oldColumnName, String newColumnName) throws SQLException
SQLExceptionvoid alterColumn(String tableName, String columnName, String columnDefinition) throws SQLException
SQLExceptionvoid addColumn(String tableName, String columnName, String columnDefinition) throws SQLException
SQLExceptionboolean hasTable(String tableName) throws SQLException
SQLExceptionvoid renameTable(String tableName, String newTableName) throws SQLException
SQLExceptionvoid dropTable(String tableName) throws SQLException
SQLExceptionvoid renameSequence(String sequenceName, String newSequenceName) throws SQLException
SQLExceptionvoid dropSequence(String sequenceName) throws SQLException
SQLExceptionvoid createIndex(String indexSuffix, String tableName, String columnName) throws SQLException
SQLExceptionvoid dropTable(Class<?> entity) throws SQLException
SQLExceptionvoid createTable(Class<?> entity) throws SQLException
SQLExceptionHashMap<String,String> getRow(List<HashMap<String,String>> rows, String column, String value) throws SQLException
SQLExceptionUser getAdminUser()
void executeRaw(String rawQuery) throws SQLException
SQLExceptionString getDatabaseSchemaVersion()
int getDatabaseSchemaVersionInt()
Copyright © 2015–2019. All rights reserved.