org.mmbase.storage.search.implementation.database.functions
Class FunctionSqlHandler

java.lang.Object
  extended by org.mmbase.storage.search.implementation.database.ChainedSqlHandler
      extended by org.mmbase.storage.search.implementation.database.functions.FunctionSqlHandler
All Implemented Interfaces:
SqlHandler

public class FunctionSqlHandler
extends ChainedSqlHandler
implements SqlHandler

An SQL handle also recognizing 'FunctionValueConstraint's.

Since:
MMBase-1.8.5
Version:
$Id: FunctionSqlHandler.java 34900 2009-05-01 16:29:42Z michiel $
Author:
Marcel Maatkamp

Constructor Summary
FunctionSqlHandler(SqlHandler successor)
           
 
Method Summary
 void appendConstraintToSql(StringBuilder sb, Constraint constraint, SearchQuery query, boolean inverse, boolean inComposite)
          Represents Constraint object, that is not a CompositeConstraint, as a constraint in SQL format, appending the result to a stringbuffer.
 
Methods inherited from class org.mmbase.storage.search.implementation.database.ChainedSqlHandler
appendQueryBodyToSql, getAllowedValue, getSuccessor, getSupportLevel, getSupportLevel, toSql
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mmbase.storage.search.implementation.database.SqlHandler
appendQueryBodyToSql, getAllowedValue, getSupportLevel, getSupportLevel, toSql
 

Constructor Detail

FunctionSqlHandler

public FunctionSqlHandler(SqlHandler successor)
Method Detail

appendConstraintToSql

public void appendConstraintToSql(StringBuilder sb,
                                  Constraint constraint,
                                  SearchQuery query,
                                  boolean inverse,
                                  boolean inComposite)
                           throws SearchQueryException
Description copied from interface: SqlHandler
Represents Constraint object, that is not a CompositeConstraint, as a constraint in SQL format, appending the result to a stringbuffer. When it is part of a composite expression, it will be surrounded by parenthesis when needed.

Specified by:
appendConstraintToSql in interface SqlHandler
Overrides:
appendConstraintToSql in class ChainedSqlHandler
Parameters:
sb - The stringbuffer to append to.
constraint - The (non-composite) constraint.
query - The searchquery containing the constraint.
inverse - True when the inverse constraint must be represented, false otherwise.
inComposite - True when the constraint is part of a composite expression.
Throws:
SearchQueryException


MMBase 2.0-SNAPSHOT - null