org.garret.perst
Interface ITable<T>

All Superinterfaces:
java.util.Collection, java.lang.Iterable
All Known Subinterfaces:
BitIndex, IPersistentSet, Link, PatriciaTrie, SortedCollection, SpatialIndex, SpatialIndexR2, TimeSeries
All Known Implementing Classes:
L2List, PersistentCollection, Relation

public interface ITable<T>
extends java.util.Collection<T>

Interface of selectable collection. Selectable collections allows to selct its memebers using JSQL query


Method Summary
 java.util.Iterator<T> select(java.lang.Class cls, java.lang.String predicate)
          Select members of the collection using search predicate This iterator doesn't support remove() method.
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

select

java.util.Iterator<T> select(java.lang.Class cls,
                             java.lang.String predicate)
Select members of the collection using search predicate This iterator doesn't support remove() method.

Parameters:
cls - class of index members
predicate - JSQL condition
Returns:
iterator through members of the collection matching search condition