cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r565105 - in /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne: access/jdbc/UpdateAction.java dba/JdbcActionBuilder.java query/DeleteQuery.java query/SQLActionVisitor.java query/UpdateQuery.java
Date Sun, 12 Aug 2007 18:25:07 GMT
Author: aadamchik
Date: Sun Aug 12 11:25:06 2007
New Revision: 565105

URL: http://svn.apache.org/viewvc?view=rev&rev=565105
Log:
deprecation notes

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/UpdateAction.java
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/dba/JdbcActionBuilder.java
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/DeleteQuery.java
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/SQLActionVisitor.java
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/UpdateQuery.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/UpdateAction.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/UpdateAction.java?view=diff&rev=565105&r1=565104&r2=565105
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/UpdateAction.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/jdbc/UpdateAction.java
Sun Aug 12 11:25:06 2007
@@ -38,6 +38,7 @@
 /**
  * @since 1.2
  * @author Andrus Adamchik
+ * @deprecated since 3.0 as corresponding delete and update queries are deprecated.
  */
 public class UpdateAction extends BaseSQLAction {
 

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/dba/JdbcActionBuilder.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/dba/JdbcActionBuilder.java?view=diff&rev=565105&r1=565104&r2=565105
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/dba/JdbcActionBuilder.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/dba/JdbcActionBuilder.java
Sun Aug 12 11:25:06 2007
@@ -27,6 +27,7 @@
 import org.apache.cayenne.access.jdbc.UpdateAction;
 import org.apache.cayenne.map.EntityResolver;
 import org.apache.cayenne.query.BatchQuery;
+import org.apache.cayenne.query.DeleteQuery;
 import org.apache.cayenne.query.EJBQLQuery;
 import org.apache.cayenne.query.ProcedureQuery;
 import org.apache.cayenne.query.Query;
@@ -34,6 +35,7 @@
 import org.apache.cayenne.query.SQLActionVisitor;
 import org.apache.cayenne.query.SQLTemplate;
 import org.apache.cayenne.query.SelectQuery;
+import org.apache.cayenne.query.UpdateQuery;
 
 /**
  * A factory of default SQLActions. Adapters usually subclass JdbcActionBuilder to provide
@@ -76,6 +78,10 @@
         return new SQLTemplateAction(query, adapter);
     }
 
+    /**
+     * @deprecated since 3.0 as the corresponding {@link UpdateQuery} and
+     *             {@link DeleteQuery} queries are deprecated.
+     */
     public SQLAction updateAction(Query query) {
         if (query instanceof SQLTemplate) {
             return new SQLTemplateAction((SQLTemplate) query, adapter);

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/DeleteQuery.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/DeleteQuery.java?view=diff&rev=565105&r1=565104&r2=565105
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/DeleteQuery.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/DeleteQuery.java
Sun Aug 12 11:25:06 2007
@@ -23,7 +23,7 @@
 import org.apache.cayenne.map.ObjEntity;
 
 /**
- * @deprecated since 3.0 in favor of EJBQL delete query.
+ * @deprecated since 3.0. Should be replaced either with EJBQL update query or SQLTemplate.
  * @author Andrus Adamchik
  */
 public class DeleteQuery extends QualifiedQuery {

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/SQLActionVisitor.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/SQLActionVisitor.java?view=diff&rev=565105&r1=565104&r2=565105
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/SQLActionVisitor.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/SQLActionVisitor.java
Sun Aug 12 11:25:06 2007
@@ -35,6 +35,9 @@
 
     /**
      * Creates an action to execute a generic update query.
+     * 
+     * @deprecated since 3.0 as the corresponding {@link UpdateQuery} and
+     *             {@link DeleteQuery} queries are deprecated.
      */
     SQLAction updateAction(Query query);
 

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/UpdateQuery.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/UpdateQuery.java?view=diff&rev=565105&r1=565104&r2=565105
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/UpdateQuery.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/UpdateQuery.java
Sun Aug 12 11:25:06 2007
@@ -28,6 +28,8 @@
 /**
  * Object encapsulating an UPDATE statement. Note that updated attributes are expressed in
  * terms of DbAttribute names.
+ * 
+ * @deprecated since 3.0. Should be replaced either with EJBQL update query or SQLTemplate.
  */
 public class UpdateQuery extends QualifiedQuery {
 



Mime
View raw message