public interface CufNativeSql
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getClearTableQueries(String tableName)
Zwraca zapytania potrzebne do wyczyszczenia danych w tabeli.
|
String |
getColumnTypeAsString(String columnType)
Zwraca odpowiedni typ kolumny jako
String dla zapytań CREATE i ADD COLUMN. |
List<String> |
getCreateColumnQuery(String tableName,
String columnName,
String columnType)
Zwraca zapytania tworzące nową kolumnę w tabeli.
|
List<String> |
getCreateSynchronizedTableQuery(String tableName,
String[] columnNames,
String[] columnTypes)
Zwraca zapytania tworzące tabelę.
|
List<String> |
getDropTableQueries(String tableName)
Zwraca zapytania potrzebne do usunięcia tabeli z bazy.
|
void |
setStatementParameter(PreparedStatement statement,
String columnType,
String value,
int position)
Ustawia parametry zapytania PreparedStatement.
|
List<String> getCreateSynchronizedTableQuery(String tableName, String[] columnNames, String[] columnTypes)
tableName - Nazwa tworzonej tabelicolumnNames - Nazwy kolumn tworzonej tabelicolumnTypes - Typy kolumn tworzonej tabeliList<String> getCreateColumnQuery(String tableName, String columnName, String columnType)
tableName - Nazwa tabeli do której dodana ma zostać kolumnacolumnName - Nazwa nowej kolumnycolumnType - Typ nowej kolumnyString getColumnTypeAsString(String columnType)
String dla zapytań CREATE i ADD COLUMN.columnType - Wejściowy typ kolumnyStringvoid setStatementParameter(PreparedStatement statement, String columnType, String value, int position) throws NumberFormatException, SQLException
statement - ZapytaniecolumnType - Typ kolumnyvalue - Ustawiana wartośćposition - Pozycja parametru w zapytaniuNumberFormatExceptionSQLExceptionList<String> getClearTableQueries(String tableName)
tableName - Nazwa czyszczonej tabeliCopyright © 2020 Suncode. All rights reserved.