Class SimplePropertyWhereClauseCondition

java.lang.Object
de.hybris.platform.integrationservices.search.WhereClauseCondition
de.hybris.platform.integrationservices.search.SimplePropertyWhereClauseCondition

public class SimplePropertyWhereClauseCondition extends WhereClauseCondition
Represents a where clause condition (e.g. "{attributeName} = 'attributeValue'").
  • Constructor Details

    • SimplePropertyWhereClauseCondition

      public SimplePropertyWhereClauseCondition(String attributeName, String compareOperator, String attributeValue)
      Stores a single where clause condition.
      Parameters:
      attributeName - - attribute name
      compareOperator - - compare operator (e.g. "=")
      attributeValue - - attribute value
  • Method Details

    • eq

      @NotNull public static @NotNull WhereClauseCondition eq(String attribute, Object value)
      Creates "equals" condition for performing a search when the specified attribute is equal to the provided value.
      Parameters:
      attribute - attribute the search should be performed by.
      value - a value the attribute should be equal to.
      Returns:
      a where clause condition to be used for the search by the specified parameter
    • withCompareOperator

      @NotNull public static @NotNull WhereClauseCondition withCompareOperator(String attribute, Object value, String operator)
      Creates condition with given operators for performing a search when the specified attribute is compared to the provided value.
      Parameters:
      attribute - attribute the search should be performed by.
      value - a value the attribute should be compared to.
      operator - a operator indicating how the attribute is compared to the value.
      Returns:
      a where clause condition to be used for the search by the specified parameter