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 .