public class HSqlDDLGenerator extends DBDDLGenerator<DBMSHandlerHSql>
DBDDLGenerator.DDLActionType
alterColumnPhrase, databaseObjectName, DATATYPE_BLOB, DATATYPE_BOOLEAN, DATATYPE_CHAR, DATATYPE_CLOB, DATATYPE_DATE, DATATYPE_DECIMAL, DATATYPE_FLOAT, DATATYPE_INT_BIG, DATATYPE_INT_SMALL, DATATYPE_INTEGER, DATATYPE_TIME, DATATYPE_TIMESTAMP, DATATYPE_UNIQUEID, DATATYPE_VARCHAR, dbms, ddlColumnDefaults, namePrimaryKeyConstraint
Constructor and Description |
---|
HSqlDDLGenerator(DBMSHandlerHSql dbms) |
Modifier and Type | Method and Description |
---|---|
protected void |
createDatabase(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 void |
createSequence(DBDatabase db,
DBTableColumn column,
DBSQLScript script)
Appends the DDL-Script for creating a sequence to an SQL-Script
|
void |
getDDLScript(DBDDLGenerator.DDLActionType type,
DBObject dbo,
DBSQLScript script)
Appends the required DLL commands to create, drop or alter an object to the supplied DBDQLScript.
|
addAlterTableStmt, addCreateIndexStmt, addCreateRelationStmt, addCreateTableStmt, addCreateViewStmt, alterTable, appendColumnDataType, appendColumnDesc, appendElementName, createIndex, createRelation, createTable, createTableIndexes, createView, dropDatabase, dropObject, isDDLColumnDefaults, setDDLColumnDefaults
public HSqlDDLGenerator(DBMSHandlerHSql dbms)
protected void createDatabase(DBDatabase db, DBSQLScript script)
DBDDLGenerator
createDatabase
in class DBDDLGenerator<DBMSHandlerHSql>
db
- the database to createscript
- the sql script to which to append the dll command(s)public void getDDLScript(DBDDLGenerator.DDLActionType type, DBObject dbo, DBSQLScript script)
DBDDLGenerator
getDDLScript
in class DBDDLGenerator<DBMSHandlerHSql>
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)protected void createSequence(DBDatabase db, DBTableColumn column, DBSQLScript script)
db
- the database to createcolumn
- the column for which to create the sequencescript
- the sql script to which to append the dll command(s)Copyright © 2008–2023 Apache Software Foundation. All rights reserved.