|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.lang.Object
|
+--com.jdc.rdb.tbl.tco.TableCreationObject
TableCreationObject drops and/or creates a new database table given
an input Table object. The database Table definition is used
to create the required Data Definition Language (DDL) com.jdc.rdb.sql.ddl.Drop
and/or com.jdc.rdb.sql.ddl.Create statements that are executed to drop
and/or create the database table in the appropriate database and schema.
add method to add a given database table definition to a list of
database tables. Once the list is created, drop and/or create the database tables
by invoking the following methods (in order):
tableCreator.execute(Drop.COMMAND)tableCreator.execute(Create.COMMAND
Database,
Table,
Drop,
Create| Field Summary |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
TableCreationObject()
Constructs a new TableCreationObject object. |
|
TableCreationObject(boolean execute)
Constructs a new TableCreationObject object. |
|
| Method Summary | |
void |
add(Table table)
Adds a database Table definition to a list used to com.jdc.rdb.sql.ddl.Drop
and/or com.jdc.rdb.sql.ddl.Create multiple database tables. |
boolean |
create(Table table)
Creates a database Table by creating and executing a com.jdc.rdb.sql.ddl.Create
SQL statement. |
boolean |
drop(Table table)
Drops a database Table by creating and executing a com.jdc.rdb.sql.ddl.Drop
SQL statement. |
boolean |
execute(String command)
Executes com.jdc.rdb.sql.ddl.Drop or com.jdc.rdb.sql.ddl.Create
SQL statements for multiple database Table definitions. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TableCreationObject()
TableCreationObject object.
public TableCreationObject(boolean execute)
TableCreationObject object. If the execute
parameter is true, this table creation object will com.jdc.rdb.sql.ddl.Drop
existing database tables and com.jdc.rdb.sql.ddl.Create new database
tables. Otherwise, the SQL statements that would be executed are
displayed to the console.
| Method Detail |
public void add(Table table)
Table definition to a list used to com.jdc.rdb.sql.ddl.Drop
and/or com.jdc.rdb.sql.ddl.Create multiple database tables.
public boolean create(Table table)
Table by creating and executing a com.jdc.rdb.sql.ddl.Create
SQL statement.
public boolean drop(Table table)
Table by creating and executing a com.jdc.rdb.sql.ddl.Drop
SQL statement.
public boolean execute(String command)
com.jdc.rdb.sql.ddl.Drop or com.jdc.rdb.sql.ddl.Create
SQL statements for multiple database Table definitions.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||