com.sibvisions.rad.model.remote
Class RemoteDataPage
java.lang.Object
com.sibvisions.rad.model.mem.MemDataPage
com.sibvisions.rad.model.remote.RemoteDataPage
- All Implemented Interfaces:
- IDataPage
public class RemoteDataPage
- extends MemDataPage
A RemoteDataPage extends the MemDataPage with storage operations.
It fetches the data rows and the count of rows from the IDBAccess.
- See Also:
IDataBook,
IDataPage,
IChangeableDataRow
|
Constructor Summary |
RemoteDataPage(IDataBook pDataBook,
IDataRow pMasterDataRow)
Constructs a new RemoteDataPage for the specified IDataBook and the corresponding
master row. |
|
Method Summary |
int |
countRows()
Returns the count of rows in the storage for this RemoteDataPage in the RemoteDataBook. |
void |
fetchToRow(int pRowIndex)
It tries to fetches to the specified row index in the storage. |
| Methods inherited from class com.sibvisions.rad.model.mem.MemDataPage |
addChange, addFetchedRow, clear, delete, fetchAll, getChangedDataRows, getDataBook, getDataRow, getDataRowInternal, getMasterDataRow, getRowCount, getRowCountInternal, insert, isAllFetched, removeChange, setAllFetched, setDataRowInternal, setMasterDataRow, shiftIndicies, toString |
RemoteDataPage
public RemoteDataPage(IDataBook pDataBook,
IDataRow pMasterDataRow)
- Constructs a new RemoteDataPage for the specified IDataBook and the corresponding
master row.
- Parameters:
pDataBook - the IDataBook which uses this MemDataPagepMasterDataRow - the corresponding master row of the master IDataBook of the
above specified IDataBook
fetchToRow
public void fetchToRow(int pRowIndex)
throws ModelException
- It tries to fetches to the specified row index in the storage.
- Overrides:
fetchToRow in class MemDataPage
- Parameters:
pRowIndex - the row index to use.
- Throws:
ModelException - if an error occur during storage interaction.
countRows
public int countRows()
throws ModelException
- Returns the count of rows in the storage for this RemoteDataPage in the RemoteDataBook.
- Overrides:
countRows in class MemDataPage
- Returns:
- the count of rows in the storage for this RemoteDataPage in the RemoteDataBook.
- Throws:
ModelException - if an error occur during storage interaction.
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.