com.pow2.dao.datalist
Interface DataListHandler


public interface DataListHandler

DataListHandler Interface.
This interface is used by a client application to retrieve a subset of the query result set.

Author:
Claudio Fratarcangeli

Method Summary
 void close()
          Close this handler.
 boolean elementExists(int index)
          Check if the element at the input position exists.
 DataList getList()
          Get the entire data list.
 DataList getListChunk(int startIndex, int count)
          Gets a subset of the query result set.
 

Method Detail

getList

public DataList getList()
                 throws Exception
Get the entire data list.

Returns:
the entire data list
Throws:
Exception - if any error occurs

getListChunk

public DataList getListChunk(int startIndex,
                             int count)
                      throws Exception
Gets a subset of the query result set.

Parameters:
startIndex - start index
count - number of records to fetch
Returns:
a subset of the query result set
Throws:
Exception - if any error occurs

elementExists

public boolean elementExists(int index)
                      throws Exception
Check if the element at the input position exists.

Parameters:
index - the index position value
Returns:
true if the element at the input position exists, false otherwise
Throws:
Exception - if any error occurs

close

public void close()
           throws Exception
Close this handler.

Throws:
Exception - if any error occurs


Copyright © 2002-2004 Power Of Two S.R.L. All Rights Reserved.