|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.mmbase.storage.search.implementation.database.BasicSqlHandler
org.mmbase.storage.search.implementation.database.InformixSqlHandler
public class InformixSqlHandler
The Informix query handler, implements SqlHandler for standard
Informix functionality.
Derived from 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.
| Field Summary | |
|---|---|
static String |
ADD_ORDERED
|
| Constructor Summary | |
|---|---|
InformixSqlHandler()
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.mmbase.storage.search.implementation.database.BasicSqlHandler |
|---|
appendCompositeConstraintToSql, appendConstraintToSql, appendDateField, appendDateValue, appendField, appendField, appendField, appendFieldValue, appendLikeOperator, appendLowerField, appendPreField, 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 |
| Methods inherited from interface org.mmbase.storage.search.implementation.database.SqlHandler |
|---|
appendConstraintToSql, getAllowedValue, getSupportLevel |
| Field Detail |
|---|
public static final String ADD_ORDERED
| Constructor Detail |
|---|
public InformixSqlHandler()
| Method Detail |
|---|
public int getSupportLevel(int feature,
SearchQuery query)
throws SearchQueryException
SqlHandler
getSupportLevel in interface SqlHandlergetSupportLevel in class BasicSqlHandlerSearchQueryException
public String toSql(SearchQuery query,
SqlHandler firstInChain)
throws SearchQueryException
SqlHandler
toSql 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.
- Returns:
- SQL string representation of the query.
- Throws:
SearchQueryException
public void appendQueryBodyToSql(StringBuilder sb,
SearchQuery query,
SqlHandler firstInChain)
throws SearchQueryException
SqlHandler
appendQueryBodyToSql 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.
SearchQueryException
protected 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||