Class SimplePropertyWhereClauseCondition
java.lang.Object
de.hybris.platform.integrationservices.search.WhereClauseCondition
de.hybris.platform.integrationservices.search.SimplePropertyWhereClauseCondition
Represents a where clause condition (e.g. "{attributeName} = 'attributeValue'").
-
Constructor Summary
ConstructorsConstructorDescriptionSimplePropertyWhereClauseCondition(String attributeName, String compareOperator, String attributeValue) Stores a single where clause condition. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull WhereClauseConditionCreates "equals" condition for performing a search when the specified attribute is equal to the provided value.static @NotNull WhereClauseConditionwithCompareOperator(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.Methods inherited from class de.hybris.platform.integrationservices.search.WhereClauseCondition
equals, getAttributeName, getCompareOperator, getCondition, getConjunctiveOperator, hashCode, toString, toWhereClauseConditions
-
Constructor Details
-
SimplePropertyWhereClauseCondition
public SimplePropertyWhereClauseCondition(String attributeName, String compareOperator, String attributeValue) Stores a single where clause condition.- Parameters:
attributeName- - attribute namecompareOperator- - compare operator (e.g. "=")attributeValue- - attribute value
-
-
Method Details
-
eq
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
-