Class SimplePropertyVisitingStrategy

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

public class SimplePropertyVisitingStrategy extends Object implements BinaryExpressionVisitingStrategy
This strategy creates a WhereClauseCondition from the property name and it's value. For example if filtering by code eq 'MyProduct', this strategy creates a where clause condition with code = 'MyProduct'.
  • Constructor Details

    • SimplePropertyVisitingStrategy

      public SimplePropertyVisitingStrategy()
  • 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)
      Specified by:
      isApplicable in interface BinaryExpressionVisitingStrategy
    • visit

      public WhereClauseConditions visit(org.apache.olingo.odata2.api.uri.expression.BinaryExpression expression, org.apache.olingo.odata2.api.uri.expression.BinaryOperator operator, Object leftResult, Object rightResult)
      Specified by:
      visit in interface BinaryExpressionVisitingStrategy
    • getOperatorConverter

      protected org.springframework.core.convert.converter.Converter<org.apache.olingo.odata2.api.uri.expression.BinaryOperator,String> getOperatorConverter()
    • setOperatorConverter

      public void setOperatorConverter(org.springframework.core.convert.converter.Converter<org.apache.olingo.odata2.api.uri.expression.BinaryOperator,String> operatorConverter)