org.hibernate.engine.jdbc.internal
Class ResultSetReturnImpl

java.lang.Object
  extended by org.hibernate.engine.jdbc.internal.ResultSetReturnImpl
All Implemented Interfaces:
ResultSetReturn

public class ResultSetReturnImpl
extends Object
implements ResultSetReturn


Constructor Summary
ResultSetReturnImpl(JdbcCoordinator jdbcCoordinator)
          Constructs a ResultSetReturnImpl
 
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 callableStatement)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetReturnImpl

public ResultSetReturnImpl(JdbcCoordinator jdbcCoordinator)
Constructs a ResultSetReturnImpl

Parameters:
jdbcCoordinator - The JdbcCoordinator
Method Detail

extract

public ResultSet extract(PreparedStatement statement)
Description copied from interface: ResultSetReturn
Extract the ResultSet from the statement. If user passes CallableStatement reference, method calls ResultSetReturn.extract(CallableStatement) internally.

Specified by:
extract in interface ResultSetReturn
Returns:
the ResultSet

extract

public ResultSet extract(CallableStatement callableStatement)
Description copied from interface: ResultSetReturn
Extract the ResultSet from the statement.

Specified by:
extract in interface ResultSetReturn
Returns:
the ResultSet

extract

public ResultSet extract(Statement statement,
                         String sql)
Description copied from interface: ResultSetReturn
Extract the ResultSet from the statement.

Specified by:
extract in interface ResultSetReturn
Returns:
the ResultSet

execute

public ResultSet execute(PreparedStatement statement)
Description copied from interface: ResultSetReturn
Execute the Statement query and, if results in a ResultSet, extract it.

Specified by:
execute in interface ResultSetReturn
Returns:
the ResultSet

execute

public ResultSet execute(Statement statement,
                         String sql)
Description copied from interface: ResultSetReturn
Execute the Statement query and, if results in a ResultSet, extract it.

Specified by:
execute in interface ResultSetReturn
Returns:
the ResultSet

executeUpdate

public int executeUpdate(PreparedStatement statement)
Description copied from interface: ResultSetReturn
Execute the Statement queryUpdate.

Specified by:
executeUpdate in interface ResultSetReturn
Returns:
int

executeUpdate

public int executeUpdate(Statement statement,
                         String sql)
Description copied from interface: ResultSetReturn
Execute the Statement query and, if results in a ResultSet, extract it.

Specified by:
executeUpdate in interface ResultSetReturn
Returns:
the ResultSet


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