|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is a "cursor" based Enumeration. Users of the enumeration should close the enumeration after using it .
Method Summary | |
LBCriteria |
absolute(int element) Moves the cursor to the given element number in the result set. |
void |
close() Releases this ResultSetEnumeration object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed. |
LBCriteria |
first() Returns the first object |
boolean |
hasNextElement() Tests if this enumeration contains next element. |
boolean |
hasPreviousElement() Tests if this enumeration contains previous element. |
boolean |
isClosed() Tests to see if this ResultSetEnumeration is closed. |
boolean |
isFirst() Indicates whether the cursor is on the first row of the result set. |
boolean |
isLast() Indicates whether the cursor is on the last row of the result set. |
LBCriteria |
last() Returns the last object |
LBCriteria |
next() Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
LBCriteria[] |
next(int n) Returns the next n elements of this enumeration if this enumeration object has at least one more element to provide. |
LBCriteria |
previous() Returns the previous element of this enumeration if this enumeration object has at least one more element to provide. |
LBCriteria[] |
previous(int n) Returns the previous n elements of this enumeration if this enumeration object has at least one more element to provide. |
LBCriteria |
relative(int elements) Moves the cursor a relative number of elements, either positive or negative. |
Methods inherited from interface java.util.Enumeration |
hasMoreElements, nextElement |
Method Detail |
public LBCriteria absolute(int element) throws java.util.NoSuchElementException
element
- the requested element numberjava.util.NoSuchElementException
- if no more elements exist.public LBCriteria relative(int elements) throws java.util.NoSuchElementException
elements
- the requested elementsjava.util.NoSuchElementException
- if no more elements exist.public boolean hasNextElement()
true
if and only if this enumeration object contains at least one more next element to provide; false
otherwise.public LBCriteria next() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if no more elements exist.public LBCriteria[] next(int n) throws java.util.NoSuchElementException
n
- is the number of the requested next elements of this enumeration.java.util.NoSuchElementException
- if no more elements exist.public boolean hasPreviousElement()
true
if and only if this enumeration object contains at least one more previous element to provide; false
otherwise.public LBCriteria previous() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if no more elements exist.public LBCriteria[] previous(int n) throws java.util.NoSuchElementException
n
- is the number of the requested next elements of this enumeration.java.util.NoSuchElementException
- if no more elements exist.public LBCriteria first() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if no more elements exist.public boolean isFirst()
public LBCriteria last() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if no more elements exist.public boolean isLast()
public void close()
ResultSetEnumeration
object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.public boolean isClosed()
ResultSetEnumeration
is closed.
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |