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:
java.lang.Iterable<E>, java.util.Collection<E>

public class QueryCollection<E>
extends java.util.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  java.lang.Object[] params_iterator
           
protected  java.lang.Object[] params_size
           
protected  java.lang.String query_iterator
           
protected  java.lang.String query_size
           
protected  TransactionIF txn
           
 
Constructor Summary
QueryCollection(TransactionIF txn, java.lang.String query_size, java.lang.Object[] params_size, java.lang.String query_iterator, java.lang.Object[] params_iterator)
           
 
Method Summary
 boolean add(E o)
           
 boolean addAll(java.util.Collection<? extends E> c)
           
 void clear()
           
 boolean isEmpty()
           
 java.util.Iterator<E> iterator()
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection<?> c)
           
 boolean retainAll(java.util.Collection<?> c)
           
 int size()
           
 java.lang.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 java.lang.String query_size

query_iterator

protected java.lang.String query_iterator

params_size

protected java.lang.Object[] params_size

params_iterator

protected java.lang.Object[] params_iterator
Constructor Detail

QueryCollection

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

add

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

addAll

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

clear

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

isEmpty

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

iterator

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

remove

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

removeAll

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

retainAll

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

size

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

toArray

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

toArray

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


Copyright © 2000-2012 Ontopia.