|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsrc.server.TableCreator
Creates the default tables for the server's database. All tables are reset when recreated so don't run this for a database that you don't want to clear.
| Constructor Summary | |
TableCreator()
Constructor for TableCreator. |
|
| Method Summary | |
void |
createTable(java.lang.String tableName,
boolean overwrite)
Creates a sepcified table. |
java.lang.String[] |
getTableList()
Gets the list of all tables that are available. |
boolean |
hasTable(java.lang.String tableName)
Checks if a specified table exists in the creator's records. |
static void |
main(java.lang.String[] args)
Main for commandline. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TableCreator()
| Method Detail |
public static void main(java.lang.String[] args)
args - See -h.public java.lang.String[] getTableList()
public boolean hasTable(java.lang.String tableName)
tableName - The name of the table to look for.
public void createTable(java.lang.String tableName,
boolean overwrite)
tableName - The name of the table that should be created.overwrite - If true then any old table will be overwritten
along with any data contained.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||