public class HSqlDDLGenerator extends DBDDLGenerator<DBDatabaseDriverHSql>
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_TIMESTAMP, DATATYPE_UNIQUEID, DATATYPE_VARCHAR, driver, namePrimaryKeyConstraint
Constructor and Description |
---|
HSqlDDLGenerator(DBDatabaseDriverHSql driver) |
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 c,
DBSQLScript script)
Appends the DDL-Script for creating a sequence to an SQL-Script
|
void |
getDDLScript(DBCmdType 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, detectQuoteName, dropDatabase, dropObject
public HSqlDDLGenerator(DBDatabaseDriverHSql driver)
protected void createDatabase(DBDatabase db, DBSQLScript script)
DBDDLGenerator
createDatabase
in class DBDDLGenerator<DBDatabaseDriverHSql>
db
- the database to createscript
- the sql script to which to append the dll command(s)public void getDDLScript(DBCmdType type, DBObject dbo, DBSQLScript script)
DBDDLGenerator
getDDLScript
in class DBDDLGenerator<DBDatabaseDriverHSql>
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 c, DBSQLScript script)
db
- the database to createc
- the column for which to create the sequencescript
- the sql script to which to append the dll command(s)Copyright © 2008–2018 Apache Software Foundation. All rights reserved.