|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.metadata.TableMgr
public class TableMgr
The table manager. There are methods to create a table, save the metadata in the catalog, and obtain the metadata of a previously-created table.
| Field Summary | |
|---|---|
static int |
MAX_NAME
The maximum number of characters in any tablename or fieldname. |
| Constructor Summary | |
|---|---|
TableMgr(boolean isNew,
Transaction tx)
Creates a new catalog manager for the database system. |
|
| Method Summary | |
|---|---|
void |
createTable(java.lang.String tblname,
Schema sch,
Transaction tx)
Creates a new table having the specified name and schema. |
TableInfo |
getTableInfo(java.lang.String tblname,
Transaction tx)
Retrieves the metadata for the specified table out of the catalog. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_NAME
| Constructor Detail |
|---|
public TableMgr(boolean isNew,
Transaction tx)
isNew - has the value true if the database is newtx - the startup transaction| Method Detail |
|---|
public void createTable(java.lang.String tblname,
Schema sch,
Transaction tx)
tblname - the name of the new tablesch - the table's schematx - the transaction creating the table
public TableInfo getTableInfo(java.lang.String tblname,
Transaction tx)
tblname - the name of the tabletx - the transaction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||