org.garret.perst
Interface ITable

All Known Subinterfaces:
BitIndex, FieldIndex, GenericIndex, Index, IPersistentSet, Link, PatriciaTrie, SortedCollection, SpatialIndex, SpatialIndexR2, TimeSeries
All Known Implementing Classes:
L2List, Relation

public interface ITable

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


Method Summary
 java.util.Iterator iterator()
          Get iterator through table records This iterator doesn't support remove() method.
 java.util.Iterator select(java.lang.Class cls, java.lang.String predicate)
          Select members of the collection using search predicate This iterator doesn't support remove() method.
 int size()
          Get numebr of records in the table
 

Method Detail

iterator

public java.util.Iterator iterator()
Get iterator through table records This iterator doesn't support remove() method.

Returns:
table iterator

select

public java.util.Iterator 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

size

public int size()
Get numebr of records in the table

Returns:
number of records in the table