类 ResultSetReturnImpl
- java.lang.Object
-
- org.hibernate.engine.jdbc.internal.ResultSetReturnImpl
-
- 所有已实现的接口:
ResultSetReturn
public class ResultSetReturnImpl extends Object implements ResultSetReturn
Standard implementation of the ResultSetReturn contract- 作者:
- Brett Meyer
-
-
构造器概要
构造器 构造器 说明 ResultSetReturnImpl(JdbcCoordinator jdbcCoordinator, JdbcServices jdbcServices)Constructs a ResultSetReturnImpl
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ResultSetexecute(PreparedStatement statement)Execute the PreparedStatement return its first ResultSet, if any.ResultSetexecute(Statement statement, String sql)Performs the given SQL statement, returning its first ResultSet, if any.intexecuteUpdate(PreparedStatement statement)Execute the PreparedStatement, returning its "affected row count".intexecuteUpdate(Statement statement, String sql)Execute the given SQL statement returning its "affected row count".ResultSetextract(CallableStatement callableStatement)Extract the ResultSet from the CallableStatement.ResultSetextract(PreparedStatement statement)Extract the ResultSet from the PreparedStatement.ResultSetextract(Statement statement, String sql)Performs the given SQL statement, expecting a ResultSet in return
-
-
-
构造器详细资料
-
ResultSetReturnImpl
public ResultSetReturnImpl(JdbcCoordinator jdbcCoordinator, JdbcServices jdbcServices)
Constructs a ResultSetReturnImpl- 参数:
jdbcCoordinator- The JdbcCoordinator
-
-
方法详细资料
-
extract
public ResultSet extract(PreparedStatement statement)
从接口复制的说明:ResultSetReturnExtract the ResultSet from the PreparedStatement. If user passesCallableStatementreference, this method callsResultSetReturn.extract(CallableStatement)internally. Otherwise, generally speaking,PreparedStatement.executeQuery()is called- 指定者:
extract在接口中ResultSetReturn- 参数:
statement- The PreparedStatement from which to extract the ResultSet- 返回:
- The extracted ResultSet
-
extract
public ResultSet extract(CallableStatement callableStatement)
从接口复制的说明:ResultSetReturnExtract the ResultSet from the CallableStatement. Note that this is the limited legacy form which delegates toDialect.getResultSet(java.sql.CallableStatement). Better option is to integrateProcedureCall-like hooks- 指定者:
extract在接口中ResultSetReturn- 参数:
callableStatement- The CallableStatement from which to extract the ResultSet- 返回:
- The extracted ResultSet
-
extract
public ResultSet extract(Statement statement, String sql)
从接口复制的说明:ResultSetReturnPerforms the given SQL statement, expecting a ResultSet in return- 指定者:
extract在接口中ResultSetReturn- 参数:
statement- The JDBC Statement object to usesql- The SQL to execute- 返回:
- The resulting ResultSet
-
execute
public ResultSet execute(PreparedStatement statement)
从接口复制的说明:ResultSetReturnExecute the PreparedStatement return its first ResultSet, if any. If there is no ResultSet, returnsnull- 指定者:
execute在接口中ResultSetReturn- 参数:
statement- The PreparedStatement to execute- 返回:
- The extracted ResultSet, or
null
-
execute
public ResultSet execute(Statement statement, String sql)
从接口复制的说明:ResultSetReturnPerforms the given SQL statement, returning its first ResultSet, if any. If there is no ResultSet, returnsnull- 指定者:
execute在接口中ResultSetReturn- 参数:
statement- The JDBC Statement object to usesql- The SQL to execute- 返回:
- The extracted ResultSet, or
null
-
executeUpdate
public int executeUpdate(PreparedStatement statement)
从接口复制的说明:ResultSetReturnExecute the PreparedStatement, returning its "affected row count".- 指定者:
executeUpdate在接口中ResultSetReturn- 参数:
statement- The PreparedStatement to execute- 返回:
- The
PreparedStatement.executeUpdate()result
-
executeUpdate
public int executeUpdate(Statement statement, String sql)
从接口复制的说明:ResultSetReturnExecute the given SQL statement returning its "affected row count".- 指定者:
executeUpdate在接口中ResultSetReturn- 参数:
statement- The JDBC Statement object to usesql- The SQL to execute- 返回:
- The
Statement.executeUpdate(String)result
-
-