Package org.hibernate.engine.jdbc.spi
Interface ResultSetReturn
- All Known Implementing Classes:
ResultSetReturnImpl
public interface ResultSetReturn
Contract for extracting
ResultSets from Statements, executing the statements,
managing resources, and logging statement calls.
Generally the methods here for dealing with CallableStatement are extremely limited
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionexecute(PreparedStatement statement, String sql) Execute thePreparedStatementreturn its firstResultSet, if any.Performs the given SQL statement, returning its firstResultSet, if any.intexecuteUpdate(PreparedStatement statement, String sql) Execute thePreparedStatement, returning its "affected row count".intexecuteUpdate(Statement statement, String sql) Execute the given SQL statement returning its "affected row count".extract(PreparedStatement statement, String sql) Extract theResultSetfrom thePreparedStatement.Performs the given SQL statement, expecting aResultSetin return
-
Method Details
-
extract
Extract theResultSetfrom thePreparedStatement.- Parameters:
statement- ThePreparedStatementfrom which to extract theResultSet- Returns:
- The extracted
ResultSet
-
extract
Performs the given SQL statement, expecting aResultSetin return -
execute
Execute thePreparedStatementreturn its firstResultSet, if any. If there is noResultSet, returnsnull- Parameters:
statement- ThePreparedStatementto executesql- For error reporting- Returns:
- The extracted
ResultSet, ornull
-
execute
-
executeUpdate
Execute thePreparedStatement, returning its "affected row count".- Parameters:
statement- ThePreparedStatementto executesql- For error reporting- Returns:
- The
PreparedStatement.executeUpdate()result
-
executeUpdate
Execute the given SQL statement returning its "affected row count".- Parameters:
statement- The JDBCStatementobject to usesql- The SQL to execute- Returns:
- The
Statement.executeUpdate(String)result
-