db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r452270 - in /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms: Platform.java PlatformDefaultImpl.java PlatformSapdbImpl.java
Date Mon, 02 Oct 2006 23:57:27 GMT
Author: arminw
Date: Mon Oct  2 16:57:26 2006
New Revision: 452270

URL: http://svn.apache.org/viewvc?view=rev&rev=452270
Log:
add method to check whether or not ORDER BY clause is allowed in sub-select

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/Platform.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformDefaultImpl.java
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformSapdbImpl.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/Platform.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/Platform.java?view=diff&rev=452270&r1=452269&r2=452270
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/Platform.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/Platform.java
Mon Oct  2 16:57:26 2006
@@ -241,6 +241,13 @@
      * @return <code>true</code> if it is supported
      */
     boolean supportsMultiColumnCountDistinct();
+
+    /**
+     * Whether the platform supports a ORDER BY clause in SUB-SELECT statements.
+     *
+     * @return <code>true</code> if it is supported
+     */
+    boolean supportsOrderByInSubSelect();
     
     /**
      * Concatenate the columns </br>

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformDefaultImpl.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformDefaultImpl.java?view=diff&rev=452270&r1=452269&r2=452270
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformDefaultImpl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformDefaultImpl.java
Mon Oct  2 16:57:26 2006
@@ -534,6 +534,11 @@
         return true;
     }
 
+    public boolean supportsOrderByInSubSelect()
+    {
+        return true;
+    }
+
     /**
      * @see org.apache.ojb.broker.platforms.Platform#concatenate(java.lang.String[])
      */

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformSapdbImpl.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformSapdbImpl.java?view=diff&rev=452270&r1=452269&r2=452270
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformSapdbImpl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/platforms/PlatformSapdbImpl.java
Mon Oct  2 16:57:26 2006
@@ -294,4 +294,9 @@
     {
         return true;
     }
+
+    public boolean supportsOrderByInSubSelect()
+    {
+        return false;
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message