com.pow2.dao.datalist
Interface DataList

All Known Subinterfaces:
ResultSetDataList
All Known Implementing Classes:
ResultSetDataListChunk, ResultSetDataListImpl

public interface DataList

DataList interface.
Represent a collection of data.

Author:
Claudio Fratarcangeli

Method Summary
 void close()
          Close the data list.
 Object get(int index, Object object)
          Get the object at the index position.
 boolean isEmpty()
          Check if the data list is empty.
 DataListIterator iterator()
          Get the DataListIterator object.
 

Method Detail

iterator

public DataListIterator iterator()
                          throws Exception
Get the DataListIterator object.

Returns:
the DataListIterator object
Throws:
Exception - if any error occurs

close

public void close()
           throws Exception
Close the data list.

Throws:
Exception - if any error occurs

get

public Object get(int index,
                  Object object)
           throws Exception
Get the object at the index position.

Parameters:
index - list index
object - the object to fill with data
Returns:
the object at the index position
Throws:
Exception - if any error occurs

isEmpty

public boolean isEmpty()
                throws Exception
Check if the data list is empty.

Returns:
true if the data list is empty; false otherwise.
Throws:
Exception - if any error occurs


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