public class DatabaseQuerier
extends java.lang.Object
| Constructor and Description |
|---|
DatabaseQuerier(java.sql.Statement _stmt) |
| Modifier and Type | Method and Description |
|---|---|
java.sql.ResultSet |
query(java.lang.String sql)
Executes the given SQL statement on the underlying SQL database, which returns a single ResultSet object.
|
public java.sql.ResultSet query(java.lang.String sql)
throws java.sql.SQLException
sql - an SQL statement to be sent to the database, typically a static SQL SELECT statementjava.sql.SQLException - if a database access error occurs, this method is called on a closed Statement,
the given SQL statement produces anything other than a single ResultSet object, the method is
called on a PreparedStatement or CallableStatementSQLTimeoutException - when the driver has determined that the timeout value that was specified
by the setQueryTimeout method has been exceeded and has at least attempted to cancel the currently
running StatementCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.