|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 objectMethod Detail |
public DataListIterator iterator() throws Exception
iterator
in interface DataList
Exception
- if any error occurspublic Object get(int index, Object item) throws Exception
get
in interface DataList
index
- the index value, starting from 0item
- the item object to fill
Exception
- if any error occurspublic boolean hasNext() throws Exception
hasNext
in interface ResultSetDataList
Exception
- if any error occurspublic void beforeFirst() throws Exception
beforeFirst
in interface ResultSetDataList
Exception
- if any error occurspublic boolean absolute(int index) throws Exception
absolute
in interface ResultSetDataList
index
- the cursor index value, starting from 0
Exception
- if any error occurspublic boolean isEmpty() throws Exception
isEmpty
in interface DataList
Exception
- if any error occurspublic boolean elementExists(int index) throws Exception
index
poition.
elementExists
in interface ResultSetDataList
index
- the index value, starting from 0
index
poition,
false otherwise
Exception
- if any error occurspublic void close() throws Exception
close
in interface DataList
Exception
- if any error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |