Package org.frankframework.batch
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.logging.log4j.LoggerDeprecated.protected ParameterListDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(InputfieldsPart part) Deprecated.voidaddInputField(int length) Deprecated.voidDeprecated.voidDeprecated.voidclose()Deprecated.voidDeprecated.Configure this component.protected intDeprecated.Deprecated.Deprecated.getRecordType(List<String> record) Deprecated.booleanisNewRecordType(PipeLineSession session, boolean equalRecordHandlers, List<String> prevRecord, List<String> curRecord) Deprecated.voidopen()Deprecated.parse(PipeLineSession session, String record) Deprecated.Parse the line into an array of fields.voidsetFieldsDifferConditionForPrefix(String fieldNrs) Deprecated.voidsetInputFields(String fieldLengths) Deprecated.Comma separated specification of field lengths. if neither this attribute norinputSeparatoris specified then the entire record is parsedvoidsetInputSeparator(String string) Deprecated.Separator that separates the fields in the input record.voidDeprecated.Name of the recordhandlervoidsetRecordIdentifyingFields(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 differentvoidsetTrim(boolean b) Deprecated.If set totrue, trailing spaces are removed from each fieldMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface org.frankframework.batch.IRecordHandler
getRecordLength, handleRecord
-
Field Details
-
log
protected org.apache.logging.log4j.Logger logDeprecated. -
paramList
Deprecated.
-
-
Constructor Details
-
AbstractRecordHandler
public AbstractRecordHandler()Deprecated.
-
-
Method Details
-
configure
Deprecated.Description copied from interface:IConfigurableConfigure this component.configure()is called once at startup of the framework in the configure method of the owner of thisIConfigurable. 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 theconfigure(), to improve performance.In the case of a container, this will propagate the configure signal to all components that apply.
- Specified by:
configurein interfaceIConfigurable- Throws:
ConfigurationException- in case it was not able to configure the component.
-
open
Deprecated.- Specified by:
openin interfaceIRecordHandler- Throws:
SenderException
-
close
Deprecated.- Specified by:
closein interfaceIRecordHandler- Throws:
SenderException
-
addInputField
public void addInputField(int length) Deprecated. -
addChild
Deprecated. -
addInputFields
Deprecated. -
getNumberOfInputFields
protected int getNumberOfInputFields()Deprecated. -
parse
Deprecated.Description copied from interface:IRecordHandlerParse the line into an array of fields.- Specified by:
parsein interfaceIRecordHandler- Returns:
- List with String values for each inputfield
-
getRecordType
Deprecated.- Specified by:
getRecordTypein interfaceIRecordHandler
-
isNewRecordType
public boolean isNewRecordType(PipeLineSession session, boolean equalRecordHandlers, List<String> prevRecord, List<String> curRecord) Deprecated.- Specified by:
isNewRecordTypein interfaceIRecordHandler
-
getRecordIdentifyingFieldList
Deprecated. -
setRecordIdentifyingFields
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
Deprecated.- Specified by:
addParameterin interfaceIWithParameters
-
getParameterList
Deprecated.- Specified by:
getParameterListin interfaceIWithParameters
-
setName
Deprecated.Name of the recordhandler -
setInputFields
Deprecated.Comma separated specification of field lengths. if neither this attribute norinputSeparatoris specified then the entire record is parsed -
setInputSeparator
Deprecated.Separator that separates the fields in the input record. If neither this attribute norinputFieldsis specified then the entire record is parsed -
setTrim
public void setTrim(boolean b) Deprecated.If set totrue, trailing spaces are removed from each field- Default value
- false
-