Class HSqlDDLGenerator

java.lang.Object
org.apache.empire.db.DBDDLGenerator<DBMSHandlerHSql>
org.apache.empire.dbms.hsql.HSqlDDLGenerator

public class HSqlDDLGenerator extends DBDDLGenerator<DBMSHandlerHSql>
  • Constructor Details

  • Method Details

    • 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<DBMSHandlerHSql>
      Parameters:
      db - the database to create
      script - the sql script to which to append the dll command(s)
    • getDDLScript

      public void getDDLScript(DBDDLGenerator.DDLActionType type, DBObject dbo, DBSQLScript script)
      Description copied from class: DBDDLGenerator
      Appends the required DLL commands to create, drop or alter an object to the supplied DBDQLScript.
      Overrides:
      getDDLScript in class DBDDLGenerator<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

      protected void createSequence(DBDatabase db, DBTableColumn column, DBSQLScript script)
      Appends the DDL-Script for creating a sequence to an SQL-Script
      Parameters:
      db - the database to create
      column - the column for which to create the sequence
      script - the sql script to which to append the dll command(s)