|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Iterator through result set returned by Database.select. There are two types of cursors: incremental and prefetched. Incremental cursor fetch records on demand (one record at each iteration). And prefetched cursor loads all selected records. Prefetched cursor is used in case of remote database connections and when AUTOCOMMIT flag is set in select
Method Summary | |
long |
getOid()
Get OID of the current object. |
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
java.lang.Object |
nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
int |
size()
Get number of selected records |
void |
update()
Update current object. |
Method Detail |
public boolean hasMoreElements()
true
if and only if this enumeration object
contains at least one more element to provide;
false
otherwise.public java.lang.Object nextElement()
NoSuchElementException
- if no more elements exist.public long getOid()
Enumeration.nextElement()
method and its result is OID of the object returned
by nextElement()
.
java.util.NoSuchElementException
- if there is no current elementpublic void update()
Enumeration.nextElement()
and store updated object, returned by nextElement()
.
This method is not supported for prefetched cursor (which is returned for remote database or
when AUTOCOMMIT flag is set in select). In this case you should use Database.update method
specifying OID of updated object. This OID can be obtained using Cursor.getOid() method.
java.util.NoSuchElementException
- if there is no current elementpublic int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |