org.mmbase.storage.search.implementation.database.functions
Class FunctionSqlHandler
java.lang.Object
org.mmbase.storage.search.implementation.database.ChainedSqlHandler
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FunctionSqlHandler
public FunctionSqlHandler(SqlHandler successor)
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
MMBase2 Core 2.0-SNAPSHOT - 2013-03-30T06:36