public void commit() throws SQLException {
  if (useConnection == null) {
    LOG.info("Commit operation not supported when using datasets unless using withTransaction or cacheConnection - attempt to commit ignored");
    return;
  }
  try {
    useConnection.commit();
  }
 catch (  SQLException e) {
    LOG.warning("Caught exception committing connection: " + e.getMessage());
    throw e;
  }
}

public void commit ( ) throws SQLException { if ( useConnection == null ) { LOG . info ( "Commit operation not supported when using datasets unless using withTransaction or cacheConnection - attempt to commit ignored" ) ; return ; } try { useConnection . commit ( ) ; } catch ( SQLException e ) { LOG . warning ( "Caught exception committing connection: " + e . getMessage ( ) ) ; throw e ; } }
if this sql object was created with a connection then this method commits the connection . if this sql object was created from a datasource then this method does nothing .
