org.openxava.tab.impl.IDataReader Maven / Gradle / Ivy
package org.openxava.tab.impl;
import java.rmi.*;
/**
* Read data by chunks.
*
* @author Javier Paniza
*/
public interface IDataReader {
/**
* Obtain the next data chunk.
*
* This method can be call from a TableModel
to
* obtain data on demand.
*/
DataChunk nextChunk() throws RemoteException;
/**
* Record (or object, or row) count of last consult.
*/
int getResultSize() throws RemoteException;
/**
* If you call this method the next time that you call
* {@link #nextChunk} you will obtain the first chunk and
* fresh data from db.
*/
void reset() throws RemoteException;
}