juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r555472 - in /webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc: FindBusinessByNameQuery.java FindServiceByNameQuery.java FindTModelByNameQuery.java
Date Thu, 12 Jul 2007 02:49:42 GMT
Author: kstam
Date: Wed Jul 11 19:49:41 2007
New Revision: 555472

URL: http://svn.apache.org/viewvc?view=rev&rev=555472
Log:
JUDDI-98 applying patch by jzwang to fix sorting by dates (ASC vs DESC)

Modified:
    webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc/FindBusinessByNameQuery.java
    webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc/FindServiceByNameQuery.java
    webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc/FindTModelByNameQuery.java

Modified: webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc/FindBusinessByNameQuery.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc/FindBusinessByNameQuery.java?view=diff&rev=555472&r1=555471&r2=555472
==============================================================================
--- webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc/FindBusinessByNameQuery.java
(original)
+++ webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc/FindBusinessByNameQuery.java
Wed Jul 11 19:49:41 2007
@@ -240,9 +240,9 @@
     else if (qualifiers.sortByDateAsc || qualifiers.sortByDateDesc)
     {
       if (qualifiers.sortByDateDesc)
-        sql.append("B.LAST_UPDATE ASC,N.NAME ASC");
-      else
         sql.append("B.LAST_UPDATE DESC,N.NAME ASC");
+      else
+        sql.append("B.LAST_UPDATE ASC,N.NAME ASC");
     }
   }
 }

Modified: webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc/FindServiceByNameQuery.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc/FindServiceByNameQuery.java?view=diff&rev=555472&r1=555471&r2=555472
==============================================================================
--- webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc/FindServiceByNameQuery.java
(original)
+++ webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc/FindServiceByNameQuery.java
Wed Jul 11 19:49:41 2007
@@ -249,9 +249,9 @@
     else if (qualifiers.sortByDateAsc || qualifiers.sortByDateDesc)
     {
       if (qualifiers.sortByDateDesc)
-        sql.append("S.LAST_UPDATE ASC,N.NAME ASC");
-      else
         sql.append("S.LAST_UPDATE DESC,N.NAME ASC");
+      else
+        sql.append("S.LAST_UPDATE ASC,N.NAME ASC");
     }
   }
 }

Modified: webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc/FindTModelByNameQuery.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc/FindTModelByNameQuery.java?view=diff&rev=555472&r1=555471&r2=555472
==============================================================================
--- webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc/FindTModelByNameQuery.java
(original)
+++ webservices/juddi/trunk/src/main/java/org/apache/juddi/datastore/jdbc/FindTModelByNameQuery.java
Wed Jul 11 19:49:41 2007
@@ -200,9 +200,9 @@
     else if (qualifiers.sortByDateAsc || qualifiers.sortByDateDesc)
     {
       if (qualifiers.sortByDateDesc)
-        sql.append("M.LAST_UPDATE ASC,M.NAME ASC");
-      else
         sql.append("M.LAST_UPDATE DESC,M.NAME ASC");
+      else
+        sql.append("M.LAST_UPDATE ASC,M.NAME ASC");
     }
   }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org


Mime
View raw message