org.restlet.ext.jdbc
Class JdbcResult

java.lang.Object
  extended by org.restlet.ext.jdbc.JdbcResult
All Implemented Interfaces:
Serializable

public class JdbcResult
extends Object
implements Serializable

JDBC result wrapper. Used by the JDBC client connector as a response entity of JDBC calls.

Author:
Jerome Louvel
See Also:
Serialized Form

Constructor Summary
JdbcResult(Statement statement)
          Constructor.
 
Method Summary
 ResultSet getGeneratedKeys()
          Returns the generated keys.
 ResultSet getResultSet()
          Returns the result set.
 int getUpdateCount()
          Returns the update count.
 void release()
          Release the statement connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcResult

public JdbcResult(Statement statement)
Constructor.

Parameters:
statement - The JDBC statement.
Method Detail

getGeneratedKeys

public ResultSet getGeneratedKeys()
                           throws SQLException
Returns the generated keys.

Returns:
The generated keys.
Throws:
SQLException

getResultSet

public ResultSet getResultSet()
                       throws SQLException
Returns the result set.

Returns:
The result set.
Throws:
SQLException

getUpdateCount

public int getUpdateCount()
                   throws SQLException
Returns the update count.

Returns:
The update count.
Throws:
SQLException

release

public void release()
             throws SQLException
Release the statement connection. To call when result navigation is done.

Throws:
SQLException


Copyright © 2005-2013 Restlet.