org.mmbase.storage.search.implementation.database
Class HSqlSqlHandler

java.lang.Object
  extended byorg.mmbase.storage.search.implementation.database.BasicSqlHandler
      extended byorg.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,v 1.3 2003/12/11 12:32:00 michiel Exp $
Author:
Michiel Meeuwissen

Constructor Summary
HSqlSqlHandler(java.util.Map disallowedValues)
          Constructor.
 
Method Summary
 int getSupportLevel(int feature, SearchQuery query)
          Gets the level at which a feature is supported for a query by this handler.
 java.lang.String toSql(SearchQuery query, SqlHandler firstInChain)
          Represents a SearchQuery object as a string in SQL format, using the database configuration.
 
Methods inherited from class org.mmbase.storage.search.implementation.database.BasicSqlHandler
appendCompositeConstraintToSql, appendConstraintToSql, appendField, appendFieldValue, appendLikeOperator, appendQueryBodyToSql, getAllowedValue, getSupportLevel, toSqlString, useLower
 
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
appendConstraintToSql, appendQueryBodyToSql, getAllowedValue, getSupportLevel
 

Constructor Detail

HSqlSqlHandler

public HSqlSqlHandler(java.util.Map disallowedValues)
Constructor.

Parameters:
disallowedValues - Map mapping disallowed table/fieldnames to allowed alternatives.
Method Detail

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

toSql

public java.lang.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
Throws:
SearchQueryException


MMBase build 1.7.1.20041002