Added SQLWhereChain#isEmpty()
This commit is contained in:
parent
fab009477d
commit
e8c93a0676
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user