|
||||||||||
| 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
com.azalient.api.file.table.AbstractTableW
com.azalient.api.file.table.AbstractTableRW
public abstract class AbstractTableRW
A base class for a readable/writable table, in this package to use WorkBook (Can't extend AbstractTableR and AbstractTableW, so have to duplicate the methods in AbstractTableR here)
| Method Summary | |
|---|---|
Object |
columnNameObject(String name)
Map a column header name to a column key. |
void |
finishedR(Page page)
The reader is finished with the table, plus a a handle to the page |
void |
invalidate(RecordR record)
This allows a record to remove itself, commonly from within the finished() method, afer checking its own validity |
Class[] |
keyTypes()
The type and number of key columns in this table. |
void |
notFound(OpeningStatus ps)
If it is mandatory that the table exists, override this and set ps.okAZA to false |
boolean |
open()
read the table from model's current open file |
void |
open(OpeningStatus ps)
read the store from model's current open file |
abstract RecordR |
row(Object[] rowKey)
Return a reference to a Record (a row object). |
abstract boolean |
rowExists(Object[] rowKey)
Return true if a record already exists with this key. |
| Methods inherited from class com.azalient.api.file.table.AbstractTableW |
|---|
columnName, finishedW, format, recordArray, save, save, width |
| Methods inherited from class com.azalient.api.file.table.AbstractTable |
|---|
colNameObjects, destroy, headerRows, newPage, page, pageName, pageType, tableName, 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 |
| Methods inherited from interface com.azalient.api.file.TableW |
|---|
columnName, finishedW, format, newPage, recordArray, save, save, width |
| Methods inherited from interface com.azalient.api.file.Table |
|---|
destroy, headerRows |
| Methods inherited from interface com.azalient.api.a.tables.ITable |
|---|
page, pageName |
| Methods inherited from interface com.azalient.api.a.tables.ITableType |
|---|
colNameObjects, pageType, tableName |
| Method Detail |
|---|
public Class[] keyTypes()
If you create a table/object defintion 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 colum 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[] keys)
See IRecord.name()
keyTypes in interface TablekeyTypes in class AbstractTablepublic Object columnNameObject(String name)
columnNameObject in interface TableRname - the name of the column
public void invalidate(RecordR record)
invalidate in interface TableRpublic abstract RecordR row(Object[] rowKey)
row in interface TableRpublic abstract boolean rowExists(Object[] rowKey)
TableR
rowExists in interface TableRpublic void finishedR(Page page)
finishedR in interface TableRpublic void notFound(OpeningStatus ps)
notFound in interface TableRpublic void open(OpeningStatus ps)
TableR
open in interface TableRpublic boolean open()
TableR
open in interface TableR
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||