|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
org.intermine.objectstore.proxy.ProxyCollection<E>
E - The element typepublic class ProxyCollection<E>
Class which holds a reference to a collection in the database
| Constructor Summary | |
|---|---|
ProxyCollection(ObjectStore os,
InterMineObject o,
java.lang.String fieldName,
java.lang.Class<? extends E> clazz)
Construct a ProxyCollection object. |
|
| Method Summary | |
|---|---|
java.util.List<E> |
asList()
Return this Collection as a List. |
ResultsInfo |
getInfo()
Returns Returns the current best estimate of the characteristics of the LazyCollection |
java.util.Collection<E> |
getMaterialisedCollection()
Gets the collection if it is a real materialised collection. |
ObjectStore |
getObjectStore()
Returns the ObjectStore that this proxy will use |
Query |
getQuery()
Returns the Query used by this LazyCollection |
java.util.Iterator<E> |
iterator()
|
void |
setBatchSize(int size)
Sets the number of rows requested from the ObjectStore whenever an execute call is made |
void |
setMaterialisedCollection(java.util.Collection<E> coll)
Sets the collection with a new materialised collection. |
void |
setNoExplain()
Sets this LazyCollection to bypass the explain check in ObjectStore.execute(). |
void |
setNoOptimise()
Sets this LazyCollection to bypass the optimiser |
int |
size()
Gets the number of elements in this collection |
java.lang.String |
toString()
We override this here in order to prevent possible infinite recursion. |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public ProxyCollection(ObjectStore os,
InterMineObject o,
java.lang.String fieldName,
java.lang.Class<? extends E> clazz)
os - the ObjectStore from which to retrieve the collectiono - the object containing the collectionfieldName - the name of the collectionclazz - the Class of the objects in the collection| Method Detail |
|---|
public ObjectStore getObjectStore()
getObjectStore in interface Lazypublic int size()
size in interface java.util.Collection<E>size in interface java.util.Set<E>size in class java.util.AbstractCollection<E>public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in interface java.util.Set<E>iterator in class java.util.AbstractCollection<E>public Query getQuery()
getQuery in interface LazyCollection<E>
public ResultsInfo getInfo()
throws ObjectStoreException
getInfo in interface LazyCollection<E>ObjectStoreException - if an error occurs in the underlying ObjectStorepublic void setNoOptimise()
setNoOptimise in interface LazyCollection<E>public void setNoExplain()
setNoExplain in interface LazyCollection<E>public void setBatchSize(int size)
setBatchSize in interface LazyCollection<E>size - the number of rowspublic java.util.List<E> asList()
asList in interface LazyCollection<E>public java.util.Collection<E> getMaterialisedCollection()
public void setMaterialisedCollection(java.util.Collection<E> coll)
coll - the new Collectionpublic java.lang.String toString()
toString in class java.util.AbstractCollection<E>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||