org.apache.empire.db.sqlite
Class SQLiteDDLGenerator

java.lang.Object
  extended by org.apache.empire.db.DBDDLGenerator<DBDatabaseDriverSQLite>
      extended by org.apache.empire.db.sqlite.SQLiteDDLGenerator

public class SQLiteDDLGenerator
extends DBDDLGenerator<DBDatabaseDriverSQLite>


Field Summary
 
Fields inherited from class org.apache.empire.db.DBDDLGenerator
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 Summary
SQLiteDDLGenerator(DBDatabaseDriverSQLite driver)
           
 
Method Summary
protected  void createRelation(DBRelation r, DBSQLScript script)
          Appends the DDL-Script for creating the given foreign-key relation to an SQL-Script
protected  void createTable(DBTable t, DBSQLScript script)
          Appends the DDL-Script for creating the given table to an SQL-Script
 
Methods inherited from class org.apache.empire.db.DBDDLGenerator
addAlterTableStmt, addCreateIndexStmt, addCreateRelationStmt, addCreateTableStmt, addCreateViewStmt, alterTable, appendColumnDataType, appendColumnDesc, appendElementName, createDatabase, createIndex, 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

SQLiteDDLGenerator

public SQLiteDDLGenerator(DBDatabaseDriverSQLite driver)
Method Detail

createTable

protected void createTable(DBTable t,
                           DBSQLScript script)
Description copied from class: DBDDLGenerator
Appends the DDL-Script for creating the given table to an SQL-Script

Overrides:
createTable in class DBDDLGenerator<DBDatabaseDriverSQLite>
Parameters:
t - the table to create
script - the sql script to which to append the dll command(s)

createRelation

protected void createRelation(DBRelation r,
                              DBSQLScript script)
Description copied from class: DBDDLGenerator
Appends the DDL-Script for creating the given foreign-key relation to an SQL-Script

Overrides:
createRelation in class DBDDLGenerator<DBDatabaseDriverSQLite>
Parameters:
r - the relation to create
script - the sql script to which to append the dll command(s)


Copyright © 2008–2014 Apache Software Foundation. All rights reserved.