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 class
Deprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.logging.log4j.Logger
Deprecated.protected ParameterList
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(InputfieldsPart part) Deprecated.void
addInputField
(int length) Deprecated.void
Deprecated.void
Deprecated.void
close()
Deprecated.void
Deprecated.Configure this component.protected int
Deprecated.Deprecated.Deprecated.getRecordType
(List<String> record) Deprecated.boolean
isNewRecordType
(PipeLineSession session, boolean equalRecordHandlers, List<String> prevRecord, List<String> curRecord) Deprecated.void
open()
Deprecated.parse
(PipeLineSession session, String record) Deprecated.Parse the line into an array of fields.void
setFieldsDifferConditionForPrefix
(String fieldNrs) Deprecated.void
setInputFields
(String fieldLengths) Deprecated.Comma separated specification of field lengths. if neither this attribute norinputSeparator
is specified then the entire record is parsedvoid
setInputSeparator
(String string) Deprecated.Separator that separates the fields in the input record.void
Deprecated.Name of the recordhandlervoid
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 differentvoid
setTrim
(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, wait
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
Methods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoader
Methods inherited from interface org.frankframework.batch.IRecordHandler
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:IConfigurable
Configure 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:
configure
in interfaceIConfigurable
- Throws:
ConfigurationException
- in case it was not able to configure the component.
-
open
Deprecated.- Specified by:
open
in interfaceIRecordHandler
- Throws:
SenderException
-
close
Deprecated.- Specified by:
close
in 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:IRecordHandler
Parse the line into an array of fields.- Specified by:
parse
in interfaceIRecordHandler
- Returns:
- List with String values for each inputfield
-
getRecordType
Deprecated.- Specified by:
getRecordType
in interfaceIRecordHandler
-
isNewRecordType
public boolean isNewRecordType(PipeLineSession session, boolean equalRecordHandlers, List<String> prevRecord, List<String> curRecord) Deprecated.- Specified by:
isNewRecordType
in 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:
addParameter
in interfaceIWithParameters
-
getParameterList
Deprecated.- Specified by:
getParameterList
in interfaceIWithParameters
-
setName
Deprecated.Name of the recordhandler -
setInputFields
Deprecated.Comma separated specification of field lengths. if neither this attribute norinputSeparator
is specified then the entire record is parsed -
setInputSeparator
Deprecated.Separator that separates the fields in the input record. If neither this attribute norinputFields
is 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
-