This method of the Connection class cancels any changes made during the current transaction and ends the transaction. It may also start a new transaction.
public void rollbackTrans();