cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mgen...@apache.org
Subject svn commit: r823552 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SelectQuery.java
Date Fri, 09 Oct 2009 13:51:02 GMT
Author: mgentry
Date: Fri Oct  9 13:51:01 2009
New Revision: 823552

URL: http://svn.apache.org/viewvc?rev=823552&view=rev
Log:
Updates for CAY-1283.

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SelectQuery.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SelectQuery.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SelectQuery.java?rev=823552&r1=823551&r2=823552&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SelectQuery.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SelectQuery.java
Fri Oct  9 13:51:01 2009
@@ -342,16 +342,25 @@
     }
 
     /** Adds ordering specification to this query orderings. */
+    @Deprecated
     public void addOrdering(String sortPathSpec, boolean isAscending) {
         addOrdering(new Ordering(sortPathSpec, isAscending));
     }
 
     /** Adds ordering specification to this query orderings. */
+    @Deprecated
     public void addOrdering(String sortPathSpec, boolean isAscending, boolean ignoreCase)
{
         addOrdering(new Ordering(sortPathSpec, isAscending, ignoreCase));
     }
 
     /**
+     * Adds ordering specification to this query orderings.
+     * @since 3.0
+     */
+    public void addOrdering(String sortPathSpec, SortOrder order) {
+        addOrdering(new Ordering(sortPathSpec, order));
+    }
+    /**
      * Removes ordering.
      * 
      * @since 1.1



Mime
View raw message