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 2018/10/19 10:13:22 UTC

empire-db git commit: EMPIREDB-253 added function to create a "UNION ALL" statement.

Repository: empire-db
Updated Branches:
  refs/heads/master 6f424a0d3 -> dcffe1319


EMPIREDB-253
added function to create a "UNION ALL" statement.


Project: http://git-wip-us.apache.org/repos/asf/empire-db/repo
Commit: http://git-wip-us.apache.org/repos/asf/empire-db/commit/dcffe131
Tree: http://git-wip-us.apache.org/repos/asf/empire-db/tree/dcffe131
Diff: http://git-wip-us.apache.org/repos/asf/empire-db/diff/dcffe131

Branch: refs/heads/master
Commit: dcffe1319deeaa0f5e6d96dae13e5297f3ec5bd9
Parents: 6f424a0
Author: Rainer Döbele <do...@apache.org>
Authored: Fri Oct 19 12:13:17 2018 +0200
Committer: Rainer Döbele <do...@apache.org>
Committed: Fri Oct 19 12:13:17 2018 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/empire/db/DBCommandExpr.java | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/empire-db/blob/dcffe131/empire-db/src/main/java/org/apache/empire/db/DBCommandExpr.java
----------------------------------------------------------------------
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 3f2d9d2..a6336dc 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
@@ -404,6 +404,20 @@ public abstract class DBCommandExpr extends DBExpr
 
     /**
      * Constructs a new DBCombinedCmd object with this object,
+     * the key word= "UNION ALL" and the selected DBCommandExpr.
+     * 
+     * @see org.apache.empire.db.DBCombinedCmd
+     * @param other the second DBCommandExpr
+     * @return the new DBCombinedCmd object
+     */
+    public DBCommandExpr unionAll(DBCommandExpr other)
+    {   // give driver a chance to subclass DBCombinedCmd
+        DBDatabaseDriver driver = getDatabase().getDriver();
+        return driver.createCombinedCommand(this, "UNION ALL", other);
+    }
+
+    /**
+     * Constructs a new DBCombinedCmd object with this object,
      * the key word= "INTERSECT" and the selected DBCommandExpr.
      * 
      * @param other the second DBCommandExpr