protected final class Sql.QueryCommand extends Sql.AbstractQueryCommand
sql, statement
Modifier and Type | Method and Description |
---|---|
protected ResultSet |
runQuery(Connection connection)
Perform the query.
|
closeResources, closeResources
protected ResultSet runQuery(Connection connection) throws SQLException
Sql.AbstractQueryCommand
Sql.AbstractQueryCommand.execute()
) method can clean up.
This is the method that encloses the variant part of the code.runQuery
in class Sql.AbstractQueryCommand
connection
- the connection to useSQLException
- if a database error occurs