Package com.sap.cds.jdbc.generic
Class AbstractSearchResolver
java.lang.Object
com.sap.cds.jdbc.generic.AbstractSearchResolver
- All Implemented Interfaces:
SearchResolver
- Direct Known Subclasses:
GenericSearchResolver,HanaSearchResolver
Holding common methods used by other search resolvers
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSearchResolver(DataStoreConfiguration config, CdsModel cdsModel, Locale locale) -
Method Summary
Modifier and TypeMethodDescriptionaddRefsViaLocalizedAssociation(CdsStructuredType targetType, Collection<CqnElementRef> searchableRefs) protected booleanallLocalizedElementsAreReachableViaLocalizedAssociation(CdsStructuredType targetType, Collection<CqnElementRef> searchableRefs, Collection<CqnElementRef> badRefs) protected static booleanprotected Stringprotected abstract Stringprotected booleanhasAliasedLocalizedElementsInView(CdsStructuredType targetType, Collection<CqnElementRef> searchableRefs, Collection<CqnElementRef> badRefs) protected static booleanisReachableViaLocalizedAssoc(CdsElement element) protected booleanisSearchable(CqnSelectListItem sli, Collection<CqnElementRef> searchableRefs) protected CqnElementRefprotected static booleannavigatesToManyAssoc(CdsStructuredType root, CqnElementRef ref) protected static CqnPredicatepushDownToExistsSubquery(CdsStructuredType targetType, CqnPredicate filter, boolean ignoreLocalizedViews) protected abstract voidresolve(CqnSelect select, CqnPredicate search, CdsStructuredType targetType, Collection<CqnElementRef> searchableRefs) protected voidresolveUsingLocalizedAssociationWithLike(CqnSelect select, CqnPredicate expression, CdsStructuredType targetType, Collection<CqnElementRef> searchableRefs) protected voidresolveUsingLocalizedViewWithLike(CqnSelect select, CqnPredicate expression, CdsStructuredType targetType, Collection<CqnElementRef> searchableRefs) protected StringsearchMode(CdsStructuredType targetType) protected static CqnPredicatewrapIntoExistsSubquery(CdsEntity target, CqnPredicate search, boolean ignoreLocalizedViews) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sap.cds.jdbc.spi.SearchResolver
pushDownSearchToSubquery
-
Field Details
-
config
-
model
-
locale
-
-
Constructor Details
-
AbstractSearchResolver
-
-
Method Details
-
defaultSearchMode
-
configuredSearchMode
-
searchMode
-
resolve
- Specified by:
resolvein interfaceSearchResolver
-
resolve
protected abstract void resolve(CqnSelect select, CqnPredicate search, CdsStructuredType targetType, Collection<CqnElementRef> searchableRefs) -
wrapIntoExistsSubquery
protected static CqnPredicate wrapIntoExistsSubquery(CdsEntity target, CqnPredicate search, boolean ignoreLocalizedViews) -
anyRefViaCollectionAssociation
protected static boolean anyRefViaCollectionAssociation(CdsStructuredType root, Collection<CqnElementRef> refs) -
pushDownToExistsSubquery
protected static CqnPredicate pushDownToExistsSubquery(CdsStructuredType targetType, CqnPredicate filter, boolean ignoreLocalizedViews) -
allLocalizedElementsAreReachableViaLocalizedAssociation
protected boolean allLocalizedElementsAreReachableViaLocalizedAssociation(CdsStructuredType targetType, Collection<CqnElementRef> searchableRefs, Collection<CqnElementRef> badRefs) -
isReachableViaLocalizedAssoc
-
addRefsViaLocalizedAssociation
public List<CqnElementRef> addRefsViaLocalizedAssociation(CdsStructuredType targetType, Collection<CqnElementRef> searchableRefs) -
localizedRef
-
hasAliasedLocalizedElementsInView
protected boolean hasAliasedLocalizedElementsInView(CdsStructuredType targetType, Collection<CqnElementRef> searchableRefs, Collection<CqnElementRef> badRefs) -
isSearchable
-
resolveUsingLocalizedViewWithLike
protected void resolveUsingLocalizedViewWithLike(CqnSelect select, CqnPredicate expression, CdsStructuredType targetType, Collection<CqnElementRef> searchableRefs) -
resolveUsingLocalizedAssociationWithLike
protected void resolveUsingLocalizedAssociationWithLike(CqnSelect select, CqnPredicate expression, CdsStructuredType targetType, Collection<CqnElementRef> searchableRefs)
-