@Override public void beforeChunk(ChunkContext context) { try { delegate.beforeChunk(); } catch (Exception e) { throw new UncheckedTransactionException(e); } }
@Override public void afterChunk(ChunkContext context) { try { delegate.afterChunk(); } catch (Exception e) { throw new UncheckedTransactionException(e); } }
@Override public void afterChunkError(ChunkContext context) { if(context != null) { try { delegate.onError((Exception) context.getAttribute(ChunkListener.ROLLBACK_EXCEPTION_KEY)); } catch (Exception e) { throw new UncheckedTransactionException(e); } } else { throw new BatchRuntimeException("Unable to retrieve causing exception due to null ChunkContext"); } } }
@Override public void beforeChunk(ChunkContext context) { try { delegate.beforeChunk(); } catch (Exception e) { throw new UncheckedTransactionException(e); } }
@Override public void beforeChunk(ChunkContext context) { try { delegate.beforeChunk(); } catch (Exception e) { throw new UncheckedTransactionException(e); } }
@Override public void afterChunk(ChunkContext context) { try { delegate.afterChunk(); } catch (Exception e) { throw new UncheckedTransactionException(e); } }
@Override public void afterChunk(ChunkContext context) { try { delegate.afterChunk(); } catch (Exception e) { throw new UncheckedTransactionException(e); } }
@Override public void beforeChunk(ChunkContext context) { try { delegate.beforeChunk(); } catch (Exception e) { throw new UncheckedTransactionException(e); } }
@Override public void afterChunk(ChunkContext context) { try { delegate.afterChunk(); } catch (Exception e) { throw new UncheckedTransactionException(e); } }
@Override public void afterChunkError(ChunkContext context) { if(context != null) { try { delegate.onError((Exception) context.getAttribute(ChunkListener.ROLLBACK_EXCEPTION_KEY)); } catch (Exception e) { throw new UncheckedTransactionException(e); } } else { throw new BatchRuntimeException("Unable to retrieve causing exception due to null ChunkContext"); } } }
@Override public void afterChunkError(ChunkContext context) { if(context != null) { try { delegate.onError((Exception) context.getAttribute(ChunkListener.ROLLBACK_EXCEPTION_KEY)); } catch (Exception e) { throw new UncheckedTransactionException(e); } } else { throw new BatchRuntimeException("Unable to retrieve causing exception due to null ChunkContext"); } } }
@Override public void afterChunkError(ChunkContext context) { if(context != null) { try { delegate.onError((Exception) context.getAttribute(ChunkListener.ROLLBACK_EXCEPTION_KEY)); } catch (Exception e) { throw new UncheckedTransactionException(e); } } else { throw new BatchRuntimeException("Unable to retrieve causing exception due to null ChunkContext"); } } }
rollback(stepExecution); throw new UncheckedTransactionException(e);