public class ResultSetReturnImpl extends Object implements ResultSetReturn
Constructor and Description |
---|
ResultSetReturnImpl(JdbcCoordinator jdbcCoordinator)
Constructs a ResultSetReturnImpl
|
Modifier and Type | Method and Description |
---|---|
ResultSet |
execute(PreparedStatement statement)
Execute the PreparedStatement return its first ResultSet, if any.
|
ResultSet |
execute(Statement statement,
String sql)
Performs the given SQL statement, returning its first ResultSet, if any.
|
int |
executeUpdate(PreparedStatement statement)
Execute the PreparedStatement, returning its "affected row count".
|
int |
executeUpdate(Statement statement,
String sql)
Execute the given SQL statement returning its "affected row count".
|
ResultSet |
extract(CallableStatement callableStatement)
Extract the ResultSet from the CallableStatement.
|
ResultSet |
extract(PreparedStatement statement)
Extract the ResultSet from the PreparedStatement.
|
ResultSet |
extract(Statement statement,
String sql)
Performs the given SQL statement, expecting a ResultSet in return
|
public ResultSetReturnImpl(JdbcCoordinator jdbcCoordinator)
jdbcCoordinator
- The JdbcCoordinatorpublic ResultSet extract(PreparedStatement statement)
ResultSetReturn
CallableStatement
reference, this method calls ResultSetReturn.extract(CallableStatement)
internally. Otherwise, generally speaking, PreparedStatement.executeQuery()
is calledextract
in interface ResultSetReturn
statement
- The PreparedStatement from which to extract the ResultSetpublic ResultSet extract(CallableStatement callableStatement)
ResultSetReturn
Dialect.getResultSet(java.sql.CallableStatement)
. Better option is to integrate
ProcedureCall
-like hooksextract
in interface ResultSetReturn
callableStatement
- The CallableStatement from which to extract the ResultSetpublic ResultSet extract(Statement statement, String sql)
ResultSetReturn
extract
in interface ResultSetReturn
statement
- The JDBC Statement object to usesql
- The SQL to executepublic ResultSet execute(PreparedStatement statement)
ResultSetReturn
null
execute
in interface ResultSetReturn
statement
- The PreparedStatement to executenull
public ResultSet execute(Statement statement, String sql)
ResultSetReturn
null
execute
in interface ResultSetReturn
statement
- The JDBC Statement object to usesql
- The SQL to executenull
public int executeUpdate(PreparedStatement statement)
ResultSetReturn
executeUpdate
in interface ResultSetReturn
statement
- The PreparedStatement to executePreparedStatement.executeUpdate()
resultpublic int executeUpdate(Statement statement, String sql)
ResultSetReturn
executeUpdate
in interface ResultSetReturn
statement
- The JDBC Statement object to usesql
- The SQL to executeStatement.executeUpdate(String)
resultCopyright © 2017 JBoss by Red Hat. All rights reserved.