|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.empire.db.DBDDLGenerator<DBDatabaseDriverOracle>
org.apache.empire.db.oracle.OracleDDLGenerator
public class OracleDDLGenerator
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 | |
---|---|
OracleDDLGenerator(DBDatabaseDriverOracle driver)
|
Method Summary | |
---|---|
protected boolean |
appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder sql)
appends the data type of a column |
protected void |
createComment(DBDatabase db,
String type,
DBExpr expr,
String comment,
DBSQLScript script)
Returns true if the comment has been created successfully. |
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)
Returns true if the sequence has been created successfully. |
protected void |
createTable(DBTable t,
DBSQLScript script)
Appends the DDL-Script for creating the given table to an SQL-Script |
protected void |
dropDatabase(DBDatabase db,
DBSQLScript script)
Appends the DDL-Script for dropping a database to the given script object |
Methods inherited from class org.apache.empire.db.DBDDLGenerator |
---|
addAlterTableStmt, addCreateIndexStmt, addCreateRelationStmt, addCreateTableStmt, addCreateViewStmt, alterTable, appendColumnDesc, appendElementName, createIndex, createRelation, createTableIndexes, createView, detectQuoteName, dropObject, getDDLScript |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OracleDDLGenerator(DBDatabaseDriverOracle driver)
Method Detail |
---|
protected boolean appendColumnDataType(DataType type, double size, DBTableColumn c, StringBuilder sql)
DBDDLGenerator
appendColumnDataType
in class DBDDLGenerator<DBDatabaseDriverOracle>
protected void createDatabase(DBDatabase db, DBSQLScript script)
DBDDLGenerator
createDatabase
in class DBDDLGenerator<DBDatabaseDriverOracle>
db
- the database to createscript
- the sql script to which to append the dll command(s)protected void dropDatabase(DBDatabase db, DBSQLScript script)
DBDDLGenerator
dropDatabase
in class DBDDLGenerator<DBDatabaseDriverOracle>
db
- the database to dropscript
- the sql script to which to append the dll command(s)protected void createSequence(DBDatabase db, DBTableColumn c, DBSQLScript script)
protected void createTable(DBTable t, DBSQLScript script)
DBDDLGenerator
createTable
in class DBDDLGenerator<DBDatabaseDriverOracle>
t
- the table to createscript
- the sql script to which to append the dll command(s)protected void createComment(DBDatabase db, String type, DBExpr expr, String comment, DBSQLScript script)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |