|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjnicli.PrefetchedCursor
Field Summary | |
java.lang.Object[] |
objects
|
long[] |
oids
|
Constructor Summary | |
PrefetchedCursor()
|
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.Object[] objects
public long[] oids
Constructor Detail |
public PrefetchedCursor()
Method Detail |
public boolean hasMoreElements()
Cursor
hasMoreElements
in interface Cursor
true
if and only if this enumeration object
contains at least one more element to provide;
false
otherwise.public java.lang.Object nextElement()
Cursor
nextElement
in interface Cursor
public long getOid()
Cursor
Enumeration.nextElement()
method and its result is OID of the object returned
by nextElement()
.
getOid
in interface Cursor
public void update()
Cursor
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.
update
in interface Cursor
public int size()
Cursor
size
in interface Cursor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |