public class SQLQueryExecutor extends Object
This object is a convenient way to execute SQL queries.
Constructor and Description |
---|
SQLQueryExecutor()
Constructs the executor.
|
Modifier and Type | Method and Description |
---|---|
Table |
execute(DatabaseConnection connection,
SQLQuery query)
Executes the given SQLQuery object on the given DatabaseConnection object.
|
public Table execute(DatabaseConnection connection, SQLQuery query) throws SQLException, DatabaseException, TransactionException, ParseException
Note that this method does not perform any locking. Any locking must have happened before this method is called.
Also note that the returned Table object is onld valid within the life-time of the lock unless the root lock requirements are satisified.
Copyright © 2015. All rights reserved.