Class MappingLdifReader<T>

    • Constructor Detail

      • MappingLdifReader

        public MappingLdifReader()
    • Method Detail

      • setSkippedRecordsCallback

        public void setSkippedRecordsCallback​(RecordCallbackHandler skippedRecordsCallback)
        RecordCallbackHandler implementations can be used to take action on skipped records.
        Parameters:
        skippedRecordsCallback - will be called for each one of the initial skipped lines before any items are read.
      • setRecordsToSkip

        public void setRecordsToSkip​(int recordsToSkip)
        Public setter for the number of lines to skip at the start of a file. Can be used if the file contains a header without useful (column name) information, and without a comment delimiter at the beginning of the lines.
        Parameters:
        recordsToSkip - the number of lines to skip
      • setRecordMapper

        public void setRecordMapper​(RecordMapper<T> recordMapper)
        Setter for object mapper. This property is required to be set.
        Parameters:
        recordMapper - maps record to an object
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception