org.openxava.tab.impl
Interface IDataReader

All Known Subinterfaces:
IEntityTabImpl, ITabProvider
All Known Implementing Classes:
EntityTab, JDBCTabProvider, JPATabProvider, TabProviderBase

public interface IDataReader

Read data by chunks.

Author:
Javier Paniza

Method Summary
 int getResultSize()
          Record (or object, or row) count of last consult.
 DataChunk nextChunk()
          Obtain the next data chunk.
 void reset()
          If you call this method the next time that you call nextChunk() you will obtain the first chunk and fresh data from db.
 

Method Detail

nextChunk

DataChunk nextChunk()
                    throws java.rmi.RemoteException
Obtain the next data chunk.

This method can be call from a TableModel to obtain data on demand.

Throws:
java.rmi.RemoteException

getResultSize

int getResultSize()
                  throws java.rmi.RemoteException
Record (or object, or row) count of last consult.

Throws:
java.rmi.RemoteException

reset

void reset()
           throws java.rmi.RemoteException
If you call this method the next time that you call nextChunk() you will obtain the first chunk and fresh data from db.

Throws:
java.rmi.RemoteException