com.sibvisions.rad.model.remote
Class RemoteDataPage

java.lang.Object
  extended by com.sibvisions.rad.model.mem.MemDataPage
      extended by 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 MemDataPage
pMasterDataRow - the corresponding master row of the master IDataBook of the above specified IDataBook
Method Detail

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.