db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r561631 - in /db/jdo/trunk/api2/src/java/javax/jdo/annotations: Implements.java Query.java QueryLanguage.java
Date Wed, 01 Aug 2007 03:25:57 GMT
Author: clr
Date: Tue Jul 31 20:25:56 2007
New Revision: 561631

URL: http://svn.apache.org/viewvc?view=rev&rev=561631
Log:
JDO-511 Added extensions to @Query
Changed queryLanguage from QueryLanguage to String
Changed @Implements types from String[] to Class[]
Removed QueryLanguage enum

Removed:
    db/jdo/trunk/api2/src/java/javax/jdo/annotations/QueryLanguage.java
Modified:
    db/jdo/trunk/api2/src/java/javax/jdo/annotations/Implements.java
    db/jdo/trunk/api2/src/java/javax/jdo/annotations/Query.java

Modified: db/jdo/trunk/api2/src/java/javax/jdo/annotations/Implements.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/annotations/Implements.java?view=diff&rev=561631&r1=561630&r2=561631
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/annotations/Implements.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/annotations/Implements.java Tue Jul 31 20:25:56 2007
@@ -32,9 +32,8 @@
 @Retention(RetentionPolicy.RUNTIME)
 public @interface Implements
 {
-    /** Interfaces implemented by this PersistenceCapable (class names 
-     * of the interfaces).
-     * @return the names of interfaces implemented by the class
+    /** Interfaces implemented by this PersistenceCapable.
+     * @return the interfaces implemented by the class
      */
-    String[] value();
+    Class[] value();
 }

Modified: db/jdo/trunk/api2/src/java/javax/jdo/annotations/Query.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/annotations/Query.java?view=diff&rev=561631&r1=561630&r2=561631
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/annotations/Query.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/annotations/Query.java Tue Jul 31 20:25:56 2007
@@ -45,7 +45,7 @@
     /** The query language
      * @return the query language
      */
-    QueryLanguage language() default QueryLanguage.JDOQL;
+    String language() default "JDOQL";
 
     /** Whether the query is unmodifiable.
      * @return whether the query is unmodifiable
@@ -61,4 +61,10 @@
      * @return the class of the result
      */
     Class resultClass() default void.class;
+
+    /** Vendor extensions.
+     * @return the vendor extensions
+     */
+    Extension[] extensions() default {};
+
 }



Mime
View raw message