org.mmbase.storage.search.implementation.database
Class HSqlSqlHandler
java.lang.Object
org.mmbase.storage.search.implementation.database.BasicSqlHandler
org.mmbase.storage.search.implementation.database.HSqlSqlHandler
- All Implemented Interfaces:
- SqlHandler
public class HSqlSqlHandler
- extends BasicSqlHandler
- implements SqlHandler
The HSQL query handler, implements SqlHandler for standard
hsql functionality.
- Since:
- MMBase-1.7
- Version:
- $Id: HSqlSqlHandler.java 34900 2009-05-01 16:29:42Z michiel $
- Author:
- Michiel Meeuwissen
| Methods inherited from class org.mmbase.storage.search.implementation.database.BasicSqlHandler |
appendCompositeConstraintToSql, appendConstraintToSql, appendDateValue, appendField, appendField, appendField, appendFieldValue, appendLikeOperator, appendLowerField, appendPreField, appendQueryBodyToSql, appendRegularExpressionOperator, appendRelationConstraints, appendSortOrderDirection, appendSortOrderField, appendSortOrderField, appendSortOrders, appendTableAlias, appendTableName, forceEncode, getAllowedValue, getSupportLevel, toSqlString, useLower |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HSqlSqlHandler
public HSqlSqlHandler()
- Constructor.
getSupportLevel
public int getSupportLevel(int feature,
SearchQuery query)
throws SearchQueryException
- Description copied from interface:
SqlHandler
- Gets the level at which a feature is supported for a query
by this handler. This is one of either:
Given the choice, the query handler with the highest level of support is prefered.
- Specified by:
getSupportLevel in interface SqlHandler- Overrides:
getSupportLevel in class BasicSqlHandler
- Throws:
SearchQueryException
appendDateField
protected void appendDateField(StringBuilder sb,
Step step,
String fieldName,
boolean multipleSteps,
int datePart)
- Overrides:
appendDateField in class BasicSqlHandler
- Javadoc:
toSql
public String toSql(SearchQuery query,
SqlHandler firstInChain)
throws SearchQueryException
- Description copied from interface:
SqlHandler
- Represents a SearchQuery object as a string in SQL format,
using the database configuration.
- Specified by:
toSql in interface SqlHandler- Overrides:
toSql in class BasicSqlHandler
- Parameters:
query - The searchquery.firstInChain - The first element in the chain of handlers.
At some point appendQueryBodyToSql() will have
to be called on this handler, to generate the body of the query.
- Returns:
- SQL string representation of the query.
- Throws:
SearchQueryException
MMBase2 Core 2.0-SNAPSHOT - 2013-03-30T06:36