public Statement getStatement() throws SQLException {

        if(rs != null)
        {
           return rs.getStatement();
        } else {
           return null;
        }
    }
Returns the <code>Statement</code> object that produced this
<code>ResultSet</code> object.
If the result set was generated some other way, such as by a
<code>DatabaseMetaData</code> method, this method returns
<code>null</code>.

@return the <code>Statement</code> object that produced
this rowset's <code>ResultSet</code> object or <code>null</code>
if the result set was produced some other way
@throws SQLException if a database access error occurs
src/main/java/org/replicadb/rowset/sun/rowset/JdbcRowSetImpl.java