|
com.im.commons.db 5.9.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.im.commons.db.ddl.tablesets.TableSetInfo
public abstract class TableSetInfo
Describes a set of tables. Often there is just a single table, but when a number of tables form a functional unit they are collected into a single TableSetInfo. An example is a JChem Base table that has an associated _UL table.
| Field Summary | |
|---|---|
protected DBTableInfo[] |
tableInfos
|
| Constructor Summary | |
|---|---|
protected |
TableSetInfo()
|
| Method Summary | |
|---|---|
void |
addToModel(String parentID,
DBItemsCache cache)
|
abstract TableSetInfo |
clone()
|
abstract SQLJoin[] |
getJoins()
The joins for each of the tables used by this set of tables. |
DBTableInfo[] |
getTableInfos()
Get all the DFTableInfos that are part of this table cluster. |
SchemaQualifiedName[] |
getTableNames()
The names of the "tables" used by this cluster. |
abstract String |
getType()
A string that identifies the table type. |
void |
removeFromModel(String parentID,
DBItemsCache cache)
|
String |
schemaPlusTable()
|
void |
updateLazyTableInfos()
Load full info if DBTableInfo is lazy |
TableSetInfo |
updateTableInfos(DBTableInfo... tInfos)
|
TableSetInfo |
updateTableInfosRemoveProxies()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DBTableInfo[] tableInfos
| Constructor Detail |
|---|
protected TableSetInfo()
| Method Detail |
|---|
public String schemaPlusTable()
public abstract String getType()
public SchemaQualifiedName[] getTableNames()
public final DBTableInfo[] getTableInfos()
public TableSetInfo updateTableInfos(DBTableInfo... tInfos)
public void updateLazyTableInfos()
public TableSetInfo updateTableInfosRemoveProxies()
public abstract SQLJoin[] getJoins()
getTableNames() e.g. the second element in the list of joins
corresponds to the join between the master table and the second element in
the getTableNames() list.
Join information allows data (e.g. a field) to be present in a separate table
and provides the information necessary to retreive that information
By definition the join for the first element must be a SQLJoin with has a
zero length path (e.g. new SQLJoin(new SQLJoin.Path[0]) ), but joins for
the other tables can optionally be defined. A join will be defined where the
row(s) in the secondary table can be related to those in the master table by means of
a join. Not all tables will have such a join, and in these cases the list
should contain null for that element in the list.
public abstract TableSetInfo clone()
clone in class Object
public void addToModel(String parentID,
DBItemsCache cache)
addToModel in interface AbstractInfo
public void removeFromModel(String parentID,
DBItemsCache cache)
removeFromModel in interface AbstractInfo
|
com.im.commons.db 5.9.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||