|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.garret.jsql.L2Elem
org.garret.jsql.ListIterator
org.garret.jsql.TreeIterator
Query iterator using T-Tree
| Constructor Summary | |
TreeIterator(java.lang.Class cls,
java.lang.String keyName)
Constructor of tree iterator |
|
TreeIterator(java.lang.reflect.Field key)
Constructor of tree iterator |
|
| Method Summary | |
void |
add(L2Elem obj)
Add new object |
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(L2Elem obj)
Remove object from the tree |
boolean |
useNormalizedKeys()
Check if iterator supporting direct access by key stores key values in normalized form (all integer types as Long, all real types as Double, other types as it is). |
| Methods inherited from class org.garret.jsql.ListIterator |
concurrentIterator, getByPrimaryKey, getFirst, getNext, isThreadSafe |
| Methods inherited from class org.garret.jsql.L2Elem |
getNext, getPrevious, isEmpty, link, unlink |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TreeIterator(java.lang.reflect.Field key)
key - key field
public TreeIterator(java.lang.Class cls,
java.lang.String keyName)
throws java.lang.NoSuchFieldException
cls - class of the memberskeyName - name of key field| Method Detail |
public boolean getByKeyRange(java.lang.String key,
java.lang.Object minValue,
java.lang.Object maxValue,
boolean inclusive,
Query result)
QueryIterator
getByKeyRange in interface QueryIteratorgetByKeyRange in class ListIteratorpublic boolean useNormalizedKeys()
QueryIteratorQuery.normilizeKeyValue method.false then JSQL will try to convert search literals
to the type of the indexed field. But it is possible only if type of the field is known at query
compilation time. Otherwise in case of using dynamic binding such covertsion should be performed
by iterator itself using Query.castLiteral method.
useNormalizedKeys in interface QueryIteratoruseNormalizedKeys in class ListIteratorpublic void add(L2Elem obj)
add in class ListIteratorobj - new objectpublic void remove(L2Elem obj)
obj - removed object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||