|
|||||||||||
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.AxionBuilder
An SQL Builder for the Axion JDBC database.
Field Summary |
Fields inherited from class org.codehaus.modello.generator.database.sql.SqlBuilder |
|
Constructor Summary | |
AxionBuilder()
|
Method Summary | |
void |
createColumn(Table table,
Column column)
Outputs the DDL to add a column to a table. |
protected java.lang.String |
getNativeType(Column column)
|
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 |
printNotNullable()
Prints that a column is not nullable |
protected void |
printNullable()
Prints that a column is nullable |
protected void |
writeForeignKeys(Table table)
Writes the foreign key constraints inside a create table () clause. |
protected void |
writePrimaryKeys(Table table)
Writes the primary key constraints inside a create table () clause. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AxionBuilder()
Method Detail |
protected java.lang.String getSqlType(Column column)
getSqlType
in class SqlBuilder
protected void writePrimaryKeys(Table table) throws java.io.IOException
SqlBuilder
writePrimaryKeys
in class SqlBuilder
java.io.IOException
protected void writeForeignKeys(Table table) throws java.io.IOException
SqlBuilder
writeForeignKeys
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 printNotNullable() throws java.io.IOException
SqlBuilder
printNotNullable
in class SqlBuilder
java.io.IOException
protected void printNullable() throws java.io.IOException
SqlBuilder
printNullable
in class SqlBuilder
java.io.IOException
protected java.lang.String getNativeType(Column column)
getNativeType
in class SqlBuilder
public void createColumn(Table table, Column column) throws java.io.IOException
createColumn
in class SqlBuilder
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |