/* (non-Javadoc) * @see org.springframework.batch.jsr.item.CheckpointSupport#doClose() */ @Override protected void doClose() throws Exception { delegate.close(); }
/* (non-Javadoc) * @see org.springframework.batch.jsr.item.CheckpointSupport#doCheckpoint() */ @Override protected Serializable doCheckpoint() throws Exception { Serializable checkpointInfo = delegate.checkpointInfo(); return checkpointInfo; }
/* (non-Javadoc) * @see org.springframework.batch.item.ItemWriter#write(java.util.List) */ @SuppressWarnings("unchecked") @Override public void write(List<? extends T> items) throws Exception { delegate.writeItems((List<Object>) items); }
/* (non-Javadoc) * @see org.springframework.batch.jsr.item.CheckpointSupport#doOpen(java.io.Serializable) */ @Override protected void doOpen(Serializable checkpoint) throws Exception { delegate.open(checkpoint); }
/** @param writer a {@link ItemWriter} to delegate calls to */ public ItemWriterAdapter(ItemWriter writer) { super(CHECKPOINT_KEY); Assert.notNull(writer, "An ItemWriter implementation is required"); this.delegate = writer; super.setExecutionContextName(ClassUtils.getShortName(delegate.getClass())); }