public void setType(int type) throws SQLException {

       int oldVal;

       try {
          oldVal = getType();
        }catch(SQLException ex) {
           oldVal = 0;
        }

       if(oldVal != type) {
           super.setType(type);
       }

    }
Sets the type for this <code>RowSet</code> object to the specified type.
The default type is <code>ResultSet.TYPE_SCROLL_INSENSITIVE</code>.

@param type one of the following constants:
            <code>ResultSet.TYPE_FORWARD_ONLY</code>,
            <code>ResultSet.TYPE_SCROLL_INSENSITIVE</code>, or
            <code>ResultSet.TYPE_SCROLL_SENSITIVE</code>
@throws SQLException if the parameter supplied is not one of the
        following constants:
         <code>ResultSet.TYPE_FORWARD_ONLY</code> or
         <code>ResultSet.TYPE_SCROLL_INSENSITIVE</code>
         <code>ResultSet.TYPE_SCROLL_SENSITIVE</code>
@see #getConcurrency
@see #getType
src/main/java/org/replicadb/rowset/sun/rowset/JdbcRowSetImpl.java