org.codehaus.modello.generator.database.sql

Class PostgreSqlBuilder

public class PostgreSqlBuilder extends SqlBuilder

An SQL Builder for PostgresSqlL

Version: $Revision: 149 $

Author: John Thorhauer

Constructor Summary
PostgreSqlBuilder()
Method Summary
voidcreateColumn(Table table, Column column)
Outputs the DDL to add a column to a table.
protected StringgetSqlType(Column column)
protected voidprintAutoIncrementColumn(Table table, Column column)

Constructor Detail

PostgreSqlBuilder

public PostgreSqlBuilder()

Method Detail

createColumn

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

getSqlType

protected String getSqlType(Column column)

Returns: the full SQL type string including the size

printAutoIncrementColumn

protected void printAutoIncrementColumn(Table table, Column column)
Copyright © 2001-2007 Codehaus. All Rights Reserved.