com.noelios.restlet.ext.jdbc
Class JdbcResult

java.lang.Object
  extended by com.noelios.restlet.ext.jdbc.JdbcResult
All Implemented Interfaces:
java.io.Serializable

public class JdbcResult
extends java.lang.Object
implements java.io.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(java.sql.Statement statement)
          Constructor.
 
Method Summary
 java.sql.ResultSet getGeneratedKeys()
          Returns the generated keys.
 java.sql.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(java.sql.Statement statement)
Constructor.

Parameters:
statement - The JDBC statement.
Method Detail

getGeneratedKeys

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

Returns:
The generated keys.
Throws:
java.sql.SQLException

getResultSet

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

Returns:
The result set.
Throws:
java.sql.SQLException

getUpdateCount

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

Returns:
The update count.
Throws:
java.sql.SQLException

release

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

Throws:
java.sql.SQLException


Copyright © 2005-2008 Noelios Technologies.