org.codehaus.modello.generator.database.sql
Class OracleBuilder
public class OracleBuilder
An SQL Builder for Oracle
alterColumn , columnsDiffer , createColumn , createDatabase , createDatabase , createTable , dropColumn , dropDatabase , dropIndex , dropTable , getIndent , getNativeType , getSqlType , getWriter , isForeignKeyConstraintsNamed , isForeignKeysEmbedded , isIndexesEmbedded , isPrimaryKeyEmbedded , print , printAutoIncrementColumn , printComment , printEndOfStatement , printIndent , printNotNullable , printNullable , println , println , setAlterTableForDrop , setForeignKeyConstraintsNamed , setForeignKeysEmbedded , setIndent , setIndexesEmbedded , setPrimaryKeyEmbedded , setWriter , shouldGeneratePrimaryKeys , tableComment , useAlterTableForDrop , writeAlterHeader , writeColumnTypes , writeEmbeddedIndexes , writeForeignKeyAlterTable , writeForeignKeys , writeForeignKeysAlterTable , writeForeignReferences , writeIndex , writeIndexes , writeLocalReferences , writePrimaryKeyStatement , writePrimaryKeys , writePrimaryKeysAlterTable |
OracleBuilder
public OracleBuilder()
createSequence
protected void createSequence(Table table,
Column column)
throws IOException
Creates a sequence so that values can be auto incremented
createSequenceTrigger
protected void createSequenceTrigger(Table table,
Column column)
throws IOException
Creates a trigger to auto-increment values
createTable
public void createTable(Table table)
throws IOException
Outputs the DDL to create the table along with any constraints
- createTable in interface SqlBuilder
dropTable
public void dropTable(Table table)
throws IOException
Outputs the DDL to drop the table
- dropTable in interface SqlBuilder
getSqlType
protected String getSqlType(Column column)
- getSqlType in interface SqlBuilder
- the full SQL type string, including size where appropriate.
Where necessary, translate for Oracle specific DDL requirements.
printComment
protected void printComment(String text)
throws IOException
Prints an SQL comment to the current stream
- printComment in interface SqlBuilder