public final class GemFireXDBuilder extends DerbyBuilder
_log, LINE_SEPARATOR, SIZE_PLACEHOLDER| Constructor and Description |
|---|
GemFireXDBuilder(Platform platform)
Creates a new builder instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createIndex(Table table,
Index index)
Writes the given index for the table using an external index creation
statement.
|
void |
dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
void |
dropTable(Table table)
Outputs the DDL to drop the table.
|
protected String |
getIndexName(Table table,
Index index) |
protected String |
getNativeType(Column column)
Returns the database-native type for the given column.
|
void |
writeAddIdentityColumnUsingAlterTable(Table table,
Column column)
Write the ALTER TABLE statement to set a given column as a generated
identity column.
|
protected void |
writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
protected void |
writeEmbeddedIndexCreateStmt(Table table,
Index index)
Writes the given embedded index of the table.
|
getNativeDefaultValue, writeCastExpressiongetSelectLastIdentityValuesaddColumn, addEscapedCharSequence, areEqual, columnsDiffer, copyData, createForeignKey, createForeignKeys, createForeignKeys, createIndexes, createPrimaryKey, createTable, createTable, createTables, createTables, createTables, createTemporaryTable, createUniqueIdentifier, dropForeignKey, dropForeignKeys, dropTable, dropTables, dropTemporaryTable, escapeStringValue, getBareNativeType, getColumnName, getConstraintName, getDefaultValueHelper, getDeleteSql, getDelimitedIdentifier, getForeignKeyName, getIndent, getIndexName, getInsertSql, getMaxColumnNameLength, getMaxConstraintNameLength, getMaxForeignKeyNameLength, getMaxTableNameLength, getPlatform, getPlatformInfo, getSizeSpec, getSqlType, getSqlType, getTableName, getUpdateSql, getUpdateSql, getValueAsString, getValueDateFormat, getValueLocale, getValueNumberFormat, getValueTimeFormat, getWriter, isValidDefaultValue, print, printComment, printDefaultValue, printEndOfStatement, printIdentifier, printIndent, println, println, printlnIdentifier, printStartOfEmbeddedStatement, setIndent, setValueDateFormat, setValueLocale, setValueNumberFormat, setValueTimeFormat, setWriter, shortenName, shouldGeneratePrimaryKeys, writeColumn, writeColumnDefaultValue, writeColumnDefaultValueStmt, writeColumnNotNullableStmt, writeColumnNullableStmt, writeColumns, writeEmbeddedForeignKeysStmt, writeEmbeddedIndicesStmt, writeEmbeddedPrimaryKeysStmt, writeForeignKeyOnDeleteAction, writeForeignKeyOnUpdateAction, writeForeignReferences, writeLocalReferences, writePrimaryKeyStmt, writeTableAlterStmt, writeTableComment, writeTableCreationStmt, writeTableCreationStmtEndingpublic GemFireXDBuilder(Platform platform)
platform - The plaftform this builder belongs toprotected String getNativeType(Column column)
getNativeType in class SqlBuildercolumn - The columnprotected void writeColumnAutoIncrementStmt(Table table, Column column) throws IOException
writeColumnAutoIncrementStmt in class DerbyBuildertable - The tablecolumn - The columnIOExceptionpublic void createIndex(Table table, Index index) throws IOException
createIndex in class SqlBuildertable - The tableindex - The indexIOExceptionprotected void writeEmbeddedIndexCreateStmt(Table table, Index index) throws IOException
writeEmbeddedIndexCreateStmt in class SqlBuildertable - The tableindex - The indexIOExceptionpublic void dropTable(Table table) throws IOException
SqlBuilder.dropTable(Database, Table)
if you want that.dropTable in class SqlBuildertable - The table to dropIOExceptionpublic void dropIndex(Table table, Index index) throws IOException
dropIndex in class DerbyBuildertable - The table the index is onindex - The index to dropIOExceptionpublic void writeAddIdentityColumnUsingAlterTable(Table table, Column column) throws IOException
SqlBuilderwriteAddIdentityColumnUsingAlterTable in class SqlBuilderIOExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.