mirror of https://github.com/apache/openjpa.git
realized immediately after committing that the id belongs at the generic Configuration level, not at the OpenJPAConfiguration level.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475087 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bda2015398
commit
a5f3ae42bf
|
@ -1383,22 +1383,4 @@ public interface OpenJPAConfiguration
|
||||||
* configuration.
|
* configuration.
|
||||||
*/
|
*/
|
||||||
public StoreFacadeTypeRegistry getStoreFacadeTypeRegistry();
|
public StoreFacadeTypeRegistry getStoreFacadeTypeRegistry();
|
||||||
|
|
||||||
/**
|
|
||||||
* An environment-specific identifier for this configuration. This
|
|
||||||
* might correspond to a JPA persistence-unit name, or to some other
|
|
||||||
* more-unique value available in the current environment.
|
|
||||||
*
|
|
||||||
* @since 0.9.7
|
|
||||||
*/
|
|
||||||
public String getId();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* An environment-specific identifier for this configuration. This
|
|
||||||
* might correspond to a JPA persistence-unit name, or to some other
|
|
||||||
* more-unique value available in the current environment.
|
|
||||||
*
|
|
||||||
* @since 0.9.7
|
|
||||||
*/
|
|
||||||
public void setId(String id);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,7 +127,6 @@ public class OpenJPAConfigurationImpl
|
||||||
public ObjectValue orphanedKeyPlugin;
|
public ObjectValue orphanedKeyPlugin;
|
||||||
public ObjectValue compatibilityPlugin;
|
public ObjectValue compatibilityPlugin;
|
||||||
public QueryCompilationCacheValue queryCompilationCachePlugin;
|
public QueryCompilationCacheValue queryCompilationCachePlugin;
|
||||||
public StringValue id;
|
|
||||||
|
|
||||||
// custom values
|
// custom values
|
||||||
public BrokerFactoryValue brokerFactoryPlugin;
|
public BrokerFactoryValue brokerFactoryPlugin;
|
||||||
|
@ -467,8 +466,6 @@ public class OpenJPAConfigurationImpl
|
||||||
"getQueryCompilationCacheInstance");
|
"getQueryCompilationCacheInstance");
|
||||||
addValue(queryCompilationCachePlugin);
|
addValue(queryCompilationCachePlugin);
|
||||||
|
|
||||||
addString("Id");
|
|
||||||
|
|
||||||
// initialize supported options that some runtimes may not support
|
// initialize supported options that some runtimes may not support
|
||||||
supportedOptions.add(OPTION_NONTRANS_READ);
|
supportedOptions.add(OPTION_NONTRANS_READ);
|
||||||
supportedOptions.add(OPTION_OPTIMISTIC);
|
supportedOptions.add(OPTION_OPTIMISTIC);
|
||||||
|
@ -1408,15 +1405,6 @@ public class OpenJPAConfigurationImpl
|
||||||
return _storeFacadeRegistry;
|
return _storeFacadeRegistry;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getId() {
|
|
||||||
return id.get();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(String id) {
|
|
||||||
assertNotReadOnly();
|
|
||||||
this.id.set(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void instantiateAll() {
|
public void instantiateAll() {
|
||||||
super.instantiateAll();
|
super.instantiateAll();
|
||||||
getMetaDataRepositoryInstance();
|
getMetaDataRepositoryInstance();
|
||||||
|
|
|
@ -557,15 +557,6 @@ QueryCompilationCache-displayorder: 50
|
||||||
QueryCompilationCache-expert: true
|
QueryCompilationCache-expert: true
|
||||||
QueryCompilationCache-interface: java.util.Map
|
QueryCompilationCache-interface: java.util.Map
|
||||||
|
|
||||||
Id-name: Configuration ID
|
|
||||||
Id-desc: An environment-specific identifier for this configuration. This \
|
|
||||||
might correspond to a JPA persistence-unit name, or to some other \
|
|
||||||
more-unique value available in the current environment.
|
|
||||||
Id-type: General
|
|
||||||
Id-cat: Persistence
|
|
||||||
Id-displayorder: 50
|
|
||||||
Id-expert: true
|
|
||||||
|
|
||||||
no-named-cf: use a DataSource bound to JNDI
|
no-named-cf: use a DataSource bound to JNDI
|
||||||
diff-specs: Attempt to configure for multiple specifications. Was configured \
|
diff-specs: Attempt to configure for multiple specifications. Was configured \
|
||||||
for "{0}". Attempt to now configure for "{1}". This attempt will be \
|
for "{0}". Attempt to now configure for "{1}". This attempt will be \
|
||||||
|
|
|
@ -115,6 +115,25 @@ public interface Configuration
|
||||||
*/
|
*/
|
||||||
public Log getConfigurationLog();
|
public Log getConfigurationLog();
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An environment-specific identifier for this configuration. This
|
||||||
|
* might correspond to a JPA persistence-unit name, or to some other
|
||||||
|
* more-unique value available in the current environment.
|
||||||
|
*
|
||||||
|
* @since 0.9.7
|
||||||
|
*/
|
||||||
|
public String getId();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An environment-specific identifier for this configuration. This
|
||||||
|
* might correspond to a JPA persistence-unit name, or to some other
|
||||||
|
* more-unique value available in the current environment.
|
||||||
|
*
|
||||||
|
* @since 0.9.7
|
||||||
|
*/
|
||||||
|
public void setId(String id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the {@link Value} for the given property, or null if none.
|
* Return the {@link Value} for the given property, or null if none.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -101,6 +101,7 @@ public class ConfigurationImpl
|
||||||
(ConfigurationImpl.class);
|
(ConfigurationImpl.class);
|
||||||
|
|
||||||
public ObjectValue logFactoryPlugin;
|
public ObjectValue logFactoryPlugin;
|
||||||
|
public StringValue id;
|
||||||
|
|
||||||
private String _product = null;
|
private String _product = null;
|
||||||
private boolean _readOnly = false;
|
private boolean _readOnly = false;
|
||||||
|
@ -146,6 +147,8 @@ public class ConfigurationImpl
|
||||||
logFactoryPlugin.setString(aliases[0]);
|
logFactoryPlugin.setString(aliases[0]);
|
||||||
logFactoryPlugin.setInstantiatingGetter("getLogFactory");
|
logFactoryPlugin.setInstantiatingGetter("getLogFactory");
|
||||||
|
|
||||||
|
id = addString("Id");
|
||||||
|
|
||||||
if (loadGlobals)
|
if (loadGlobals)
|
||||||
loadGlobals();
|
loadGlobals();
|
||||||
}
|
}
|
||||||
|
@ -209,6 +212,15 @@ public class ConfigurationImpl
|
||||||
return getLogFactory().getLog(category);
|
return getLogFactory().getLog(category);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id.get();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
assertNotReadOnly();
|
||||||
|
this.id.set(id);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the logging channel <code>openjpa.Runtime</code> by default.
|
* Returns the logging channel <code>openjpa.Runtime</code> by default.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue