Class TradeFieldSetMapper
- java.lang.Object
- org.springframework.batch.sample.domain.trade.internal.TradeFieldSetMapper
- All Implemented Interfaces:
FieldSetMapper<Trade>
public class TradeFieldSetMapper extends java.lang.Object implements FieldSetMapper<Trade>
Field Summary
Fields Modifier and Type Field Description static intCUSTOMER_COLUMNstatic intISIN_COLUMNstatic intPRICE_COLUMNstatic intQUANTITY_COLUMN
Constructor Summary
Constructors Constructor Description TradeFieldSetMapper()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrademapFieldSet(FieldSet fieldSet)Method used to map data obtained from aFieldSetinto an object.
Field Detail
ISIN_COLUMN
public static final int ISIN_COLUMN
- See Also:
- Constant Field Values
QUANTITY_COLUMN
public static final int QUANTITY_COLUMN
- See Also:
- Constant Field Values
PRICE_COLUMN
public static final int PRICE_COLUMN
- See Also:
- Constant Field Values
CUSTOMER_COLUMN
public static final int CUSTOMER_COLUMN
- See Also:
- Constant Field Values
Method Detail
mapFieldSet
public Trade mapFieldSet(FieldSet fieldSet)
Description copied from interface:FieldSetMapperMethod used to map data obtained from aFieldSetinto an object.- Specified by:
mapFieldSetin interfaceFieldSetMapper<Trade>- Parameters:
fieldSet- theFieldSetto map- Returns:
- the populated object