/** * Execute the EclipseLink dynamically batched/concatenated 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, null); } catch (SQLException closeException) { } throw exception; } // This is in a separate try block to ensure that the real exception is not masked by the close exception. try { closeStatement(statement, session, null); } catch (SQLException exception) { //With an external connection pool the connection may be null after this call, if it is we will //be unable to determine if it is a connection based exception so treat it as if it wasn't. DatabaseException commException = processExceptionForCommError(session, exception, null); if (commException != null) throw commException; throw DatabaseException.sqlException(exception, this, session, false); } }
/** * Execute the EclipseLink dynamically batched/concatenated 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, null); } catch (SQLException closeException) { } throw exception; } // This is in a separate try block to ensure that the real exception is not masked by the close exception. try { closeStatement(statement, session, null); } catch (SQLException exception) { //With an external connection pool the connection may be null after this call, if it is we will //be unable to determine if it is a connection based exception so treat it as if it wasn't. DatabaseException commException = processExceptionForCommError(session, exception, null); if (commException != null) throw commException; throw DatabaseException.sqlException(exception, this, session, false); } }
/** * Execute the EclipseLink dynamically batched/concatenated 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, null); } catch (SQLException closeException) { } throw exception; } // This is in a separate try block to ensure that the real exception is not masked by the close exception. try { closeStatement(statement, session, null); } catch (SQLException exception) { //With an external connection pool the connection may be null after this call, if it is we will //be unable to determine if it is a connection based exception so treat it as if it wasn't. DatabaseException commException = processExceptionForCommError(session, exception, null); if (commException != null) throw commException; throw DatabaseException.sqlException(exception, this, session, false); } }
this.databaseAccessor.closeStatement(statement, session, null); } catch (SQLException closeException) { } catch (RuntimeException exception) { try {// Ensure that the statement is closed, but still ensure that the real exception is thrown. this.databaseAccessor.closeStatement(statement, session, null); } catch (SQLException closeException) {
this.databaseAccessor.closeStatement(statement, session, null); } catch (SQLException closeException) { } catch (RuntimeException exception) { try {// Ensure that the statement is closed, but still ensure that the real exception is thrown. this.databaseAccessor.closeStatement(statement, session, null); } catch (SQLException closeException) {
this.databaseAccessor.closeStatement(statement, session, null); } catch (SQLException closeException) { } catch (RuntimeException exception) { try {// Ensure that the statement is closed, but still ensure that the real exception is thrown. this.databaseAccessor.closeStatement(statement, session, null); } catch (SQLException closeException) {
closeStatement(removedStatement, session, call); } else { decrementCallCount(); } else { closeStatement(statement, session, call); decrementCallCount(); } else { closeStatement(statement, session, call);
closeStatement(removedStatement, session, call); } else { decrementCallCount(); } else { closeStatement(statement, session, call); decrementCallCount(); } else { closeStatement(statement, session, call);
closeStatement(removedStatement, session, call); } else { decrementCallCount(); } else { closeStatement(statement, session, call); decrementCallCount(); } else { closeStatement(statement, session, call);
this.databaseAccessor.closeStatement(statement, session, null); } catch (SQLException closeException) { } catch (RuntimeException exception) { try {// Ensure that the statement is closed, but still ensure that the real exception is thrown. this.databaseAccessor.closeStatement(statement, session, null); } catch (SQLException closeException) {
this.databaseAccessor.closeStatement(statement, session, null); } catch (SQLException closeException) { } catch (RuntimeException exception) { try {// Ensure that the statement is closed, but still ensure that the real exception is thrown. this.databaseAccessor.closeStatement(statement, session, null); } catch (SQLException closeException) {
if (commException != null) throw commException; try {// Ensure that the statement is closed, but still ensure that the real exception is thrown. closeStatement(statement, session, dbCall); } 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, dbCall); } catch (SQLException closeException) { releaseStatement(statement, dbCall.getSQLString(), dbCall, session); } else { closeStatement(statement, session, null);
if (commException != null) throw commException; try {// Ensure that the statement is closed, but still ensure that the real exception is thrown. closeStatement(statement, session, dbCall); } 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, dbCall); } catch (SQLException closeException) { releaseStatement(statement, dbCall.getSQLString(), dbCall, session); } else { closeStatement(statement, session, dbCall);
if (commException != null) throw commException; try {// Ensure that the statement is closed, but still ensure that the real exception is thrown. closeStatement(statement, session, dbCall); } 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, dbCall); } catch (SQLException closeException) { releaseStatement(statement, dbCall.getSQLString(), dbCall, session); } else { closeStatement(statement, session, dbCall);
try { this.databaseAccessor.closeStatement(statement, session, null); } catch (SQLException closeException) { try { this.databaseAccessor.closeStatement(statement, session, null); } catch (SQLException closeException) {
closeStatement(statement, session, dbCall); } 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, dbCall); } catch (Exception closeException) {
closeStatement(statement, session, dbCall); } 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, dbCall); } catch (Exception closeException) {
getAccessor().closeStatement(this.statement, this.session, null); } catch (RuntimeException caughtException) { exception = caughtException;
getAccessor().closeStatement(this.statement, this.session, null); } catch (RuntimeException caughtException) { exception = caughtException;
getAccessor().closeStatement(getStatement(), getSession(), null); } catch (RuntimeException caughtException) { exception = caughtException;