org.openxava.tab.impl
Interface ITabProvider

All Superinterfaces:
ISearch
All Known Subinterfaces:
IEntityTabImpl
All Known Implementing Classes:
EntityTab, JDBCTabProvider

public interface ITabProvider
extends ISearch

Data provider for a TableModel or similar.

Allows execute consult and then obtain the data chunk by chunk.

Author:
Javier Paniza

Method Summary
 int getResultSize()
          Record (or object, or row) count of last consult.
 java.lang.Number getSum(java.lang.String column)
           
 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.
 
Methods inherited from interface org.openxava.tab.impl.ISearch
search, search
 

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

getSum

java.lang.Number getSum(java.lang.String column)
                        throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException