Package org.apache.empire.dbms.hsql
Class HSqlDDLGenerator
-
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 voidcreateDatabase(DBDatabase db, DBSQLScript script) Appends the DDL-Script for creating the given database to an SQL-Script
This includes the generation of all tables, views and relations.protected voidcreateSequence(DBDatabase db, DBTableColumn column, DBSQLScript script) Appends the DDL-Script for creating a sequence to an SQL-ScriptvoidgetDDLScript(DBDDLGenerator.DDLActionType type, DBObject dbo, DBSQLScript script) Appends the required DLL commands to create, drop or alter an object to the supplied DBDQLScript.Methods inherited from class org.apache.empire.db.DBDDLGenerator
addAlterTableStmt, addCreateIndexStmt, addCreateRelationStmt, addCreateTableStmt, addCreateViewStmt, alterTable, appendColumnDataType, appendColumnDesc, appendElementName, appendIndexColumn, appendIndexType, createIndex, createRelation, createTable, createTableIndexes, createView, dropDatabase, dropObject, isDDLColumnDefaults, setDDLColumnDefaults
-
Constructor Details
-
HSqlDDLGenerator
-
-
Method Details
-
createDatabase
Description copied from class:DBDDLGeneratorAppends the DDL-Script for creating the given database to an SQL-Script
This includes the generation of all tables, views and relations.- Overrides:
createDatabasein classDBDDLGenerator<DBMSHandlerHSql>- Parameters:
db- the database to createscript- the sql script to which to append the dll command(s)
-
getDDLScript
Description copied from class:DBDDLGeneratorAppends the required DLL commands to create, drop or alter an object to the supplied DBDQLScript.- Overrides:
getDDLScriptin classDBDDLGenerator<DBMSHandlerHSql>- Parameters:
type- operation to perform (CREATE, DROP, ALTER)dbo- the object for which to perform the operation (DBDatabase, DBTable, DBView, DBColumn, DBRelation)script- the script to which to add the DDL command(s)
-
createSequence
Appends the DDL-Script for creating a sequence to an SQL-Script- Parameters:
db- the database to createcolumn- the column for which to create the sequencescript- the sql script to which to append the dll command(s)
-