public class SimpleQueryExecutor extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleQueryExecutor.SimpleQueryResults |
| Constructor and Description |
|---|
SimpleQueryExecutor(Database database)
Creates an instance to execute a simple query.
|
| Modifier and Type | Method and Description |
|---|---|
QueryResults |
execute(Connection conn,
QueryExpression expr,
Object[] bindValues)
Executes a simple query and returns the results.
|
public SimpleQueryExecutor(Database database)
database - the Database Implementation, used to get the connectionpublic QueryResults execute(Connection conn, QueryExpression expr, Object[] bindValues) throws QueryException
expr - the Query Expression to be executed.bindValues - the values of the parametersQueryException - if anything goes wrong.Copyright © 2014. All rights reserved.