cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r552271 - /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java
Date Sun, 01 Jul 2007 10:28:03 GMT
Author: aadamchik
Date: Sun Jul  1 03:28:02 2007
New Revision: 552271

URL: http://svn.apache.org/viewvc?view=rev&rev=552271
Log:
clarifying javadocs on the meaning of template key

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

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java?view=diff&rev=552271&r1=552270&r2=552271
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java
Sun Jul  1 03:28:02 2007
@@ -48,7 +48,7 @@
  * </p>
  * 
  * <pre>
- *          SELECT ID, NAME FROM SOME_TABLE WHERE NAME LIKE $a
+ *                  SELECT ID, NAME FROM SOME_TABLE WHERE NAME LIKE $a
  * </pre>
  * 
  * <p>
@@ -456,7 +456,11 @@
     }
 
     /**
-     * Adds a SQL template string for a given key.
+     * Adds a SQL template string for a given key. Note the the keys understood by Cayenne
+     * must be fully qualified adapter class names. This way the framework can related
+     * current DataNode to the right template. E.g.
+     * "org.apache.cayenne.dba.oracle.OracleAdapter" is a key that should be used to setup
+     * an Oracle-specific template.
      * 
      * @see #setDefaultTemplate(String)
      */



Mime
View raw message