Added SQLWhereChain#isEmpty()

This commit is contained in:
Marc Baloup 2022-05-24 02:23:30 +02:00
parent fab009477d
commit e8c93a0676
Signed by: marcbal
GPG Key ID: BBC0FE3ABC30B893

View File

@ -63,6 +63,10 @@ public abstract class SQLWhere<E extends SQLElement<E>> {
conditions.add(sqlWhere); conditions.add(sqlWhere);
} }
public boolean isEmpty() {
return conditions.isEmpty();
}
@Override @Override
public ParameterizedSQLString toSQL() throws DBException { public ParameterizedSQLString toSQL() throws DBException {
if (conditions.isEmpty()) { if (conditions.isEmpty()) {