|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.modello.generator.database.sql.SqlBuilder
org.codehaus.modello.generator.database.sql.OracleBuilder
An SQL Builder for Oracle
Field Summary |
Fields inherited from class org.codehaus.modello.generator.database.sql.SqlBuilder |
|
Constructor Summary | |
OracleBuilder()
|
Method Summary | |
protected void |
createSequence(Table table,
Column column)
Creates a sequence so that values can be auto incremented |
protected void |
createSequenceTrigger(Table table,
Column column)
Creates a trigger to auto-increment values |
void |
createTable(Table table)
Outputs the DDL to create the table along with any constraints |
void |
dropTable(Table table)
Outputs the DDL to drop the table |
protected java.lang.String |
getSqlType(Column column)
|
protected void |
printAutoIncrementColumn(Table table,
Column column)
Outputs the fact that this column is an auto increment column. |
protected void |
printComment(java.lang.String text)
Prints an SQL comment to the current stream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OracleBuilder()
Method Detail |
public void dropTable(Table table) throws java.io.IOException
SqlBuilder
dropTable
in class SqlBuilder
java.io.IOException
protected void printComment(java.lang.String text) throws java.io.IOException
SqlBuilder
printComment
in class SqlBuilder
java.io.IOException
public void createTable(Table table) throws java.io.IOException
SqlBuilder
createTable
in class SqlBuilder
java.io.IOException
protected void printAutoIncrementColumn(Table table, Column column) throws java.io.IOException
SqlBuilder
printAutoIncrementColumn
in class SqlBuilder
java.io.IOException
protected void createSequence(Table table, Column column) throws java.io.IOException
java.io.IOException
protected void createSequenceTrigger(Table table, Column column) throws java.io.IOException
java.io.IOException
protected java.lang.String getSqlType(Column column)
getSqlType
in class SqlBuilder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |