|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ddlutils.platform.SqlBuilder
org.apache.ddlutils.platform.firebird.FirebirdBuilder
The SQL Builder for the FireBird database.
| Field Summary | |
static String |
TERM_COMMAND
Denotes the string used via SET TERM for delimiting commands that need to be executed in one go. |
| Fields inherited from class org.apache.ddlutils.platform.SqlBuilder |
_log, SIZE_PLACEHOLDER |
| Constructor Summary | |
FirebirdBuilder(PlatformInfo info)
Creates a new builder instance. |
|
| Method Summary | |
void |
createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well as with external primary keys and indices (but not foreign keys). |
void |
dropTable(Table table)
Outputs the DDL to drop the table. |
protected String |
getNativeDefaultValue(Column column)
Returns the native default value for the column. |
String |
getSelectLastInsertId(Table table)
Generates the SQL for querying the id that was created in the last insertion operation. This is obviously only useful for pk fields that are auto-incrementing. A database that does not support this, will return null. |
protected void |
writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String TERM_COMMAND
| Constructor Detail |
public FirebirdBuilder(PlatformInfo info)
info - The platform info| Method Detail |
public void createTable(Database database,
Table table,
Map parameters)
throws IOException
createTable in class SqlBuilderdatabase - The database modeltable - The tableparameters - Additional platform-specific parameters for the table creation
IOException
public void dropTable(Table table)
throws IOException
dropTable in class SqlBuildertable - The table to drop
IOException
protected void writeColumnAutoIncrementStmt(Table table,
Column column)
throws IOException
writeColumnAutoIncrementStmt in class SqlBuildertable - The tablecolumn - The column
IOExceptionpublic String getSelectLastInsertId(Table table)
null.
getSelectLastInsertId in class SqlBuildertable - The table
null if the database does not support thisprotected String getNativeDefaultValue(Column column)
getNativeDefaultValue in class SqlBuildercolumn - The column
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||