Code example for WebRowSet

Methods: closereleasewriteXml

0
    } 
 
    @Override 
    public void write(Writer writer) throws IOException {
        try { 
            this.webRowSet.writeXml(writer);
        } catch (SQLException se) {
            throw new IOException(se.getMessage());
        } 
 
        try { 
            if (this.jdbcResult != null) {
                this.jdbcResult.release();
            } 
        } catch (SQLException se) {
            throw new IOException(
                    "SQL exception while releasing the JdbcResult instance after writing the representation. " 
                            + se.getMessage());
        } 
 
        try { 
            if (this.webRowSet != null) {
                this.webRowSet.release();
                this.webRowSet.close();
            } 
        } catch (SQLException se) {
            throw new IOException(
                    "Error while releasing the WebRowSet instance after writing the representation. " 
                            + se.getMessage());