public interface ResultSetReturn
Modifier and Type | Method and Description |
---|---|
java.sql.ResultSet |
execute(java.sql.PreparedStatement statement)
Execute the PreparedStatement return its first ResultSet, if any.
|
java.sql.ResultSet |
execute(java.sql.Statement statement,
java.lang.String sql)
Performs the given SQL statement, returning its first ResultSet, if any.
|
int |
executeUpdate(java.sql.PreparedStatement statement)
Execute the PreparedStatement, returning its "affected row count".
|
int |
executeUpdate(java.sql.Statement statement,
java.lang.String sql)
Execute the given SQL statement returning its "affected row count".
|
java.sql.ResultSet |
extract(java.sql.CallableStatement callableStatement)
Extract the ResultSet from the CallableStatement.
|
java.sql.ResultSet |
extract(java.sql.PreparedStatement statement)
Extract the ResultSet from the PreparedStatement.
|
java.sql.ResultSet |
extract(java.sql.Statement statement,
java.lang.String sql)
Performs the given SQL statement, expecting a ResultSet in return
|
java.sql.ResultSet extract(java.sql.PreparedStatement statement)
CallableStatement
reference, this method calls extract(CallableStatement)
internally. Otherwise, generally speaking, PreparedStatement.executeQuery()
is calledstatement
- The PreparedStatement from which to extract the ResultSetjava.sql.ResultSet extract(java.sql.CallableStatement callableStatement)
Dialect.getResultSet(java.sql.CallableStatement)
. Better option is to integrate
ProcedureCall
-like hookscallableStatement
- The CallableStatement from which to extract the ResultSetjava.sql.ResultSet extract(java.sql.Statement statement, java.lang.String sql)
statement
- The JDBC Statement object to usesql
- The SQL to executejava.sql.ResultSet execute(java.sql.PreparedStatement statement)
null
statement
- The PreparedStatement to executenull
java.sql.ResultSet execute(java.sql.Statement statement, java.lang.String sql)
null
statement
- The JDBC Statement object to usesql
- The SQL to executenull
int executeUpdate(java.sql.PreparedStatement statement)
statement
- The PreparedStatement to executePreparedStatement.executeUpdate()
resultint executeUpdate(java.sql.Statement statement, java.lang.String sql)
statement
- The JDBC Statement object to usesql
- The SQL to executeStatement.executeUpdate(String)
resultCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.