cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r654814 - in /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query: ProcedureQuery.java QueryMetadata.java SQLTemplate.java SelectQuery.java
Date Fri, 09 May 2008 13:49:03 GMT
Author: aadamchik
Date: Fri May  9 06:49:03 2008
New Revision: 654814

URL: http://svn.apache.org/viewvc?rev=654814&view=rev
Log:
CAY-1048 Deprecate but preserve functionality of QueryMetadata.isRefreshingObjects() 

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/ProcedureQuery.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/QueryMetadata.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java
    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/ProcedureQuery.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/ProcedureQuery.java?rev=654814&r1=654813&r2=654814&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/ProcedureQuery.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/ProcedureQuery.java
Fri May  9 06:49:03 2008
@@ -353,10 +353,20 @@
         return metaData.isFetchingDataRows();
     }
 
+    /**
+     * @deprecate since 3.0. With introduction of the cache strategies this setting is
+     *            redundant, although it is still being taken into account. It will be
+     *            removed in the later versions of Cayenne.
+     */
     public boolean isRefreshingObjects() {
         return metaData.isRefreshingObjects();
     }
 
+    /**
+     * @deprecate since 3.0. With introduction of the cache strategies this setting is
+     *            redundant, although it is still being taken into account. It will be
+     *            removed in the later versions of Cayenne.
+     */
     public void setRefreshingObjects(boolean flag) {
         metaData.setRefreshingObjects(flag);
     }

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/QueryMetadata.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/QueryMetadata.java?rev=654814&r1=654813&r2=654814&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/QueryMetadata.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/QueryMetadata.java
Fri May  9 06:49:03 2008
@@ -194,6 +194,10 @@
      * cached values, returns <code>false</code> otherwise. If
      * {@link #isFetchingDataRows()}returns <code>true</code>, this setting is
not
      * applicable and has no effect.
+     * 
+     * @deprecated since 3.0. With introduction of the cache strategies this setting is
+     *             redundant, although it is still being taken into account. It will be
+     *             removed in the later versions of Cayenne.
      */
     boolean isRefreshingObjects();
 

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java?rev=654814&r1=654813&r2=654814&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java
Fri May  9 06:49:03 2008
@@ -414,10 +414,20 @@
         return metaData.isFetchingDataRows();
     }
 
+    /**
+     * @deprecate since 3.0. With introduction of the cache strategies this setting is
+     *            redundant, although it is still being taken into account. It will be
+     *            removed in the later versions of Cayenne.
+     */
     public boolean isRefreshingObjects() {
         return metaData.isRefreshingObjects();
     }
 
+    /**
+     * @deprecate since 3.0. With introduction of the cache strategies this setting is
+     *            redundant, although it is still being taken into account. It will be
+     *            removed in the later versions of Cayenne.
+     */
     public void setRefreshingObjects(boolean flag) {
         metaData.setRefreshingObjects(flag);
     }

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=654814&r1=654813&r2=654814&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 May  9 06:49:03 2008
@@ -531,6 +531,9 @@
      * Returns refresh policy of this query. Default is <code>true</code>.
      * 
      * @since 1.1
+     * @deprecate since 3.0. With introduction of the cache strategies this setting is
+     *            redundant, although it is still being taken into account. It will be
+     *            removed in the later versions of Cayenne.
      */
     public boolean isRefreshingObjects() {
         return metaData.isRefreshingObjects();
@@ -538,6 +541,9 @@
 
     /**
      * @since 1.1
+     * @deprecate since 3.0. With introduction of the cache strategies this setting is
+     *            redundant, although it is still being taken into account. It will be
+     *            removed in the later versions of Cayenne.
      */
     public void setRefreshingObjects(boolean flag) {
         metaData.setRefreshingObjects(flag);



Mime
View raw message