title: Connection from CachedRowSet
body: <p>I have the following Java 7 code to create a <code>CachedRowSet</code>.</p>
  
  <pre><code>CachedRowSet crs = RowSetProvider.newFactory().createCachedRowSet(); 
  </code></pre>
  
  <p>Is there a way to get the Connection object from the <code>CachedRowSet</code> object? I would like to set <code>autoCommit</code> to false on the Connection object before invoking the <code>acceptChanges()</code> on <code>CachedRowSet</code> as I'm getting the following exception when invoking <code>acceptChanges()</code>.</p>
  
  <pre><code>javax.sql.rowset.spi.SyncProviderException: Can't call commit when autocommit=true
  </code></pre>
  
  <p>There is a <code>COMMIT_ON_ACCEPT_CHANGES</code> field on <code>CachedRowSet</code>, but it's Deprecated.</p>