Skip to Content
Jun 02, 2021 at 02:25 AM

RE: CAP Java Documentation -- Copy & Modify CDS QL Statements -- Remove Where clause entirely

86 Views Last edit Jun 02, 2021 at 04:32 AM 2 rev

In the documentation for Copy & Modify CDS QL Statements, we are shown how to modify a where clause as follows:

CqnSelect copy = CQL.copy(query, new Modifier() {
   public Predicate where(Predicate where) {
      return where.or(CQL.get("title").eq("CAP Java SDK"));

However, this only allows me to append segments to the where clause.

What if I wanted to remove the where-clause entirely?

Or, what if I wanted to filter out specific segments of the where clause?