Class WhereClauseConditions


  • public class WhereClauseConditions
    extends java.lang.Object
    Stores a list of WhereClauseConditions in the same order as the original list
    • Constructor Detail

      • 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​(java.util.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 Detail

      • 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​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object