Class NavigationPropertyVisitingStrategy

java.lang.Object
de.hybris.platform.odata2services.filter.impl.AbstractNavigationPropertyVisitingStrategy
de.hybris.platform.odata2services.filter.impl.NavigationPropertyVisitingStrategy
All Implemented Interfaces:
BinaryExpressionVisitingStrategy

public class NavigationPropertyVisitingStrategy extends AbstractNavigationPropertyVisitingStrategy
This strategy creates a WhereClauseCondition from a navigation property's sub-property that is not an integrationKey. For example, if filtering by catalogVersion/version eq 'Staged', this strategy looks up all CatalogVersions with version = 'Staged' and creates a where clause condition containing the PKs of all the matching CatalogVersions.
  • Constructor Details

    • NavigationPropertyVisitingStrategy

      public NavigationPropertyVisitingStrategy()
  • Method Details

    • isApplicable

      public boolean isApplicable(org.apache.olingo.odata2.api.uri.expression.BinaryExpression expression, org.apache.olingo.odata2.api.uri.expression.BinaryOperator operator, Object leftResult, Object rightResult)
    • createWhereClauseConditionWithOperator

      protected WhereClauseConditions createWhereClauseConditionWithOperator(org.apache.olingo.odata2.api.uri.expression.BinaryExpression expression, org.apache.olingo.odata2.api.uri.expression.BinaryOperator operator, Object leftResult, Object rightResult)
      Specified by:
      createWhereClauseConditionWithOperator in class AbstractNavigationPropertyVisitingStrategy