Package org.hibernate.engine.jdbc.spi
Interface ResultSetReturn
-
- All Known Implementing Classes:
ResultSetReturnImpl
public interface ResultSetReturn
Contract for extractingResultSet
s fromStatement
s, executing the statements, managing resources, and logging statement calls.Generally the methods here for dealing with
CallableStatement
are extremely limited- See Also:
JdbcCoordinator.getResultSetReturn()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResultSet
execute(PreparedStatement statement, String sql)
Execute thePreparedStatement
return its firstResultSet
, if any.ResultSet
execute(Statement statement, String sql)
Performs the given SQL statement, returning its firstResultSet
, if any.int
executeUpdate(PreparedStatement statement, String sql)
Execute thePreparedStatement
, returning its "affected row count".int
executeUpdate(Statement statement, String sql)
Execute the given SQL statement returning its "affected row count".ResultSet
extract(PreparedStatement statement, String sql)
Extract theResultSet
from thePreparedStatement
.ResultSet
extract(Statement statement, String sql)
Performs the given SQL statement, expecting aResultSet
in return
-
-
-
Method Detail
-
extract
ResultSet extract(PreparedStatement statement, String sql)
Extract theResultSet
from thePreparedStatement
.- Parameters:
statement
- ThePreparedStatement
from which to extract theResultSet
- Returns:
- The extracted
ResultSet
-
extract
ResultSet extract(Statement statement, String sql)
Performs the given SQL statement, expecting aResultSet
in return
-
execute
ResultSet execute(PreparedStatement statement, String sql)
Execute thePreparedStatement
return its firstResultSet
, if any. If there is noResultSet
, returnsnull
- Parameters:
statement
- ThePreparedStatement
to executesql
- For error reporting- Returns:
- The extracted
ResultSet
, ornull
-
executeUpdate
int executeUpdate(PreparedStatement statement, String sql)
Execute thePreparedStatement
, returning its "affected row count".- Parameters:
statement
- ThePreparedStatement
to executesql
- For error reporting- Returns:
- The
PreparedStatement.executeUpdate()
result
-
executeUpdate
int executeUpdate(Statement statement, String sql)
Execute the given SQL statement returning its "affected row count".- Parameters:
statement
- The JDBCStatement
object to usesql
- The SQL to execute- Returns:
- The
Statement.executeUpdate(String)
result
-
-