db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r737736 - /db/jdo/trunk/api2/src/java/javax/jdo/metadata/EmbeddedMetadata.java
Date Mon, 26 Jan 2009 16:33:59 GMT
Author: andyj
Date: Mon Jan 26 16:33:59 2009
New Revision: 737736

URL: http://svn.apache.org/viewvc?rev=737736&view=rev
Log:
JDO-615 Change to use "members" instead of "fields" and "properties" for consistency with
annotations and to simplify the interfaces

Modified:
    db/jdo/trunk/api2/src/java/javax/jdo/metadata/EmbeddedMetadata.java

Modified: db/jdo/trunk/api2/src/java/javax/jdo/metadata/EmbeddedMetadata.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/metadata/EmbeddedMetadata.java?rev=737736&r1=737735&r2=737736&view=diff
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/metadata/EmbeddedMetadata.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/metadata/EmbeddedMetadata.java Mon Jan 26 16:33:59
2009
@@ -22,18 +22,18 @@
  */
 public interface EmbeddedMetadata extends Metadata {
     /**
-     * Method to set the name of the owner field.
+     * Method to set the name of the owner field/property.
      * 
-     * @param fld Name of the owner field
+     * @param member Name of the owner member
      */
-    EmbeddedMetadata setOwnerField(String fld);
+    EmbeddedMetadata setOwnerMember(String member);
 
     /**
-     * Accessor for the owner field name.
+     * Accessor for the owner field/property name.
      * 
-     * @return The owner field name
+     * @return The owner member name
      */
-    String getOwnerField();
+    String getOwnerMember();
 
     /**
      * Method to set any column that indicates a null embedded object
@@ -64,33 +64,26 @@
     String getNullIndicatorValue();
 
     /**
-     * Accessor for all fields defined on the fetch group.
+     * Accessor for all fields/properties defined on the fetch group.
      * 
-     * @return The fields
+     * @return The members
      */
-    FieldMetadata[] getFields();
+    MemberMetadata[] getMembers();
 
     /**
-     * Add a new field to be embedded
+     * Accessor for the number of fields/properties defined for embedding
      * 
-     * @param name Name of the field
-     * @return The FieldMetadata
-     */
-    FieldMetadata newFieldMetadata(String name);
-
-    /**
-     * Accessor for the number of fields defined for embedding
-     * 
-     * @return The number of fields
+     * @return The number of members
      */
-    int getNumberOfFields();
+    int getNumberOfMembers();
 
     /**
-     * Accessor for all properties defined for embedding
+     * Add a new field to be embedded.
      * 
-     * @return The properties
+     * @param name Name of the field
+     * @return The FieldMetadata
      */
-    PropertyMetadata[] getProperties();
+    FieldMetadata newFieldMetadata(String name);
 
     /**
      * Add a new property for embedding
@@ -99,11 +92,4 @@
      * @return The PropertyMetadata
      */
     PropertyMetadata newPropertyMetadata(String name);
-
-    /**
-     * Accessor for the number of properties defined for embedding
-     * 
-     * @return The number of properties
-     */
-    int getNumberOfProperties();
 }
\ No newline at end of file



Mime
View raw message