Class SimplePropertyWhereClauseCondition


  • public class SimplePropertyWhereClauseCondition
    extends WhereClauseCondition
    Represents a where clause condition (e.g. "{attributeName} = 'attributeValue'").
    • Constructor Detail

      • SimplePropertyWhereClauseCondition

        public SimplePropertyWhereClauseCondition​(java.lang.String attributeName,
                                                  java.lang.String compareOperator,
                                                  java.lang.String attributeValue)
        Stores a single where clause condition.
        Parameters:
        attributeName - - attribute name
        compareOperator - - compare operator (e.g. "=")
        attributeValue - - attribute value
    • Method Detail

      • eq

        @NotNull
        public static @NotNull WhereClauseCondition eq​(java.lang.String attribute,
                                                       java.lang.Object value)
        Creates "equals" condition for performing a search when the specified attribute is equal to the provided value.
        Parameters:
        attribute - attribute the search should be performed by.
        value - a value the attribute should be equal to.
        Returns:
        a where clause condition to be used for the search by the specified parameter
      • withCompareOperator

        @NotNull
        public static @NotNull WhereClauseCondition withCompareOperator​(java.lang.String attribute,
                                                                        java.lang.Object value,
                                                                        java.lang.String operator)
        Creates condition with given operators for performing a search when the specified attribute is compared to the provided value.
        Parameters:
        attribute - attribute the search should be performed by.
        value - a value the attribute should be compared to.
        operator - a operator indicating how the attribute is compared to the value.
        Returns:
        a where clause condition to be used for the search by the specified parameter