We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6aacf97 commit bcc0e9dCopy full SHA for bcc0e9d
1 file changed
src/main/java/org/javawebstack/orm/query/Query.java
@@ -464,8 +464,17 @@ public int count() {
464
}
465
466
467
+ @Deprecated
468
public boolean hasRecords() {
- return count() > 0;
469
+ return isNotEmpty();
470
+ }
471
+
472
+ public boolean isNotEmpty() {
473
+ return limit(1).count() > 0;
474
475
476
+ public boolean isEmpty() {
477
+ return !isNotEmpty();
478
479
480
0 commit comments