org.codehaus.modello.generator.database.sql

Class Db2Builder


public class Db2Builder
extends SqlBuilder

An SQL Builder for Oracle
Version:
$Revision: 149 $
Author:
James Strachan

Constructor Summary

Db2Builder()

Method Summary

void
dropTable(Table table)
Outputs the DDL to drop the table
protected void
printAutoIncrementColumn(Table table, Column column)
Outputs the fact that this column is an auto increment column.

Methods inherited from class org.codehaus.modello.generator.database.sql.SqlBuilder

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

Constructor Details

Db2Builder

public Db2Builder()

Method Details

dropTable

public void dropTable(Table table)
            throws IOException
Outputs the DDL to drop the table
Overrides:
dropTable in interface SqlBuilder

printAutoIncrementColumn

protected void printAutoIncrementColumn(Table table,
                                        Column column)
            throws IOException
Outputs the fact that this column is an auto increment column.
Overrides:
printAutoIncrementColumn in interface SqlBuilder