Class MsExcelRecordMapper<P>

  • Type Parameters:
    P - type of the record's payload
    All Implemented Interfaces:
    org.jeasy.batch.core.mapper.RecordMapper<org.apache.poi.ss.usermodel.Row,​P>, org.jeasy.batch.core.processor.RecordProcessor<org.apache.poi.ss.usermodel.Row,​P>

    public class MsExcelRecordMapper<P>
    extends java.lang.Object
    implements org.jeasy.batch.core.mapper.RecordMapper<org.apache.poi.ss.usermodel.Row,​P>
    Mapper that unmarshal MS Excel records to Java objects.
    Author:
    Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.jeasy.batch.core.record.Record<P> processRecord​(org.jeasy.batch.core.record.Record<org.apache.poi.ss.usermodel.Row> msExcelRecord)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MsExcelRecordMapper

        public MsExcelRecordMapper​(java.lang.Class<P> type,
                                   java.lang.String... fields)
        Create a new MsExcelRecordMapper.
        Parameters:
        type - the target object type
        fields - the fields to unmarshal
    • Method Detail

      • processRecord

        public org.jeasy.batch.core.record.Record<P> processRecord​(org.jeasy.batch.core.record.Record<org.apache.poi.ss.usermodel.Row> msExcelRecord)
                                                            throws java.lang.Exception
        Specified by:
        processRecord in interface org.jeasy.batch.core.processor.RecordProcessor<org.apache.poi.ss.usermodel.Row,​P>
        Throws:
        java.lang.Exception