Class WhereClauseCondition
- java.lang.Object
-
- de.hybris.platform.integrationservices.search.WhereClauseCondition
-
- Direct Known Subclasses:
NavigationPropertyWhereClauseCondition,NavigationPropertyWithIntegrationKeyWhereClauseCondition,NoResultWhereClauseCondition,SimplePropertyWhereClauseCondition
public class WhereClauseCondition extends java.lang.ObjectRepresents a where clause condition (e.g. "{code} = abc"). It doesn't include the keyword 'WHERE' in the condition. The WhereClauseCondition can also store the conjunctive operator (AND, OR, etc.) to the next WhereClauseCondition.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWhereClauseCondition(WhereClauseCondition whereCC, ConjunctiveOperator operator)Creates a duplicate of the @param whereCC with the @param operatorWhereClauseCondition(java.lang.String condition)Deprecated, for removal: This API element is subject to removal in a future version.since 1905.09-CEP Please use a constructor from one of the subclasses that extendWhereClauseConditionWhereClauseCondition(java.lang.String condition, ConjunctiveOperator conjunctiveOperator)Deprecated, for removal: This API element is subject to removal in a future version.since 1905.09-CEP Please use a constructor from one of the subclasses that extendWhereClauseConditionprotectedWhereClauseCondition(java.lang.String conditionTemplate, java.lang.String attributeName, java.lang.String compareOperator, java.lang.String attributeValue)Creates an instance of a where clause conditionprotectedWhereClauseCondition(java.lang.String conditionTemplate, java.lang.String attributeName, java.lang.String compareOperator, java.lang.String attributeValue, ConjunctiveOperator conjunctiveOperator)Creates an instance of a where clause condition with a conjunctive operator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetAttributeName()Extracts the attributeName from the condition.protected java.lang.StringgetCompareOperator()java.lang.StringgetCondition()ConjunctiveOperatorgetConjunctiveOperator()inthashCode()java.lang.StringtoString()WhereClauseConditionstoWhereClauseConditions()
-
-
-
Constructor Detail
-
WhereClauseCondition
@Deprecated(since="1905.09-CEP", forRemoval=true) public WhereClauseCondition(java.lang.String condition)Deprecated, for removal: This API element is subject to removal in a future version.since 1905.09-CEP Please use a constructor from one of the subclasses that extendWhereClauseConditionStores the where clause condition without the conjunctive operator (AND, OR, etc) to the next WhereClauseCondition
- Parameters:
condition- Where clause condition (e.g. "{code} = abc")
-
WhereClauseCondition
@Deprecated(since="1905.09-CEP", forRemoval=true) public WhereClauseCondition(java.lang.String condition, ConjunctiveOperator conjunctiveOperator)Deprecated, for removal: This API element is subject to removal in a future version.since 1905.09-CEP Please use a constructor from one of the subclasses that extendWhereClauseConditionStores the where clause condition with a conjunctive operator (e.g. AND, OR, etc) to the next WhereClauseCondition
- Parameters:
condition- Where clause conditionconjunctiveOperator- Where clause conjunctive operator
-
WhereClauseCondition
protected WhereClauseCondition(java.lang.String conditionTemplate, java.lang.String attributeName, java.lang.String compareOperator, java.lang.String attributeValue)Creates an instance of a where clause condition- Parameters:
conditionTemplate- - condition templateattributeName- - attribute namecompareOperator- - compare operator (e.g. "=" or "IN")attributeValue- - attribute value
-
WhereClauseCondition
protected WhereClauseCondition(java.lang.String conditionTemplate, java.lang.String attributeName, java.lang.String compareOperator, java.lang.String attributeValue, ConjunctiveOperator conjunctiveOperator)Creates an instance of a where clause condition with a conjunctive operator- Parameters:
conditionTemplate- - condition templateattributeName- - attribute namecompareOperator- - compare operator (e.g. "=" or "IN")attributeValue- - attribute valueconjunctiveOperator- - conjunctive operator
-
WhereClauseCondition
protected WhereClauseCondition(WhereClauseCondition whereCC, ConjunctiveOperator operator)
Creates a duplicate of the @param whereCC with the @param operator- Parameters:
whereCC- - where clause conditionoperator- - conjunctive operator
-
-
Method Detail
-
getCondition
public java.lang.String getCondition()
-
getAttributeName
public java.lang.String getAttributeName()
Extracts the attributeName from the condition. Example filter condition: "{supercategories} = 8796093055118" -> returns "supercategories"- Returns:
- attributeName or "" if no attributeName is not found
-
getConjunctiveOperator
public ConjunctiveOperator getConjunctiveOperator()
-
toWhereClauseConditions
public WhereClauseConditions toWhereClauseConditions()
-
getCompareOperator
protected java.lang.String getCompareOperator()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-