|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is a "cursor" based Enumeration.
Method Summary | |
ModelObject |
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. |
ModelObject |
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. |
ModelObject |
last() Returns the last object |
ModelObject |
next() Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
ModelObject[] |
next(int n) Returns the next n elements of this enumeration if this enumeration object has at least one more element to provide. |
ModelObject |
previous() Returns the previous element of this enumeration if this enumeration object has at least one more element to provide. |
ModelObject[] |
previous(int n) Returns the previous n elements of this enumeration if this enumeration object has at least one more element to provide. |
ModelObject |
relative(int elements) Moves the cursor a relative number of elements, either positive or negative. |
Methods inherited from interface java.util.Enumeration |
hasMoreElements, nextElement |
Methods inherited from interface oracle.panama.rt.ManagedContext |
invalidate |
Method Detail |
public ModelObject absolute(int element) throws java.util.NoSuchElementException
element
- the requested element numberjava.util.NoSuchElementException
- if no more elements exist.public void close()
ResultSetEnumeration
object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.public ModelObject first() throws java.util.NoSuchElementException
java.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 boolean hasPreviousElement()
true
if and only if this enumeration object contains at least one more previous element to provide; false
otherwise.public boolean isClosed()
ResultSetEnumeration
is closed.public boolean isFirst()
public boolean isLast()
public ModelObject last() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if no more elements exist.public ModelObject next() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if no more elements exist.public ModelObject[] 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 ModelObject previous() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if no more elements exist.public ModelObject[] 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 ModelObject relative(int elements) throws java.util.NoSuchElementException
elements
- the requested elementsjava.util.NoSuchElementException
- if no more elements exist.
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |