Skip to content

Commit aba6336

Browse files
committed
Merge remote-tracking branch 'origin/master' into maintenance
2 parents bddf070 + cfb3beb commit aba6336

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/main/java/org/javawebstack/orm/query/Query.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,16 @@ public Query<T> notNull(Object left) {
187187
where.notNull(left);
188188
return this;
189189
}
190+
191+
public Query<T> whereNull(Object left) {
192+
where.isNull(left);
193+
return this;
194+
}
195+
196+
public Query<T> whereNotNull(Object left) {
197+
where.notNull(left);
198+
return this;
199+
}
190200

191201
public Query<T> lessThan(Object left, Object right) {
192202
where.lessThan(left, right);

src/main/java/org/javawebstack/orm/query/QueryGroup.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ public QueryGroup<T> isNull(Object left) {
8080
public QueryGroup<T> notNull(Object left) {
8181
return where(left, "IS NOT NULL", null);
8282
}
83+
84+
public QueryGroup<T> whereNull(Object left) {
85+
return where(left, "IS NULL", null);
86+
}
87+
88+
public QueryGroup<T> whereNotNull(Object left) {
89+
return where(left, "IS NOT NULL", null);
90+
}
8391

8492
public QueryGroup<T> lessThan(Object left, Object right) {
8593
return where(left, "<", right);

0 commit comments

Comments
 (0)