Class WhereClauseCondition


  • public class WhereClauseCondition
    extends java.lang.Object
    Represents 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 Detail

      • WhereClauseCondition

        public WhereClauseCondition​(java.lang.String condition)
        Stores 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

        public WhereClauseCondition​(java.lang.String condition,
                                    ConjunctiveOperator operator)
        Stores the where clause condition with the conjunctive operator (AND, OR, etc) to the next WhereClauseCondition
        Parameters:
        condition - Where clause condition
    • Method Detail

      • getCondition

        public java.lang.String getCondition()
      • getConjunctiveOperatorString

        public java.lang.String getConjunctiveOperatorString()
      • 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