|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.torque.map.DatabaseMap
DatabaseMap is used to model a database.
| Constructor Summary | |
DatabaseMap()
Required by proxy. |
|
DatabaseMap(java.lang.String name)
Constructor. |
|
DatabaseMap(java.lang.String name,
int numberOfTables)
Constructor. |
|
| Method Summary | |
void |
addIdGenerator(java.lang.String type,
IdGenerator idGen)
Add a type of id generator for access by a TableMap. |
void |
addTable(java.lang.String tableName)
Add a new table to the database by name. |
void |
addTable(java.lang.String tableName,
int numberOfColumns)
Add a new table to the database by name. |
void |
addTable(TableMap map)
Add a new TableMap to the database. |
boolean |
containsTable(java.lang.String name)
Does this database contain this specific table? |
boolean |
containsTable(TableMap table)
Does this database contain this specific table? |
IDBroker |
getIDBroker()
Get the IDBroker for this database. |
TableMap |
getIdTable()
Get the ID table for this database. |
java.lang.String |
getName()
Get the name of this database. |
TableMap |
getTable(java.lang.String name)
Get a TableMap for the table by name. |
TableMap[] |
getTables()
Get a TableMap[] of all of the tables in the database. |
void |
setIdTable(java.lang.String tableName)
Set the ID table for this database. |
void |
setIdTable(TableMap idTable)
Set the ID table for this database. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DatabaseMap()
public DatabaseMap(java.lang.String name,
int numberOfTables)
name - Name of the database.numberOfTables - Number of tables in the database.public DatabaseMap(java.lang.String name)
name - Name of the database.| Method Detail |
public boolean containsTable(TableMap table)
table - The TableMap representation of the table.
public boolean containsTable(java.lang.String name)
name - The String representation of the table.
public TableMap getIdTable()
public IDBroker getIDBroker()
public java.lang.String getName()
public TableMap getTable(java.lang.String name)
name - Name of the table.
public TableMap[] getTables()
public void addTable(java.lang.String tableName)
tableName - The name of the table.
public void addTable(java.lang.String tableName,
int numberOfColumns)
tableName - The name of the table.numberOfColumns - The number of columns in the table.public void addTable(TableMap map)
map - The TableMap representation.public void setIdTable(TableMap idTable)
idTable - The TableMap representation for the ID table.public void setIdTable(java.lang.String tableName)
tableName - The name for the ID table.
public void addIdGenerator(java.lang.String type,
IdGenerator idGen)
type - a String valueidGen - an IdGenerator value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||