net.ontopia.persistence.proxy
Class QueryCollection<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by net.ontopia.persistence.proxy.QueryCollection<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>

public class QueryCollection<E>
extends AbstractCollection<E>

INTERNAL: Immutable Collection implementation that delegates its data retrieval to QueryIFs. This class is very useful in cases where the collection is extremely large.


Field Summary
protected  Object[] params_iterator
           
protected  Object[] params_size
           
protected  String query_iterator
           
protected  String query_size
           
protected  TransactionIF txn
           
 
Constructor Summary
QueryCollection(TransactionIF txn, String query_size, Object[] params_size, String query_iterator, Object[] params_iterator)
           
 
Method Summary
 boolean add(E o)
           
 boolean addAll(Collection<? extends E> c)
           
 void clear()
           
 boolean isEmpty()
           
 Iterator<E> iterator()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 int size()
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 
Methods inherited from class java.util.AbstractCollection
contains, containsAll, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

txn

protected TransactionIF txn

query_size

protected String query_size

query_iterator

protected String query_iterator

params_size

protected Object[] params_size

params_iterator

protected Object[] params_iterator
Constructor Detail

QueryCollection

public QueryCollection(TransactionIF txn,
                       String query_size,
                       Object[] params_size,
                       String query_iterator,
                       Object[] params_iterator)
Method Detail

add

public boolean add(E o)
Specified by:
add in interface Collection<E>
Overrides:
add in class AbstractCollection<E>

addAll

public boolean addAll(Collection<? extends E> c)
Specified by:
addAll in interface Collection<E>
Overrides:
addAll in class AbstractCollection<E>

clear

public void clear()
Specified by:
clear in interface Collection<E>
Overrides:
clear in class AbstractCollection<E>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<E>
Overrides:
isEmpty in class AbstractCollection<E>

iterator

public Iterator<E> iterator()
Specified by:
iterator in interface Iterable<E>
Specified by:
iterator in interface Collection<E>
Specified by:
iterator in class AbstractCollection<E>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<E>
Overrides:
remove in class AbstractCollection<E>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<E>
Overrides:
removeAll in class AbstractCollection<E>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<E>
Overrides:
retainAll in class AbstractCollection<E>

size

public int size()
Specified by:
size in interface Collection<E>
Specified by:
size in class AbstractCollection<E>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<E>
Overrides:
toArray in class AbstractCollection<E>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<E>
Overrides:
toArray in class AbstractCollection<E>


Copyright © 2000-2012 Ontopia.