org.garret.jsql
Class IndexedArrayIterator
java.lang.Object
org.garret.jsql.ArrayIterator
org.garret.jsql.IndexedArrayIterator
- All Implemented Interfaces:
- QueryIterator, java.io.Serializable
- public class IndexedArrayIterator
- extends ArrayIterator
- See Also:
- Serialized Form
Method Summary |
void |
add(java.lang.Object obj)
Add new element to the list |
void |
addIndex(java.lang.String field)
|
boolean |
getByKeyRange(java.lang.String key,
java.lang.Object minValue,
java.lang.Object maxValue,
boolean inclusive,
Query result)
Try to use index to select objects belonginh to the specified range |
void |
remove(int index)
Remove element from the array |
void |
remove(java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexedArrayIterator
public IndexedArrayIterator()
- Constructor for IndexedArrayIterator.
addIndex
public void addIndex(java.lang.String field)
add
public void add(java.lang.Object obj)
- Description copied from class:
ArrayIterator
- Add new element to the list
- Overrides:
add
in class ArrayIterator
- Parameters:
obj
- new element- See Also:
ArrayIterator.add(Object)
getByKeyRange
public boolean getByKeyRange(java.lang.String key,
java.lang.Object minValue,
java.lang.Object maxValue,
boolean inclusive,
Query result)
- Description copied from interface:
QueryIterator
- Try to use index to select objects belonginh to the specified range
- Specified by:
getByKeyRange
in interface QueryIterator
- Overrides:
getByKeyRange
in class ArrayIterator
- See Also:
QueryIterator.getByKeyRange(String, Object, Object, boolean, Query)
remove
public void remove(int index)
- Description copied from class:
ArrayIterator
- Remove element from the array
- Overrides:
remove
in class ArrayIterator
- Parameters:
index
- index of the remove object- See Also:
ArrayIterator.remove(int)
remove
public void remove(java.lang.Object obj)