From e8c93a0676eb75a54e36394d65680d4a7033b668 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Tue, 24 May 2022 02:23:30 +0200 Subject: [PATCH] Added SQLWhereChain#isEmpty() --- Core/src/main/java/fr/pandacube/lib/core/db/SQLWhere.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/src/main/java/fr/pandacube/lib/core/db/SQLWhere.java b/Core/src/main/java/fr/pandacube/lib/core/db/SQLWhere.java index 5502776..c428999 100644 --- a/Core/src/main/java/fr/pandacube/lib/core/db/SQLWhere.java +++ b/Core/src/main/java/fr/pandacube/lib/core/db/SQLWhere.java @@ -63,6 +63,10 @@ public abstract class SQLWhere> { conditions.add(sqlWhere); } + public boolean isEmpty() { + return conditions.isEmpty(); + } + @Override public ParameterizedSQLString toSQL() throws DBException { if (conditions.isEmpty()) {