Author: mbo
Date: Thu Mar 5 20:23:52 2015
New Revision: 1664473
URL: http://svn.apache.org/r1664473
Log:
Remove DOS EOL
Modified:
db/jdo/trunk/api/test/java/javax/jdo/AbstractJDOConfigTest.java
db/jdo/trunk/api/test/java/javax/jdo/stub/StubPMF.java
db/jdo/trunk/api/test/schema/jdoconfig/Negative00/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Negative01/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Negative02/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Negative03/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Negative04/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Negative05/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Negative06/6a/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Negative06/6b/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Negative08/META-INF/services/javax.jdo.PersistenceManagerFactory
db/jdo/trunk/api/test/schema/jdoconfig/Negative09/9a/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Pmfmapmap01/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Positive00/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Positive01/1a/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Positive01/1b/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Positive02/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Positive03/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Positive04/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Positive04/META-INF/services/javax.jdo.PersistenceManagerFactory
db/jdo/trunk/api/test/schema/jdoconfig/Positive05/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Positive06/META-INF/jdoconfig.xml
db/jdo/trunk/api/test/schema/jdoconfig/Positive07/META-INF/jdoconfig.xml
db/jdo/trunk/specification/imports/jdo_2_0.dtd
db/jdo/trunk/specification/imports/jdoconfig_2_1.dtd
db/jdo/trunk/specification/imports/jdoquery_2_0.dtd
db/jdo/trunk/specification/imports/orm_2_0.dtd
db/jdo/trunk/tck/src/conf/throwOnUnknownStandardProperties.conf
db/jdo/trunk/tck/src/java/org/apache/jdo/tck/api/persistencemanagerfactory/config/ThrowOnUnknownStandardProperties.java
db/jdo/trunk/tck/src/main/resources/META-INF/NOTICE.txt
db/jdo/trunk/tck/src/uml/org/apache/jdo/tck/pc/shoppingcart/shoppingcart.argo.uml
Modified: db/jdo/trunk/api/test/java/javax/jdo/AbstractJDOConfigTest.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/java/javax/jdo/AbstractJDOConfigTest.java?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/java/javax/jdo/AbstractJDOConfigTest.java (original)
+++ db/jdo/trunk/api/test/java/javax/jdo/AbstractJDOConfigTest.java Thu Mar 5 20:23:52 2015
@@ -1,126 +1,126 @@
-package javax.jdo;
-
-import java.net.URL;
-import java.util.Enumeration;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Random;
-
-import javax.jdo.util.AbstractTest;
-
-public abstract class AbstractJDOConfigTest extends AbstractTest {
-
- /**
- * A class path prefix used in the various tests where the class path
- * needs to be set.
- */
- protected static String JDOCONFIG_CLASSPATH_PREFIX
- = initJDOConfigClasspathPrefix();
-
- /**
- * Returns the JDO configuration class path prefix's default value, which is
- * the project base directory suffixed by the path to the configuration
- * directory (<tt>test/schema/jdoconfig</tt>).
- *
- * @return the default class path prefix used by this test suite.
- *
- */
- protected static String initJDOConfigClasspathPrefix() {
- return initBasedir() + "test/schema/jdoconfig";
- }
-
- /**
- * The class path used to specify the location of test class files.
- * @return the class path where test class files can be found.
- */
- protected static String TEST_CLASSPATH =
- initTestClasspath();
-
- /**
- * Returns the default class path for JDO test class files
- * (<tt>target/test-classes/</tt>).
- * @return the default class path for JDO test class files.
- */
- protected static String initTestClasspath() {
- return initBasedir() + "target/test-classes/";
- }
-
- /**
- * The class path used to locate the JDO API class files.
- */
- protected static String API_CLASSPATH =
- initAPIClasspath();
-
- /**
- * Returns the default class path for JDO API class files
- * (<tt>target/classes/</tt>).
- * @return the default class path for JDO API class files.
- */
- protected static String initAPIClasspath() {
- return initBasedir() + "target/classes/";
- }
-
- /**
- * Returns the base directory for this project. This base directory
- * is used to build up the other class paths defined in this test suite.
- * The value returned is the value returned by
- * <code>System.getProperty("basedir")</code>.
- * A trailing slash is appended to the path if it doesn't exist.
- *
- * @return the default base directory of the project.
- */
- protected static String initBasedir() {
- String basedir = System.getProperty("basedir");
- if (basedir != null) {
- if (!basedir.endsWith("/")) {
- basedir += "/";
- }
- } else {
- basedir = "";
- }
- return basedir;
- }
-
- /**
- * A randomizer seeded with the system clock's current time.
- */
- protected static Random RANDOM = new Random(System.currentTimeMillis());
-
- /**
- * Fails the test if the number of properties in the two specified
- * {@link java.util.Map Map} objects are not identical or their values
- * do not match.
- * @param expected the first {@link java.util.Map Map} object to test.
- * @param actual the second {@link java.util.Map Map} object to test.
- */
- static void assertEqualProperties(Map expected, Map actual) {
- Iterator i = expected.entrySet().iterator();
- while (i.hasNext()) {
- Map.Entry entry = (Map.Entry) i.next();
- String key = (String) entry.getKey();
- String expectedValue = (String) entry.getValue();
- String actualValue = (String) actual.get(key);
-
- assertEquals(
- "Actual property at key [" + key + "] with value [" +
- actualValue + "] not equal to expected value [" +
- expectedValue + "]",
- expectedValue,
- actualValue);
- }
- }
-
- protected String getPMFClassNameViaServiceLookup(ClassLoader loader) {
- try {
- Enumeration urls = JDOHelper.getResources(loader,
- SERVICE_LOOKUP_PMF_RESOURCE_NAME);
- while (urls.hasMoreElements()) {
- // return the first one found
- return JDOHelper.getClassNameFromURL((URL)urls.nextElement());
- }
- } catch (Exception ex) {
- // ignore exceptions from i/o errors
- }
- return null;
- }
-}
+package javax.jdo;
+
+import java.net.URL;
+import java.util.Enumeration;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Random;
+
+import javax.jdo.util.AbstractTest;
+
+public abstract class AbstractJDOConfigTest extends AbstractTest {
+
+ /**
+ * A class path prefix used in the various tests where the class path
+ * needs to be set.
+ */
+ protected static String JDOCONFIG_CLASSPATH_PREFIX
+ = initJDOConfigClasspathPrefix();
+
+ /**
+ * Returns the JDO configuration class path prefix's default value, which is
+ * the project base directory suffixed by the path to the configuration
+ * directory (<tt>test/schema/jdoconfig</tt>).
+ *
+ * @return the default class path prefix used by this test suite.
+ *
+ */
+ protected static String initJDOConfigClasspathPrefix() {
+ return initBasedir() + "test/schema/jdoconfig";
+ }
+
+ /**
+ * The class path used to specify the location of test class files.
+ * @return the class path where test class files can be found.
+ */
+ protected static String TEST_CLASSPATH =
+ initTestClasspath();
+
+ /**
+ * Returns the default class path for JDO test class files
+ * (<tt>target/test-classes/</tt>).
+ * @return the default class path for JDO test class files.
+ */
+ protected static String initTestClasspath() {
+ return initBasedir() + "target/test-classes/";
+ }
+
+ /**
+ * The class path used to locate the JDO API class files.
+ */
+ protected static String API_CLASSPATH =
+ initAPIClasspath();
+
+ /**
+ * Returns the default class path for JDO API class files
+ * (<tt>target/classes/</tt>).
+ * @return the default class path for JDO API class files.
+ */
+ protected static String initAPIClasspath() {
+ return initBasedir() + "target/classes/";
+ }
+
+ /**
+ * Returns the base directory for this project. This base directory
+ * is used to build up the other class paths defined in this test suite.
+ * The value returned is the value returned by
+ * <code>System.getProperty("basedir")</code>.
+ * A trailing slash is appended to the path if it doesn't exist.
+ *
+ * @return the default base directory of the project.
+ */
+ protected static String initBasedir() {
+ String basedir = System.getProperty("basedir");
+ if (basedir != null) {
+ if (!basedir.endsWith("/")) {
+ basedir += "/";
+ }
+ } else {
+ basedir = "";
+ }
+ return basedir;
+ }
+
+ /**
+ * A randomizer seeded with the system clock's current time.
+ */
+ protected static Random RANDOM = new Random(System.currentTimeMillis());
+
+ /**
+ * Fails the test if the number of properties in the two specified
+ * {@link java.util.Map Map} objects are not identical or their values
+ * do not match.
+ * @param expected the first {@link java.util.Map Map} object to test.
+ * @param actual the second {@link java.util.Map Map} object to test.
+ */
+ static void assertEqualProperties(Map expected, Map actual) {
+ Iterator i = expected.entrySet().iterator();
+ while (i.hasNext()) {
+ Map.Entry entry = (Map.Entry) i.next();
+ String key = (String) entry.getKey();
+ String expectedValue = (String) entry.getValue();
+ String actualValue = (String) actual.get(key);
+
+ assertEquals(
+ "Actual property at key [" + key + "] with value [" +
+ actualValue + "] not equal to expected value [" +
+ expectedValue + "]",
+ expectedValue,
+ actualValue);
+ }
+ }
+
+ protected String getPMFClassNameViaServiceLookup(ClassLoader loader) {
+ try {
+ Enumeration urls = JDOHelper.getResources(loader,
+ SERVICE_LOOKUP_PMF_RESOURCE_NAME);
+ while (urls.hasMoreElements()) {
+ // return the first one found
+ return JDOHelper.getClassNameFromURL((URL)urls.nextElement());
+ }
+ } catch (Exception ex) {
+ // ignore exceptions from i/o errors
+ }
+ return null;
+ }
+}
Modified: db/jdo/trunk/api/test/java/javax/jdo/stub/StubPMF.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/java/javax/jdo/stub/StubPMF.java?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/java/javax/jdo/stub/StubPMF.java (original)
+++ db/jdo/trunk/api/test/java/javax/jdo/stub/StubPMF.java Thu Mar 5 20:23:52 2015
@@ -1,555 +1,555 @@
-package javax.jdo.stub;
-
-import java.util.Collection;
-import java.util.Map;
-import java.util.Properties;
-import java.util.Set;
-
-import javax.jdo.Constants;
-import javax.jdo.FetchGroup;
-import javax.jdo.PersistenceManager;
-import javax.jdo.PersistenceManagerFactory;
-import javax.jdo.datastore.DataStoreCache;
-import javax.jdo.listener.InstanceLifecycleListener;
-import javax.jdo.metadata.JDOMetadata;
-import javax.jdo.metadata.TypeMetadata;
-
-public class StubPMF implements PersistenceManagerFactory, Constants {
-
- public static PersistenceManagerFactory getPersistenceManagerFactory(
- Map props) {
-
- StubPMF pmf = new StubPMF();
-
- pmf.setProperties(props);
-
- for (Object key : props.keySet()) {
- if (!(key instanceof String)) {
- continue;
- }
- String prop = (String) key;
- if (!prop.startsWith("javax.jdo.")) {
- continue;
- }
- pmf.setProperty(prop, props.get(prop));
- }
-
- return pmf;
- }
-
- public static PersistenceManagerFactory getPersistenceManagerFactory(
- Map overrides, Map props) {
-
- StubPMF pmf = new StubPMF();
-
- pmf.setProperties(props);
- pmf.setProperties(overrides);
-
- return pmf;
- }
-
- String name;
- String persistenceManagerFactoryClassName;
- String spiResourceName;
- String optionConnectionUserName;
- String optionConnectionPassword;
- String optionConnectionURL;
- String optionConnectionDriverName;
- String optionConnectionFactoryName;
- Object optionConnectionFactory;
- String optionConnectionFactory2Name;
- Object optionConnectionFactory2;
- boolean optionMultithreaded;
- String optionMapping;
- boolean optionOptimistic;
- boolean optionRetainValues;
- boolean optionRestoreValues;
- boolean optionNontransactionalRead;
- boolean optionNontransactionalWrite;
- boolean optionIgnoreCache;
- boolean optionDetachAllOnCommit;
- boolean optionCopyOnAttach;
- String optionName;
- String optionPersistenceUnitName;
- String optionServerTimeZoneID;
- String optionTransactionType;
- boolean optionReadOnly;
- String optionTransactionIsolationLevel;
- Integer optionDatastoreReadTimeoutMillis;
- Integer optionDatastoreWriteTimeoutMillis;
-
- Properties properties = new Properties();
-
- public String getConnectionUserName() {
- return optionConnectionUserName;
- }
-
- public void setConnectionUserName(String connectionUserName) {
- this.optionConnectionUserName = connectionUserName;
- }
-
- public void setConnectionPassword(String connectionPassword) {
- this.optionConnectionPassword = connectionPassword;
- }
-
- public String getConnectionURL() {
- return optionConnectionURL;
- }
-
- public void setConnectionURL(String connectionURL) {
- this.optionConnectionURL = connectionURL;
- }
-
- public String getConnectionDriverName() {
- return optionConnectionDriverName;
- }
-
- public void setConnectionDriverName(String connectionDriverName) {
- this.optionConnectionDriverName = connectionDriverName;
- }
-
- public String getConnectionFactoryName() {
- return optionConnectionFactoryName;
- }
-
- public void setConnectionFactoryName(String connectionFactoryName) {
- this.optionConnectionFactoryName = connectionFactoryName;
- }
-
- public Object getConnectionFactory() {
- return optionConnectionFactory;
- }
-
- public void setConnectionFactory(Object connectionFactory) {
- this.optionConnectionFactory = connectionFactory;
- }
-
- public String getConnectionFactory2Name() {
- return optionConnectionFactory2Name;
- }
-
- public void setConnectionFactory2Name(String connectionFactory2Name) {
- this.optionConnectionFactory2Name = connectionFactory2Name;
- }
-
- public Object getConnectionFactory2() {
- return optionConnectionFactory2;
- }
-
- public void setConnectionFactory2(Object connectionFactory2) {
- this.optionConnectionFactory2 = connectionFactory2;
- }
-
- public boolean getMultithreaded() {
- return optionMultithreaded;
- }
-
- public void setMultithreaded(boolean multithreaded) {
- this.optionMultithreaded = multithreaded;
- }
-
- public String getMapping() {
- return optionMapping;
- }
-
- public void setMapping(String mapping) {
- this.optionMapping = mapping;
- }
-
- public boolean getOptimistic() {
- return optionOptimistic;
- }
-
- public void setOptimistic(boolean optimistic) {
- this.optionOptimistic = optimistic;
- }
-
- public boolean getRetainValues() {
- return optionRetainValues;
- }
-
- public void setRetainValues(boolean retainValues) {
- this.optionRetainValues = retainValues;
- }
-
- public boolean getRestoreValues() {
- return optionRestoreValues;
- }
-
- public void setRestoreValues(boolean restoreValues) {
- this.optionRestoreValues = restoreValues;
- }
-
- public boolean getNontransactionalRead() {
- return optionNontransactionalRead;
- }
-
- public void setNontransactionalRead(boolean nontransactionalRead) {
- this.optionNontransactionalRead = nontransactionalRead;
- }
-
- public boolean getNontransactionalWrite() {
- return optionNontransactionalWrite;
- }
-
- public void setNontransactionalWrite(boolean nontransactionalWrite) {
- this.optionNontransactionalWrite = nontransactionalWrite;
- }
-
- public boolean getIgnoreCache() {
- return optionIgnoreCache;
- }
-
- public void setIgnoreCache(boolean ignoreCache) {
- this.optionIgnoreCache = ignoreCache;
- }
-
- public boolean getDetachAllOnCommit() {
- return optionDetachAllOnCommit;
- }
-
- public void setDetachAllOnCommit(boolean detachAllOnCommit) {
- this.optionDetachAllOnCommit = detachAllOnCommit;
- }
-
- public boolean getCopyOnAttach() {
- return optionCopyOnAttach;
- }
-
- public void setCopyOnAttach(boolean copyOnAttach) {
- this.optionCopyOnAttach = copyOnAttach;
- }
-
- public String getName() {
- return optionName;
- }
-
- public void setName(String name) {
- this.optionName = name;
- }
-
- public String getPersistenceUnitName() {
- return optionPersistenceUnitName;
- }
-
- public void setPersistenceUnitName(String persistenceUnitName) {
- this.optionPersistenceUnitName = persistenceUnitName;
- }
-
- public String getServerTimeZoneID() {
- return optionServerTimeZoneID;
- }
-
- public void setServerTimeZoneID(String serverTimeZoneID) {
- this.optionServerTimeZoneID = serverTimeZoneID;
- }
-
- public String getTransactionType() {
- return optionTransactionType;
- }
-
- public void setTransactionType(String transactionType) {
- this.optionTransactionType = transactionType;
- }
-
- public boolean getReadOnly() {
- return optionReadOnly;
- }
-
- public void setReadOnly(boolean readOnly) {
- this.optionReadOnly = readOnly;
- }
-
- public String getTransactionIsolationLevel() {
- return optionTransactionIsolationLevel;
- }
-
- public void setTransactionIsolationLevel(String transactionIsolationLevel) {
- this.optionTransactionIsolationLevel = transactionIsolationLevel;
- }
-
- public Integer getDatastoreReadTimeoutMillis() {
- return optionDatastoreReadTimeoutMillis;
- }
-
- public void setDatastoreReadTimeoutMillis(Integer datastoreReadTimeoutMillis) {
- this.optionDatastoreReadTimeoutMillis = datastoreReadTimeoutMillis;
- }
-
- public Integer getDatastoreWriteTimeoutMillis() {
- return optionDatastoreWriteTimeoutMillis;
- }
-
- public void setDatastoreWriteTimeoutMillis(
- Integer datastoreWriteTimeoutMillis) {
- this.optionDatastoreWriteTimeoutMillis = datastoreWriteTimeoutMillis;
- }
-
- public void close() {
- throw new UnsupportedOperationException("not implemented");
- }
-
- public boolean isClosed() {
- return true;
- }
-
- public PersistenceManager getPersistenceManager() {
- throw new UnsupportedOperationException("not implemented");
- }
-
- public PersistenceManager getPersistenceManagerProxy() {
- throw new UnsupportedOperationException("not implemented");
- }
-
- public PersistenceManager getPersistenceManager(String userid,
- String password) {
- throw new UnsupportedOperationException("not implemented");
- }
-
- public Properties getProperties() {
- return properties;
- }
-
- public Collection<String> supportedOptions() {
- throw new UnsupportedOperationException("not implemented");
- }
-
- public DataStoreCache getDataStoreCache() {
- return new DataStoreCache() {
-
- public void evict(Object oid) {
- }
-
- public void evictAll() {
- }
-
- public void evictAll(Object... oids) {
- }
-
- public void evictAll(Collection oids) {
- }
-
- public void evictAll(Class pcClass, boolean subclasses) {
- }
-
- public void evictAll(boolean subclasses, Class pcClass) {
- }
-
- public void pin(Object oid) {
- }
-
- public void pinAll(Collection oids) {
- }
-
- public void pinAll(Object... oids) {
- }
-
- public void pinAll(Class pcClass, boolean subclasses) {
- }
-
- public void pinAll(boolean subclasses, Class pcClass) {
- }
-
- public void unpin(Object oid) {
- }
-
- public void unpinAll(Collection oids) {
- }
-
- public void unpinAll(Object... oids) {
- }
-
- public void unpinAll(Class pcClass, boolean subclasses) {
- }
-
- public void unpinAll(boolean subclasses, Class pcClass) {
- }
- };
- }
-
- public void addInstanceLifecycleListener(
- InstanceLifecycleListener listener, Class[] classes) {
- throw new UnsupportedOperationException("not implemented");
- }
-
- public void removeInstanceLifecycleListener(
- InstanceLifecycleListener listener) {
- throw new UnsupportedOperationException("not implemented");
- }
-
- public void addFetchGroups(FetchGroup... groups) {
- throw new UnsupportedOperationException("not implemented");
- }
-
- public void removeFetchGroups(FetchGroup... groups) {
- throw new UnsupportedOperationException("not implemented");
- }
-
- public void removeAllFetchGroups() {
- throw new UnsupportedOperationException("not implemented");
- }
-
- @SuppressWarnings("rawtypes")
- public FetchGroup getFetchGroup(Class cls, String name) {
- throw new UnsupportedOperationException("not implemented");
- }
-
- @SuppressWarnings("rawtypes")
- public Set getFetchGroups() {
- throw new UnsupportedOperationException("not implemented");
- }
-
- public void registerMetadata(JDOMetadata metadata) {
- throw new UnsupportedOperationException("not implemented");
- }
-
- public JDOMetadata newMetadata() {
- throw new UnsupportedOperationException("not implemented");
- }
-
- public TypeMetadata getMetadata(String className) {
- throw new UnsupportedOperationException("not implemented");
- }
-
- void setSpiResourceName(String spiPropertiesResourceName) {
- this.spiResourceName = spiPropertiesResourceName;
- }
-
- public String getSpiPropertiesResourceName() {
- return spiResourceName;
- }
-
- void setPersistenceManagerFactoryClass(String className) {
- this.persistenceManagerFactoryClassName = className;
- }
-
- public String getPersistenceManagerFactoryClass() {
- return this.persistenceManagerFactoryClassName;
- }
-
- void setProperty(String name, Object value) {
- String val = value.toString();
-
- if (name.equals(PROPERTY_PERSISTENCE_MANAGER_FACTORY_CLASS)) {
- setPersistenceManagerFactoryClass(val);
- return;
- }
- if (name.equals(PROPERTY_CONNECTION_DRIVER_NAME)) {
- setConnectionDriverName(val);
- return;
- }
- if (name.equals(PROPERTY_CONNECTION_FACTORY_NAME)) {
- setConnectionFactoryName(val);
- return;
- }
- if (name.equals(PROPERTY_CONNECTION_FACTORY2_NAME)) {
- setConnectionFactory2Name(val);
- return;
- }
- if (name.equals(PROPERTY_CONNECTION_PASSWORD)) {
- setConnectionPassword(val);
- return;
- }
- if (name.equals(PROPERTY_CONNECTION_URL)) {
- setConnectionURL(val);
- return;
- }
- if (name.equals(PROPERTY_CONNECTION_USER_NAME)) {
- setConnectionUserName(val);
- return;
- }
- if (name.equals(PROPERTY_IGNORE_CACHE)) {
- setCopyOnAttach(Boolean.parseBoolean(val));
- return;
- }
- if (name.equals(PROPERTY_DATASTORE_READ_TIMEOUT_MILLIS)) {
- setDatastoreReadTimeoutMillis(Integer.parseInt(val));
- return;
- }
- if (name.equals(PROPERTY_DATASTORE_WRITE_TIMEOUT_MILLIS)) {
- setDatastoreWriteTimeoutMillis(Integer.parseInt(val));
- return;
- }
- if (name.equals(PROPERTY_DETACH_ALL_ON_COMMIT)) {
- setDetachAllOnCommit(Boolean.parseBoolean(val));
- return;
- }
- if (name.equals(PROPERTY_IGNORE_CACHE)) {
- setIgnoreCache(Boolean.parseBoolean(val));
- return;
- }
- if (name.equals(PROPERTY_MAPPING)) {
- setMapping(val);
- return;
- }
- if (name.equals(PROPERTY_MULTITHREADED)) {
- setMultithreaded(Boolean.parseBoolean(val));
- return;
- }
- if (name.equals(PROPERTY_NAME)) {
- setName(val);
- return;
- }
- if (name.equals(PROPERTY_NONTRANSACTIONAL_READ)) {
- setNontransactionalRead(Boolean.parseBoolean(val));
- return;
- }
- if (name.equals(PROPERTY_NONTRANSACTIONAL_WRITE)) {
- setNontransactionalWrite(Boolean.parseBoolean(val));
- return;
- }
- if (name.equals(PROPERTY_OPTIMISTIC)) {
- setOptimistic(Boolean.parseBoolean(val));
- return;
- }
- if (name.equals(PROPERTY_PERSISTENCE_UNIT_NAME)) {
- setPersistenceUnitName(val);
- return;
- }
- if (name.equals(PROPERTY_READONLY)) {
- setReadOnly(Boolean.parseBoolean(val));
- return;
- }
- if (name.equals(PROPERTY_RESTORE_VALUES)) {
- setRestoreValues(Boolean.parseBoolean(val));
- return;
- }
- if (name.equals(PROPERTY_RETAIN_VALUES)) {
- setRetainValues(Boolean.parseBoolean(val));
- return;
- }
- if (name.equals(PROPERTY_SERVER_TIME_ZONE_ID)) {
- setServerTimeZoneID(val);
- return;
- }
- if (name.equals(PROPERTY_TRANSACTION_ISOLATION_LEVEL)) {
- setTransactionIsolationLevel(val);
- return;
- }
- if (name.equals(PROPERTY_TRANSACTION_TYPE)) {
- setTransactionType(val);
- return;
- }
- if (name.equals(PROPERTY_SPI_RESOURCE_NAME)) {
- setSpiResourceName(val);
- return;
- }
-
- throw new IllegalArgumentException("unhandled stub PMF property "
- + name);
- }
-
- void setProperties(Map properties) {
- for (Object key : properties.keySet()) {
- String k = key.toString();
- Object v = properties.get(key);
-
- this.properties.put(k, v);
- setProperty(k, v);
- }
- }
-
- public Collection<Class> getManagedClasses() {
- throw new UnsupportedOperationException("not implemented");
- }
-}
+package javax.jdo.stub;
+
+import java.util.Collection;
+import java.util.Map;
+import java.util.Properties;
+import java.util.Set;
+
+import javax.jdo.Constants;
+import javax.jdo.FetchGroup;
+import javax.jdo.PersistenceManager;
+import javax.jdo.PersistenceManagerFactory;
+import javax.jdo.datastore.DataStoreCache;
+import javax.jdo.listener.InstanceLifecycleListener;
+import javax.jdo.metadata.JDOMetadata;
+import javax.jdo.metadata.TypeMetadata;
+
+public class StubPMF implements PersistenceManagerFactory, Constants {
+
+ public static PersistenceManagerFactory getPersistenceManagerFactory(
+ Map props) {
+
+ StubPMF pmf = new StubPMF();
+
+ pmf.setProperties(props);
+
+ for (Object key : props.keySet()) {
+ if (!(key instanceof String)) {
+ continue;
+ }
+ String prop = (String) key;
+ if (!prop.startsWith("javax.jdo.")) {
+ continue;
+ }
+ pmf.setProperty(prop, props.get(prop));
+ }
+
+ return pmf;
+ }
+
+ public static PersistenceManagerFactory getPersistenceManagerFactory(
+ Map overrides, Map props) {
+
+ StubPMF pmf = new StubPMF();
+
+ pmf.setProperties(props);
+ pmf.setProperties(overrides);
+
+ return pmf;
+ }
+
+ String name;
+ String persistenceManagerFactoryClassName;
+ String spiResourceName;
+ String optionConnectionUserName;
+ String optionConnectionPassword;
+ String optionConnectionURL;
+ String optionConnectionDriverName;
+ String optionConnectionFactoryName;
+ Object optionConnectionFactory;
+ String optionConnectionFactory2Name;
+ Object optionConnectionFactory2;
+ boolean optionMultithreaded;
+ String optionMapping;
+ boolean optionOptimistic;
+ boolean optionRetainValues;
+ boolean optionRestoreValues;
+ boolean optionNontransactionalRead;
+ boolean optionNontransactionalWrite;
+ boolean optionIgnoreCache;
+ boolean optionDetachAllOnCommit;
+ boolean optionCopyOnAttach;
+ String optionName;
+ String optionPersistenceUnitName;
+ String optionServerTimeZoneID;
+ String optionTransactionType;
+ boolean optionReadOnly;
+ String optionTransactionIsolationLevel;
+ Integer optionDatastoreReadTimeoutMillis;
+ Integer optionDatastoreWriteTimeoutMillis;
+
+ Properties properties = new Properties();
+
+ public String getConnectionUserName() {
+ return optionConnectionUserName;
+ }
+
+ public void setConnectionUserName(String connectionUserName) {
+ this.optionConnectionUserName = connectionUserName;
+ }
+
+ public void setConnectionPassword(String connectionPassword) {
+ this.optionConnectionPassword = connectionPassword;
+ }
+
+ public String getConnectionURL() {
+ return optionConnectionURL;
+ }
+
+ public void setConnectionURL(String connectionURL) {
+ this.optionConnectionURL = connectionURL;
+ }
+
+ public String getConnectionDriverName() {
+ return optionConnectionDriverName;
+ }
+
+ public void setConnectionDriverName(String connectionDriverName) {
+ this.optionConnectionDriverName = connectionDriverName;
+ }
+
+ public String getConnectionFactoryName() {
+ return optionConnectionFactoryName;
+ }
+
+ public void setConnectionFactoryName(String connectionFactoryName) {
+ this.optionConnectionFactoryName = connectionFactoryName;
+ }
+
+ public Object getConnectionFactory() {
+ return optionConnectionFactory;
+ }
+
+ public void setConnectionFactory(Object connectionFactory) {
+ this.optionConnectionFactory = connectionFactory;
+ }
+
+ public String getConnectionFactory2Name() {
+ return optionConnectionFactory2Name;
+ }
+
+ public void setConnectionFactory2Name(String connectionFactory2Name) {
+ this.optionConnectionFactory2Name = connectionFactory2Name;
+ }
+
+ public Object getConnectionFactory2() {
+ return optionConnectionFactory2;
+ }
+
+ public void setConnectionFactory2(Object connectionFactory2) {
+ this.optionConnectionFactory2 = connectionFactory2;
+ }
+
+ public boolean getMultithreaded() {
+ return optionMultithreaded;
+ }
+
+ public void setMultithreaded(boolean multithreaded) {
+ this.optionMultithreaded = multithreaded;
+ }
+
+ public String getMapping() {
+ return optionMapping;
+ }
+
+ public void setMapping(String mapping) {
+ this.optionMapping = mapping;
+ }
+
+ public boolean getOptimistic() {
+ return optionOptimistic;
+ }
+
+ public void setOptimistic(boolean optimistic) {
+ this.optionOptimistic = optimistic;
+ }
+
+ public boolean getRetainValues() {
+ return optionRetainValues;
+ }
+
+ public void setRetainValues(boolean retainValues) {
+ this.optionRetainValues = retainValues;
+ }
+
+ public boolean getRestoreValues() {
+ return optionRestoreValues;
+ }
+
+ public void setRestoreValues(boolean restoreValues) {
+ this.optionRestoreValues = restoreValues;
+ }
+
+ public boolean getNontransactionalRead() {
+ return optionNontransactionalRead;
+ }
+
+ public void setNontransactionalRead(boolean nontransactionalRead) {
+ this.optionNontransactionalRead = nontransactionalRead;
+ }
+
+ public boolean getNontransactionalWrite() {
+ return optionNontransactionalWrite;
+ }
+
+ public void setNontransactionalWrite(boolean nontransactionalWrite) {
+ this.optionNontransactionalWrite = nontransactionalWrite;
+ }
+
+ public boolean getIgnoreCache() {
+ return optionIgnoreCache;
+ }
+
+ public void setIgnoreCache(boolean ignoreCache) {
+ this.optionIgnoreCache = ignoreCache;
+ }
+
+ public boolean getDetachAllOnCommit() {
+ return optionDetachAllOnCommit;
+ }
+
+ public void setDetachAllOnCommit(boolean detachAllOnCommit) {
+ this.optionDetachAllOnCommit = detachAllOnCommit;
+ }
+
+ public boolean getCopyOnAttach() {
+ return optionCopyOnAttach;
+ }
+
+ public void setCopyOnAttach(boolean copyOnAttach) {
+ this.optionCopyOnAttach = copyOnAttach;
+ }
+
+ public String getName() {
+ return optionName;
+ }
+
+ public void setName(String name) {
+ this.optionName = name;
+ }
+
+ public String getPersistenceUnitName() {
+ return optionPersistenceUnitName;
+ }
+
+ public void setPersistenceUnitName(String persistenceUnitName) {
+ this.optionPersistenceUnitName = persistenceUnitName;
+ }
+
+ public String getServerTimeZoneID() {
+ return optionServerTimeZoneID;
+ }
+
+ public void setServerTimeZoneID(String serverTimeZoneID) {
+ this.optionServerTimeZoneID = serverTimeZoneID;
+ }
+
+ public String getTransactionType() {
+ return optionTransactionType;
+ }
+
+ public void setTransactionType(String transactionType) {
+ this.optionTransactionType = transactionType;
+ }
+
+ public boolean getReadOnly() {
+ return optionReadOnly;
+ }
+
+ public void setReadOnly(boolean readOnly) {
+ this.optionReadOnly = readOnly;
+ }
+
+ public String getTransactionIsolationLevel() {
+ return optionTransactionIsolationLevel;
+ }
+
+ public void setTransactionIsolationLevel(String transactionIsolationLevel) {
+ this.optionTransactionIsolationLevel = transactionIsolationLevel;
+ }
+
+ public Integer getDatastoreReadTimeoutMillis() {
+ return optionDatastoreReadTimeoutMillis;
+ }
+
+ public void setDatastoreReadTimeoutMillis(Integer datastoreReadTimeoutMillis) {
+ this.optionDatastoreReadTimeoutMillis = datastoreReadTimeoutMillis;
+ }
+
+ public Integer getDatastoreWriteTimeoutMillis() {
+ return optionDatastoreWriteTimeoutMillis;
+ }
+
+ public void setDatastoreWriteTimeoutMillis(
+ Integer datastoreWriteTimeoutMillis) {
+ this.optionDatastoreWriteTimeoutMillis = datastoreWriteTimeoutMillis;
+ }
+
+ public void close() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public boolean isClosed() {
+ return true;
+ }
+
+ public PersistenceManager getPersistenceManager() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public PersistenceManager getPersistenceManagerProxy() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public PersistenceManager getPersistenceManager(String userid,
+ String password) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public Properties getProperties() {
+ return properties;
+ }
+
+ public Collection<String> supportedOptions() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public DataStoreCache getDataStoreCache() {
+ return new DataStoreCache() {
+
+ public void evict(Object oid) {
+ }
+
+ public void evictAll() {
+ }
+
+ public void evictAll(Object... oids) {
+ }
+
+ public void evictAll(Collection oids) {
+ }
+
+ public void evictAll(Class pcClass, boolean subclasses) {
+ }
+
+ public void evictAll(boolean subclasses, Class pcClass) {
+ }
+
+ public void pin(Object oid) {
+ }
+
+ public void pinAll(Collection oids) {
+ }
+
+ public void pinAll(Object... oids) {
+ }
+
+ public void pinAll(Class pcClass, boolean subclasses) {
+ }
+
+ public void pinAll(boolean subclasses, Class pcClass) {
+ }
+
+ public void unpin(Object oid) {
+ }
+
+ public void unpinAll(Collection oids) {
+ }
+
+ public void unpinAll(Object... oids) {
+ }
+
+ public void unpinAll(Class pcClass, boolean subclasses) {
+ }
+
+ public void unpinAll(boolean subclasses, Class pcClass) {
+ }
+ };
+ }
+
+ public void addInstanceLifecycleListener(
+ InstanceLifecycleListener listener, Class[] classes) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public void removeInstanceLifecycleListener(
+ InstanceLifecycleListener listener) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public void addFetchGroups(FetchGroup... groups) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public void removeFetchGroups(FetchGroup... groups) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public void removeAllFetchGroups() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ @SuppressWarnings("rawtypes")
+ public FetchGroup getFetchGroup(Class cls, String name) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ @SuppressWarnings("rawtypes")
+ public Set getFetchGroups() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public void registerMetadata(JDOMetadata metadata) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public JDOMetadata newMetadata() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ public TypeMetadata getMetadata(String className) {
+ throw new UnsupportedOperationException("not implemented");
+ }
+
+ void setSpiResourceName(String spiPropertiesResourceName) {
+ this.spiResourceName = spiPropertiesResourceName;
+ }
+
+ public String getSpiPropertiesResourceName() {
+ return spiResourceName;
+ }
+
+ void setPersistenceManagerFactoryClass(String className) {
+ this.persistenceManagerFactoryClassName = className;
+ }
+
+ public String getPersistenceManagerFactoryClass() {
+ return this.persistenceManagerFactoryClassName;
+ }
+
+ void setProperty(String name, Object value) {
+ String val = value.toString();
+
+ if (name.equals(PROPERTY_PERSISTENCE_MANAGER_FACTORY_CLASS)) {
+ setPersistenceManagerFactoryClass(val);
+ return;
+ }
+ if (name.equals(PROPERTY_CONNECTION_DRIVER_NAME)) {
+ setConnectionDriverName(val);
+ return;
+ }
+ if (name.equals(PROPERTY_CONNECTION_FACTORY_NAME)) {
+ setConnectionFactoryName(val);
+ return;
+ }
+ if (name.equals(PROPERTY_CONNECTION_FACTORY2_NAME)) {
+ setConnectionFactory2Name(val);
+ return;
+ }
+ if (name.equals(PROPERTY_CONNECTION_PASSWORD)) {
+ setConnectionPassword(val);
+ return;
+ }
+ if (name.equals(PROPERTY_CONNECTION_URL)) {
+ setConnectionURL(val);
+ return;
+ }
+ if (name.equals(PROPERTY_CONNECTION_USER_NAME)) {
+ setConnectionUserName(val);
+ return;
+ }
+ if (name.equals(PROPERTY_IGNORE_CACHE)) {
+ setCopyOnAttach(Boolean.parseBoolean(val));
+ return;
+ }
+ if (name.equals(PROPERTY_DATASTORE_READ_TIMEOUT_MILLIS)) {
+ setDatastoreReadTimeoutMillis(Integer.parseInt(val));
+ return;
+ }
+ if (name.equals(PROPERTY_DATASTORE_WRITE_TIMEOUT_MILLIS)) {
+ setDatastoreWriteTimeoutMillis(Integer.parseInt(val));
+ return;
+ }
+ if (name.equals(PROPERTY_DETACH_ALL_ON_COMMIT)) {
+ setDetachAllOnCommit(Boolean.parseBoolean(val));
+ return;
+ }
+ if (name.equals(PROPERTY_IGNORE_CACHE)) {
+ setIgnoreCache(Boolean.parseBoolean(val));
+ return;
+ }
+ if (name.equals(PROPERTY_MAPPING)) {
+ setMapping(val);
+ return;
+ }
+ if (name.equals(PROPERTY_MULTITHREADED)) {
+ setMultithreaded(Boolean.parseBoolean(val));
+ return;
+ }
+ if (name.equals(PROPERTY_NAME)) {
+ setName(val);
+ return;
+ }
+ if (name.equals(PROPERTY_NONTRANSACTIONAL_READ)) {
+ setNontransactionalRead(Boolean.parseBoolean(val));
+ return;
+ }
+ if (name.equals(PROPERTY_NONTRANSACTIONAL_WRITE)) {
+ setNontransactionalWrite(Boolean.parseBoolean(val));
+ return;
+ }
+ if (name.equals(PROPERTY_OPTIMISTIC)) {
+ setOptimistic(Boolean.parseBoolean(val));
+ return;
+ }
+ if (name.equals(PROPERTY_PERSISTENCE_UNIT_NAME)) {
+ setPersistenceUnitName(val);
+ return;
+ }
+ if (name.equals(PROPERTY_READONLY)) {
+ setReadOnly(Boolean.parseBoolean(val));
+ return;
+ }
+ if (name.equals(PROPERTY_RESTORE_VALUES)) {
+ setRestoreValues(Boolean.parseBoolean(val));
+ return;
+ }
+ if (name.equals(PROPERTY_RETAIN_VALUES)) {
+ setRetainValues(Boolean.parseBoolean(val));
+ return;
+ }
+ if (name.equals(PROPERTY_SERVER_TIME_ZONE_ID)) {
+ setServerTimeZoneID(val);
+ return;
+ }
+ if (name.equals(PROPERTY_TRANSACTION_ISOLATION_LEVEL)) {
+ setTransactionIsolationLevel(val);
+ return;
+ }
+ if (name.equals(PROPERTY_TRANSACTION_TYPE)) {
+ setTransactionType(val);
+ return;
+ }
+ if (name.equals(PROPERTY_SPI_RESOURCE_NAME)) {
+ setSpiResourceName(val);
+ return;
+ }
+
+ throw new IllegalArgumentException("unhandled stub PMF property "
+ + name);
+ }
+
+ void setProperties(Map properties) {
+ for (Object key : properties.keySet()) {
+ String k = key.toString();
+ Object v = properties.get(key);
+
+ this.properties.put(k, v);
+ setProperty(k, v);
+ }
+ }
+
+ public Collection<Class> getManagedClasses() {
+ throw new UnsupportedOperationException("not implemented");
+ }
+}
Modified: db/jdo/trunk/api/test/schema/jdoconfig/Negative00/META-INF/jdoconfig.xml
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/schema/jdoconfig/Negative00/META-INF/jdoconfig.xml?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/schema/jdoconfig/Negative00/META-INF/jdoconfig.xml (original)
+++ db/jdo/trunk/api/test/schema/jdoconfig/Negative00/META-INF/jdoconfig.xml Thu Mar 5 20:23:52 2015
@@ -1 +1 @@
-
+
Modified: db/jdo/trunk/api/test/schema/jdoconfig/Negative01/META-INF/jdoconfig.xml
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/schema/jdoconfig/Negative01/META-INF/jdoconfig.xml?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/schema/jdoconfig/Negative01/META-INF/jdoconfig.xml (original)
+++ db/jdo/trunk/api/test/schema/jdoconfig/Negative01/META-INF/jdoconfig.xml Thu Mar 5 20:23:52 2015
@@ -1,8 +1,8 @@
-<?xml version="1.0" encoding="utf-8"?>
-<jdoconfig
- xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-
- <!-- No PMFs defined -->
-</jdoconfig>
-
+<?xml version="1.0" encoding="utf-8"?>
+<jdoconfig
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+ <!-- No PMFs defined -->
+</jdoconfig>
+
Modified: db/jdo/trunk/api/test/schema/jdoconfig/Negative02/META-INF/jdoconfig.xml
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/schema/jdoconfig/Negative02/META-INF/jdoconfig.xml?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/schema/jdoconfig/Negative02/META-INF/jdoconfig.xml (original)
+++ db/jdo/trunk/api/test/schema/jdoconfig/Negative02/META-INF/jdoconfig.xml Thu Mar 5 20:23:52 2015
@@ -1,11 +1,11 @@
-<?xml version="1.0" encoding="utf-8"?>
-<jdoconfig
- xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-
- <!-- Duplicate anonymous PMFs present -->
- <persistence-manager-factory/>
- <persistence-manager-factory/>
-</jdoconfig>
-
-
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8"?>
+<jdoconfig
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+ <!-- Duplicate anonymous PMFs present -->
+ <persistence-manager-factory/>
+ <persistence-manager-factory/>
+</jdoconfig>
+
+
Modified: db/jdo/trunk/api/test/schema/jdoconfig/Negative03/META-INF/jdoconfig.xml
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/schema/jdoconfig/Negative03/META-INF/jdoconfig.xml?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/schema/jdoconfig/Negative03/META-INF/jdoconfig.xml (original)
+++ db/jdo/trunk/api/test/schema/jdoconfig/Negative03/META-INF/jdoconfig.xml Thu Mar 5 20:23:52 2015
@@ -1,20 +1,20 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Do not change any values in this file without also making changes to
- JDOHelperConfigTest.java, as that file depends on the values in this one!
--->
-<jdoconfig
- xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
-
- <!-- Duplicate named PMF -->
- <persistence-manager-factory
- name="name.negative3"/>
-
- <persistence-manager-factory
- name="name.negative3"/>
-
-</jdoconfig>
-
-
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Do not change any values in this file without also making changes to
+ JDOHelperConfigTest.java, as that file depends on the values in this one!
+-->
+<jdoconfig
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
+
+ <!-- Duplicate named PMF -->
+ <persistence-manager-factory
+ name="name.negative3"/>
+
+ <persistence-manager-factory
+ name="name.negative3"/>
+
+</jdoconfig>
+
+
Modified: db/jdo/trunk/api/test/schema/jdoconfig/Negative04/META-INF/jdoconfig.xml
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/schema/jdoconfig/Negative04/META-INF/jdoconfig.xml?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/schema/jdoconfig/Negative04/META-INF/jdoconfig.xml (original)
+++ db/jdo/trunk/api/test/schema/jdoconfig/Negative04/META-INF/jdoconfig.xml Thu Mar 5 20:23:52 2015
@@ -1,21 +1,21 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Do not change any values in this file without also making changes to
- JDOHelperConfigTest.java, as that file depends on the values in this one!
--->
-<jdoconfig
- xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
-
- <!-- Duplicate PMF name property in attribute & element -->
- <persistence-manager-factory
- name="persistence-unit-name.negative4.value0">
- <property
- name="name"
- value="name.negative4.value1"/>
-
- </persistence-manager-factory>
-</jdoconfig>
-
-
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Do not change any values in this file without also making changes to
+ JDOHelperConfigTest.java, as that file depends on the values in this one!
+-->
+<jdoconfig
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
+
+ <!-- Duplicate PMF name property in attribute & element -->
+ <persistence-manager-factory
+ name="persistence-unit-name.negative4.value0">
+ <property
+ name="name"
+ value="name.negative4.value1"/>
+
+ </persistence-manager-factory>
+</jdoconfig>
+
+
Modified: db/jdo/trunk/api/test/schema/jdoconfig/Negative05/META-INF/jdoconfig.xml
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/schema/jdoconfig/Negative05/META-INF/jdoconfig.xml?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/schema/jdoconfig/Negative05/META-INF/jdoconfig.xml (original)
+++ db/jdo/trunk/api/test/schema/jdoconfig/Negative05/META-INF/jdoconfig.xml Thu Mar 5 20:23:52 2015
@@ -1,21 +1,21 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Do not change any values in this file without also making changes to
- JDOHelperConfigTest.java, as that file depends on the values in this one!
--->
-<jdoconfig
- xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
-
- <!-- Duplicate property in attribute & element -->
- <persistence-manager-factory
- class="class.negative5.value0">
- <property
- name="class"
- value="class.negative5.value1"/>
-
- </persistence-manager-factory>
-</jdoconfig>
-
-
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Do not change any values in this file without also making changes to
+ JDOHelperConfigTest.java, as that file depends on the values in this one!
+-->
+<jdoconfig
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
+
+ <!-- Duplicate property in attribute & element -->
+ <persistence-manager-factory
+ class="class.negative5.value0">
+ <property
+ name="class"
+ value="class.negative5.value1"/>
+
+ </persistence-manager-factory>
+</jdoconfig>
+
+
Modified: db/jdo/trunk/api/test/schema/jdoconfig/Negative06/6a/META-INF/jdoconfig.xml
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/schema/jdoconfig/Negative06/6a/META-INF/jdoconfig.xml?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/schema/jdoconfig/Negative06/6a/META-INF/jdoconfig.xml (original)
+++ db/jdo/trunk/api/test/schema/jdoconfig/Negative06/6a/META-INF/jdoconfig.xml Thu Mar 5 20:23:52 2015
@@ -1,16 +1,16 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Do not change any values in this file without also making changes to
- JDOHelperConfigTest.java, as that file depends on the values in this one!
--->
-<jdoconfig
- xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
-
- <!-- Duplicate PMF in this file and another -->
- <persistence-manager-factory
- name="name.negative6"/>
-</jdoconfig>
-
-
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Do not change any values in this file without also making changes to
+ JDOHelperConfigTest.java, as that file depends on the values in this one!
+-->
+<jdoconfig
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
+
+ <!-- Duplicate PMF in this file and another -->
+ <persistence-manager-factory
+ name="name.negative6"/>
+</jdoconfig>
+
+
Modified: db/jdo/trunk/api/test/schema/jdoconfig/Negative06/6b/META-INF/jdoconfig.xml
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/schema/jdoconfig/Negative06/6b/META-INF/jdoconfig.xml?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/schema/jdoconfig/Negative06/6b/META-INF/jdoconfig.xml (original)
+++ db/jdo/trunk/api/test/schema/jdoconfig/Negative06/6b/META-INF/jdoconfig.xml Thu Mar 5 20:23:52 2015
@@ -1,16 +1,16 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Do not change any values in this file without also making changes to
- JDOHelperConfigTest.java, as that file depends on the values in this one!
--->
-<jdoconfig
- xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
-
- <!-- Duplicate PMF in this file and another -->
- <persistence-manager-factory
- name="name.negative6"/>
-</jdoconfig>
-
-
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Do not change any values in this file without also making changes to
+ JDOHelperConfigTest.java, as that file depends on the values in this one!
+-->
+<jdoconfig
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
+
+ <!-- Duplicate PMF in this file and another -->
+ <persistence-manager-factory
+ name="name.negative6"/>
+</jdoconfig>
+
+
Modified: db/jdo/trunk/api/test/schema/jdoconfig/Negative08/META-INF/services/javax.jdo.PersistenceManagerFactory
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/schema/jdoconfig/Negative08/META-INF/services/javax.jdo.PersistenceManagerFactory?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/schema/jdoconfig/Negative08/META-INF/services/javax.jdo.PersistenceManagerFactory (original)
+++ db/jdo/trunk/api/test/schema/jdoconfig/Negative08/META-INF/services/javax.jdo.PersistenceManagerFactory Thu Mar 5 20:23:52 2015
@@ -1,3 +1,3 @@
-# there are
-# only comments
-# in this file
\ No newline at end of file
+# there are
+# only comments
+# in this file
Modified: db/jdo/trunk/api/test/schema/jdoconfig/Negative09/9a/META-INF/jdoconfig.xml
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/schema/jdoconfig/Negative09/9a/META-INF/jdoconfig.xml?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/schema/jdoconfig/Negative09/9a/META-INF/jdoconfig.xml (original)
+++ db/jdo/trunk/api/test/schema/jdoconfig/Negative09/9a/META-INF/jdoconfig.xml Thu Mar 5 20:23:52 2015
@@ -14,4 +14,4 @@
</jdoconfig>
-
\ No newline at end of file
+
Modified: db/jdo/trunk/api/test/schema/jdoconfig/Pmfmapmap01/META-INF/jdoconfig.xml
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/schema/jdoconfig/Pmfmapmap01/META-INF/jdoconfig.xml?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/schema/jdoconfig/Pmfmapmap01/META-INF/jdoconfig.xml (original)
+++ db/jdo/trunk/api/test/schema/jdoconfig/Pmfmapmap01/META-INF/jdoconfig.xml Thu Mar 5 20:23:52 2015
@@ -1,29 +1,29 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Do not change any values in this file without also making changes to
- JDOHelperConfigTest.java, as that file depends on the values in this one!
--->
-<jdoconfig
- xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
-
- <!-- -->
- <persistence-manager-factory
- class="javax.jdo.stub.StubPMF">
- <property
- name="javax.jdo.option.ConnectionDriverName"
- value="Jane Doe"/>
- </persistence-manager-factory>
-
- <persistence-manager-factory
- name="BookSearch"
- class="javax.jdo.stub.StubPMF">
- <property
- name="javax.jdo.option.ConnectionDriverName"
- value="Larry"/>
- </persistence-manager-factory>
-
-</jdoconfig>
-
-
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Do not change any values in this file without also making changes to
+ JDOHelperConfigTest.java, as that file depends on the values in this one!
+-->
+<jdoconfig
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
+
+ <!-- -->
+ <persistence-manager-factory
+ class="javax.jdo.stub.StubPMF">
+ <property
+ name="javax.jdo.option.ConnectionDriverName"
+ value="Jane Doe"/>
+ </persistence-manager-factory>
+
+ <persistence-manager-factory
+ name="BookSearch"
+ class="javax.jdo.stub.StubPMF">
+ <property
+ name="javax.jdo.option.ConnectionDriverName"
+ value="Larry"/>
+ </persistence-manager-factory>
+
+</jdoconfig>
+
+
Modified: db/jdo/trunk/api/test/schema/jdoconfig/Positive00/META-INF/jdoconfig.xml
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/schema/jdoconfig/Positive00/META-INF/jdoconfig.xml?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/schema/jdoconfig/Positive00/META-INF/jdoconfig.xml (original)
+++ db/jdo/trunk/api/test/schema/jdoconfig/Positive00/META-INF/jdoconfig.xml Thu Mar 5 20:23:52 2015
@@ -1,260 +1,260 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Do not change any values in this file without also making changes to
- JDOHelperConfigTest.java, as that file depends on the values in this one!
--->
-<jdoconfig
- xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
-
- <!--
- Basic PMF config using attributes & listeners with no nonstandard
- properties.
- -->
- <persistence-manager-factory
- class="class.positive00.pmf0"
- connection-driver-name="connection-driver-name.positive00.pmf0"
- connection-factory-name="connection-factory-name.positive00.pmf0"
- connection-factory2-name="connection-factory2-name.positive00.pmf0"
- connection-password="connection-password.positive00.pmf0"
- connection-url="connection-url.positive00.pmf0"
- connection-user-name="connection-user-name.positive00.pmf0"
- ignore-cache="ignore-cache.positive00.pmf0"
- mapping="mapping.positive00.pmf0"
- multithreaded="multithreaded.positive00.pmf0"
- nontransactional-read="nontransactional-read.positive00.pmf0"
- nontransactional-write="nontransactional-write.positive00.pmf0"
- optimistic="optimistic.positive00.pmf0"
- name="name.positive00.pmf0"
- persistence-unit-name="persistence-unit-name.positive00.pmf0"
- restore-values="restore-values.positive00.pmf0"
- retain-values="retain-values.positive00.pmf0"
- detach-all-on-commit="detach-all-on-commit.positive00.pmf0"
- server-time-zone-id="server-time-zone-id.positive00.pmf0">
-
- <instance-lifecycle-listener
- listener="listener.positive00.pmf0.listener0"
- classes="classes.positive00.pmf0.classes0"
- />
- <instance-lifecycle-listener
- listener="listener.positive00.pmf0.listener1"
- classes="classes.positive00.pmf0.classes1"
- />
- </persistence-manager-factory>
-
- <!--
- Basic PMF config using only <property> elements with javax.jdo
- properties and no nonstandard properties.
- -->
- <persistence-manager-factory>
- <property
- name="javax.jdo.PersistenceManagerFactoryClass"
- value="class.positive00.pmf1"/>
- <property
- name="javax.jdo.option.ConnectionDriverName"
- value="connection-driver-name.positive00.pmf1"/>
- <property
- name="javax.jdo.option.ConnectionFactoryName"
- value="connection-factory-name.positive00.pmf1"/>
- <property
- name="javax.jdo.option.ConnectionFactory2Name"
- value="connection-factory2-name.positive00.pmf1"/>
- <property
- name="javax.jdo.option.ConnectionPassword"
- value="connection-password.positive00.pmf1"/>
- <property
- name="javax.jdo.option.ConnectionURL"
- value="connection-url.positive00.pmf1"/>
- <property
- name="javax.jdo.option.ConnectionUserName"
- value="connection-user-name.positive00.pmf1"/>
- <property
- name="javax.jdo.option.IgnoreCache"
- value="ignore-cache.positive00.pmf1"/>
- <property
- name="javax.jdo.option.Mapping"
- value="mapping.positive00.pmf1"/>
- <property
- name="javax.jdo.option.Multithreaded"
- value="multithreaded.positive00.pmf1"/>
- <property
- name="javax.jdo.option.NontransactionalRead"
- value="nontransactional-read.positive00.pmf1"/>
- <property
- name="javax.jdo.option.NontransactionalWrite"
- value="nontransactional-write.positive00.pmf1"/>
- <property
- name="javax.jdo.option.Optimistic"
- value="optimistic.positive00.pmf1"/>
- <property
- name="javax.jdo.option.Name"
- value="name.positive00.pmf1"/>
- <property
- name="javax.jdo.option.PersistenceUnitName"
- value="persistence-unit-name.positive00.pmf1"/>
- <property
- name="javax.jdo.option.DetachAllOnCommit"
- value="detach-all-on-commit.positive00.pmf1"/>
- <property
- name="javax.jdo.option.RestoreValues"
- value="restore-values.positive00.pmf1"/>
- <property
- name="javax.jdo.option.RetainValues"
- value="retain-values.positive00.pmf1"/>
- <property
- name="javax.jdo.option.ServerTimeZoneID"
- value="server-time-zone-id.positive00.pmf1"/>
-
- <instance-lifecycle-listener
- listener="listener.positive00.pmf1.listener0"
- classes="classes.positive00.pmf1.classes0"
- />
- <instance-lifecycle-listener
- listener="listener.positive00.pmf1.listener1"
- classes="classes.positive00.pmf1.classes1"
- />
- </persistence-manager-factory>
-
- <!--
- PMF config that uses nested <property> elements with standard
- attribute names instead of javax.jdo property names and no nonstandard
- properties.
- -->
- <persistence-manager-factory>
- <property
- name="class"
- value="class.positive00.pmf2"/>
- <property
- name="connection-driver-name"
- value="connection-driver-name.positive00.pmf2"/>
- <property
- name="connection-factory-name"
- value="connection-factory-name.positive00.pmf2"/>
- <property
- name="connection-factory2-name"
- value="connection-factory2-name.positive00.pmf2"/>
- <property
- name="connection-password"
- value="connection-password.positive00.pmf2"/>
- <property
- name="connection-url"
- value="connection-url.positive00.pmf2"/>
- <property
- name="connection-user-name"
- value="connection-user-name.positive00.pmf2"/>
- <property
- name="ignore-cache"
- value="ignore-cache.positive00.pmf2"/>
- <property
- name="mapping"
- value="mapping.positive00.pmf2"/>
- <property
- name="multithreaded"
- value="multithreaded.positive00.pmf2"/>
- <property
- name="nontransactional-read"
- value="nontransactional-read.positive00.pmf2"/>
- <property
- name="nontransactional-write"
- value="nontransactional-write.positive00.pmf2"/>
- <property
- name="optimistic"
- value="optimistic.positive00.pmf2"/>
- <property
- name="name"
- value="name.positive00.pmf2"/>
- <property
- name="persistence-unit-name"
- value="persistence-unit-name.positive00.pmf2"/>
- <property
- name="detach-all-on-commit"
- value="detach-all-on-commit.positive00.pmf2"/>
- <property
- name="restore-values"
- value="restore-values.positive00.pmf2"/>
- <property
- name="retain-values"
- value="retain-values.positive00.pmf2"/>
- <property
- name="javax.jdo.option.ServerTimeZoneID"
- value="server-time-zone-id.positive00.pmf2"/>
-
- <instance-lifecycle-listener
- listener="listener.positive00.pmf2.listener0"
- classes="classes.positive00.pmf2.classes0"
- />
- <instance-lifecycle-listener
- listener="listener.positive00.pmf2.listener1"
- classes="classes.positive00.pmf2.classes1"
- />
- </persistence-manager-factory>
-
- <!--
- PMF config using standard attributes plus nonstandard properties in
- <property> elements.
- -->
- <persistence-manager-factory
- class="class.positive00.pmf3"
- connection-driver-name="connection-driver-name.positive00.pmf3"
- connection-factory-name="connection-factory-name.positive00.pmf3"
- connection-factory2-name="connection-factory2-name.positive00.pmf3"
- connection-password="connection-password.positive00.pmf3"
- connection-url="connection-url.positive00.pmf3"
- connection-user-name="connection-user-name.positive00.pmf3"
- ignore-cache="ignore-cache.positive00.pmf3"
- mapping="mapping.positive00.pmf3"
- multithreaded="multithreaded.positive00.pmf3"
- nontransactional-read="nontransactional-read.positive00.pmf3"
- nontransactional-write="nontransactional-write.positive00.pmf3"
- optimistic="optimistic.positive00.pmf3"
- name="name.positive00.pmf3"
- persistence-unit-name="persistence-unit-name.positive00.pmf3"
- restore-values="restore-values.positive00.pmf3"
- retain-values="retain-values.positive00.pmf3"
- detach-all-on-commit="detach-all-on-commit.positive00.pmf3"
- server-time-zone-id="server-time-zone-id.positive00.pmf3">
-
- <property name="property.positive00.pmf3.name0"
- value="property.positive00.pmf3.value0"/>
- <property name="property.positive00.pmf3.name1"
- value="property.positive00.pmf3.value1"/>
-
- <instance-lifecycle-listener
- listener="listener.positive00.pmf3.listener0"
- classes="classes.positive00.pmf3.classes0"
- />
- <instance-lifecycle-listener
- listener="listener.positive00.pmf3.listener1"
- classes="classes.positive00.pmf3.classes1"
- />
- </persistence-manager-factory>
-
- <!--
- PMF config using standard attributes plus nonstandard attributes.
- -->
- <persistence-manager-factory
- class="class.positive00.pmf4"
- connection-driver-name="connection-driver-name.positive00.pmf4"
- connection-factory-name="connection-factory-name.positive00.pmf4"
- connection-factory2-name="connection-factory2-name.positive00.pmf4"
- connection-password="connection-password.positive00.pmf4"
- connection-url="connection-url.positive00.pmf4"
- connection-user-name="connection-user-name.positive00.pmf4"
- ignore-cache="ignore-cache.positive00.pmf4"
- mapping="mapping.positive00.pmf4"
- multithreaded="multithreaded.positive00.pmf4"
- nontransactional-read="nontransactional-read.positive00.pmf4"
- nontransactional-write="nontransactional-write.positive00.pmf4"
- optimistic="optimistic.positive00.pmf4"
- name="name.positive00.pmf4"
- persistence-unit-name="persistence-unit-name.positive00.pmf4"
- restore-values="restore-values.positive00.pmf4"
- retain-values="retain-values.positive00.pmf4"
- detach-all-on-commit="detach-all-on-commit.positive00.pmf4"
- server-time-zone-id="server-time-zone-id.positive00.pmf4"
-
- property.positive00.pmf4.name0="property.positive00.pmf4.value0"
- property.positive00.pmf4.name1="property.positive00.pmf4.value1"/>
-</jdoconfig>
-
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Do not change any values in this file without also making changes to
+ JDOHelperConfigTest.java, as that file depends on the values in this one!
+-->
+<jdoconfig
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
+
+ <!--
+ Basic PMF config using attributes & listeners with no nonstandard
+ properties.
+ -->
+ <persistence-manager-factory
+ class="class.positive00.pmf0"
+ connection-driver-name="connection-driver-name.positive00.pmf0"
+ connection-factory-name="connection-factory-name.positive00.pmf0"
+ connection-factory2-name="connection-factory2-name.positive00.pmf0"
+ connection-password="connection-password.positive00.pmf0"
+ connection-url="connection-url.positive00.pmf0"
+ connection-user-name="connection-user-name.positive00.pmf0"
+ ignore-cache="ignore-cache.positive00.pmf0"
+ mapping="mapping.positive00.pmf0"
+ multithreaded="multithreaded.positive00.pmf0"
+ nontransactional-read="nontransactional-read.positive00.pmf0"
+ nontransactional-write="nontransactional-write.positive00.pmf0"
+ optimistic="optimistic.positive00.pmf0"
+ name="name.positive00.pmf0"
+ persistence-unit-name="persistence-unit-name.positive00.pmf0"
+ restore-values="restore-values.positive00.pmf0"
+ retain-values="retain-values.positive00.pmf0"
+ detach-all-on-commit="detach-all-on-commit.positive00.pmf0"
+ server-time-zone-id="server-time-zone-id.positive00.pmf0">
+
+ <instance-lifecycle-listener
+ listener="listener.positive00.pmf0.listener0"
+ classes="classes.positive00.pmf0.classes0"
+ />
+ <instance-lifecycle-listener
+ listener="listener.positive00.pmf0.listener1"
+ classes="classes.positive00.pmf0.classes1"
+ />
+ </persistence-manager-factory>
+
+ <!--
+ Basic PMF config using only <property> elements with javax.jdo
+ properties and no nonstandard properties.
+ -->
+ <persistence-manager-factory>
+ <property
+ name="javax.jdo.PersistenceManagerFactoryClass"
+ value="class.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.ConnectionDriverName"
+ value="connection-driver-name.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.ConnectionFactoryName"
+ value="connection-factory-name.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.ConnectionFactory2Name"
+ value="connection-factory2-name.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.ConnectionPassword"
+ value="connection-password.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.ConnectionURL"
+ value="connection-url.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.ConnectionUserName"
+ value="connection-user-name.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.IgnoreCache"
+ value="ignore-cache.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.Mapping"
+ value="mapping.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.Multithreaded"
+ value="multithreaded.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.NontransactionalRead"
+ value="nontransactional-read.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.NontransactionalWrite"
+ value="nontransactional-write.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.Optimistic"
+ value="optimistic.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.Name"
+ value="name.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.PersistenceUnitName"
+ value="persistence-unit-name.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.DetachAllOnCommit"
+ value="detach-all-on-commit.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.RestoreValues"
+ value="restore-values.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.RetainValues"
+ value="retain-values.positive00.pmf1"/>
+ <property
+ name="javax.jdo.option.ServerTimeZoneID"
+ value="server-time-zone-id.positive00.pmf1"/>
+
+ <instance-lifecycle-listener
+ listener="listener.positive00.pmf1.listener0"
+ classes="classes.positive00.pmf1.classes0"
+ />
+ <instance-lifecycle-listener
+ listener="listener.positive00.pmf1.listener1"
+ classes="classes.positive00.pmf1.classes1"
+ />
+ </persistence-manager-factory>
+
+ <!--
+ PMF config that uses nested <property> elements with standard
+ attribute names instead of javax.jdo property names and no nonstandard
+ properties.
+ -->
+ <persistence-manager-factory>
+ <property
+ name="class"
+ value="class.positive00.pmf2"/>
+ <property
+ name="connection-driver-name"
+ value="connection-driver-name.positive00.pmf2"/>
+ <property
+ name="connection-factory-name"
+ value="connection-factory-name.positive00.pmf2"/>
+ <property
+ name="connection-factory2-name"
+ value="connection-factory2-name.positive00.pmf2"/>
+ <property
+ name="connection-password"
+ value="connection-password.positive00.pmf2"/>
+ <property
+ name="connection-url"
+ value="connection-url.positive00.pmf2"/>
+ <property
+ name="connection-user-name"
+ value="connection-user-name.positive00.pmf2"/>
+ <property
+ name="ignore-cache"
+ value="ignore-cache.positive00.pmf2"/>
+ <property
+ name="mapping"
+ value="mapping.positive00.pmf2"/>
+ <property
+ name="multithreaded"
+ value="multithreaded.positive00.pmf2"/>
+ <property
+ name="nontransactional-read"
+ value="nontransactional-read.positive00.pmf2"/>
+ <property
+ name="nontransactional-write"
+ value="nontransactional-write.positive00.pmf2"/>
+ <property
+ name="optimistic"
+ value="optimistic.positive00.pmf2"/>
+ <property
+ name="name"
+ value="name.positive00.pmf2"/>
+ <property
+ name="persistence-unit-name"
+ value="persistence-unit-name.positive00.pmf2"/>
+ <property
+ name="detach-all-on-commit"
+ value="detach-all-on-commit.positive00.pmf2"/>
+ <property
+ name="restore-values"
+ value="restore-values.positive00.pmf2"/>
+ <property
+ name="retain-values"
+ value="retain-values.positive00.pmf2"/>
+ <property
+ name="javax.jdo.option.ServerTimeZoneID"
+ value="server-time-zone-id.positive00.pmf2"/>
+
+ <instance-lifecycle-listener
+ listener="listener.positive00.pmf2.listener0"
+ classes="classes.positive00.pmf2.classes0"
+ />
+ <instance-lifecycle-listener
+ listener="listener.positive00.pmf2.listener1"
+ classes="classes.positive00.pmf2.classes1"
+ />
+ </persistence-manager-factory>
+
+ <!--
+ PMF config using standard attributes plus nonstandard properties in
+ <property> elements.
+ -->
+ <persistence-manager-factory
+ class="class.positive00.pmf3"
+ connection-driver-name="connection-driver-name.positive00.pmf3"
+ connection-factory-name="connection-factory-name.positive00.pmf3"
+ connection-factory2-name="connection-factory2-name.positive00.pmf3"
+ connection-password="connection-password.positive00.pmf3"
+ connection-url="connection-url.positive00.pmf3"
+ connection-user-name="connection-user-name.positive00.pmf3"
+ ignore-cache="ignore-cache.positive00.pmf3"
+ mapping="mapping.positive00.pmf3"
+ multithreaded="multithreaded.positive00.pmf3"
+ nontransactional-read="nontransactional-read.positive00.pmf3"
+ nontransactional-write="nontransactional-write.positive00.pmf3"
+ optimistic="optimistic.positive00.pmf3"
+ name="name.positive00.pmf3"
+ persistence-unit-name="persistence-unit-name.positive00.pmf3"
+ restore-values="restore-values.positive00.pmf3"
+ retain-values="retain-values.positive00.pmf3"
+ detach-all-on-commit="detach-all-on-commit.positive00.pmf3"
+ server-time-zone-id="server-time-zone-id.positive00.pmf3">
+
+ <property name="property.positive00.pmf3.name0"
+ value="property.positive00.pmf3.value0"/>
+ <property name="property.positive00.pmf3.name1"
+ value="property.positive00.pmf3.value1"/>
+
+ <instance-lifecycle-listener
+ listener="listener.positive00.pmf3.listener0"
+ classes="classes.positive00.pmf3.classes0"
+ />
+ <instance-lifecycle-listener
+ listener="listener.positive00.pmf3.listener1"
+ classes="classes.positive00.pmf3.classes1"
+ />
+ </persistence-manager-factory>
+
+ <!--
+ PMF config using standard attributes plus nonstandard attributes.
+ -->
+ <persistence-manager-factory
+ class="class.positive00.pmf4"
+ connection-driver-name="connection-driver-name.positive00.pmf4"
+ connection-factory-name="connection-factory-name.positive00.pmf4"
+ connection-factory2-name="connection-factory2-name.positive00.pmf4"
+ connection-password="connection-password.positive00.pmf4"
+ connection-url="connection-url.positive00.pmf4"
+ connection-user-name="connection-user-name.positive00.pmf4"
+ ignore-cache="ignore-cache.positive00.pmf4"
+ mapping="mapping.positive00.pmf4"
+ multithreaded="multithreaded.positive00.pmf4"
+ nontransactional-read="nontransactional-read.positive00.pmf4"
+ nontransactional-write="nontransactional-write.positive00.pmf4"
+ optimistic="optimistic.positive00.pmf4"
+ name="name.positive00.pmf4"
+ persistence-unit-name="persistence-unit-name.positive00.pmf4"
+ restore-values="restore-values.positive00.pmf4"
+ retain-values="retain-values.positive00.pmf4"
+ detach-all-on-commit="detach-all-on-commit.positive00.pmf4"
+ server-time-zone-id="server-time-zone-id.positive00.pmf4"
+
+ property.positive00.pmf4.name0="property.positive00.pmf4.value0"
+ property.positive00.pmf4.name1="property.positive00.pmf4.value1"/>
+</jdoconfig>
+
Modified: db/jdo/trunk/api/test/schema/jdoconfig/Positive01/1a/META-INF/jdoconfig.xml
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/schema/jdoconfig/Positive01/1a/META-INF/jdoconfig.xml?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/schema/jdoconfig/Positive01/1a/META-INF/jdoconfig.xml (original)
+++ db/jdo/trunk/api/test/schema/jdoconfig/Positive01/1a/META-INF/jdoconfig.xml Thu Mar 5 20:23:52 2015
@@ -1,17 +1,17 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Do not change any values in this file without also making changes to
- JDOHelperConfigTest.java, as that file depends on the values in this one!
--->
-<jdoconfig
- xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
-
- <!-- Duplicate PUs in this file and another, but not requested -->
- <persistence-manager-factory/>
-
- <persistence-manager-factory
- name="name.positive01"/>
-</jdoconfig>
-
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Do not change any values in this file without also making changes to
+ JDOHelperConfigTest.java, as that file depends on the values in this one!
+-->
+<jdoconfig
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
+
+ <!-- Duplicate PUs in this file and another, but not requested -->
+ <persistence-manager-factory/>
+
+ <persistence-manager-factory
+ name="name.positive01"/>
+</jdoconfig>
+
Modified: db/jdo/trunk/api/test/schema/jdoconfig/Positive01/1b/META-INF/jdoconfig.xml
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/schema/jdoconfig/Positive01/1b/META-INF/jdoconfig.xml?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/schema/jdoconfig/Positive01/1b/META-INF/jdoconfig.xml (original)
+++ db/jdo/trunk/api/test/schema/jdoconfig/Positive01/1b/META-INF/jdoconfig.xml Thu Mar 5 20:23:52 2015
@@ -1,15 +1,15 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Do not change any values in this file without also making changes to
- JDOHelperConfigTest.java, as that file depends on the values in this one!
--->
-<jdoconfig
- xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
-
- <!-- Duplicate PUs in this file and another, but not requested -->
- <persistence-manager-factory
- name="name.positive01"/>
-</jdoconfig>
-
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Do not change any values in this file without also making changes to
+ JDOHelperConfigTest.java, as that file depends on the values in this one!
+-->
+<jdoconfig
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
+
+ <!-- Duplicate PUs in this file and another, but not requested -->
+ <persistence-manager-factory
+ name="name.positive01"/>
+</jdoconfig>
+
Modified: db/jdo/trunk/api/test/schema/jdoconfig/Positive02/META-INF/jdoconfig.xml
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/test/schema/jdoconfig/Positive02/META-INF/jdoconfig.xml?rev=1664473&r1=1664472&r2=1664473&view=diff
==============================================================================
--- db/jdo/trunk/api/test/schema/jdoconfig/Positive02/META-INF/jdoconfig.xml (original)
+++ db/jdo/trunk/api/test/schema/jdoconfig/Positive02/META-INF/jdoconfig.xml Thu Mar 5 20:23:52 2015
@@ -1,14 +1,14 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Do not change any values in this file without also making changes to
- JDOHelperConfigTest.java, as that file depends on the values in this one!
--->
-<jdoconfig
- xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
-
- <!-- Duplicate PUs in this file and another, but not requested -->
- <persistence-manager-factory/>
-</jdoconfig>
-
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Do not change any values in this file without also making changes to
+ JDOHelperConfigTest.java, as that file depends on the values in this one!
+-->
+<jdoconfig
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
+
+ <!-- Duplicate PUs in this file and another, but not requested -->
+ <persistence-manager-factory/>
+</jdoconfig>
+
|