CONTEXT - as Context type. See ContextAware, getInterMediateResults()public interface UsesIntermediateObject<CONTEXT> extends ContextAware<CONTEXT>, Serializable
Transformer, Predicate, Lookup or Chain that uses an IntermediateResultMapperBehaviors result(s).#setIntermediateResults(Map)| Modifier and Type | Method and Description |
|---|---|
CONTEXT |
getInterMediateResults() |
Collection<String> |
getResultNamesThatAreOptional()
By default matching using
getResultNamesUsed() is strict. |
Collection<String> |
getResultNamesUsed()
name(s) of the result variable used (optional & mandatory)
|
void |
setIntermediateResults(CONTEXT intermediateResults)
The value(s) to set for this Before the Operation is performed.
|
void |
setResultNamesThatAreOptional(Collection<String> resultsThatAreOptional)
By default matching using
getResultNamesUsed() is strict. |
Collection<String> getResultNamesUsed()
void setIntermediateResults(CONTEXT intermediateResults)
intermediateResults - - Map of keyName and ValueCollection<String> getResultNamesThatAreOptional()
getResultNamesUsed() is strict. i.e. if a result required is not obtained from the context it should/would result in a RuntimeException.
getResultNamesUsed() will mute and continue since the instance of AbstractEntityTransformer
is aware that it is optional.
TODO: Add Unit test case for this scenariovoid setResultNamesThatAreOptional(Collection<String> resultsThatAreOptional)
getResultNamesUsed() is strict. i.e. if a result required is not obtained from the context it should/would result in a RuntimeException.
getResultNamesUsed() will mute and continue since the instance of AbstractEntityTransformer
is aware that it is optional.CONTEXT getInterMediateResults()
Copyright © 2018. All rights reserved.