T - public abstract class ExistingEntityLookup<T> extends ExistingEntityMergeTransformer<T> implements Lookup, ModeAware
| Modifier and Type | Field and Description |
|---|---|
protected Mode |
mode |
protected boolean |
postponseLookup
If true, will throw a
RequireLookAheadException instead of a null when an Entity is not found. |
customMergeActions, fieldNamesToMerge, ignoreNullsForPrimitiveTypes, immutableFieldNames, mergeFieldMode, typesRequireDeepCopy| Constructor and Description |
|---|
ExistingEntityLookup() |
ExistingEntityLookup(ExistingEntityMergeTransformer t) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
getEntity(T in)
Core method to identify and fetch the record that matches the record
It will return null if not an existing record or an Exception in case there is any problem in trying to figure it out |
Mode |
getMode()
The processing logic of the Reader may differ based n the fact it is intended to Update or Insert or Delete
|
List<Mode> |
getModesSupported()
Get the
Modes supported by the instance |
boolean |
isPostponseLookup()
If true, will throw a
RequireLookAheadException instead of a null when an Entity is not found. |
void |
setMode(Mode mode) |
void |
setPostponseLookup(boolean postponseLookup)
If true, will throw a
RequireLookAheadException instead of a null when an Entity is not found. |
Object |
transform(Object in)
For a Given String, Lookup a value for it
|
copy, copySpecificTypes, getClosestParent, getCustomMergeAction, getCustomMergeActions, getFieldNamesToMerge, getIdentityFieldNames, getIdFieldsForClass, getImmutableFieldNames, getImmutableFieldsForClass, getTypesRequireDeepCopy, isIgnoreNullsForPrimitiveTypes, isMergeFieldMode, isMutable, isMutablePrimitive, isValidOrPrimitiveFieldType, mergeFields, requiredDeepCopy, setCustomMergeActions, setFieldNamesToMerge, setIdentityFieldNames, setIgnoreNullsForPrimitiveTypes, setImmutableFieldNames, setMergeFieldMode, setTypesRequireDeepCopy, treatNewEntityprotected boolean postponseLookup
RequireLookAheadException instead of a null when an Entity is not found.protected Mode mode
public ExistingEntityLookup()
public ExistingEntityLookup(ExistingEntityMergeTransformer t)
protected abstract T getEntity(T in) throws Exception
in - Exceptionpublic Object transform(Object in)
Lookuptransform in interface Lookuptransform in interface org.apache.commons.collections.Transformertransform in class ExistingEntityMergeTransformer<T>public boolean isPostponseLookup()
RequireLookAheadException instead of a null when an Entity is not found.public void setPostponseLookup(boolean postponseLookup)
RequireLookAheadException instead of a null when an Entity is not found.public Mode getMode()
ModeAwareCopyright © 2018. All rights reserved.