Class WhereClauseConditions
- java.lang.Object
-
- de.hybris.platform.integrationservices.search.WhereClauseConditions
-
public class WhereClauseConditions extends java.lang.ObjectStores a list ofWhereClauseConditions in the same order as the original list
-
-
Constructor Summary
Constructors Constructor Description WhereClauseConditions(WhereClauseCondition... conditions)Creates a WhereClauseConditions with an array ofWhereClauseConditions.WhereClauseConditions(java.util.List<WhereClauseCondition> conditions)Creates a WhereClauseConditions with a collection ofWhereClauseConditions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.List<WhereClauseCondition>getConditions()Gets a copy of the list ofWhereClauseConditioninthashCode()WhereClauseConditionsjoin(WhereClauseConditions otherWhereClauseConditions, ConjunctiveOperator operator)Joins theWhereClauseConditions from this WhereClauseConditions with those of the other WhereClauseConditions.java.lang.StringtoString()
-
-
-
Constructor Detail
-
WhereClauseConditions
public WhereClauseConditions(WhereClauseCondition... conditions)
Creates a WhereClauseConditions with an array ofWhereClauseConditions. NullWhereClauseConditions are not included . Ifconditionsis null, an empty WhereClauseConditions is created.- Parameters:
conditions- Conditions to add to the WhereClauseConditions
-
WhereClauseConditions
public WhereClauseConditions(java.util.List<WhereClauseCondition> conditions)
Creates a WhereClauseConditions with a collection ofWhereClauseConditions. NullWhereClauseConditions are not included. Ifconditionsis null, an empty WhereClauseConditions is created.- Parameters:
conditions- Conditions to add to the WhereClauseConditions
-
-
Method Detail
-
getConditions
public java.util.List<WhereClauseCondition> getConditions()
Gets a copy of the list ofWhereClauseCondition- Returns:
- List of conditions
-
join
public WhereClauseConditions join(WhereClauseConditions otherWhereClauseConditions, ConjunctiveOperator operator)
Joins theWhereClauseConditions from this WhereClauseConditions with those of the other WhereClauseConditions. The conjunctive operator connects the last WhereClauseCondition from this WhereClauseConditions with the first WhereClauseCondition from the other WhereClauseConditions. This operation does not change the original WhereClauseCondition list of this WhereClauseConditions.- Parameters:
otherWhereClauseConditions- The other WhereClauseConditions to join withoperator- The operator that connects the two WhereClauseConditions- Returns:
- The two WhereClauseConditions joined. If the
otherWhereClauseConditionsis null oroperatoris null/empty, this WhereClauseConditions is returned.
-
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
-
-