public abstract void commit () throws SQLException

Makes permanent all changes that have been performed by the acceptChanges method since the last call to either the commit or rollback methods. This method should be used only when auto-commit mode has been disabled.

Exceptions:
SQLException    if a database access error occurs or the Connection object within this CachedRowSet object is in auto-commit mode