src/main/java/org/vibur/dbcp/util/JdbcUtils.java
public static void setDefaultValues(Connection rawConnection, ViburConfig config) throws SQLException {
        if (config.getDefaultAutoCommit() != null) {
            rawConnection.setAutoCommit(config.getDefaultAutoCommit());
        }
        if (config.getDefaultReadOnly() != null) {
            rawConnection.setReadOnly(config.getDefaultReadOnly());
        }
        if (config.getDefaultTransactionIsolationIntValue() != null) {
            // noinspection MagicConstant - the int value is checked/ set during Vibur config validation
            rawConnection.setTransactionIsolation(config.getDefaultTransactionIsolationIntValue());
        }
        if (config.getDefaultCatalog() != null) {
            rawConnection.setCatalog(config.getDefaultCatalog());
        }
    }
public static void setDefaultValues(Connection rawConnection, ViburConfig config) throws SQLException {
        if (config.getDefaultAutoCommit() != null) {
            rawConnection.setAutoCommit(config.getDefaultAutoCommit());
        }
        if (config.getDefaultReadOnly() != null) {
            rawConnection.setReadOnly(config.getDefaultReadOnly());
        }
        if (config.getDefaultTransactionIsolationIntValue() != null) {
            // noinspection MagicConstant - the int value is checked/ set during Vibur config validation
            rawConnection.setTransactionIsolation(config.getDefaultTransactionIsolationIntValue());
        }
        if (config.getDefaultCatalog() != null) {
            rawConnection.setCatalog(config.getDefaultCatalog());
        }
    }
public static void setDefaultValues ( Connection rawConnection , ViburConfig config ) throws SQLException { if ( config . getDefaultAutoCommit ( ) != null ) { rawConnection . setAutoCommit ( config . getDefaultAutoCommit ( ) ) ; } if ( config . getDefaultReadOnly ( ) != null ) { rawConnection . setReadOnly ( config . getDefaultReadOnly ( ) ) ; } if ( config . getDefaultTransactionIsolationIntValue ( ) != null ) { // noinspection MagicConstant - the int value is checked/ set during Vibur config validation rawConnection . setTransactionIsolation ( config . getDefaultTransactionIsolationIntValue ( ) ) ; } if ( config . getDefaultCatalog ( ) != null ) { rawConnection . setCatalog ( config . getDefaultCatalog ( ) ) ; } }
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////