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 an additional condition to the existing conditions, connected by an and.
    default T
    and(RelationshipPattern pathPattern)
    Adds an additional condition based on a path pattern to the existing conditions, connected by an and.
    or(Condition condition)
    Adds an additional condition to the existing conditions, connected by an or.
    default T
    or(RelationshipPattern pathPattern)
    Adds an additional condition based on a path pattern to the existing conditions, connected by an or.
  • Method Details

    • and

      @NotNull @CheckReturnValue T and(Condition condition)
      Adds an additional 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

      @NotNull @CheckReturnValue default T and(RelationshipPattern pathPattern)
      Adds an additional 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

      @NotNull @CheckReturnValue T or(Condition condition)
      Adds an additional 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

      @NotNull @CheckReturnValue default T or(RelationshipPattern pathPattern)
      Adds an additional 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