Interface ExposesLogicalOperators<T>

Type Parameters:
T - the type being returned after the new condition has been chained
All Known Subinterfaces:
PatternComprehension.OngoingDefinitionWithPatternAndWhere, StatementBuilder.OngoingReadingWithWhere, StatementBuilder.OrderableOngoingReadingAndWithWithWhere

public interface ExposesLogicalOperators<T>
A step exposing logical operators and and or after a where clause.
Since:
1.1
Author:
Michael J. Simons
  • Method Summary

    Modifier and Type
    Method
    Description
    and(Condition condition)
    Adds a condition to the existing conditions, connected by an AND.
    default T
    and(RelationshipPattern pathPattern)
    Adds a condition based on a path pattern to the existing conditions, connected by an AND.
    or(Condition condition)
    Adds a condition to the existing conditions, connected by an OR.
    default T
    or(RelationshipPattern pathPattern)
    Adds a condition based on a path pattern to the existing conditions, connected by an OR.
  • Method Details

    • and

      @CheckReturnValue T and(Condition condition)
      Adds a condition to the existing conditions, connected by an AND. Existing conditions will be logically grouped by using () in the statement if previous conditions used another logical operator.
      Parameters:
      condition - an additional condition
      Returns:
      the ongoing definition of a match
    • and

      @CheckReturnValue default T and(RelationshipPattern pathPattern)
      Adds a condition based on a path pattern to the existing conditions, connected by an AND. Existing conditions will be logically grouped by using () in the statement if previous conditions used another logical operator.
      Parameters:
      pathPattern - an additional pattern to include in the conditions
      Returns:
      the ongoing definition of a match
    • or

      @CheckReturnValue T or(Condition condition)
      Adds a condition to the existing conditions, connected by an OR. Existing conditions will be logically grouped by using () in the statement if previous conditions used another logical operator.
      Parameters:
      condition - an additional condition
      Returns:
      the ongoing definition of a match
    • or

      @CheckReturnValue default T or(RelationshipPattern pathPattern)
      Adds a condition based on a path pattern to the existing conditions, connected by an OR. Existing conditions will be logically grouped by using () in the statement if previous conditions used another logical operator.
      Parameters:
      pathPattern - an additional pattern to include in the conditions
      Returns:
      the ongoing definition of a match