public class HanaSqlBuilder
extends SqlBuilder
| Modifier and Type | Field and Description |
|---|---|
static String |
HANADB_STORAGE_COLUMNBASED |
static String |
HANADB_STORAGE_OPTIMIZED_INDEXES |
| Constructor and Description |
|---|
HanaSqlBuilder(Platform platform,
DatabaseSettings databaseSettings,
Iterable<ColumnNativeTypeDecorator> columnNativeTypeDecorators) |
| Modifier and Type | Method and Description |
|---|---|
void |
createTable(Database database,
Table table,
Map parameters) |
void |
dropTable(Table table) |
String |
getColumnName(Column column) |
String |
getIndexName(Index index) |
String |
getInsertSql(Table table,
Map columnValues,
boolean genPlaceholders) |
protected String |
getSqlType(Column column)
Returns the full SQL type specification (including size and precision/scale) for the given column.
|
String |
getTableName(Table table) |
protected String |
getValueAsString(Column column,
Object value) |
protected void |
processTableStructureChanges(Database currentModel,
Database desiredModel,
Table sourceTable,
Table targetTable,
Map parameters,
List changes) |
protected void |
writeExternalIndexCreateStmt(Table table,
Index index) |
void |
writeExternalIndexDropStmt(Table table,
Index index) |
protected void |
writeTableCreationStmt(Database database,
Table table,
Map parameters) |
public static final String HANADB_STORAGE_COLUMNBASED
public static final String HANADB_STORAGE_OPTIMIZED_INDEXES
public HanaSqlBuilder(Platform platform,
DatabaseSettings databaseSettings,
Iterable<ColumnNativeTypeDecorator> columnNativeTypeDecorators)
public void dropTable(Table table)
throws IOException
IOExceptionpublic String getTableName(Table table)
public void writeExternalIndexDropStmt(Table table,
Index index)
throws IOException
IOExceptionpublic String getIndexName(Index index)
protected void writeTableCreationStmt(Database database,
Table table,
Map parameters)
throws IOException
IOExceptionpublic String getColumnName(Column column)
protected String getSqlType(Column column)
column - The columnprotected void processTableStructureChanges(Database currentModel,
Database desiredModel,
Table sourceTable,
Table targetTable,
Map parameters,
List changes)
throws IOException
IOExceptionpublic void createTable(Database database,
Table table,
Map parameters)
throws IOException
IOExceptionprotected void writeExternalIndexCreateStmt(Table table,
Index index)
throws IOException
IOExceptionCopyright © 2017 SAP SE. All Rights Reserved.