Class DefaultExistingItemResolver
java.lang.Object
de.hybris.platform.impex.jalo.imp.DefaultExistingItemResolver
- All Implemented Interfaces:
ExistingItemResolver
- Direct Known Subclasses:
CachingExistingItemResolver,TestExistingItemResolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected static final booleanDeprecated.since ages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateLookupTableEntry(ValueLine valueLine, AbstractColumnDescriptor acd) protected voidcreateLookupTableEntryIfNeeded(ValueLine valueLine) protected QueryParameterscreateQueryParameters(ValueLineTranslator valueLineTranslator, ValueLine line) filterResultByNonSearchableColumns(List<Item> result, QueryParameters queryParameters) findExisting(ValueLineTranslator valueLineTranslator, ValueLine line) protected FlexibleSearchvoidnotifyItemCreatedOrRemoved(ValueLineTranslator valueLineTranslator, ValueLine line) protected Collection<Item>resolveByPK(ValueLine line) protected Collection<Item>resolveByQuery(ValueLine line, QueryParameters queryParameters) searchItems(String typeCode, QueryParameters queryParameters, StringBuilder stringBuilder, Map<String, Object> searchValues, boolean exactType, boolean caseInsensitive) protected booleanprotected Map<StandardColumnDescriptor,Object> translateUniqueKeys(ValueLineTranslator valueLineTranslator, ValueLine line, Set<StandardColumnDescriptor> uniqueColumns)
-
Field Details
-
MYSQL_CASE_SENSITIVE_WORKAROUND
@Deprecated(since="ages", forRemoval=false) protected static final boolean MYSQL_CASE_SENSITIVE_WORKAROUNDDeprecated.since ages- See Also:
-
isMySQl
protected final boolean isMySQl
-
-
Constructor Details
-
DefaultExistingItemResolver
public DefaultExistingItemResolver()
-
-
Method Details
-
notifyItemCreatedOrRemoved
- Specified by:
notifyItemCreatedOrRemovedin interfaceExistingItemResolver
-
createLookupTableEntryIfNeeded
-
shouldCreateLookupTableEntry
-
createLookupTableEntry
-
getFlexibleSearch
-
findExisting
public Collection<Item> findExisting(ValueLineTranslator valueLineTranslator, ValueLine line) throws InsufficientDataException, UnresolvedValueException, AmbiguousItemException - Specified by:
findExistingin interfaceExistingItemResolver- Throws:
InsufficientDataExceptionUnresolvedValueExceptionAmbiguousItemException
-
resolveByPK
-
createQueryParameters
protected QueryParameters createQueryParameters(ValueLineTranslator valueLineTranslator, ValueLine line) throws InsufficientDataException, UnresolvedValueException -
resolveByQuery
protected Collection<Item> resolveByQuery(ValueLine line, QueryParameters queryParameters) throws InsufficientDataException, UnresolvedValueException, AmbiguousItemException -
filterResultByNonSearchableColumns
protected List<Item> filterResultByNonSearchableColumns(List<Item> result, QueryParameters queryParameters) -
searchItems
protected List<Item> searchItems(String typeCode, QueryParameters queryParameters, StringBuilder stringBuilder, Map<String, Object> searchValues, boolean exactType, boolean caseInsensitive) throws InsufficientDataException, UnresolvedValueException -
translateUniqueKeys
protected Map<StandardColumnDescriptor,Object> translateUniqueKeys(ValueLineTranslator valueLineTranslator, ValueLine line, Set<StandardColumnDescriptor> uniqueColumns) throws UnresolvedValueException, InsufficientDataException
-