public class InformixSqlHandler extends BasicSqlHandler implements SqlHandler
SqlHandler for standard
Informix functionality.
BasicSqlHandler, overrides
toSql(), implements FEATURE_MAX_NUMBER, by adding a construct like "SELECT FIRST 20"
in front of the body, when appropriate.
getSupportLevel(int,SearchQuery),
returns SUPPORT_OPTIMAL for this feature, delegates to the superclass for
other features.
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_ORDERED |
| Constructor and Description |
|---|
InformixSqlHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendQueryBodyToSql(StringBuilder sb,
SearchQuery query,
SqlHandler firstInChain)
Represents body of a SearchQuery object as a string in SQL format,
using the database configuration.
|
protected void |
closeConnection(Connection con,
Statement stmt)
Safely close a database connection and/or a database statement.
|
int |
getSupportLevel(int feature,
SearchQuery query)
Gets the level at which a feature is supported for a query
by this handler.
|
String |
toSql(SearchQuery query,
SqlHandler firstInChain)
Represents a SearchQuery object as a string in SQL format,
using the database configuration.
|
appendCompositeConstraintToSql, appendConstraintToSql, appendDateField, appendDateValue, appendField, appendField, appendField, appendFieldValue, appendLikeOperator, appendLowerField, appendPreField, appendRegularExpressionOperator, appendRelationConstraints, appendSortOrderDirection, appendSortOrderField, appendSortOrderField, appendSortOrders, appendTableAlias, appendTableName, forceEncode, getAllowedValue, getSupportLevel, toSqlString, useLowerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendConstraintToSql, getAllowedValue, getSupportLevelpublic static final String ADD_ORDERED
public int getSupportLevel(int feature,
SearchQuery query)
throws SearchQueryException
SqlHandlergetSupportLevel in interface SqlHandlergetSupportLevel in class BasicSqlHandlerSearchQueryExceptionpublic String toSql(SearchQuery query, SqlHandler firstInChain) throws SearchQueryException
SqlHandlertoSql in interface SqlHandlertoSql in class BasicSqlHandlerquery - 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.SearchQueryExceptionpublic void appendQueryBodyToSql(StringBuilder sb, SearchQuery query, SqlHandler firstInChain) throws SearchQueryException
SqlHandlerappendQueryBodyToSql in interface SqlHandlerappendQueryBodyToSql in class BasicSqlHandlersb - The stringbuffer to append to.query - The searchquery.firstInChain - The first element in the chain of handlers.
At some point appendConstraintToSql() will have
to be called on this handler, to generate the constraints in
the query.SearchQueryExceptionprotected void closeConnection(Connection con, Statement stmt)
con - The connection to close. Can be null.stmt - The statement to close, prior to closing the connection. Can be null.MMBase 1.9-SNAPSHOT - ${javadoctimestamp}