Constructor and Description |
---|
QueryExecutor() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ResultSet |
executeQuery(Statement statement,
String query)
Executes an SQL query.
|
void |
run() |
public ResultSet executeQuery(Statement statement, String query) throws SQLException, InterruptedException
statement
- the prepared statement for the query.query
- the query to run.ResultSet
if execution successfulSQLException
- if a database error occursInterruptedException
- if interrupted by another threadpublic void close()
Copyright © 2019. All rights reserved.