db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r738047 - /db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManagerFactory.java
Date Tue, 27 Jan 2009 10:18:39 GMT
Author: andyj
Date: Tue Jan 27 10:18:38 2009
New Revision: 738047

URL: http://svn.apache.org/viewvc?rev=738047&view=rev
Log:
JDO-615 Add PMF methods for creating, registering and retrieving metadata programmatically

Modified:
    db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManagerFactory.java

Modified: db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManagerFactory.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManagerFactory.java?rev=738047&r1=738046&r2=738047&view=diff
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManagerFactory.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManagerFactory.java Tue Jan 27 10:18:38
2009
@@ -24,10 +24,11 @@
 
 import javax.jdo.datastore.DataStoreCache;
 import javax.jdo.listener.InstanceLifecycleListener;
+import javax.jdo.metadata.ClassMetadata;
+import javax.jdo.metadata.JDOMetadata;
 import javax.jdo.spi.JDOPermission; // for getFetchGroups javadoc
 import java.io.Serializable;
 import java.util.Collection;
-import java.util.Map;
 import java.util.Properties;
 import java.util.Set;
 
@@ -702,4 +703,28 @@
      */
     Set getFetchGroups();
 
+    /**
+     * Method to register metadata with the persistence process managed by this
+     * <code>PersistenceManagerFactory</code>. 
+     * Metadata can be created using the method {@link #newMetadata}.
+     * @param metadata The Metadata to register.
+     * @since 2.3
+     */
+    void registerMetadata(JDOMetadata metadata);
+
+    /**
+     * Method to return a new metadata object that can be subsequently modified
+     * and registered with the persistence process using the method {@link #registerMetadata}.
+     * @return The metadata
+     * @since 2.3
+     */
+    JDOMetadata newMetadata();
+
+    /**
+     * Method to return the (class) metadata object for the specified class, if there is
+     * metadata defined for that class.
+     * @return The metadata
+     * @since 2.3
+     */
+    ClassMetadata getMetadata(String className);
 }



Mime
View raw message