db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r1680199 [2/2] - in /db/jdo/trunk/api/src/java/javax/jdo: annotations/ identity/ listener/ metadata/ spi/
Date Tue, 19 May 2015 08:01:49 GMT
Modified: db/jdo/trunk/api/src/java/javax/jdo/metadata/OrderMetadata.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/metadata/OrderMetadata.java?rev=1680199&r1=1680198&r2=1680199&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/metadata/OrderMetadata.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/metadata/OrderMetadata.java Tue May 19 08:01:48 2015
@@ -23,63 +23,56 @@ package javax.jdo.metadata;
 public interface OrderMetadata extends Metadata {
     /**
      * Method to set the version column name.
-     * 
-     * @param column Name of the version clumn
+     * @param column Name of the version column
+     * @return This metadata object
      */
     OrderMetadata setColumn(String column);
 
     /**
-     * Accessor for the version column name
-     * 
+     * Accessor for the version column name.
      * @return The version column name
      */
     String getColumn();
 
     /**
      * Method to set mapped-by information whether the order is present in the element class.
-     * 
      * @param mappedBy Field/property name in which to store the ordering in the element
+     * @return This metadata object
      */
     OrderMetadata setMappedBy(String mappedBy);
 
     /**
      * Accessor for the mapped-by field/property name in the element class.
-     * 
      * @return Name of field/property in element class
      */
     String getMappedBy();
 
     /**
      * Accessor for all column(s) defined on the ordering.
-     * 
      * @return The column(s)
      */
     ColumnMetadata[] getColumns();
 
     /**
      * Add a column for this ordering.
-     * 
      * @return The ColumnMetadata
      */
     ColumnMetadata newColumnMetadata();
 
     /**
      * Accessor for the number of columns defined for this ordering.
-     * 
      * @return The number of columns
      */
     int getNumberOfColumns();
 
     /**
-     * Method to set index metadata for the ordering
-     * 
+     * Method to set index metadata for the ordering.
      * @return The metadata for any index
      */
     IndexMetadata newIndexMetadata();
 
     /**
-     * Accessor for any index metadata for the ordering
-     * 
+     * Accessor for any index metadata for the ordering.
      * @return Index metadata
      */
     IndexMetadata getIndexMetadata();

Modified: db/jdo/trunk/api/src/java/javax/jdo/metadata/PackageMetadata.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/metadata/PackageMetadata.java?rev=1680199&r1=1680198&r2=1680199&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/metadata/PackageMetadata.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/metadata/PackageMetadata.java Tue May 19 08:01:48
2015
@@ -25,50 +25,44 @@ import javax.jdo.annotations.SequenceStr
 public interface PackageMetadata extends Metadata {
     /**
      * Accessor for the name of this package (set on construction).
-     * 
      * @return The name
      */
     String getName();
 
     /**
      * Method to set the catalog (ORM) to apply to all classes in this package.
-     * 
      * @param catalog Catalog name
+     * @return This metadata object
      */
     PackageMetadata setCatalog(String catalog);
 
     /**
-     * Accessor for the catalog (ORM) that all classes in this package default
-     * to.
-     * 
+     * Accessor for the catalog (ORM) that all classes in this package default to.
      * @return The catalog
      */
     String getCatalog();
 
     /**
      * Method to set the schema (ORM) to apply to all classes in this package.
-     * 
      * @param schema Schema name
+     * @return This metadata object
      */
     PackageMetadata setSchema(String schema);
 
     /**
      * Accessor for the schema (ORM) that all classes in this package default to.
-     * 
      * @return The schema
      */
     String getSchema();
 
     /**
      * Accessor for all classes defined in this package.
-     * 
      * @return The classes
      */
     ClassMetadata[] getClasses();
 
     /**
      * Add a new class to this package.
-     * 
      * @param name Name of the class
      * @return The ClassMetadata
      */
@@ -76,7 +70,6 @@ public interface PackageMetadata extends
 
     /**
      * Add a new class to this package.
-     * 
      * @param cls The class
      * @return The ClassMetadata
      */
@@ -84,21 +77,18 @@ public interface PackageMetadata extends
 
     /**
      * Accessor for the number of classes defined in this package.
-     * 
      * @return The number of classes.
      */
     int getNumberOfClasses();
 
     /**
      * Accessor for all interfaces defined in this package.
-     * 
      * @return The interfaces
      */
     InterfaceMetadata[] getInterfaces();
 
     /**
      * Add a new interface to this package.
-     * 
      * @param name The interface name
      * @return The InterfaceMetadata
      */
@@ -106,7 +96,6 @@ public interface PackageMetadata extends
 
     /**
      * Add a new interface to this package.
-     * 
      * @param cls The class
      * @return The ClassMetadata
      */
@@ -114,21 +103,18 @@ public interface PackageMetadata extends
 
     /**
      * Accessor for the number of interfaces defined in this package.
-     * 
      * @return The number of interfaces.
      */
     int getNumberOfInterfaces();
 
     /**
      * Accessor for any sequences defined on the package.
-     * 
      * @return The sequences
      */
     SequenceMetadata[] getSequences();
 
     /**
      * Add a new sequence to this package.
-     * 
      * @param name Name of the sequence
      * @param strategy Strategy for the sequence
      * @return The SequenceMetadata
@@ -137,7 +123,6 @@ public interface PackageMetadata extends
 
     /**
      * Accessor for the number of sequences defined for this package.
-     * 
      * @return The number of sequences.
      */
     int getNumberOfSequences();

Modified: db/jdo/trunk/api/src/java/javax/jdo/metadata/PrimaryKeyMetadata.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/metadata/PrimaryKeyMetadata.java?rev=1680199&r1=1680198&r2=1680199&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/metadata/PrimaryKeyMetadata.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/metadata/PrimaryKeyMetadata.java Tue May 19 08:01:48
2015
@@ -23,7 +23,6 @@ package javax.jdo.metadata;
 public interface PrimaryKeyMetadata extends Metadata {
     /**
      * Method to set the name of the PK constraint.
-     * 
      * @param name Name of the PK constraint
      * @return The PK metadata
      */
@@ -31,43 +30,37 @@ public interface PrimaryKeyMetadata exte
 
     /**
      * Accessor for the name of the PK constraint.
-     * 
      * @return The PK constraint name
      */
     String getName();
 
     /**
      * Method to set the PK column name.
-     * 
      * @param column Name of the PK column
      * @return The PK metadata
      */
     PrimaryKeyMetadata setColumn(String column);
 
     /**
-     * Accessor for the PK column name
-     * 
+     * Accessor for the PK column name.
      * @return The column name
      */
     String getColumn();
 
     /**
      * Accessor for all column(s) defined on the PK.
-     * 
      * @return The column(s)
      */
     ColumnMetadata[] getColumns();
 
     /**
-     * Add a new column for this PK
-     * 
+     * Add a new column for this PK.
      * @return The ColumnMetadata
      */
     ColumnMetadata newColumnMetadata();
 
     /**
-     * Accessor for the number of columns defined for this PK
-     * 
+     * Accessor for the number of columns defined for this PK.
      * @return The number of columns
      */
     int getNumberOfColumns();

Modified: db/jdo/trunk/api/src/java/javax/jdo/metadata/PropertyMetadata.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/metadata/PropertyMetadata.java?rev=1680199&r1=1680198&r2=1680199&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/metadata/PropertyMetadata.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/metadata/PropertyMetadata.java Tue May 19 08:01:48
2015
@@ -22,15 +22,14 @@ package javax.jdo.metadata;
  */
 public interface PropertyMetadata extends MemberMetadata {
     /**
-     * Method to set the field name (persistent interfaces)
-     * 
+     * Method to set the field name (persistent interfaces).
      * @param name field name
+     * @return This metadata object
      */
     PropertyMetadata setFieldName(String name);
 
     /**
-     * Accessor for the field name
-     * 
+     * Accessor for the field name.
      * @return Field name
      */
     String getFieldName();

Modified: db/jdo/trunk/api/src/java/javax/jdo/metadata/QueryMetadata.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/metadata/QueryMetadata.java?rev=1680199&r1=1680198&r2=1680199&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/metadata/QueryMetadata.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/metadata/QueryMetadata.java Tue May 19 08:01:48 2015
@@ -23,89 +23,83 @@ package javax.jdo.metadata;
 public interface QueryMetadata extends Metadata {
     /**
      * Accessor for the name of the query (set on construction).
-     * 
      * @return The name
      */
     String getName();
 
     /**
      * Method to set the language of the query.
-     * 
      * @param lang Query language
+     * @return This metadata object
      */
     QueryMetadata setLanguage(String lang);
 
     /**
      * Accessor for the query language.
-     * 
      * @return The language
      */
     String getLanguage();
 
     /**
      * Method to set the single-string query.
-     * 
      * @param query The query
+     * @return This metadata object
      */
     QueryMetadata setQuery(String query);
 
     /**
      * Accessor for the single-string query.
-     * 
      * @return The query
      */
     String getQuery();
 
     /**
-     * Method to set the result class name for the query
-     * 
+     * Method to set the result class name for the query.
      * @param clsName Result class name
+     * @return This metadata object
      */
     QueryMetadata setResultClass(String clsName);
 
     /**
      * Accessor for the result class name for the query.
-     * 
      * @return The result class name
      */
     String getResultClass();
 
     /**
-     * Method to set if the query results are unique
-     * 
+     * Method to set if the query results are unique.
      * @param unique Whether they are unique
+     * @return This metadata object
      */
     QueryMetadata setUnique(boolean unique);
 
     /**
-     * Accessor for whether results from the query are unique
-     * 
+     * Accessor for whether results from the query are unique.
      * @return Results are unique?
      */
     Boolean getUnique();
 
     /**
      * Method to set the query as not being modifiable from now.
+     * @return This metadata object
      */
     QueryMetadata setUnmodifiable();
 
     /**
      * Accessor for whether the query is unmodifiable.
-     * 
      * @return Can't be changed?
      */
     boolean getUnmodifiable();
 
     /**
      * Method to set the FetchPlan to use for this named query.
-     * 
      * @param fetchPlanName name of the FetchPlan
+     * @return This metadata object
      */
     QueryMetadata setFetchPlan(String fetchPlanName);
 
     /**
      * Accessor for the name of a fetch plan to use (if any).
-     * 
      * @return The fetch plan name
      */
     String getFetchPlan();

Modified: db/jdo/trunk/api/src/java/javax/jdo/metadata/SequenceMetadata.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/metadata/SequenceMetadata.java?rev=1680199&r1=1680198&r2=1680199&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/metadata/SequenceMetadata.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/metadata/SequenceMetadata.java Tue May 19 08:01:48
2015
@@ -25,73 +25,67 @@ import javax.jdo.annotations.SequenceStr
 public interface SequenceMetadata extends Metadata {
     /**
      * Accessor for the name of the sequence (set on construction).
-     * 
      * @return The name
      */
     String getName();
 
     /**
      * Accessor for the sequence strategy (set on construction).
-     * 
      * @return Sequence strategy
      */
     SequenceStrategy getSequenceStrategy();
 
     /**
      * Method to set the name of the datastore sequence that this maps to.
-     * 
      * @param seq Datastore sequence name
+     * @return This metadata object
      */
     SequenceMetadata setDatastoreSequence(String seq);
 
     /**
      * Accessor for the name of the datastore sequence that this maps to
-     * 
      * @return The datastore sequence name
      */
     String getDatastoreSequence();
 
     /**
-     * Method to set the result class name for the query
-     * 
+     * Method to set the result class name for the query.
      * @param clsName Result class name
+     * @return This metadata object
      */
     SequenceMetadata setFactoryClass(String clsName);
 
     /**
      * Accessor for the factory class for this sequence.
-     * 
      * @return The factory class
      */
     String getFactoryClass();
 
     /**
-     * Method to set the initial value for the sequence
-     * 
+     * Method to set the initial value for the sequence.
      * @param val Initial value to use
+     * @return This metadata object
      * @since 3.1
      */
     SequenceMetadata setInitialValue(int val);
 
     /**
      * Accessor for the initial value of the sequence (if any).
-     * 
      * @return initial value
      * @since 3.1
      */
     Integer getInitialValue();
 
     /**
-     * Method to set the allocation size for the sequence
-     * 
+     * Method to set the allocation size for the sequence.
      * @param size Allocation size to use
+     * @return This metadata object
      * @since 3.1
      */
     SequenceMetadata setAllocationSize(int size);
 
     /**
      * Accessor for the allocation size of the sequence (if any).
-     * 
      * @return allocation size
      * @since 3.1
      */

Modified: db/jdo/trunk/api/src/java/javax/jdo/metadata/TypeMetadata.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/metadata/TypeMetadata.java?rev=1680199&r1=1680198&r2=1680199&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/metadata/TypeMetadata.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/metadata/TypeMetadata.java Tue May 19 08:01:48 2015
@@ -27,301 +27,268 @@ import javax.jdo.annotations.IdentityTyp
 public interface TypeMetadata extends Metadata {
     /**
      * Accessor for the name of this component (set on construction).
-     * 
      * @return The name
      */
     String getName();
 
     /**
      * Method to define the identity type to use.
-     * 
      * @param id identity type
+     * @return This metadata object
      */
     TypeMetadata setIdentityType(IdentityType id);
 
     /**
      * Accessor for the identity type to use.
-     * 
      * @return identity type
      */
     IdentityType getIdentityType();
 
     /**
      * Method to set the object-id (PK) class.
-     * 
      * @param idclass Object-id class
+     * @return This metadata object
      */
     TypeMetadata setObjectIdClass(String idclass);
 
     /**
      * Accessor for the object-id class (if defined).
-     * 
      * @return The object-id class
      */
     String getObjectIdClass();
 
     /**
      * Method to set whether the component requires an extent.
-     * 
      * @param extent Requires extent?
+     * @return This metadata object
      */
     TypeMetadata setRequiresExtent(boolean extent);
 
     /**
      * Accessor for whether the component requires an extent.
-     * 
      * @return Requires extent?
      */
     boolean getRequiresExtent();
 
     /**
-     * Method to set whether this is detachable
-     * 
+     * Method to set whether this is detachable.
      * @param detachable Detachable?
+     * @return This metadata object
      */
     TypeMetadata setDetachable(boolean detachable);
 
     /**
      * Accessor for whether this is detachable.
-     * 
      * @return Detachable?
      */
     boolean getDetachable();
 
     /**
-     * Method to set whether this is cacheable
-     * 
+     * Method to set whether this is cacheable.
      * @param cacheable Cacheable?
+     * @return This metadata object
      */
     TypeMetadata setCacheable(boolean cacheable);
 
     /**
      * Accessor for whether this is cacheable.
-     * 
      * @return Detachable?
      */
     boolean getCacheable();
 
     /**
      * Method to set the default value of serializeRead for objects of this type.
-     * 
      * @param flag serializeRead
+     * @return This metadata object
      */
     TypeMetadata setSerializeRead(boolean flag);
 
     /**
      * Accessor for the value of serializeRead for objects of this type.
-     * 
      * @return SerializeRead?
      */
     boolean getSerializeRead();
 
     /**
      * Method to set whether it is stored only as embedded in other objects.
-     * 
      * @param embedded Whether it is only stored embedded
+     * @return This metadata object
      */
     TypeMetadata setEmbeddedOnly(boolean embedded);
 
     /**
      * Accessor for whether this is embedded only.
-     * 
      * @return Only stored as embedded
      */
     Boolean getEmbeddedOnly();
 
     /**
-     * Method to set the catalog (ORM) for this component
-     * 
+     * Method to set the catalog (ORM) for this component.
      * @param catalog Catalog name
+     * @return This metadata object
      */
     TypeMetadata setCatalog(String catalog);
 
     /**
-     * Accessor for the catalog (ORM) for this component
-     * 
+     * Accessor for the catalog (ORM) for this component.
      * @return The catalog
      */
     String getCatalog();
 
     /**
-     * Method to set the schema (ORM) for this component
-     * 
+     * Method to set the schema (ORM) for this component.
      * @param schema Schema name
+     * @return This metadata object
      */
     TypeMetadata setSchema(String schema);
 
     /**
-     * Accessor for the schema (ORM) for this component
-     * 
+     * Accessor for the schema (ORM) for this component.
      * @return The schema
      */
     String getSchema();
 
     /**
      * Method to set the table name.
-     * 
      * @param table Table name
+     * @return This metadata object
      */
     TypeMetadata setTable(String table);
 
     /**
      * Accessor for the name of the table.
-     * 
      * @return The name
      */
     String getTable();
 
     /**
      * Method to define the inheritance metadata.
-     * 
      * @return The InheritanceMetadata
      */
     InheritanceMetadata newInheritanceMetadata();
 
     /**
      * Accessor for the inheritance (if any).
-     * 
      * @return inheritance
      */
     InheritanceMetadata getInheritanceMetadata();
 
     /**
      * Method to define the version metadata.
-     * 
      * @return The VersionMetadata
      */
     VersionMetadata newVersionMetadata();
 
     /**
      * Accessor for the version (if any).
-     * 
      * @return version
      */
     VersionMetadata getVersionMetadata();
 
     /**
      * Method to define the datastore identity metadata details.
-     * 
      * @return The DatastoreIdentityMetadata
      */
     DatastoreIdentityMetadata newDatastoreIdentityMetadata();
 
     /**
      * Accessor for the datastore identity details.
-     * 
      * @return datastore identity details
      */
     DatastoreIdentityMetadata getDatastoreIdentityMetadata();
 
     /**
      * Method to define the primary key details.
-     * 
      * @return The PrimaryKeyMetadata
      */
     PrimaryKeyMetadata newPrimaryKeyMetadata();
 
     /**
      * Accessor for the primary key (if any).
-     * 
      * @return primary key details
      */
     PrimaryKeyMetadata getPrimaryKeyMetadata();
 
     /**
      * Accessor for all joins(s) defined on the component.
-     * 
      * @return The join(s)
      */
     JoinMetadata[] getJoins();
 
     /**
      * Add a join for this component.
-     * 
      * @return The JoinMetadata
      */
     JoinMetadata newJoinMetadata();
 
     /**
      * Accessor for the number of join(s) defined for this component.
-     * 
      * @return The number of join(s)
      */
     int getNumberOfJoins();
 
     /**
      * Accessor for all fk(s) defined on the component.
-     * 
      * @return The fk(s)
      */
     ForeignKeyMetadata[] getForeignKeys();
 
     /**
      * Add a new FK for this component.
-     * 
      * @return The ForeignKeyMetadata
      */
     ForeignKeyMetadata newForeignKeyMetadata();
 
     /**
      * Accessor for the number of FKs defined for this component.
-     * 
      * @return The number of FKs
      */
     int getNumberOfForeignKeys();
 
     /**
      * Accessor for all index(s) defined on the component.
-     * 
      * @return The index(s)
      */
     IndexMetadata[] getIndices();
 
     /**
      * Add a new index for this component.
-     * 
      * @return The IndexMetadata
      */
     IndexMetadata newIndexMetadata();
 
     /**
      * Accessor for the number of indices defined for this component.
-     * 
      * @return The number of indices
      */
     int getNumberOfIndices();
 
     /**
      * Accessor for all unique constraints defined on the component.
-     * 
      * @return The unique constraints
      */
     UniqueMetadata[] getUniques();
 
     /**
      * Add a new unique constraint for this component.
-     * 
      * @return The UniqueMetadata
      */
     UniqueMetadata newUniqueMetadata();
 
     /**
      * Accessor for the number of unique constraints defined for this component.
-     * 
      * @return The number of unique constraints
      */
     int getNumberOfUniques();
 
     /**
      * Accessor for all fields/properties defined on the component.
-     * 
      * @return The members
      */
     MemberMetadata[] getMembers();
 
     /**
      * Accessor for the number of fields/properties defined for this component.
-     * 
      * @return The number of members
      */
     int getNumberOfMembers();
@@ -336,7 +303,6 @@ public interface TypeMetadata extends Me
 
     /**
      * Add a new property for this component.
-     * 
      * @param method Java bean getter/setter method
      * @return The PropertyMetadata
      */
@@ -344,37 +310,31 @@ public interface TypeMetadata extends Me
 
     /**
      * Accessor for all named queries defined on the component.
-     * 
      * @return The queries
      */
     QueryMetadata[] getQueries();
 
     /**
      * Add a new query for this component.
-     * 
-     * @param name
-     *            Name of the query to add
+     * @param name Name of the query to add
      * @return The QueryMetadata
      */
     QueryMetadata newQueryMetadata(String name);
 
     /**
      * Accessor for the number of named queries defined for this component.
-     * 
      * @return The number of named queries
      */
     int getNumberOfQueries();
 
     /**
      * Accessor for all FetchGroup defined on the component.
-     * 
      * @return The FetchGroups
      */
     FetchGroupMetadata[] getFetchGroups();
 
     /**
      * Add a new FetchGroup for this component.
-     * 
      * @param name Name of the FetchGroup
      * @return The FetchGroupMetadata
      */
@@ -382,28 +342,24 @@ public interface TypeMetadata extends Me
 
     /**
      * Accessor for the number of fetchGroups defined for this component.
-     * 
      * @return The number of fetch groups
      */
     int getNumberOfFetchGroups();
 
     /**
      * Accessor for all column(s) defined on the join.
-     * 
      * @return The column(s)
      */
     ColumnMetadata[] getColumns();
 
     /**
      * Add a new column for this join.
-     * 
      * @return The ColumnMetadata
      */
     ColumnMetadata newColumnMetadata();
 
     /**
      * Accessor for the number of columns defined for this join.
-     * 
      * @return The number of columns
      */
     int getNumberOfColumns();

Modified: db/jdo/trunk/api/src/java/javax/jdo/metadata/UniqueMetadata.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/metadata/UniqueMetadata.java?rev=1680199&r1=1680198&r2=1680199&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/metadata/UniqueMetadata.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/metadata/UniqueMetadata.java Tue May 19 08:01:48 2015
@@ -22,64 +22,58 @@ package javax.jdo.metadata;
  */
 public interface UniqueMetadata extends Metadata {
     /**
-     * Method to set the name of the constraint
-     * 
+     * Method to set the name of the constraint.
      * @param name Name of the constraint
+     * @return This metadata object
      */
     UniqueMetadata setName(String name);
 
     /**
      * Accessor for the constraint name.
-     * 
      * @return The constraint name
      */
     String getName();
 
     /**
      * Method to set the table name.
-     * 
      * @param table Table name
+     * @return This metadata object
      */
     UniqueMetadata setTable(String table);
 
     /**
      * Accessor for the name of the table.
-     * 
      * @return The name
      */
     String getTable();
 
     /**
      * Method to set whether the constraint is deferred.
-     * 
      * @param def Deferred?
+     * @return This metadata object
      */
     UniqueMetadata setDeferred(boolean def);
 
     /**
      * Accessor for whether deferred.
-     * 
      * @return Deferred?
      */
     Boolean getDeferred();
 
     /**
      * Accessor for all column(s) defined on the unique constraint.
-     * 
      * @return The column(s)
      */
     ColumnMetadata[] getColumns();
 
     /**
      * Add a new column for this unique constraint.
-     * 
      * @return The ColumnMetadata
      */
     ColumnMetadata newColumnMetadata();
 
     /**
      * Accessor for the number of columns defined for this unique constraint.
-     * 
      * @return The number of columns
      */
     int getNumberOfColumns();

Modified: db/jdo/trunk/api/src/java/javax/jdo/metadata/ValueMetadata.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/metadata/ValueMetadata.java?rev=1680199&r1=1680198&r2=1680199&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/metadata/ValueMetadata.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/metadata/ValueMetadata.java Tue May 19 08:01:48 2015
@@ -16,6 +16,7 @@
  */
 package javax.jdo.metadata;
 
+import javax.jdo.AttributeConverter;
 import javax.jdo.annotations.ForeignKeyAction;
 
 /**
@@ -25,127 +26,140 @@ import javax.jdo.annotations.ForeignKeyA
 public interface ValueMetadata extends Metadata {
     /**
      * Method to set the column name.
-     * 
      * @param column Column name
+     * @return This metadata object
      */
     ValueMetadata setColumn(String column);
 
     /**
      * Accessor for the name of the column.
-     * 
      * @return The name
      */
     String getColumn();
 
     /**
      * Method to set the table name.
-     * 
      * @param table Table name
+     * @return This metadata object
      */
     ValueMetadata setTable(String table);
 
     /**
      * Accessor for the name of the table.
-     * 
      * @return The name
      */
     String getTable();
 
     /**
-     * Method to set the delete action of the FK
-     * 
+     * Method to set the delete action of the FK.
      * @param action Delete action of the FK
+     * @return This metadata object
      */
     ValueMetadata setDeleteAction(ForeignKeyAction action);
 
     /**
-     * Accessor for the delete action of the FK
-     * 
+     * Accessor for the delete action of the FK.
      * @return The FK delete-action
      */
     ForeignKeyAction getDeleteAction();
 
     /**
-     * Method to set the update action of the FK
-     * 
+     * Method to set the update action of the FK.
      * @param action Update action of the FK
+     * @return This metadata object
      */
     ValueMetadata setUpdateAction(ForeignKeyAction action);
 
     /**
-     * Accessor for the update action of the FK
-     * 
+     * Accessor for the update action of the FK.
      * @return The FK update-action
      */
     ForeignKeyAction getUpdateAction();
 
     /**
      * Accessor for all column(s) defined on the value.
-     * 
      * @return The column(s)
      */
     ColumnMetadata[] getColumns();
 
     /**
      * Add a new column for this value.
-     * 
      * @return The ColumnMetadata
      */
     ColumnMetadata newColumnMetadata();
 
     /**
      * Method to set new embedded metadata for the value.
-     * 
      * @return The EmbeddedMetadata
      */
     EmbeddedMetadata newEmbeddedMetadata();
 
     /**
-     * Accessor for any embedded metadata on this value
-     * 
+     * Accessor for any embedded metadata on this value.
      * @return The EmbeddedMetadata
      */
     EmbeddedMetadata getEmbeddedMetadata();
 
     /**
      * Method to set new index metadata for the value.
-     * 
      * @return The IndexMetadata
      */
     IndexMetadata newIndexMetadata();
 
     /**
-     * Accessor for any index metadata on this value
-     * 
+     * Accessor for any index metadata on this value.
      * @return Index metadata
      */
     IndexMetadata getIndexMetadata();
 
     /**
-     * Method to set new unique constraint metadata for the value
-     * 
+     * Method to set new unique constraint metadata for the value.
      * @return The UniqueMetadata
      */
     UniqueMetadata newUniqueMetadata();
 
     /**
      * Accessor for any unique constraint metadata on this value.
-     * 
      * @return The UniqueMetadata
      */
     UniqueMetadata getUniqueMetadata();
 
     /**
-     * Method to set new foreign key metadata for the value
-     * 
+     * Method to set new foreign key metadata for the value.
      * @return The ForeignKeyMetadata
      */
     ForeignKeyMetadata newForeignKeyMetadata();
 
     /**
      * Accessor for any foreign key metadata on this value.
-     * 
      * @return The ForeignKeyMetadata
      */
     ForeignKeyMetadata getForeignKeyMetadata();
+
+    /**
+     * Accessor for the attribute converter for this value (if any).
+     * @return The converter
+     */
+    AttributeConverter<?, ?> getConverter();
+
+    /**
+     * Method to set the attribute converter to use for this value.
+     * @param conv Converter
+     * @return This value metadata
+     */
+    ValueMetadata setConverter(AttributeConverter<?, ?> conv);
+
+    /**
+     * Accessor for whether the PMF defined converter for this value type is disabled.
+     * @return Whether it is disabled
+     */
+    boolean getDisableConverter();
+
+    /**
+     * Method to enable/disable the PMF defined converter for this member (if present).
+     * If a converter is defined on this metadata element then this flag will be ignored.
+     * @param disable Whether to disable
+     * @return This metadata
+     */
+    ValueMetadata setDisableConverter(boolean disable);
 }

Modified: db/jdo/trunk/api/src/java/javax/jdo/metadata/VersionMetadata.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/metadata/VersionMetadata.java?rev=1680199&r1=1680198&r2=1680199&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/metadata/VersionMetadata.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/metadata/VersionMetadata.java Tue May 19 08:01:48
2015
@@ -25,77 +25,69 @@ import javax.jdo.annotations.VersionStra
 public interface VersionMetadata extends Metadata {
     /**
      * Method to set the version strategy.
-     * 
      * @param strategy The strategy
+     * @return This metadata object
      */
     VersionMetadata setStrategy(VersionStrategy strategy);
 
     /**
      * Accessor for the version strategy.
-     * 
      * @return The strategy
      */
     VersionStrategy getStrategy();
 
     /**
      * Method to set the version column name.
-     * 
-     * @param column Name of the version clumn
+     * @param column Name of the version column
+     * @return This metadata object
      */
     VersionMetadata setColumn(String column);
 
     /**
      * Accessor for the version column name
-     * 
      * @return The version column name
      */
     String getColumn();
 
     /**
      * Method to set whether indexed.
-     * 
      * @param indexed Whether indexed (true | false | unique)
+     * @return This metadata object
      */
     VersionMetadata setIndexed(Indexed indexed);
 
     /**
-     * Accessor for whether indexed (true|false|unique)
-     * 
+     * Accessor for whether indexed (true|false|unique).
      * @return Indexed?
      */
     Indexed getIndexed();
 
     /**
      * Accessor for all column(s) defined on the version.
-     * 
      * @return The column(s)
      */
     ColumnMetadata[] getColumns();
 
     /**
      * Add a new column for this version.
-     * 
      * @return The ColumnMetadata
      */
     ColumnMetadata newColumnMetadata();
 
     /**
      * Accessor for the number of columns defined for this version.
-     * 
      * @return The number of columns
      */
     int getNumberOfColumns();
 
     /**
-     * Method to set index metadata for the version
-     * 
+     * Method to set index metadata for the version.
      * @return The IndexMetadata
      */
     IndexMetadata newIndexMetadata();
 
     /**
-     * Accessor for any index metadata on this version
-     * 
+     * Accessor for any index metadata on this version.
      * @return Index metadata
      */
     IndexMetadata getIndexMetadata();

Modified: db/jdo/trunk/api/src/java/javax/jdo/spi/StateInterrogation.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/spi/StateInterrogation.java?rev=1680199&r1=1680198&r2=1680199&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/spi/StateInterrogation.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/spi/StateInterrogation.java Tue May 19 08:01:48 2015
@@ -245,6 +245,7 @@ public interface StateInterrogation {
      * @see PersistenceCapable#jdoMakeDirty(String fieldName)
      * @param pc the instance.
      * @param fieldName the name of the field to be marked dirty.
+     * @return Whether it was made dirty
      */
     boolean makeDirty (Object pc, String fieldName);
 



Mime
View raw message