org.mmbase.storage.search.legacy
Class DBLogicalOperator

Package class diagram package DBLogicalOperator
java.lang.Object
  extended by org.mmbase.storage.search.legacy.ParseItem
      extended by org.mmbase.storage.search.legacy.DBLogicalOperator

 class DBLogicalOperator
extends ParseItem

Class for conversion of operators to their SQL equivalent. This class converts:
'+' to 'AND'
'-' to 'AND NOT'
'|' to 'OR'


Field Summary
static char AND
           
(package private)  char logOperator
           
static char NOT
           
static char OR
           
 
Constructor Summary
DBLogicalOperator(char operator)
           
DBLogicalOperator(String operator)
          Creates the operator
 
Method Summary
 void sqlConversion(StringBuffer result)
          Appends the converted operator to the stringbuffer.
 
Methods inherited from class org.mmbase.storage.search.legacy.ParseItem
sqlConversion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AND

public static final char AND
See Also:
Constant Field Values

NOT

public static final char NOT
See Also:
Constant Field Values

OR

public static final char OR
See Also:
Constant Field Values

logOperator

char logOperator
Constructor Detail

DBLogicalOperator

public DBLogicalOperator(String operator)
Creates the operator


DBLogicalOperator

public DBLogicalOperator(char operator)
Method Detail

sqlConversion

public void sqlConversion(StringBuffer result)
Appends the converted operator to the stringbuffer.

Parameters:
result - the stringbuffer to which to add the operator


MMBase2 Core 2.0-SNAPSHOT - 2013-11-29T11:08