net.ontopia.persistence.proxy
Class QueryCollection<E>
java.lang.Object
java.util.AbstractCollection<E>
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.
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)
|
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 |
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
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)
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.