|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.ResultSetEnumeration<T>
public abstract class ResultSetEnumeration<T>
An Enumeration
created by filtering a
ResultSet
according to an abstract
function applied to each element of the ResultSet
.
Implementations must provide mapped(ResultSet)
.
Constructor Summary | |
---|---|
ResultSetEnumeration(ResultSet resultSet)
Constructor. |
Method Summary | |
---|---|
boolean |
hasMoreElements()
|
protected abstract Object |
mapped(ResultSet resultSetP)
|
T |
nextElement()
Return the next element. |
void |
skip()
Skip an Element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultSetEnumeration(ResultSet resultSet)
resultSet
- the ResultSet propertyMethod Detail |
---|
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration<T>
Enumeration.hasMoreElements()
protected abstract Object mapped(ResultSet resultSetP) throws SQLException, NoSuchRowPoemException
SQLException
NoSuchRowPoemException
public T nextElement() throws NoSuchElementException
NOTE A RowDisappearedPoemException
might be thrown
but does not prevent subsequent use of the object.
nextElement
in interface Enumeration<T>
NoSuchElementException
Enumeration.nextElement()
public void skip() throws NoSuchElementException
skip
in interface SkipEnumeration<T>
NoSuchElementException
- if there are no more ElementsSkipEnumeration.skip()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |