|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mckoi.database.TableDescriptions
public final class TableDescriptions
An object that is a key part of Database. This object maintains a list of descriptions of all tables in the database. The list contains information about the columns in the table and any other misc table options.
| Constructor Summary | |
|---|---|
TableDescriptions(java.io.File database_path)
Constructs this object with the database in the given directory. |
|
| Method Summary | |
|---|---|
boolean |
exists()
Returns true if the table descriptions file exists. |
DataTableDef |
getDef(java.lang.String table_name)
Returns the DataTableDef object for the table with the given name. |
java.lang.String[] |
getTableList()
Returns a list of table name's sorted in alphebetical order. |
void |
load()
Load the entire list of table descriptions for this database. |
void |
save()
Updates the table description file in the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableDescriptions(java.io.File database_path)
| Method Detail |
|---|
public boolean exists()
public void load()
throws java.io.IOException
java.io.IOException
public void save()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String[] getTableList()
public DataTableDef getDef(java.lang.String table_name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||