Interface Condition

    • Method Detail

      • entityType

        EntityType entityType()
        Returns:
        the entity type
      • values

        List<?> values()
        Returns:
        a list of the values this condition is based on, in the order they appear in the condition clause. An empty list is returned in case no values are specified.
      • attributes

        List<Attribute<?>> attributes()
        Returns:
        a list of the attributes this condition is based on, in the same order as their respective values appear in the condition clause. An empty list is returned in case no values are specified.
      • and

        Condition.Combination and​(Condition... conditions)
        Returns a new Combination instance, combining this condition with the given one, AND'ing together.
        Parameters:
        conditions - the conditions to combine with this one
        Returns:
        a new condition combination
      • or

        Condition.Combination or​(Condition... conditions)
        Returns a new Combination instance, combining this condition with the given one, OR'ing together.
        Parameters:
        conditions - the conditions to combine with this one
        Returns:
        a new condition combination
      • toString

        String toString​(EntityDefinition definition)
        Returns a string representing this condition, e.g. "column = ?" or "col1 is not null and col2 in (?, ?)".
        Parameters:
        definition - the entity definition
        Returns:
        a condition string