You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by do...@apache.org on 2019/11/14 18:02:28 UTC
[empire-db] branch master updated: EMPIREDB-282 convenience function
This is an automated email from the ASF dual-hosted git repository.
doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git
The following commit(s) were added to refs/heads/master by this push:
new 131e60f EMPIREDB-282 convenience function
131e60f is described below
commit 131e60f7d41373e46aa455bcb5c6fcb7ec4513af
Author: Rainer Döbele <do...@apache.org>
AuthorDate: Thu Nov 14 19:02:23 2019 +0100
EMPIREDB-282
convenience function
---
empire-db/src/main/java/org/apache/empire/db/DBCommandExpr.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/empire-db/src/main/java/org/apache/empire/db/DBCommandExpr.java b/empire-db/src/main/java/org/apache/empire/db/DBCommandExpr.java
index dc9292e..e55f4f8 100644
--- a/empire-db/src/main/java/org/apache/empire/db/DBCommandExpr.java
+++ b/empire-db/src/main/java/org/apache/empire/db/DBCommandExpr.java
@@ -429,6 +429,14 @@ public abstract class DBCommandExpr extends DBExpr
DBDatabaseDriver driver = getDatabase().getDriver();
return driver.createCombinedCommand(this, "INTERSECT", other);
}
+
+ /**
+ * Returns whether or not the command has order by set
+ */
+ public boolean hasOrderBy()
+ {
+ return (this.orderBy!=null ? !this.orderBy.isEmpty() : false);
+ }
/**
* Returns a copy of the defined order-bys.