Class WhereClauseConditions

java.lang.Object
de.hybris.platform.integrationservices.search.WhereClauseConditions

public class WhereClauseConditions extends Object
Stores a list of WhereClauseConditions in the same order as the original list
  • Constructor Details

    • WhereClauseConditions

      public WhereClauseConditions(WhereClauseCondition... conditions)
      Creates a WhereClauseConditions with an array of WhereClauseConditions. Null WhereClauseConditions are not included . If conditions is null, an empty WhereClauseConditions is created.
      Parameters:
      conditions - Conditions to add to the WhereClauseConditions
    • WhereClauseConditions

      public WhereClauseConditions(List<WhereClauseCondition> conditions)
      Creates a WhereClauseConditions with a collection of WhereClauseConditions. Null WhereClauseConditions are not included. If conditions is null, an empty WhereClauseConditions is created.
      Parameters:
      conditions - Conditions to add to the WhereClauseConditions
  • Method Details

    • getConditions

      public List<WhereClauseCondition> getConditions()
      Gets a copy of the list of WhereClauseCondition
      Returns:
      List of conditions
    • join

      public WhereClauseConditions join(WhereClauseConditions otherWhereClauseConditions, ConjunctiveOperator operator)
      Joins the WhereClauseConditions 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 with
      operator - The operator that connects the two WhereClauseConditions
      Returns:
      The two WhereClauseConditions joined. If the otherWhereClauseConditions is null or operator is null/empty, this WhereClauseConditions is returned.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object