commit()

Syntax:

void commit() throws SQLException

Description:

Makes all changes made since the previous commit/rollback permanent and releases any database locks currently held by this Connection object. This method should be used only when auto-commit mode has been disabled.

Throws:

SQLException - if a database access error occurs or pos < 1 or if the database connection is in auto commit mode (which is the default)

Reference:

For more information, reference JDBC documentation for: Connection.commit()