This is an automated email from the ASF dual-hosted git repository.

derjan 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 7e6ee9b  EMPIREDB-301
7e6ee9b is described below

commit 7e6ee9b15da2614ef458e4afab6dc84380aa6a05
Author: Jan Glaubitz <[email protected]>
AuthorDate: Tue Aug 6 07:40:15 2019 +0200

    EMPIREDB-301
---
 .../src/main/java/org/apache/empire/db/DBCommandExpr.java     | 11 +++++++++++
 1 file changed, 11 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 a6336dc..dc9292e 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
@@ -21,6 +21,7 @@ package org.apache.empire.db;
 // java
 import java.sql.Connection;
 import java.util.ArrayList;
+import java.util.Collections;
 import java.util.List;
 import java.util.Set;
 
@@ -430,6 +431,16 @@ public abstract class DBCommandExpr extends DBExpr
     }
 
     /**
+     * Returns a copy of the defined order-bys.
+     * 
+     * @return list of order-bys
+     */
+    public List<DBOrderByExpr> getOrderBy()
+    {
+        return (this.orderBy!=null ? 
Collections.unmodifiableList(this.orderBy) : null);
+    }
+    
+    /**
      * Clears the list of order by expressions.
      */
     public void clearOrderBy()

Reply via email to