public class CreateDropHelper
extends java.lang.Object
| Constructor and Description |
|---|
CreateDropHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
generateCreateColumnSectionPart(KittyColumnConfiguration columnCfg)
Generates column section for specified column for crete\alter statement
|
static java.util.List<KittySQLiteQuery> |
generateCreateIndexStatements(KittyTableConfiguration conf,
boolean skipSchemaName)
Generates CREATE statements for indexes described in provided table configuration.
|
static java.util.HashMap<java.lang.String,KittySQLiteQuery> |
generateCreateIndexStatementsMap(KittyTableConfiguration conf,
boolean skipSchemaName)
Generates CREATE statements for indexes described in provided table configuration.
|
static KittySQLiteQuery |
generateCreateTableStatement(java.lang.Boolean ifNotExistsFlag,
KittyTableConfiguration conf,
boolean skipSchemaName)
Generates create statement for table described in provided configuration.
|
static java.util.LinkedList<KittySQLiteQuery> |
generateCreationScript(KittyDatabaseConfiguration databaseConfiguration)
Generates create tables and indexes script on provided instance of
KittyDatabaseConfiguration |
static KittySQLiteQuery |
generateDropIndexStatement(java.lang.String schemaName,
java.lang.String indexName)
Returns drop tableIndex statement
|
static java.util.List<KittySQLiteQuery> |
generateDropIndexStatements(KittyTableConfiguration conf)
Returns list of indexes drop statements associated with provided table configuration or null
if no indexes defined.
|
static KittySQLiteQuery |
generateDropTableStatement(KittyTableConfiguration conf)
Returns SQLite drop statement for table associated with this instance of
KittyTableConfiguration |
static KittySQLiteQuery |
generateDropTableStatement(java.lang.String tableName,
java.lang.String schemaName,
boolean isTemporaryTable)
Returns SQLite drop statement for specified table name, schema name and temporary table flag.
|
public static final java.util.LinkedList<KittySQLiteQuery> generateCreationScript(KittyDatabaseConfiguration databaseConfiguration)
KittyDatabaseConfigurationdatabaseConfiguration - public static final KittySQLiteQuery generateDropTableStatement(KittyTableConfiguration conf)
KittyTableConfigurationconf - public static final KittySQLiteQuery generateDropTableStatement(java.lang.String tableName, java.lang.String schemaName, boolean isTemporaryTable)
tableName - schemaName - isTemporaryTable - public static final java.util.List<KittySQLiteQuery> generateDropIndexStatements(KittyTableConfiguration conf)
conf - public static final KittySQLiteQuery generateDropIndexStatement(java.lang.String schemaName, java.lang.String indexName)
schemaName - indexName - public static java.util.List<KittySQLiteQuery> generateCreateIndexStatements(KittyTableConfiguration conf, boolean skipSchemaName)
conf - public static java.util.HashMap<java.lang.String,KittySQLiteQuery> generateCreateIndexStatementsMap(KittyTableConfiguration conf, boolean skipSchemaName)
conf - skipSchemaName - public static final KittySQLiteQuery generateCreateTableStatement(java.lang.Boolean ifNotExistsFlag, KittyTableConfiguration conf, boolean skipSchemaName)
KittyRuntimeException would be thrown if provided configuration is not configuration of schema model.ifNotExistsFlag - IF NOT EXISTS flag, overrides same setting defined in KITTY_TABLE, set null if no override neededconf - table configurationskipSchemaName - skips {SCHEMA_NAME}. at creation statementpublic static java.lang.String generateCreateColumnSectionPart(KittyColumnConfiguration columnCfg)
columnCfg -