Return-Path: Delivered-To: apmail-db-jdo-commits-archive@www.apache.org Received: (qmail 34258 invoked from network); 19 Jun 2007 21:46:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jun 2007 21:46:04 -0000 Received: (qmail 59025 invoked by uid 500); 19 Jun 2007 21:46:07 -0000 Mailing-List: contact jdo-commits-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-commits@db.apache.org Received: (qmail 59011 invoked by uid 99); 19 Jun 2007 21:46:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2007 14:46:07 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2007 14:46:03 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id DFF7F1A981A; Tue, 19 Jun 2007 14:45:42 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r548859 - in /db/jdo/trunk/api2/src/java/javax/jdo/annotations: Columns.java DatastoreIdentity.java Discriminator.java Element.java Date: Tue, 19 Jun 2007 21:45:42 -0000 To: jdo-commits@db.apache.org From: clr@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070619214542.DFF7F1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: clr Date: Tue Jun 19 14:45:40 2007 New Revision: 548859 URL: http://svn.apache.org/viewvc?view=rev&rev=548859 Log: Formatting changes Modified: db/jdo/trunk/api2/src/java/javax/jdo/annotations/Columns.java db/jdo/trunk/api2/src/java/javax/jdo/annotations/DatastoreIdentity.java db/jdo/trunk/api2/src/java/javax/jdo/annotations/Discriminator.java db/jdo/trunk/api2/src/java/javax/jdo/annotations/Element.java Modified: db/jdo/trunk/api2/src/java/javax/jdo/annotations/Columns.java URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/annotations/Columns.java?view=diff&rev=548859&r1=548858&r2=548859 ============================================================================== --- db/jdo/trunk/api2/src/java/javax/jdo/annotations/Columns.java (original) +++ db/jdo/trunk/api2/src/java/javax/jdo/annotations/Columns.java Tue Jun 19 14:45:40 2007 @@ -27,7 +27,8 @@ * @version 2.1 * @since 2.1 */ -@Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) +@Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) public @interface Columns { /** The columns annotation information. */ Modified: db/jdo/trunk/api2/src/java/javax/jdo/annotations/DatastoreIdentity.java URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/annotations/DatastoreIdentity.java?view=diff&rev=548859&r1=548858&r2=548859 ============================================================================== --- db/jdo/trunk/api2/src/java/javax/jdo/annotations/DatastoreIdentity.java (original) +++ db/jdo/trunk/api2/src/java/javax/jdo/annotations/DatastoreIdentity.java Tue Jun 19 14:45:40 2007 @@ -28,7 +28,8 @@ * @version 2.1 * @since 2.1 */ -@Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.TYPE) +@Retention(RetentionPolicy.RUNTIME) public @interface DatastoreIdentity { /** Modified: db/jdo/trunk/api2/src/java/javax/jdo/annotations/Discriminator.java URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/annotations/Discriminator.java?view=diff&rev=548859&r1=548858&r2=548859 ============================================================================== --- db/jdo/trunk/api2/src/java/javax/jdo/annotations/Discriminator.java (original) +++ db/jdo/trunk/api2/src/java/javax/jdo/annotations/Discriminator.java Tue Jun 19 14:45:40 2007 @@ -28,14 +28,17 @@ * @version 2.1 * @since 2.1 */ -@Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.TYPE) +@Retention(RetentionPolicy.RUNTIME) public @interface Discriminator { /** - * Strategy to use for discrimination checking. - * @return Strategy to use for discrimination checking. + * Strategy to use for discriminator. The discriminator determines + * the class associated with a row in the datastore. + * @return Strategy to use for discriminator. */ - DiscriminatorStrategyType strategy() default DiscriminatorStrategyType.UNKNOWN; + DiscriminatorStrategyType strategy() + default DiscriminatorStrategyType.UNKNOWN; /** * Whether the discriminator is indexed. @@ -50,8 +53,10 @@ String column() default ""; /** - * The value for the discriminator for objects of this class (when using "value-map" strategy). - * @return The value for the discriminator for objects of this class (when using "value-map" strategy). + * The value for the discriminator for objects of this class + * when using "value-map" strategy. + * @return The value for the discriminator for objects of this class + * when using "value-map" strategy. */ String value() default ""; Modified: db/jdo/trunk/api2/src/java/javax/jdo/annotations/Element.java URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/annotations/Element.java?view=diff&rev=548859&r1=548858&r2=548859 ============================================================================== --- db/jdo/trunk/api2/src/java/javax/jdo/annotations/Element.java (original) +++ db/jdo/trunk/api2/src/java/javax/jdo/annotations/Element.java Tue Jun 19 14:45:40 2007 @@ -29,26 +29,29 @@ * @version 2.1 * @since 2.1 */ -@Target({ElementType.FIELD, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) +@Target({ElementType.FIELD, ElementType.METHOD}) +@Retention(RetentionPolicy.RUNTIME) public @interface Element { /** - * The type of the element. This can be determined for an array, or if using JDK1.5 generics - * but is required otherwise. + * The type of the element. This can be determined for an array, + * or if using JDK1.5 generics but is required otherwise. * @return The type of the element. */ Class type() default void.class; /** - * Types of the elements. This is used as an alternative to "type" when the implementation supports - * specification of multiple element types. If "type" is specified then this is ignored. + * Types of the elements. This is used as an alternative to "type" when + * the implementation supports specification of multiple element types. + * If "type" is specified then this is ignored. * @return The types of elements */ Class[] types() default {}; /** * Whether the element is to be stored serialised (into a join table) - * @return Whether the element is to be stored serialised (into a join table) + * @return Whether the element is to be stored serialised + * (into a join table) */ String serialized() default ""; @@ -59,8 +62,10 @@ String embedded() default ""; /** - * Whether the element is dependent on the owner (and so will be deleted when it is) - * @return Whether the element is dependent on the owner (and so will be deleted when it is) + * Whether the element is dependent on the owner, and will be deleted + * when the owner is deleted + * @return Whether the element is dependent on the owner, and will be + * deleted when the owner is deleted */ String dependent() default ""; @@ -95,14 +100,16 @@ String indexed() default ""; /** - * Whether the element column(s) contents should be considered unique - * @return Whether the element column(s) contents should be considered unique + * Whether the element column(s) contents are unique + * @return Whether the element column(s) contents are unique */ String unique() default ""; /** - * Name of a field in the target class that forms a bidirectional relation with this field - * @return Name of a field in the target class that forms a bidirectional relation with this field + * Name of the field in the target class that forms a bidirectional + * relationship with this field. + * @return Name of the field in the target class that forms a bidirectional + * relationship with this field */ String mappedBy() default "";