public void setDataSourceName(String dsName) throws SQLException{

       if(getDataSourceName() != null) {
          if(!getDataSourceName().equals(dsName)) {
             super.setDataSourceName(dsName);
             conn = null;
             ps = null;
             rs = null;
          }
       }
       else {
          super.setDataSourceName(dsName);
       }
    }
Sets the <code>dataSourceName</code> property for this <code>JdbcRowSet</code>
object to the given logical name and sets this <code>JdbcRowSet</code> object's
Url property to <code>null</code>. In addition, if the <code>dataSourceName</code>
property has previously been set and is different from the one supplied,
this method sets this <code>JdbcRowSet</code> object's private fields
<code>ps</code>, <code>rs</code>, and <code>conn</code> to <code>null</code>.
(The field <code>ps</code> is its <code>PreparedStatement</code> object,
the field <code>rs</code> is its <code>ResultSet</code> object, and
the field <code>conn</code> is its <code>Connection</code> object.)
<P>
The name supplied to this method must have been bound to a
<code>DataSource</code> object in a JNDI naming service so that an
application can do a lookup using that name to retrieve the
<code>DataSource</code> object bound to it. The <code>DataSource</code>
object can then be used to establish a connection to the data source it
represents.
<P>
Users should set either the Url property or the dataSourceName property.
If both properties are set, the driver will use the property set most recently.

@param dsName a <code>String</code> object with the name that can be supplied
       to a naming service based on JNDI technology to retrieve the
       <code>DataSource</code> object that can be used to get a connection;
       may be <code>null</code>
@throws SQLException if there is a problem setting the
         <code>dataSourceName</code> property
@see #getDataSourceName
src/main/java/org/replicadb/rowset/sun/rowset/JdbcRowSetImpl.java