Class ResultSetReturnImpl
java.lang.Object
org.hibernate.engine.jdbc.internal.ResultSetReturnImpl
- All Implemented Interfaces:
ResultSetReturn
Standard implementation of the
ResultSetReturn
contract-
Constructor Summary
ConstructorsConstructorDescriptionResultSetReturnImpl
(JdbcCoordinator jdbcCoordinator, JdbcServices jdbcServices) Constructs a ResultSetReturnImpl -
Method Summary
Modifier and TypeMethodDescriptionexecute
(PreparedStatement statement, String sql) Execute thePreparedStatement
return its firstResultSet
, if any.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".extract
(PreparedStatement statement, String sql) Extract theResultSet
from thePreparedStatement
.Performs the given SQL statement, expecting aResultSet
in return
-
Constructor Details
-
ResultSetReturnImpl
Constructs a ResultSetReturnImpl- Parameters:
jdbcCoordinator
- The JdbcCoordinator
-
-
Method Details
-
extract
Description copied from interface:ResultSetReturn
Extract theResultSet
from thePreparedStatement
.- Specified by:
extract
in interfaceResultSetReturn
- Parameters:
statement
- ThePreparedStatement
from which to extract theResultSet
- Returns:
- The extracted
ResultSet
-
extract
Description copied from interface:ResultSetReturn
Performs the given SQL statement, expecting aResultSet
in return- Specified by:
extract
in interfaceResultSetReturn
- Parameters:
statement
- The JDBCStatement
object to usesql
- The SQL to execute- Returns:
- The resulting
ResultSet
-
execute
Description copied from interface:ResultSetReturn
Execute thePreparedStatement
return its firstResultSet
, if any. If there is noResultSet
, returnsnull
- Specified by:
execute
in interfaceResultSetReturn
- Parameters:
statement
- ThePreparedStatement
to executesql
- For error reporting- Returns:
- The extracted
ResultSet
, ornull
-
execute
Description copied from interface:ResultSetReturn
Performs the given SQL statement, returning its firstResultSet
, if any. If there is noResultSet
, returnsnull
- Specified by:
execute
in interfaceResultSetReturn
- Parameters:
statement
- The JDBCStatement
object to usesql
- The SQL to execute- Returns:
- The extracted
ResultSet
, ornull
-
executeUpdate
Description copied from interface:ResultSetReturn
Execute thePreparedStatement
, returning its "affected row count".- Specified by:
executeUpdate
in interfaceResultSetReturn
- Parameters:
statement
- ThePreparedStatement
to executesql
- For error reporting- Returns:
- The
PreparedStatement.executeUpdate()
result
-
executeUpdate
Description copied from interface:ResultSetReturn
Execute the given SQL statement returning its "affected row count".- Specified by:
executeUpdate
in interfaceResultSetReturn
- Parameters:
statement
- The JDBCStatement
object to usesql
- The SQL to execute- Returns:
- The
Statement.executeUpdate(String)
result
-