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

java.lang.Object
  extended byorg.mmbase.storage.search.implementation.database.BasicSqlHandler
      extended byorg.mmbase.storage.search.implementation.database.InformixSqlHandler
All Implemented Interfaces:
SqlHandler

public class InformixSqlHandler
extends BasicSqlHandler
implements SqlHandler

The Informix query handler, implements SqlHandler for standard Informix functionality.
Derived from BasicSqlHandler, overrides

Since:
MMBase-1.7
Version:
$Id: InformixSqlHandler.java,v 1.8.2.6 2004/08/30 11:41:48 mark Exp $
Author:
Rob van Maris

Constructor Summary
InformixSqlHandler(java.util.Map disallowedValues)
          Constructor.
 
Method Summary
 void appendQueryBodyToSql(java.lang.StringBuffer sb, SearchQuery query, SqlHandler firstInChain)
          Represents body of a SearchQuery object as a string in SQL format, using the database configuration.
 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, 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, getAllowedValue, getSupportLevel
 

Constructor Detail

InformixSqlHandler

public InformixSqlHandler(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

appendQueryBodyToSql

public void appendQueryBodyToSql(java.lang.StringBuffer sb,
                                 SearchQuery query,
                                 SqlHandler firstInChain)
                          throws SearchQueryException
Description copied from interface: SqlHandler
Represents body of a SearchQuery object as a string in SQL format, using the database configuration. Appends this to a stringbuffer.
The body of the SQL query string is defined as the substring containing fields, tables, constraints and orders.

Specified by:
appendQueryBodyToSql in interface SqlHandler
Overrides:
appendQueryBodyToSql in class BasicSqlHandler
Throws:
SearchQueryException


MMBase build 1.7.1.20041002