org.apache.empire.db.hsql
Class HSqlDDLGenerator

java.lang.Object
  extended by org.apache.empire.db.DBDDLGenerator<DBDatabaseDriverHSql>
      extended by org.apache.empire.db.hsql.HSqlDDLGenerator

public class HSqlDDLGenerator
extends DBDDLGenerator<DBDatabaseDriverHSql>


Field Summary
 
Fields inherited from class org.apache.empire.db.DBDDLGenerator
alterColumnPhrase, 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 Summary
HSqlDDLGenerator(DBDatabaseDriverHSql driver)
           
 
Method Summary
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
 
Methods inherited from class org.apache.empire.db.DBDDLGenerator
addAlterTableStmt, addCreateIndexStmt, addCreateRelationStmt, addCreateTableStmt, addCreateViewStmt, alterTable, appendColumnDataType, appendColumnDesc, appendElementName, createIndex, createRelation, createTable, createTableIndexes, createView, detectQuoteName, dropDatabase, dropObject, getDDLScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HSqlDDLGenerator

public HSqlDDLGenerator(DBDatabaseDriverHSql driver)
Method Detail

createDatabase

protected void createDatabase(DBDatabase db,
                              DBSQLScript script)
Description copied from class: DBDDLGenerator
Appends the DDL-Script for creating the given database to an SQL-Script
This includes the generation of all tables, views and relations.

Overrides:
createDatabase in class DBDDLGenerator<DBDatabaseDriverHSql>
Parameters:
db - the database to create
script - the sql script to which to append the dll command(s)

createSequence

protected void createSequence(DBDatabase db,
                              DBTableColumn c,
                              DBSQLScript script)
Appends the DDL-Script for creating a sequence to an SQL-Script

Parameters:
db - the database to create
c - the column for which to create the sequence
script - the sql script to which to append the dll command(s)


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.