|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.orientechnologies.jdo.oResultSet
Handle the resultset of query execution. It implements the collection contract. Objects are loaded in the client cache only on use.
oQuery| Constructor Summary | |
oResultSet()
|
|
oResultSet(oPersistenceManager iManager)
|
|
oResultSet(oPersistenceManager iManager,
java.util.ArrayList iData)
|
|
| Method Summary | |
boolean |
add(java.lang.Object iValue)
Add an object in the collection. |
boolean |
addAll(java.util.Collection c)
|
void |
clear()
Clear the result set. |
boolean |
contains(java.lang.Object iObject)
|
boolean |
containsAll(java.util.Collection c)
|
boolean |
equals(java.lang.Object iSource)
|
java.lang.Object |
get(int iIndex)
Return the object by index. |
java.util.ArrayList |
getInternal()
Get internal ArrayList containing the resultset |
int |
getLoadBlockSize()
Get the block size of objects to transfer to the client. |
oOID |
getObjectId(int iIndex)
|
boolean |
isEmpty()
Know if the collection is empty or not. |
boolean |
isLoadAtOnce()
Return the status of load at once. |
java.util.Iterator |
iterator()
Return the Iterator to browse the collection of elements. |
boolean |
remove(java.lang.Object o)
|
boolean |
remove(oOID iOid)
|
boolean |
removeAll(java.util.Collection c)
|
boolean |
retainAll(java.util.Collection c)
|
void |
setLoadAtOnce(boolean loadAtOnce)
Optimize performance for browsing the result set by loading the entire resultset in the client. |
void |
setLoadBlockSize(int loadBlockSize)
Optimize performance for browsing the result set by transferring the objects in the client space at blocks. |
int |
size()
Know collection size. |
java.lang.Object[] |
toArray()
Convert the collection in an array of objects |
java.lang.Object[] |
toArray(java.lang.Object[] iArray)
Convert the collection in an array of objects. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
hashCode |
| Constructor Detail |
public oResultSet()
public oResultSet(oPersistenceManager iManager)
public oResultSet(oPersistenceManager iManager,
java.util.ArrayList iData)
| Method Detail |
public int size()
size in interface java.util.Collectionpublic boolean isEmpty()
isEmpty in interface java.util.Collectionpublic boolean contains(java.lang.Object iObject)
contains in interface java.util.Collectionpublic java.util.Iterator iterator()
iterator in interface java.util.Collectionpublic java.lang.Object[] toArray()
toArray in interface java.util.Collectionpublic java.lang.Object[] toArray(java.lang.Object[] iArray)
toArray in interface java.util.Collectionpublic boolean add(java.lang.Object iValue)
add in interface java.util.CollectioniValue - Object to add
public java.lang.Object get(int iIndex)
iIndex - Index of object in the collection
public oOID getObjectId(int iIndex)
public boolean remove(oOID iOid)
public boolean remove(java.lang.Object o)
remove in interface java.util.Collectionpublic boolean containsAll(java.util.Collection c)
containsAll in interface java.util.Collectionpublic boolean addAll(java.util.Collection c)
addAll in interface java.util.Collectionpublic boolean removeAll(java.util.Collection c)
removeAll in interface java.util.Collectionpublic boolean retainAll(java.util.Collection c)
retainAll in interface java.util.Collectionpublic void clear()
clear in interface java.util.Collectionpublic boolean equals(java.lang.Object iSource)
equals in interface java.util.Collectionpublic int getLoadBlockSize()
setLoadBlockSize(int loadBlockSize),
isLoadAtOnce()public void setLoadBlockSize(int loadBlockSize)
loadBlockSize - number of objects for a blockgetLoadBlockSize(),
setLoadAtOnce(boolean loadAtOnce)public java.util.ArrayList getInternal()
public boolean isLoadAtOnce()
setLoadAtOnce(boolean loadAtOnce)public void setLoadAtOnce(boolean loadAtOnce)
loadAtOnce - true if entire collection must be loaded on browsing,
otherwise false.isLoadAtOnce()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||