/** * Adds a WHERE clause to this statement. Calling this method multiple times will combine all the {@link Criterion * criterions} with AND. * * @param criterion A criterion to use in the where clause * @return this Delete object, to allow chaining method calls */ public Delete where(Criterion criterion) { if (criterion != null) { this.criterions.add(criterion); invalidateCompileCache(); } return this; }
/** * Adds a WHERE clause to this statement. Calling this method multiple times will combine all the {@link Criterion * criterions} with AND. * * @param criterion A criterion to use in the where clause * @return this Delete object, to allow chaining method calls */ public Delete where(Criterion criterion) { if (criterion != null) { this.criterions.add(criterion); invalidateCompileCache(); } return this; }