public class MicrosoftNativeSQL extends Object implements CufNativeSql
| Constructor and Description |
|---|
MicrosoftNativeSQL() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getClearTableQueries(String sTableName)
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.
|
public List<String> getCreateSynchronizedTableQuery(String tableName, String[] columnNames, String[] columnTypes)
CufNativeSqlgetCreateSynchronizedTableQuery in interface CufNativeSqltableName - Nazwa tworzonej tabelicolumnNames - Nazwy kolumn tworzonej tabelicolumnTypes - Typy kolumn tworzonej tabelipublic String getColumnTypeAsString(String columnType)
CufNativeSqlString dla zapytań CREATE i ADD COLUMN.getColumnTypeAsString in interface CufNativeSqlcolumnType - Wejściowy typ kolumnyStringpublic List<String> getCreateColumnQuery(String tableName, String columnName, String columnType)
CufNativeSqlgetCreateColumnQuery in interface CufNativeSqltableName - Nazwa tabeli do której dodana ma zostać kolumnacolumnName - Nazwa nowej kolumnycolumnType - Typ nowej kolumnypublic void setStatementParameter(PreparedStatement statement, String columnType, String value, int position) throws NumberFormatException, SQLException
CufNativeSqlsetStatementParameter in interface CufNativeSqlstatement - ZapytaniecolumnType - Typ kolumnyvalue - Ustawiana wartośćposition - Pozycja parametru w zapytaniuNumberFormatExceptionSQLExceptionpublic List<String> getClearTableQueries(String sTableName)
CufNativeSqlgetClearTableQueries in interface CufNativeSqlsTableName - Nazwa czyszczonej tabelipublic List<String> getDropTableQueries(String tableName)
CufNativeSqlgetDropTableQueries in interface CufNativeSqlCopyright © 2019 Suncode. All rights reserved.