org.exolab.castor.jdo.engine
Class SimpleQueryExecutor
java.lang.Object
org.exolab.castor.jdo.engine.SimpleQueryExecutor
public class SimpleQueryExecutor
extends java.lang.Object
A class to execute simple SQL queries generated from OQL. If the query
only returns dependant values, or the results of SQL Functions or
operations, then we don't need to use the whole persistence framework,
and this class will execute the query, and return results.
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:18 $
SimpleQueryExecutor
public SimpleQueryExecutor(DatabaseImpl dbImpl)
Constructor to create an object to execute a simple query.
dbImpl
- the Database Implementation, used to get the connection
execute
public QueryResults execute(QueryExpression expr,
Object[] bindValues)
throws QueryException
Executes a simple query and returns the results. The query must not
return any complex objects, becuse this method can only return simple
java objects.
expr
- the Query Expression to be executed.bindValues
- the values of the parameters
- the results of the query.
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com