From 61452864970ee3bf72ffac78332ac2c09c732319 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Thu, 17 Feb 2022 19:30:25 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B4=D0=B2=D0=B0=20=D0=BD=D0=BE=D0=B2=D1=8B=D1=85=20=D0=BC?= =?UTF-8?q?=D0=B5=D1=82=D0=BE=D0=B4=D0=B0=20likeIgnoreCase=20=D0=B8=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D1=81=D1=82=D0=BE=20like?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../struchkov/haiti/filter/jooq/CriteriaJooqQuery.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/dev/struchkov/haiti/filter/jooq/CriteriaJooqQuery.java b/src/main/java/dev/struchkov/haiti/filter/jooq/CriteriaJooqQuery.java index 7a9d49a..2c34081 100644 --- a/src/main/java/dev/struchkov/haiti/filter/jooq/CriteriaJooqQuery.java +++ b/src/main/java/dev/struchkov/haiti/filter/jooq/CriteriaJooqQuery.java @@ -58,6 +58,16 @@ public class CriteriaJooqQuery { return this; } + public CriteriaJooqQuery like(String field, String value) { + like(field, value, false); + return this; + } + + public CriteriaJooqQuery likeIgnoreCase(String field, String value) { + like(field, value, true); + return this; + } + public CriteriaJooqQuery like(String field, String value, boolean ignoreCase) { Assert.isNotNull(field); final Field query = field(field);