cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1311326 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomain.java
Date Mon, 09 Apr 2012 17:05:32 GMT
Author: aadamchik
Date: Mon Apr  9 17:05:32 2012
New Revision: 1311326

URL: http://svn.apache.org/viewvc?rev=1311326&view=rev
Log:
CAY-1688 [PATCH] rename DataDomain.getNode to getDataNode

patch by John Huss

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

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomain.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomain.java?rev=1311326&r1=1311325&r2=1311326&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomain.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataDomain.java
Mon Apr  9 17:05:32 2012
@@ -591,8 +591,19 @@ public class DataDomain implements Query
 
     /**
      * Returns registered DataNode whose name matches <code>name</code> parameter.
+     * 
+     * @deprecated since 3.1, use a more consistently named {@link #getDataNode(String)}.
      */
     public DataNode getNode(String nodeName) {
+        return getDataNode(nodeName);
+    }
+    
+    /**
+     * Returns registered DataNode whose name matches <code>name</code> parameter.
+     * 
+     * @since 3.1
+     */
+    public DataNode getDataNode(String nodeName) {
         return nodes.get(nodeName);
     }
 



Mime
View raw message