public class AggregateItem<T>
extends java.lang.Object
AggregateItemReader to
identify the start and end of an aggregate record.AggregateItemReader| Constructor and Description |
|---|
AggregateItem(boolean header,
boolean footer) |
AggregateItem(T item) |
| Modifier and Type | Method and Description |
|---|---|
static <T> AggregateItem<T> |
getFooter() |
static <T> AggregateItem<T> |
getHeader() |
T |
getItem()
Accessor for the wrapped item.
|
boolean |
isFooter()
Responds true if this record is a footer in an aggregate.
|
boolean |
isHeader()
Responds true if this record is a header in an aggregate.
|
public AggregateItem(T item)
item - public AggregateItem(boolean header,
boolean footer)
public static <T> AggregateItem<T> getFooter()
T - the type of item nominally wrappedAggregateItem that is a footer.public static <T> AggregateItem<T> getHeader()
T - the type of item nominally wrappedAggregateItem that is a header.public T getItem()
java.lang.IllegalStateException - if called on a record for which either
isHeader() or isFooter() answers true.public boolean isFooter()
public boolean isHeader()