org.openmobileis.database.fastobjectdb.db.query.soda
Class SodaStringIndexComparator

java.lang.Object
  extended byorg.openmobileis.database.fastobjectdb.db.query.soda.SodaIndexComparator
      extended byorg.openmobileis.database.fastobjectdb.db.query.soda.SodaStringIndexComparator

public final class SodaStringIndexComparator
extends SodaIndexComparator

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu

Field Summary
 
Fields inherited from class org.openmobileis.database.fastobjectdb.db.query.soda.SodaIndexComparator
FULL_TRAVERSAL, INF_EQUALS_TRAVERSAL, SUP_EQUALS_TRAVERSAL
 
Constructor Summary
SodaStringIndexComparator(boolean caseSensitive)
           
 
Method Summary
 boolean addComparator(int comparator)
           
 int compareTo(java.lang.String searchString)
          return >0 if the key is after the specified search string, <0 if before and 0 if equals.
 int getSearchAlgo()
           
 boolean isDistinct()
           
 boolean isSelected(java.lang.String searchString)
          return true if the key must be selected for the specified search string
 void mergeIndexComporator(SodaIndexComparator index)
           
 void setDistinct(boolean isDistinct)
           
 boolean setOperand(java.lang.Object ope)
           
 
Methods inherited from class org.openmobileis.database.fastobjectdb.db.query.soda.SodaIndexComparator
getTraversalWayWithComparator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SodaStringIndexComparator

public SodaStringIndexComparator(boolean caseSensitive)
Method Detail

setOperand

public boolean setOperand(java.lang.Object ope)
Specified by:
setOperand in class SodaIndexComparator

mergeIndexComporator

public void mergeIndexComporator(SodaIndexComparator index)
Specified by:
mergeIndexComporator in class SodaIndexComparator

addComparator

public boolean addComparator(int comparator)
Specified by:
addComparator in class SodaIndexComparator

getSearchAlgo

public int getSearchAlgo()
Specified by:
getSearchAlgo in class SodaIndexComparator

isSelected

public boolean isSelected(java.lang.String searchString)
return true if the key must be selected for the specified search string


compareTo

public int compareTo(java.lang.String searchString)
return >0 if the key is after the specified search string, <0 if before and 0 if equals.


isDistinct

public boolean isDistinct()

setDistinct

public void setDistinct(boolean isDistinct)


Copyright 2006 OpenMobileIS. All Rights Reserved.