Class AbstractRecordHandler

java.lang.Object
org.frankframework.batch.AbstractRecordHandler
All Implemented Interfaces:
IRecordHandler, FrankElement, HasApplicationContext, HasName, IConfigurable, IScopeProvider, IWithParameters, NameAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
RecordTransformer, RecordXmlTransformer

public abstract class AbstractRecordHandler extends Object implements IRecordHandler, IWithParameters
Deprecated.
Warning: non-maintained functionality.
Abstract class that contains functionality for parsing the field values from a record (line). Fields in the record are either separated with a separator or have a fixed position in the line.
Author:
John Dekker
  • Field Details

    • log

      protected org.apache.logging.log4j.Logger log
      Deprecated.
    • paramList

      @Nonnull protected ParameterList paramList
      Deprecated.
  • Constructor Details

    • AbstractRecordHandler

      public AbstractRecordHandler()
      Deprecated.
  • Method Details

    • configure

      public void configure() throws ConfigurationException
      Deprecated.
      Description copied from interface: IConfigurable
      Configure this component.

      configure() is called once at startup of the framework in the configure method of the owner of this IConfigurable. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in the configure(), to improve performance.

      In the case of a container, this will propagate the configure signal to all components that apply.

      Specified by:
      configure in interface IConfigurable
      Throws:
      ConfigurationException - in case it was not able to configure the component.
    • open

      public void open() throws SenderException
      Deprecated.
      Specified by:
      open in interface IRecordHandler
      Throws:
      SenderException
    • close

      public void close() throws SenderException
      Deprecated.
      Specified by:
      close in interface IRecordHandler
      Throws:
      SenderException
    • addInputField

      public void addInputField(int length)
      Deprecated.
    • addChild

      @Deprecated public void addChild(InputfieldsPart part)
      Deprecated.
    • addInputFields

      public void addInputFields(InputfieldsPart part)
      Deprecated.
    • getNumberOfInputFields

      protected int getNumberOfInputFields()
      Deprecated.
    • parse

      public List<String> parse(PipeLineSession session, String record)
      Deprecated.
      Description copied from interface: IRecordHandler
      Parse the line into an array of fields.
      Specified by:
      parse in interface IRecordHandler
      Returns:
      List with String values for each inputfield
    • getRecordType

      public String getRecordType(List<String> record)
      Deprecated.
      Specified by:
      getRecordType in interface IRecordHandler
    • isNewRecordType

      public boolean isNewRecordType(PipeLineSession session, boolean equalRecordHandlers, List<String> prevRecord, List<String> curRecord)
      Deprecated.
      Specified by:
      isNewRecordType in interface IRecordHandler
    • getRecordIdentifyingFieldList

      public List<Integer> getRecordIdentifyingFieldList()
      Deprecated.
    • setRecordIdentifyingFields

      public void setRecordIdentifyingFields(String fieldNrs)
      Deprecated.
      comma separated list of numbers of those fields that are compared with the previous record to determine if a prefix must be written. if any of these fields is not equal in both records, the record types are assumed to be different
    • setFieldsDifferConditionForPrefix

      @Deprecated @ConfigurationWarning("The attribute \'fieldsDifferConditionForPrefix\' has been renamed \'recordIdentifyingFields\'") public void setFieldsDifferConditionForPrefix(String fieldNrs)
      Deprecated.
    • addParameter

      public void addParameter(IParameter p)
      Deprecated.
      Specified by:
      addParameter in interface IWithParameters
    • getParameterList

      @Nonnull public ParameterList getParameterList()
      Deprecated.
      Specified by:
      getParameterList in interface IWithParameters
    • setName

      public void setName(String string)
      Deprecated.
      Name of the recordhandler
      Specified by:
      setName in interface NameAware
    • setInputFields

      public void setInputFields(String fieldLengths)
      Deprecated.
      Comma separated specification of field lengths. if neither this attribute nor inputSeparator is specified then the entire record is parsed
    • setInputSeparator

      public void setInputSeparator(String string)
      Deprecated.
      Separator that separates the fields in the input record. If neither this attribute nor inputFields is specified then the entire record is parsed
    • setTrim

      public void setTrim(boolean b)
      Deprecated.
      If set to true, trailing spaces are removed from each field
      Default value
      false