All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avaje.ebeaninternal.server.transaction.AutoCommitJdbcTransaction Maven / Gradle / Ivy

There is a newer version: 8.1.1
Show newest version
package com.avaje.ebeaninternal.server.transaction;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * AutoCommit friendly Transaction.
 * 

* Skips actual commit and rollback as these are performed automatically. */ public class AutoCommitJdbcTransaction extends JdbcTransaction { public AutoCommitJdbcTransaction(String id, boolean explicit, Connection connection, TransactionManager manager) { super(id, explicit, connection, manager); } @Override protected void checkAutoCommit(Connection connection) throws SQLException { // do nothing as autoCommit } @Override protected void performRollback() throws SQLException { // do nothing as autoCommit } @Override protected void performCommit() throws SQLException { // do nothing as autoCommit } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy