|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.azalient.api.file.record.TypeObject
com.azalient.api.file.record.ReaderUtilities
com.azalient.api.file.table.AbstractTable
public abstract class AbstractTable
A base class for a table on a page in the model file.
| Method Summary | |
|---|---|
Object[] |
colNameObjects()
Return an array of all column name objects. |
void |
destroy()
Called when the table is no longer required, to discard references held in the table, for example to the parent page |
int |
headerRows()
The number of header rows in this table. |
Class[] |
keyTypes()
The type and number of key columns in this table. |
void |
newPage(IPage newPage)
Move this table to a new page |
IPage |
page()
The page to which this table belongs |
String |
pageName()
The name of the page on which this table is found |
PageType |
pageType()
|
String |
tableName()
|
String |
toString()
|
| Methods inherited from class com.azalient.api.file.record.TypeObject |
|---|
b, c, d, equals, equals, equalsEW, f, i, keyString, keyString, nameFromKeyString, rowKeysFromKeyString, s, t, t |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public final void newPage(IPage newPage)
public final IPage page()
ITable
page in interface ITablepublic final PageType pageType()
pageType in interface ITableTypepublic String pageName()
ITable
pageName in interface ITablepublic String tableName()
tableName in interface ITableTypepublic String toString()
toString in class Objectpublic int headerRows()
Table
headerRows in interface Tablepublic Class[] keyTypes()
TableIf you create a table/object definition with more than one key column, and the uniqueness of the name depends on the key columns after the first, then the name() function should return a concatenation of the key column objects otherwise the lookup() function will fail, the objects which have the same first column value but differ in the others will not be added to the store, as they will appear to be duplicate entries.
See TypeObject.keyString(Object[])
See IRecord.name()
keyTypes in interface Tablepublic Object[] colNameObjects()
ITableType
colNameObjects in interface ITableTypepublic void destroy()
Table
destroy in interface Table
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||