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(MemDataBook pDataBook, IDataRow pMasterDataRow)
          Constructs a new RemoteDataPage for the specified IDataBook and the corresponding master row.
 
Method Summary
protected  void addFetchedRow(Object[] pValues)
          It adds an new IDataRow to the DataPage in the object[] storage.
 void fetchToRow(int pRowIndex)
          It tries to fetches to the specified row index in the storage.
 RemoteDataBook getDataBook()
          Returns the IDataBook of the IDataPage.
 int getEstimatedRowCount()
          Returns the count of rows in the storage for this RemoteDataPage in the RemoteDataBook.
 
Methods inherited from class com.sibvisions.rad.model.mem.MemDataPage
clear, delete, fetchAll, getChangedDataRows, getDataRow, getDataRowStorage, getMasterDataRow, getRowCount, getRowCountInternal, insert, isAllFetched, restore, searchNext, searchNext, searchPrevious, searchPrevious, setAllFetched, setDataRow, setDetailChanged, setMasterDataRow, store, toString, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteDataPage

public RemoteDataPage(MemDataBook 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

getDataBook

public RemoteDataBook getDataBook()
Returns the IDataBook of the IDataPage.

Specified by:
getDataBook in interface IDataPage
Overrides:
getDataBook in class MemDataPage
Returns:
the IDataBook of the IDataPage.

addFetchedRow

protected void addFetchedRow(Object[] pValues)
                      throws ModelException
It adds an new IDataRow to the DataPage in the object[] storage.

Overrides:
addFetchedRow in class MemDataPage
Parameters:
pValues - the values.
Throws:
ModelException - if the IDataRow couldn't add to the storage.

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.

getEstimatedRowCount

public int getEstimatedRowCount()
                         throws ModelException
Returns the count of rows in the storage for this RemoteDataPage in the RemoteDataBook.

Overrides:
getEstimatedRowCount 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.