Top Description Constructors Methods
javax.batch.api.chunk

public abstract Class AbstractItemWriter

extends Object
implements ItemWriter
Class Inheritance
All Implemented Interfaces
javax.batch.api.chunk.ItemWriter
Imports
java.io.Serializable, java.util.List

The AbstractItemWriter provides default implementations of not commonly implemented methods.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Serializable

Returns:

checkpoint data
checkpointInfo
()

Implements javax.batch.api.chunk.ItemWriter.checkpointInfo.

Override this method if the ItemWriter supports checkpoints.
public void
close()

Implements javax.batch.api.chunk.ItemWriter.close.

Override this method if the ItemWriter requires any close time processing.
public void
open(Serializable
last checkpoint for this ItemReader
checkpoint
)

Implements javax.batch.api.chunk.ItemWriter.open.

Override this method if the ItemWriter requires any open time processing.
public abstract void
writeItems(List<Object>
specifies the list of items to write.
items
)

Redeclares javax.batch.api.chunk.ItemWriter.writeItems.

Implement write logic for the ItemWriter in this method.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractItemWriterback to summary
public AbstractItemWriter()

Method Detail

checkpointInfoback to summary
public Serializable checkpointInfo() throws Exception

Implements javax.batch.api.chunk.ItemWriter.checkpointInfo.

Override this method if the ItemWriter supports checkpoints. The default implementation returns null.

Returns:Serializable

checkpoint data

Annotations
@Override
Exceptions
Exception:
(or subclass) if an error occurs.
closeback to summary
public void close() throws Exception

Implements javax.batch.api.chunk.ItemWriter.close.

Override this method if the ItemWriter requires any close time processing. The default implementation does nothing.

Annotations
@Override
Exceptions
Exception:
(or subclass) if an error occurs.
openback to summary
public void open(Serializable checkpoint) throws Exception

Implements javax.batch.api.chunk.ItemWriter.open.

Override this method if the ItemWriter requires any open time processing. The default implementation does nothing.

Parameters
checkpoint:Serializable

last checkpoint for this ItemReader

Annotations
@Override
Exceptions
Exception:
(or subclass) if an error occurs.
writeItemsback to summary
public abstract void writeItems(List<Object> items) throws Exception

Redeclares javax.batch.api.chunk.ItemWriter.writeItems.

Implement write logic for the ItemWriter in this method.

Parameters
items:List<Object>

specifies the list of items to write.

Annotations
@Override
Exceptions
Exception:
(or subclass) if an error occurs.