Package org.apache.empire.dbms.sqlite
Class SQLiteDDLGenerator
java.lang.Object
org.apache.empire.db.DBDDLGenerator<DBMSHandlerSQLite>
org.apache.empire.dbms.sqlite.SQLiteDDLGenerator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.empire.db.DBDDLGenerator
DBDDLGenerator.DDLActionType -
Field Summary
Fields inherited from class org.apache.empire.db.DBDDLGenerator
alterColumnPhrase, databaseObjectName, DATATYPE_BLOB, DATATYPE_BOOLEAN, DATATYPE_CHAR, DATATYPE_CLOB, DATATYPE_DATE, DATATYPE_DATETIME, DATATYPE_DECIMAL, DATATYPE_FLOAT, DATATYPE_INT_BIG, DATATYPE_INT_SMALL, DATATYPE_INTEGER, DATATYPE_TIME, DATATYPE_TIMESTAMP, DATATYPE_UNIQUEID, DATATYPE_VARCHAR, dbms, ddlColumnDefaults, log, namePrimaryKeyConstraint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateRelation(DBRelation r, DBSQLScript script) Appends the DDL-Script for creating the given foreign-key relation to an SQL-Scriptprotected voidcreateTable(DBTable t, DBSQLScript script) Appends the DDL-Script for creating the given table to an SQL-ScriptMethods inherited from class org.apache.empire.db.DBDDLGenerator
addAlterTableStmt, addCreateIndexStmt, addCreateRelationStmt, addCreateTableStmt, addCreateViewStmt, alterTable, appendColumnDataType, appendColumnDesc, appendElementName, appendIndexColumn, appendIndexType, createDatabase, createIndex, createTableIndexes, createView, dropDatabase, dropObject, getDDLScript, isDDLColumnDefaults, setDDLColumnDefaults
-
Constructor Details
-
SQLiteDDLGenerator
-
-
Method Details
-
createTable
Description copied from class:DBDDLGeneratorAppends the DDL-Script for creating the given table to an SQL-Script- Overrides:
createTablein classDBDDLGenerator<DBMSHandlerSQLite>- Parameters:
t- the table to createscript- the sql script to which to append the dll command(s)
-
createRelation
Description copied from class:DBDDLGeneratorAppends the DDL-Script for creating the given foreign-key relation to an SQL-Script- Overrides:
createRelationin classDBDDLGenerator<DBMSHandlerSQLite>- Parameters:
r- the relation to createscript- the sql script to which to append the dll command(s)
-