Interface CpoWhereGroup

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CpoWhereGroup
Builds the contents of a nested where-clause group passed to CpoWhereBuilder.and(CpoWhereGroup) or CpoWhereBuilder.or(CpoWhereGroup).

A plain Consumer can't be used here since CpoWhereBuilder's chain methods declare throws CpoException.

Author:
david berry
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Populates the nested group's conditions using the given builder.
  • Method Details

    • build

      void build(CpoWhereBuilder group) throws CpoException
      Populates the nested group's conditions using the given builder.
      Parameters:
      group - the builder for the nested group's conditions
      Throws:
      CpoException - if a condition cannot be added