protected void openConnectionForQuery ( ) { if ( connection == null ) { connection = connectionProvider . getConnection ( ) ; txActive = false ; // txAction should already be false try { connection . setAutoCommit ( true ) ; } catch ( SQLException sex ) { throw new DbSqlException ( "Failed to open non-TX connection" , sex ) ; } } }
Opens connection in auto - commit mode if already not opened .