/** * Execute the TopLink dynamicly batch/concat statement. */ protected void executeBatchedStatement(PreparedStatement statement, AbstractSession session) throws DatabaseException { try { executeDirectNoSelect(statement, null, session); } catch (RuntimeException exception) { try {// Ensure that the statement is closed, but still ensure that the real exception is thrown. closeStatement(statement, session); } catch (SQLException closeException) { } throw exception; } // This is in seperate try block to ensure that the real exception is not masked by the close exception. try { closeStatement(statement, session); } catch (SQLException exception) { throw DatabaseException.sqlException(exception, this, session); } }
} catch (SQLException exception) { try {// Ensure that the statement is closed, but still ensure that the real exception is thrown. closeStatement(statement, session); } catch (SQLException closeException) { } catch (RuntimeException exception) { try {// Ensure that the statement is closed, but still ensure that the real exception is thrown. closeStatement(statement, session); } catch (SQLException closeException) { releaseStatement((PreparedStatement)statement, dbCall.getSQLString(), dbCall, session); } else { closeStatement(statement, session);
closeStatement(removedStatement, session); } else { decrementCallCount(); } else { closeStatement(statement, session); decrementCallCount(); } else { closeStatement(statement, session);
closeStatement(statement, session); } catch (Exception closeException) { } catch (RuntimeException exception) { try {// Ensure that the statement is closed, but still ensure that the real exception is thrown. closeStatement(statement, session); } catch (Exception closeException) {
closeStatement(statement, session); } catch (Exception closeException) { } catch (RuntimeException exception) { try {// Ensure that the statement is closed, but still ensure that the real exception is thrown. closeStatement(statement, session); } catch (Exception closeException) {