T
- as ConsumerToken
typepublic class DefaultExistingEntityLookup<E> extends ExistingEntityLookup<E>
ExistingEntityLookup
for any Entity that can be found using a #finmode, postponseLookup
customMergeActions, fieldNamesToMerge, ignoreNullsForPrimitiveTypes, immutableFieldNames, mergeFieldMode, typesRequireDeepCopy
Constructor and Description |
---|
DefaultExistingEntityLookup() |
DefaultExistingEntityLookup(DefaultExistingEntityLookup t) |
DefaultExistingEntityLookup(org.apache.commons.collections.Transformer findTransformer) |
Modifier and Type | Method and Description |
---|---|
protected E |
getEntity(E entity)
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 |
org.apache.commons.collections.Transformer |
getFindTransformer()
For an input proxy entity object , return the actual entity in DB
|
void |
setFindTransformer(org.apache.commons.collections.Transformer findTransformer)
For an input proxy entity object , return the actual entity in DB
|
getMode, getModesSupported, isPostponseLookup, setMode, setPostponseLookup, transform
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, treatNewEntity
public DefaultExistingEntityLookup()
public DefaultExistingEntityLookup(DefaultExistingEntityLookup t)
public DefaultExistingEntityLookup(org.apache.commons.collections.Transformer findTransformer)
protected E getEntity(E entity) throws Exception
ExistingEntityLookup
getEntity
in class ExistingEntityLookup<E>
Exception
public org.apache.commons.collections.Transformer getFindTransformer()
public void setFindTransformer(org.apache.commons.collections.Transformer findTransformer)
Copyright © 2018. All rights reserved.