T - the target domain object typepublic class FixedLengthRecordMapper<T> extends Object implements RecordMapper<T>
| Constructor and Description |
|---|
FixedLengthRecordMapper(Class<? extends T> recordClass,
int[] fieldsLength,
String[] fieldNames)
Constructs a FixedLengthRecordMapper instance.
|
| Modifier and Type | Method and Description |
|---|---|
T |
mapRecord(Record record) |
void |
registerTypeConverter(TypeConverter typeConverter)
Register a custom type converter.
|
public FixedLengthRecordMapper(Class<? extends T> recordClass, int[] fieldsLength, String[] fieldNames)
recordClass - the target domain object classfieldsLength - an array of fields length in the same order in the FLR flat file.fieldNames - a String array representing fields name in the same order in the FLR flat file.public T mapRecord(Record record) throws Exception
mapRecord in interface RecordMapper<T>Exceptionpublic void registerTypeConverter(TypeConverter typeConverter)
typeConverter - the type converter to userCopyright © 2015. All Rights Reserved.