|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDataPage
The IDataPage is the abstract representation of multiple
IDataRows, basically mimicking one set of rows or a result set.
The IDataPage is part of the of the IDataBook, as it can have
multiple IDataPages. A IDataRow can also have a
master IDataRow which it is associated
with.
IDataRow,
IDataBook,
IChangeableDataRow| Method Summary | |
|---|---|
void |
fetchAll()
Fetches all IDataRows from the storage. |
int[] |
getChangedDataRows()
Deprecated. since 2.5, use getChangedRows() instead. |
int[] |
getChangedRows()
Gets an int array containing the indexes of all changed IDataRow
s. |
IDataBook |
getDataBook()
Gets the parent IDataBook. |
IChangeableDataRow |
getDataRow(int pDataRowIndex)
Gets a copy of the IChangeableDataRow at the specified index. |
IDataRow |
getMasterDataRow()
Gets the corresponding master row. |
int |
getRowCount()
Gets the number of rows which are currently held. |
boolean |
isAllFetched()
Gets if all IDataRows have been fetched from the storage, and
there is nothing more to fetch. |
int |
searchNext(ICondition pCondition)
Searches for the first occurrence of an IDataRow which matches
the given ICondition and returns its index. |
int |
searchNext(ICondition pCondition,
int pStartIndex)
Searches for the next occurrence of an IDataRow which matches the
given ICondition and returns its index. |
int |
searchPrevious(ICondition pCondition)
Searches for the last occurrence of an IDataRow which matches the
given ICondition and returns its index. |
int |
searchPrevious(ICondition pCondition,
int pStartIndex)
Searches for the previous occurrence of an IDataRow which matches
the given ICondition and returns its index. |
| Method Detail |
|---|
IDataBook getDataBook()
IDataBook.
IDataBook.
IDataRow getMasterDataRow()
throws ModelException
master row.
master row.
ModelException - if the master row could not be
fetched for some reason.
IChangeableDataRow getDataRow(int pDataRowIndex)
throws ModelException
IChangeableDataRow at the specified index.
Returns null if there is no row at the specified index.
If the row is currently not in memory, it will be fetched from the underlying storage.
pDataRowIndex - the index of the IChangeableDataRow to get.
IChangeableDataRow at the specified index,
null if there is no row at the specified index.
ModelException - if the IChangeableDataRow at the specified
index can no be got.
int getRowCount()
throws ModelException
ModelException - if the number of rows could not be determined.
void fetchAll()
throws ModelException
IDataRows from the storage.
ModelException - if there is a problem while fetching the rows.
boolean isAllFetched()
throws ModelException
IDataRows have been fetched from the storage, and
there is nothing more to fetch.
true if all IDataRows have been fetched.
ModelException - if determining if all IDataRows have been
fetched failed.
@Deprecated
int[] getChangedDataRows()
throws ModelException
getChangedRows() instead.
IDataRow
s. Returns an empty array if there are no changed IDataRows.
IDataRows. An empty array if there are no changes.
ModelException - if a exception occurs during synchronize.
int[] getChangedRows()
throws ModelException
IDataRow
s. Returns an empty array if there are no changed IDataRows.
IDataRows. An empty array if there are no changes.
ModelException - if a exception occurs during synchronize.
int searchNext(ICondition pCondition)
throws ModelException
IDataRow which matches
the given ICondition and returns its index. -1 is
returned if there is no IDataRow that matches.
This method might fetch more rows from the storage as needed.
pCondition - the ICondition.
IDataRow, -1 if
there is none.
ModelException - if searching through and/or fetching the
IDataRows failed.
int searchNext(ICondition pCondition,
int pStartIndex)
throws ModelException
IDataRow which matches the
given ICondition and returns its index. The search is started at
the given index. -1 is returned if there is no IDataRow
that matches.
This method might fetch more rows from the storage as needed.
pCondition - the ICondition.pStartIndex - the index at which to start, inclusive.
IDataRow, -1 if
there is none.
ModelException - if searching through and/or fetching the
IDataRows failed.
int searchPrevious(ICondition pCondition)
throws ModelException
IDataRow which matches the
given ICondition and returns its index. -1 is returned if
there is no IDataRow that matches.
This method might fetch more rows from the storage as needed.
pCondition - the ICondition.
IDataRow, -1 if
there is none.
ModelException - if searching through and/or fetching the
IDataRows failed.
int searchPrevious(ICondition pCondition,
int pStartIndex)
throws ModelException
IDataRow which matches
the given ICondition and returns its index. The search is started
at the given index. -1 is returned if there is no
IDataRow that matches.
This method might fetch more rows from the storage as needed.
pCondition - the ICondition.pStartIndex - the index at which to start, exclusive.
IDataRow, -1
if there is none.
ModelException - if searching through and/or fetching the
IDataRows failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||