Class WhereClauseCondition

    • 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 extend WhereClauseCondition

        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

        @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 extend WhereClauseCondition

        Stores the where clause condition with a conjunctive operator (e.g. AND, OR, etc) to the next WhereClauseCondition

        Parameters:
        condition - Where clause condition
        conjunctiveOperator - 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 template
        attributeName - - attribute name
        compareOperator - - 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 template
        attributeName - - attribute name
        compareOperator - - compare operator (e.g. "=" or "IN")
        attributeValue - - attribute value
        conjunctiveOperator - - conjunctive operator
      • WhereClauseCondition

        protected WhereClauseCondition​(WhereClauseCondition whereCC,
                                       ConjunctiveOperator operator)
        Creates a duplicate of the @param whereCC with the @param operator
        Parameters:
        whereCC - - where clause condition
        operator - - 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
      • getCompareOperator

        protected java.lang.String getCompareOperator()
      • 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