io.ebeaninternal.server.transaction.AutoCommitTransactionManager Maven / Gradle / Ivy
package io.ebeaninternal.server.transaction;
import io.ebeaninternal.api.SpiTransaction;
import java.sql.Connection;
/**
* AutoCommit based TransactionManager.
*
* Intended to be used if when autoCommit mode is desired.
*/
public class AutoCommitTransactionManager extends TransactionManager {
public AutoCommitTransactionManager(TransactionManagerOptions options) {
super(options);
}
/**
* Create an autoCommit based Transaction.
*/
@Override
protected SpiTransaction createTransaction(boolean explicit, Connection c) {
return new AutoCommitJdbcTransaction(nextTxnId(), explicit, c, this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy