org.apache.empire.db.derby
Class DerbyDDLGenerator

java.lang.Object
  extended by org.apache.empire.db.DBDDLGenerator<DBDatabaseDriverDerby>
      extended by org.apache.empire.db.derby.DerbyDDLGenerator

public class DerbyDDLGenerator
extends DBDDLGenerator<DBDatabaseDriverDerby>


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
DerbyDDLGenerator(DBDatabaseDriverDerby driver)
           
 
Method Summary
protected  boolean appendColumnDataType(DataType type, double size, DBTableColumn c, StringBuilder sql)
          appends the data type of a column
protected  void appendColumnDesc(DBTableColumn c, boolean alter, StringBuilder sql)
          Appends a table column definition to a ddl statement
 
Methods inherited from class org.apache.empire.db.DBDDLGenerator
addAlterTableStmt, addCreateIndexStmt, addCreateRelationStmt, addCreateTableStmt, addCreateViewStmt, alterTable, appendElementName, createDatabase, 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

DerbyDDLGenerator

public DerbyDDLGenerator(DBDatabaseDriverDerby driver)
Method Detail

appendColumnDataType

protected boolean appendColumnDataType(DataType type,
                                       double size,
                                       DBTableColumn c,
                                       StringBuilder sql)
Description copied from class: DBDDLGenerator
appends the data type of a column

Overrides:
appendColumnDataType in class DBDDLGenerator<DBDatabaseDriverDerby>
Returns:
true if further column attributes may be added or false otherwise

appendColumnDesc

protected void appendColumnDesc(DBTableColumn c,
                                boolean alter,
                                StringBuilder sql)
Description copied from class: DBDDLGenerator
Appends a table column definition to a ddl statement

Overrides:
appendColumnDesc in class DBDDLGenerator<DBDatabaseDriverDerby>
Parameters:
c - the column which description to append
alter - true if altering an existing column or false otherwise
sql - the sql builder object


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