Query
Update
979899100101102103
* @param handle the handle on which the checkpoint is being released * @param checkpointName the checkpoint to release */ public void release(Handle handle, String checkpointName) { throw new TransactionException("Rollback called, this runtime exception thrown to halt the transaction"); }
247248249250251252253254255256257258259260261262263
this.rollback(); throw e; } catch (Exception e) { this.rollback(); throw new TransactionFailedException("Transaction failed do to exception being thrown " + "from within the callback. See cause " + "for the original exception.", e); } if (failed[0]) { this.rollback(); throw new TransactionFailedException("Transaction failed due to transaction status being set " + "to rollback only."); } else { return returnValue; }
8788899091929394
try { connection.close(); log.logReleaseHandle(this); } catch (SQLException e) { throw new UnableToCloseResourceException("Unable to close Connection", e); } }
919293949596979899
} reader.close(); } catch (IOException e) { throw new UnableToCreateStatementException(e.getMessage(), e); } return buffer.toString(); }
40414243444546474849
{ this.info = Introspector.getBeanInfo(bean.getClass()); } catch (IntrospectionException e) { throw new UnableToCreateStatementException("Failed to introspect object which is supposed ot be used to" + " set named args for a statement via JavaBean properties", e); } }
5859606162636465666768697071727374
{ return new ObjectArgument(descriptor.getReadMethod().invoke(bean)); } catch (IllegalAccessException e) { throw new UnableToCreateStatementException(String.format("Access excpetion invoking getter for " + "bean property [%s] on [%s]", name, bean), e); } catch (InvocationTargetException e) { throw new UnableToCreateStatementException(String.format("Invocation target exception invoking " + "getter for bean property [%s] on [%s]", name, bean), e); } } }
821822823824825826827828
{ try { return locator.locate(sql, this.getContext()); } catch (Exception e) { throw new UnableToCreateStatementException("Exception thrown while looking for statement", e); } }
836837838839840841842843844845846
try { try { stmt = statementBuilder.create(this.getConnection(), rewritten.getSql(), context); } catch (SQLException e) { throw new UnableToCreateStatementException(e); } try { rewritten.bind(getParameters(), stmt); }
78798081828384858687
} t = lexer.nextToken(); } } catch (TokenStreamException e) { throw new UnableToCreateStatementException("Exception parsing for named parameter replacement", e); } return new MyRewrittenStatement(b.toString(), stmt, ctx); }
141142143144145146147148149150151
try { a.apply(i + 1, statement, this.context); } catch (SQLException e) { throw new UnableToCreateStatementException(String.format("Exception while binding '%s'", named_param), e); } i++; } }