com.pow2.dao.datalist
Interface ResultSetDataList

All Superinterfaces:
DataList
All Known Implementing Classes:
ResultSetDataListChunk, ResultSetDataListImpl

public interface ResultSetDataList
extends DataList

ResultSetDataList interface.
This interface implies the concept of cursor and a corresponding current row for the underlying collection.

Author:
Claudio Fratarcangeli

Method Summary
 boolean absolute(int index)
          Move the cursor to a specific absolute row number.
 void beforeFirst()
          Move the resultSet cursor before the first row of the list.
 boolean elementExists(int index)
          Check if an element exists at the input index position.
 boolean hasNext()
          Check if there exists a row after the current row.
 
Methods inherited from interface com.pow2.dao.datalist.DataList
close, get, isEmpty, iterator
 

Method Detail

hasNext

public boolean hasNext()
                throws Exception
Check if there exists a row after the current row.

Returns:
true if a row exists, false otherwise
Throws:
Exception - if any error occurs

beforeFirst

public void beforeFirst()
                 throws Exception
Move the resultSet cursor before the first row of the list.

Throws:
Exception - if any error occurs

absolute

public boolean absolute(int index)
                 throws Exception
Move the cursor to a specific absolute row number. Rows are numbered starting from 0.

Parameters:
index - the cursor index value
Returns:
true if the cursor is on the result set; false otherwise
Throws:
Exception - if any error occurs

elementExists

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

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


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