db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1337541 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SummaryHelper.java
Date Sat, 12 May 2012 13:45:09 GMT
Author: tfischer
Date: Sat May 12 13:45:08 2012
New Revision: 1337541

URL: http://svn.apache.org/viewvc?rev=1337541&view=rev
Log:
Deprecate methods using old criteria

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SummaryHelper.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SummaryHelper.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SummaryHelper.java?rev=1337541&r1=1337540&r2=1337541&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SummaryHelper.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/SummaryHelper.java
Sat May 12 13:45:08 2012
@@ -115,7 +115,13 @@ public class SummaryHelper
      * @return Results as a OrderMap<String, List<Object>> object.
      *
      * @throws TorqueException if a database error occurs.
+     *
+     * @deprecated please use
+     *             summarize(org.apache.torque.criteria.Criteria)
+     *             instead.
+     *             This method will be removed in a future version of Torque.
      */
+    @Deprecated
     public List<ListOrderedMapCI> summarize(Criteria crit)
             throws TorqueException
     {
@@ -156,7 +162,13 @@ public class SummaryHelper
      * @return Results as a ListOrderMapCI<String, List<Object>> object.
      *
      * @throws TorqueException if a database error occurs.
+     *
+     * @deprecated Please use
+     *             summarize(org.apache.torque.criteria.Criteria, List<Class<?>>)
+     *             instead.
+     *             This method will be removed in a future version of Torque.
      */
+    @Deprecated
     public List<ListOrderedMapCI> summarize(
                 Criteria crit,
                 List<Class<?>> resultTypes)
@@ -231,7 +243,13 @@ public class SummaryHelper
      * @return Results as a OrderMap<String, List<Object>> object.
      *
      * @throws TorqueException if a database error occurs.
+     *
+     * @deprecated please use
+     *             summarize(org.apache.torque.criteria.Criteria, Connection)
+     *             instead.
+     *             This method will be removed in a future version of Torque.
      */
+    @Deprecated
     public List<ListOrderedMapCI> summarize(Criteria crit, Connection conn)
             throws TorqueException
     {
@@ -275,7 +293,13 @@ public class SummaryHelper
      * @return Results as a ListOrderedMapCI<String,Values> object.
      *
      * @throws TorqueException if a database error occurs.
+     *
+     * @deprecated please use
+     *             summarize(org.apache.torque.criteria.Criteria, List<Class<?>>,
Connection)
+     *             instead.
+     *             This method will be removed in a future version of Torque.
      */
+    @Deprecated
     public List<ListOrderedMapCI> summarize(
                 Criteria crit,
                 List<Class<?>> resultTypes,
@@ -483,7 +507,13 @@ public class SummaryHelper
      * @param c The base criteria to build the summary criteria from.
      * @return A criteria to use in summarizing the information.
      * @throws TorqueException
+     *
+     * @deprecated please use
+     *             buildCriteria(org.apache.torque.criteria.Criteria)
+     *             instead.
+     *             This method will be removed in a future version of Torque.
      */
+    @Deprecated
     public Criteria buildCriteria(Criteria c) throws TorqueException
     {
         c.getSelectColumns().clear();
@@ -618,7 +648,7 @@ public class SummaryHelper
                 {
                     // Kludgy Where table.col = table.col clause to force
                     // from table identification.
-                    c.add(col,
+                    c.and(col,
                             (col.getColumnName()
                                     + "=" + col.getColumnName()),
                             SqlEnum.CUSTOM);



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


Mime
View raw message