public class LookupTransformer extends Transformer
Constructor and Description |
---|
LookupTransformer(FieldList fields,
Lookup lookup) |
LookupTransformer(FieldList fields,
Lookup lookup,
boolean overwriteFields)
Deprecated.
|
LookupTransformer(FieldList fields,
Lookup lookup,
Node.DuplicateNodeAction duplicateFieldAction) |
Modifier and Type | Method and Description |
---|---|
protected void |
close()
Called by
TransformingReader or TransformingWriter when their close() method is called (after reading or writing ends). |
Node.DuplicateNodeAction |
getDuplicateFieldAction() |
FieldList |
getFields() |
Lookup |
getLookup() |
boolean |
isAllowNoResults()
Indicates if no exception should be thrown if no results are found (default false, exceptions are thrown).
|
boolean |
isOverwriteFields() |
protected void |
join(Record originalRecord,
RecordList lookupResult,
List<?> lookupArguments) |
protected RecordList |
noResults(Record originalRecord,
List<?> arguments) |
protected void |
open()
Called by
TransformingReader or TransformingWriter when their open() method is called (before reading or writing starts). |
LookupTransformer |
setAllowNoResults(boolean allowNoResults)
Indicates if no exception should be thrown if no results are found (default false, exceptions are thrown).
|
LookupTransformer |
setDuplicateFieldAction(Node.DuplicateNodeAction duplicateFieldAction) |
protected RecordList |
tooManyResults(Record originalRecord,
List<?> arguments,
RecordList lookupResult) |
String |
toString() |
boolean |
transform(Record record) |
addExceptionProperties, geEndpoint, getEndpoint, getReader, getWriter, setWriter
public LookupTransformer(FieldList fields, Lookup lookup, Node.DuplicateNodeAction duplicateFieldAction)
@Deprecated public LookupTransformer(FieldList fields, Lookup lookup, boolean overwriteFields)
public FieldList getFields()
public Lookup getLookup()
public Node.DuplicateNodeAction getDuplicateFieldAction()
public LookupTransformer setDuplicateFieldAction(Node.DuplicateNodeAction duplicateFieldAction)
public boolean isOverwriteFields()
public boolean isAllowNoResults()
public LookupTransformer setAllowNoResults(boolean allowNoResults)
protected void open()
Transformer
TransformingReader
or TransformingWriter
when their open()
method is called (before reading or writing starts).open
in class Transformer
protected void close()
Transformer
TransformingReader
or TransformingWriter
when their close()
method is called (after reading or writing ends).close
in class Transformer
public boolean transform(Record record) throws Throwable
transform
in class Transformer
Throwable
protected void join(Record originalRecord, RecordList lookupResult, List<?> lookupArguments)
protected RecordList noResults(Record originalRecord, List<?> arguments)
protected RecordList tooManyResults(Record originalRecord, List<?> arguments, RecordList lookupResult)
Copyright (c) 2006-2023 North Concepts Inc. All Rights Reserved.