|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DbEnumeration
This interface allows to implements enumerators that need to be closed.
This interface defines the following behavior on nextElement
:
nextElement()
may be called only after a successful call to
hasMoreElements()
, and will return exactly the element retrieved by
hasMoreElements()
; nextElement()
increments the cursor, which allows
the next call to hasMoreElements()
to retrieve a further element. So two consecutive
calls to hasMoreElements()
will retrieve the same element (cursor not updated); two
consecutive calls to nextElement()
will throw a RuntimeException on the second call.
Method Summary | |
---|---|
void |
close()
Close the enumeration. |
boolean |
hasMoreElements()
|
DbObject |
nextElement()
|
Method Detail |
---|
boolean hasMoreElements() throws DbException
DbException
- Thrown if the enumeration has been closed or if the transaction has been closed.DbObject nextElement() throws DbException
DbException
- Thrown if the enumeration has been closed or if the transaction has been closed.void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |