| java.lang.Object org.mmbase.storage.search.implementation.database.BasicQueryHandler
BasicQueryHandler | public class BasicQueryHandler implements SearchQueryHandler(Code) | | Basic implementation using a database.
Uses a
org.mmbase.storage.search.implementation.database.SqlHandler SqlHandler to create SQL string representations of search queries.
In order to execute search queries, these are represented as SQL strings
by the handler, and in this form executed on the database.
author: Rob van Maris version: $Id: BasicQueryHandler.java,v 1.62 2007/10/22 08:42:40 nklasens Exp $ since: MMBase-1.7 |
BasicQueryHandler | public BasicQueryHandler(SqlHandler sqlHandler)(Code) | | Default constructor.
Parameters: sqlHandler - The handler use to create SQL string representationsof search queries. |
closeConnection | protected void closeConnection(Connection con, Statement stmt)(Code) | | Safely close a database connection and/or a database statement.
Parameters: con - The connection to close. Can be null . Parameters: stmt - The statement to close, prior to closing the connection. Can be null . |
createSqlString | public String createSqlString(SearchQuery query) throws SearchQueryException(Code) | | Makes a String of a query, taking into consideration if the database supports offset and
maxnumber features. The resulting String is an SQL query which can be fed to the database.
Parameters: query - the query to convert to sql the sql string throws: SearchQueryException - when error occurs while making the string |
|
|