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 Summary
Constructors Constructor Description SimplePropertyWhereClauseCondition(java.lang.String attributeName, java.lang.String compareOperator, java.lang.String attributeValue)Stores a single where clause condition.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull WhereClauseConditioneq(java.lang.String attribute, java.lang.Object value)Creates "equals" condition for performing a search when the specified attribute is equal to the provided value.static @NotNull WhereClauseConditionwithCompareOperator(java.lang.String attribute, java.lang.Object value, java.lang.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 Detail
-
SimplePropertyWhereClauseCondition
public SimplePropertyWhereClauseCondition(java.lang.String attributeName, java.lang.String compareOperator, java.lang.String attributeValue)Stores a single where clause condition.- Parameters:
attributeName- - attribute namecompareOperator- - compare operator (e.g. "=")attributeValue- - attribute value
-
-
Method Detail
-
eq
@NotNull public static @NotNull WhereClauseCondition eq(java.lang.String attribute, java.lang.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(java.lang.String attribute, java.lang.Object value, java.lang.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
-
-