org.hibernate.engine.jdbc.spi
Interface ResultSetReturn

All Known Implementing Classes:
ResultSetReturnImpl

public interface ResultSetReturn

Contract for extracting ResultSets from Statements, executing Statements, managing Statement/ResultSet resources, and logging statement calls. TODO: This could eventually utilize the new Return interface. It would be great to have a common API shared.


Method Summary
 ResultSet execute(PreparedStatement statement)
          Execute the Statement query and, if results in a ResultSet, extract it.
 ResultSet execute(Statement statement, String sql)
          Execute the Statement query and, if results in a ResultSet, extract it.
 int executeUpdate(PreparedStatement statement)
          Execute the Statement queryUpdate.
 int executeUpdate(Statement statement, String sql)
          Execute the Statement query and, if results in a ResultSet, extract it.
 ResultSet extract(CallableStatement statement)
          Extract the ResultSet from the statement.
 ResultSet extract(PreparedStatement statement)
          Extract the ResultSet from the statement.
 ResultSet extract(Statement statement, String sql)
          Extract the ResultSet from the statement.
 

Method Detail

extract

ResultSet extract(PreparedStatement statement)
Extract the ResultSet from the statement. If user passes CallableStatement reference, method calls extract(CallableStatement) internally.

Parameters:
statement -
Returns:
the ResultSet

extract

ResultSet extract(CallableStatement statement)
Extract the ResultSet from the statement.

Parameters:
statement -
Returns:
the ResultSet

extract

ResultSet extract(Statement statement,
                  String sql)
Extract the ResultSet from the statement.

Parameters:
statement -
sql -
Returns:
the ResultSet

execute

ResultSet execute(PreparedStatement statement)
Execute the Statement query and, if results in a ResultSet, extract it.

Parameters:
statement -
Returns:
the ResultSet

execute

ResultSet execute(Statement statement,
                  String sql)
Execute the Statement query and, if results in a ResultSet, extract it.

Parameters:
statement -
sql -
Returns:
the ResultSet

executeUpdate

int executeUpdate(PreparedStatement statement)
Execute the Statement queryUpdate.

Parameters:
statement -
Returns:
int

executeUpdate

int executeUpdate(Statement statement,
                  String sql)
Execute the Statement query and, if results in a ResultSet, extract it.

Parameters:
statement -
sql -
Returns:
the ResultSet


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.