|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.interpret.SQLQueryExecutor
public class SQLQueryExecutor
An object used to execute SQL queries against a given DatabaseConnection object. The object maintains an SQL parser object as state which is reused as necessary.
This object is a convenient way to execute SQL queries.
Constructor Summary | |
---|---|
SQLQueryExecutor()
Constructs the executor. |
Method Summary | |
---|---|
Table |
execute(DatabaseConnection connection,
SQLQuery query)
Executes the given SQLQuery object on the given DatabaseConnection object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLQueryExecutor()
Method Detail |
---|
public Table execute(DatabaseConnection connection, SQLQuery query) throws java.sql.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.
java.sql.SQLException
DatabaseException
TransactionException
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |