File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
src/main/java/org/javawebstack/orm/query Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments