org.codehaus.modello.generator.database.sql
Class PostgreSqlBuilder

java.lang.Object
  extended by org.codehaus.modello.generator.database.sql.SqlBuilder
      extended by org.codehaus.modello.generator.database.sql.PostgreSqlBuilder

public class PostgreSqlBuilder
extends SqlBuilder

An SQL Builder for PostgresSqlL

Version:
$Revision: 149 $
Author:
John Thorhauer

Constructor Summary
PostgreSqlBuilder()
           
 
Method Summary
 void createColumn(Table table, Column column)
          Outputs the DDL to add a column to a 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.
 
Methods inherited from class org.codehaus.modello.generator.database.sql.SqlBuilder
alterColumn, columnsDiffer, createDatabase, createDatabase, createTable, dropColumn, dropDatabase, dropIndex, dropTable, getIndent, getNativeType, getWriter, isForeignKeyConstraintsNamed, isForeignKeysEmbedded, isIndexesEmbedded, isPrimaryKeyEmbedded, print, printComment, printEndOfStatement, printIndent, println, println, printNotNullable, printNullable, setAlterTableForDrop, setForeignKeyConstraintsNamed, setForeignKeysEmbedded, setIndent, setIndexesEmbedded, setPrimaryKeyEmbedded, setWriter, shouldGeneratePrimaryKeys, tableComment, useAlterTableForDrop, writeAlterHeader, writeColumnTypes, writeEmbeddedIndexes, writeForeignKeyAlterTable, writeForeignKeys, writeForeignKeysAlterTable, writeForeignReferences, writeIndex, writeIndexes, writeLocalReferences, writePrimaryKeys, writePrimaryKeysAlterTable, writePrimaryKeyStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgreSqlBuilder

public PostgreSqlBuilder()
Method Detail

printAutoIncrementColumn

protected void printAutoIncrementColumn(Table table,
                                        Column column)
                                 throws java.io.IOException
Description copied from class: SqlBuilder
Outputs the fact that this column is an auto increment column.

Overrides:
printAutoIncrementColumn in class SqlBuilder
Throws:
java.io.IOException

createColumn

public void createColumn(Table table,
                         Column column)
                  throws java.io.IOException
Outputs the DDL to add a column to a table.

Overrides:
createColumn in class SqlBuilder
Throws:
java.io.IOException

getSqlType

protected java.lang.String getSqlType(Column column)
Overrides:
getSqlType in class SqlBuilder
Returns:
the full SQL type string including the size


Copyright © 2001-2007 Codehaus. All Rights Reserved.