|
|||||||||
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. |
int |
size()
Get number of selected records |
void |
update()
Update current object. |
Methods inherited from interface java.util.Enumeration |
hasMoreElements, nextElement |
Method Detail |
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 |