db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject svn commit: r1194907 - /db/jdo/trunk/api/test/java/javax/jdo/stub/StubPMF.java
Date Sat, 29 Oct 2011 15:43:43 GMT
Author: madams
Date: Sat Oct 29 15:43:42 2011
New Revision: 1194907

URL: http://svn.apache.org/viewvc?rev=1194907&view=rev
Log:
removed @Override to keep eclipse from complaining

Modified:
    db/jdo/trunk/api/test/java/javax/jdo/stub/StubPMF.java

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=1194907&r1=1194906&r2=1194907&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 Sat Oct 29 15:43:42 2011
@@ -18,11 +18,11 @@ public class StubPMF implements Persiste
 
     public static PersistenceManagerFactory getPersistenceManagerFactory(
 	    Map props) {
-	
+
 	StubPMF pmf = new StubPMF();
 
 	pmf.setProperties(props);
-	
+
 	for (Object key : props.keySet()) {
 	    if (!(key instanceof String)) {
 		continue;
@@ -39,12 +39,12 @@ public class StubPMF implements Persiste
 
     public static PersistenceManagerFactory getPersistenceManagerFactory(
 	    Map overrides, Map props) {
-	
+
 	StubPMF pmf = new StubPMF();
-	
+
 	pmf.setProperties(props);
 	pmf.setProperties(overrides);
-	
+
 	return pmf;
     }
 
@@ -80,418 +80,333 @@ public class StubPMF implements Persiste
 
     Properties properties = new Properties();
 
-    @Override
     public String getConnectionUserName() {
 	return optionConnectionUserName;
     }
 
-    @Override
     public void setConnectionUserName(String connectionUserName) {
 	this.optionConnectionUserName = connectionUserName;
     }
 
-    @Override
     public void setConnectionPassword(String connectionPassword) {
 	this.optionConnectionPassword = connectionPassword;
     }
 
-    @Override
     public String getConnectionURL() {
 	return optionConnectionURL;
     }
 
-    @Override
     public void setConnectionURL(String connectionURL) {
 	this.optionConnectionURL = connectionURL;
     }
 
-    @Override
     public String getConnectionDriverName() {
 	return optionConnectionDriverName;
     }
 
-    @Override
     public void setConnectionDriverName(String connectionDriverName) {
 	this.optionConnectionDriverName = connectionDriverName;
     }
 
-    @Override
     public String getConnectionFactoryName() {
 	return optionConnectionFactoryName;
     }
 
-    @Override
     public void setConnectionFactoryName(String connectionFactoryName) {
 	this.optionConnectionFactoryName = connectionFactoryName;
     }
 
-    @Override
     public Object getConnectionFactory() {
 	return optionConnectionFactory;
     }
 
-    @Override
     public void setConnectionFactory(Object connectionFactory) {
 	this.optionConnectionFactory = connectionFactory;
     }
 
-    @Override
     public String getConnectionFactory2Name() {
 	return optionConnectionFactory2Name;
     }
 
-    @Override
     public void setConnectionFactory2Name(String connectionFactory2Name) {
 	this.optionConnectionFactory2Name = connectionFactory2Name;
     }
 
-    @Override
     public Object getConnectionFactory2() {
 	return optionConnectionFactory2;
     }
 
-    @Override
     public void setConnectionFactory2(Object connectionFactory2) {
 	this.optionConnectionFactory2 = connectionFactory2;
     }
 
-    @Override
     public boolean getMultithreaded() {
 	return optionMultithreaded;
     }
 
-    @Override
     public void setMultithreaded(boolean multithreaded) {
 	this.optionMultithreaded = multithreaded;
     }
 
-    @Override
     public String getMapping() {
 	return optionMapping;
     }
 
-    @Override
     public void setMapping(String mapping) {
 	this.optionMapping = mapping;
     }
 
-    @Override
     public boolean getOptimistic() {
 	return optionOptimistic;
     }
 
-    @Override
     public void setOptimistic(boolean optimistic) {
 	this.optionOptimistic = optimistic;
     }
 
-    @Override
     public boolean getRetainValues() {
 	return optionRetainValues;
     }
 
-    @Override
     public void setRetainValues(boolean retainValues) {
 	this.optionRetainValues = retainValues;
     }
 
-    @Override
     public boolean getRestoreValues() {
 	return optionRestoreValues;
     }
 
-    @Override
     public void setRestoreValues(boolean restoreValues) {
 	this.optionRestoreValues = restoreValues;
     }
 
-    @Override
     public boolean getNontransactionalRead() {
 	return optionNontransactionalRead;
     }
 
-    @Override
     public void setNontransactionalRead(boolean nontransactionalRead) {
 	this.optionNontransactionalRead = nontransactionalRead;
     }
 
-    @Override
     public boolean getNontransactionalWrite() {
 	return optionNontransactionalWrite;
     }
 
-    @Override
     public void setNontransactionalWrite(boolean nontransactionalWrite) {
 	this.optionNontransactionalWrite = nontransactionalWrite;
     }
 
-    @Override
     public boolean getIgnoreCache() {
 	return optionIgnoreCache;
     }
 
-    @Override
     public void setIgnoreCache(boolean ignoreCache) {
 	this.optionIgnoreCache = ignoreCache;
     }
 
-    @Override
     public boolean getDetachAllOnCommit() {
 	return optionDetachAllOnCommit;
     }
 
-    @Override
     public void setDetachAllOnCommit(boolean detachAllOnCommit) {
 	this.optionDetachAllOnCommit = detachAllOnCommit;
     }
 
-    @Override
     public boolean getCopyOnAttach() {
 	return optionCopyOnAttach;
     }
 
-    @Override
     public void setCopyOnAttach(boolean copyOnAttach) {
 	this.optionCopyOnAttach = copyOnAttach;
     }
 
-    @Override
     public String getName() {
 	return optionName;
     }
 
-    @Override
     public void setName(String name) {
 	this.optionName = name;
     }
 
-    @Override
     public String getPersistenceUnitName() {
 	return optionPersistenceUnitName;
     }
 
-    @Override
     public void setPersistenceUnitName(String persistenceUnitName) {
 	this.optionPersistenceUnitName = persistenceUnitName;
     }
 
-    @Override
     public String getServerTimeZoneID() {
 	return optionServerTimeZoneID;
     }
 
-    @Override
     public void setServerTimeZoneID(String serverTimeZoneID) {
 	this.optionServerTimeZoneID = serverTimeZoneID;
     }
 
-    @Override
     public String getTransactionType() {
 	return optionTransactionType;
     }
 
-    @Override
     public void setTransactionType(String transactionType) {
 	this.optionTransactionType = transactionType;
     }
 
-    @Override
     public boolean getReadOnly() {
 	return optionReadOnly;
     }
 
-    @Override
     public void setReadOnly(boolean readOnly) {
 	this.optionReadOnly = readOnly;
     }
 
-    @Override
     public String getTransactionIsolationLevel() {
 	return optionTransactionIsolationLevel;
     }
 
-    @Override
     public void setTransactionIsolationLevel(String transactionIsolationLevel) {
 	this.optionTransactionIsolationLevel = transactionIsolationLevel;
     }
 
-    @Override
     public Integer getDatastoreReadTimeoutMillis() {
 	return optionDatastoreReadTimeoutMillis;
     }
 
-    @Override
     public void setDatastoreReadTimeoutMillis(Integer datastoreReadTimeoutMillis) {
 	this.optionDatastoreReadTimeoutMillis = datastoreReadTimeoutMillis;
     }
 
-    @Override
     public Integer getDatastoreWriteTimeoutMillis() {
 	return optionDatastoreWriteTimeoutMillis;
     }
 
-    @Override
     public void setDatastoreWriteTimeoutMillis(
 	    Integer datastoreWriteTimeoutMillis) {
 	this.optionDatastoreWriteTimeoutMillis = datastoreWriteTimeoutMillis;
     }
 
-    @Override
     public void close() {
 	throw new UnsupportedOperationException("not implemented");
     }
 
-    @Override
     public boolean isClosed() {
 	return true;
     }
 
-    @Override
     public PersistenceManager getPersistenceManager() {
 	throw new UnsupportedOperationException("not implemented");
     }
 
-    @Override
     public PersistenceManager getPersistenceManagerProxy() {
 	throw new UnsupportedOperationException("not implemented");
     }
 
-    @Override
     public PersistenceManager getPersistenceManager(String userid,
 	    String password) {
 	throw new UnsupportedOperationException("not implemented");
     }
 
-    @Override
     public Properties getProperties() {
 	return properties;
     }
 
-    @Override
     public Collection<String> supportedOptions() {
 	throw new UnsupportedOperationException("not implemented");
     }
 
-    @Override
     public DataStoreCache getDataStoreCache() {
 	return new DataStoreCache() {
 
-	    @Override
 	    public void evict(Object oid) {
 	    }
 
-	    @Override
 	    public void evictAll() {
 	    }
 
-	    @Override
 	    public void evictAll(Object... oids) {
 	    }
 
-	    @Override
 	    public void evictAll(Collection oids) {
 	    }
 
-	    @Override
 	    public void evictAll(Class pcClass, boolean subclasses) {
 	    }
 
-	    @Override
 	    public void evictAll(boolean subclasses, Class pcClass) {
 	    }
 
-	    @Override
 	    public void pin(Object oid) {
 	    }
 
-	    @Override
 	    public void pinAll(Collection oids) {
 	    }
 
-	    @Override
 	    public void pinAll(Object... oids) {
 	    }
 
-	    @Override
 	    public void pinAll(Class pcClass, boolean subclasses) {
 	    }
 
-	    @Override
 	    public void pinAll(boolean subclasses, Class pcClass) {
 	    }
 
-	    @Override
 	    public void unpin(Object oid) {
 	    }
 
-	    @Override
 	    public void unpinAll(Collection oids) {
 	    }
 
-	    @Override
 	    public void unpinAll(Object... oids) {
 	    }
 
-	    @Override
 	    public void unpinAll(Class pcClass, boolean subclasses) {
 	    }
 
-	    @Override
 	    public void unpinAll(boolean subclasses, Class pcClass) {
 	    }
 	};
     }
 
-    @Override
     public void addInstanceLifecycleListener(
 	    InstanceLifecycleListener listener, Class[] classes) {
 	throw new UnsupportedOperationException("not implemented");
     }
 
-    @Override
     public void removeInstanceLifecycleListener(
 	    InstanceLifecycleListener listener) {
 	throw new UnsupportedOperationException("not implemented");
     }
 
-    @Override
     public void addFetchGroups(FetchGroup... groups) {
 	throw new UnsupportedOperationException("not implemented");
     }
 
-    @Override
     public void removeFetchGroups(FetchGroup... groups) {
 	throw new UnsupportedOperationException("not implemented");
     }
 
-    @Override
     public void removeAllFetchGroups() {
 	throw new UnsupportedOperationException("not implemented");
     }
 
     @SuppressWarnings("rawtypes")
-    @Override
     public FetchGroup getFetchGroup(Class cls, String name) {
 	throw new UnsupportedOperationException("not implemented");
     }
 
     @SuppressWarnings("rawtypes")
-    @Override
     public Set getFetchGroups() {
 	throw new UnsupportedOperationException("not implemented");
     }
 
-    @Override
     public void registerMetadata(JDOMetadata metadata) {
 	throw new UnsupportedOperationException("not implemented");
     }
 
-    @Override
     public JDOMetadata newMetadata() {
 	throw new UnsupportedOperationException("not implemented");
     }
 
-    @Override
     public TypeMetadata getMetadata(String className) {
 	throw new UnsupportedOperationException("not implemented");
     }
@@ -499,6 +414,7 @@ public class StubPMF implements Persiste
     void setSpiResourceName(String spiPropertiesResourceName) {
 	this.spiResourceName = spiPropertiesResourceName;
     }
+
     public String getSpiPropertiesResourceName() {
 	return spiResourceName;
     }
@@ -506,6 +422,7 @@ public class StubPMF implements Persiste
     void setPersistenceManagerFactoryClass(String className) {
 	this.persistenceManagerFactoryClassName = className;
     }
+
     public String getPersistenceManagerFactoryClass() {
 	return this.persistenceManagerFactoryClassName;
     }
@@ -618,19 +535,19 @@ public class StubPMF implements Persiste
 	    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);
 	}
-	
+
     }
 }



Mime
View raw message