|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.pow2.dao.AbstractDAO
com.pow2.dao.datalist.ResultSetDataListImpl
ResultSetDataListImpl class
| Field Summary |
| Fields inherited from class com.pow2.dao.AbstractDAO |
cat |
| Constructor Summary | |
ResultSetDataListImpl(ResultSetRowMapper rowMapper,
Connection conn,
Statement stmt,
ResultSet rs)
Constructor |
|
| Method Summary | |
boolean |
absolute(int index)
Move the ResultSetDataList cursor to a specific row number. |
void |
beforeFirst()
Move the resultSetDataList cursor before the first row of the list. |
void |
close()
Close the data list resultSet, statement, and connection resources. |
boolean |
elementExists(int index)
Check if any element exist at the index poition.
|
Object |
get(int index,
Object item)
Put object state in item and return it. |
boolean |
hasNext()
Check if the resultSet data list has got another record. |
boolean |
isEmpty()
Check if the ResultSetDataList is empty. |
DataListIterator |
iterator()
Get the iterator object for this data list. |
| Methods inherited from class com.pow2.dao.AbstractDAO |
assertion, closeResources, closeResources, closeResources, count, count, delete, delete, encode, getConnection, getConnection, getNewKey, isDebugEnabled, populate, setLike, setLike |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResultSetDataListImpl(ResultSetRowMapper rowMapper,
Connection conn,
Statement stmt,
ResultSet rs)
rowMapper - the rowMapper instanceconn - the connection objectstmt - the statement objectrs - the resultSet object| Method Detail |
public DataListIterator iterator()
throws Exception
iterator in interface DataListException - if any error occurs
public Object get(int index,
Object item)
throws Exception
get in interface DataListindex - the index value, starting from 0item - the item object to fill
Exception - if any error occurs
public boolean hasNext()
throws Exception
hasNext in interface ResultSetDataListException - if any error occurs
public void beforeFirst()
throws Exception
beforeFirst in interface ResultSetDataListException - if any error occurs
public boolean absolute(int index)
throws Exception
absolute in interface ResultSetDataListindex - the cursor index value, starting from 0
Exception - if any error occurs
public boolean isEmpty()
throws Exception
isEmpty in interface DataListException - if any error occurs
public boolean elementExists(int index)
throws Exception
index poition.
elementExists in interface ResultSetDataListindex - the index value, starting from 0
index poition,
false otherwise
Exception - if any error occurs
public void close()
throws Exception
close in interface DataListException - if any error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||