#1232 - Performance: Add support for a second read-only DataSource (for implicit query-only transactions)

This commit is contained in:
Rob Bygrave
2018-01-09 16:35:22 +13:00
parent 01539091ef
commit 932986a6b5
27 changed files with 1128 additions and 100 deletions
@@ -1,7 +1,6 @@
package io.ebeaninternal.server.transaction;
import java.sql.Connection;
import java.sql.SQLException;
/**
* AutoCommit friendly Transaction.
@@ -15,17 +14,17 @@ public class AutoCommitJdbcTransaction extends JdbcTransaction {
}
@Override
protected void checkAutoCommit(Connection connection) throws SQLException {
protected void checkAutoCommit(Connection connection) {
// do nothing as autoCommit
}
@Override
protected void performRollback() throws SQLException {
protected void performRollback() {
// do nothing as autoCommit
}
@Override
protected void performCommit() throws SQLException {
protected void performCommit() {
// do nothing as autoCommit
}