|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ed.inf.utils.database.DbManaged
uk.ac.ed.inf.utils.database.TableManaged
uk.ac.ed.inf.utils.database.TableCreator
public class TableCreator
Class to create a table object in the database. The table data (name etc.) is
taken from a Table object.
| Constructor Summary | |
|---|---|
TableCreator(TableManager tableManager,
Table table)
|
|
| Method Summary | |
|---|---|
boolean |
createTable()
Creates the database table for this Table object |
void |
dropCreateTable()
Drops and creates table corresponding to this Table object. |
boolean |
dropTable()
Drops the database table for this Table object. |
java.lang.String |
getSqlToCreateTable()
Get the SQL statement to create the table |
java.lang.String |
getTableName()
|
| Methods inherited from class uk.ac.ed.inf.utils.database.TableManaged |
|---|
getTableManager |
| Methods inherited from class uk.ac.ed.inf.utils.database.DbManaged |
|---|
getDbConnection, getDbManager |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableCreator(TableManager tableManager,
Table table)
| Method Detail |
|---|
public boolean createTable()
Table object
public void dropCreateTable()
java.sql.SQLExceptionpublic boolean dropTable()
public java.lang.String getSqlToCreateTable()
public java.lang.String getTableName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||