|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.solarmetric.kodo.conf.DefaultConfiguration
|
+--com.solarmetric.kodo.conf.SimpleConfiguration
SimpleConfiguration is an implementation of Configuration with a bean-like interface. Subclasses can choose to obtain configuration information from JNDI, Properties, a Bean-builder, etc.
| Field Summary | |
|---|---|
protected static boolean |
BASIC_OPTION
|
protected static boolean |
EXPERT_OPTION
|
protected static String |
TYPE_CONNECTING
|
protected static String |
TYPE_GENERAL
|
protected static String |
TYPE_JDO
|
protected static String |
TYPE_OPTIMIZATION
|
| Fields inherited from interface com.solarmetric.kodo.conf.Configuration |
|---|
LOG_CACHE, LOG_CONF, LOG_ENHANCE, LOG_METADATA, LOG_QUERY, LOG_RUNTIME |
| Fields inherited from interface java.beans.BeanInfo |
|---|
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
| Constructor Summary | |
|---|---|
SimpleConfiguration()
Default constructor. |
|
SimpleConfiguration(boolean loadDefaults)
Constructor. |
|
SimpleConfiguration(Properties props)
Constructor. |
|
| Method Summary | |
|---|---|
protected BooleanValue |
addValue(String property,
Class clazz,
boolean def,
String type,
boolean expert)
|
protected IntegerValue |
addValue(String property,
Class clazz,
int def,
String type,
boolean expert)
|
protected ClassValue |
addValue(String property,
Class clazz,
String def,
Class intf,
String type,
boolean expert)
|
protected ClassValue |
addValue(String property,
Class clazz,
String def,
String[] implementors,
Class intf,
String type,
boolean expert)
|
protected StringValue |
addValue(String property,
Class clazz,
String def,
String[] allowed,
String type,
boolean expert)
|
protected StringValue |
addValue(String property,
Class clazz,
String def,
String type,
boolean expert)
|
BeanInfo[] |
getAdditionalBeanInfo()
|
BeanDescriptor |
getBeanDescriptor()
|
int |
getCacheReferenceSize()
Returns the number of hard references to objects that the PersistenceManager's cache will retain. |
String |
getConnectionDriverName()
Class name of the Connection Driver. |
Object |
getConnectionFactory()
The connection factory, possibly from JNDI. |
Object |
getConnectionFactory2()
The connection factory, possibly from JNDI. |
String |
getConnectionFactory2Name()
The name for the second data store connection factory. |
String |
getConnectionFactoryName()
The name for the data store connection factory. |
String |
getConnectionPassword()
The password for the data store connection. |
String |
getConnectionProperties()
Get the properties string to apply to the connection factory. |
Properties |
getConnectionPropertiesProps()
Returns the ConnectionFactory properties as a Properties
object. |
String |
getConnectionURL()
The URL for the data store connection. |
String |
getConnectionUserName()
The user name for the data store connection. |
DataCache |
getDataCache()
The L2 data cache. |
String |
getDataCacheClass()
The class to use for level-2 data store caching. |
String |
getDataCacheProperties()
Configuration options for the data cache. |
int |
getDefaultEventIndex()
|
int |
getDefaultFetchBatchSize()
Get the size of the batch that will be pre-selected when accessing elements in a Query result. |
int |
getDefaultFetchThreshold()
Get the threshold below which result lists will be completely instantiated upon theircreation. |
String |
getDefaultPersistenceManagerFactoryClass()
|
int |
getDefaultPropertyIndex()
|
boolean |
getEnableQueryExtensions()
Allow filter extensions to be used |
EventSetDescriptor[] |
getEventSetDescriptors()
|
Image |
getIcon(int kind)
|
boolean |
getIgnoreCache()
The default IgnoreCache setting for all PersistenceManager instances obtained from this factory. |
protected String[] |
getKnownConnectionURLList()
Allows a subclass to provide a list of example drivers, for use in a graphical component. |
protected String[] |
getKnownDriverList()
Allows a subclass to provide a list of example drivers, for use in a graphical component. |
String |
getLicenseKey()
The runtime license key for Kodo. |
int |
getMaxPool()
The maximum number of connections in the connection pool. |
MethodDescriptor[] |
getMethodDescriptors()
|
int |
getMinPool()
The minimum number of connections in the connection pool. |
int |
getMsWait()
The number of milliseconds to wait for an available connection from the connection pool before throwing a JDODatastoreException. |
boolean |
getMultithreaded()
The default Multithreaded setting for all PersistenceManager instances obtained from this factory. |
boolean |
getNontransactionalRead()
The default NontransactionalRead setting for all PersistenceManager instances obtained from this factory. |
boolean |
getNontransactionalWrite()
The default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory. |
boolean |
getOptimistic()
The default Optimistic setting for all PersistenceManager instances obtained from this factory. |
String |
getPersistenceManagerClass()
The class name of the PersistenceManager
type to create. |
String |
getPersistenceManagerFactoryClass()
Class name of the PersistenceManagerFactoryClass implementation |
String |
getPersistenceManagerProperties()
Configuration options for the persistence manager. |
String[] |
getPersistentTypeNames()
Returns an array of names of the persistent types in the PersistentTypes property, or null if no types were listed in the property. |
String |
getPersistentTypes()
Returns a list of persistent types that are to be registered every time a PersistenceManager is obtained from
a PersistenceManagerFactory. |
PropertyDescriptor[] |
getPropertyDescriptors()
|
ProxyManager |
getProxyManager()
The proxy manager. |
String |
getProxyManagerClass()
The manager for second class object proxies. |
String |
getProxyManagerProperties()
Configuration for the proxy manager. |
String |
getQueryFilterListeners()
set the FilterListeners properties |
boolean |
getRestoreValues()
The default RestoreValues setting for all PersistenceManager instances obtained from this factory. |
boolean |
getRetainValues()
The default RetainValues setting for all PersistenceManager instances obtained from this factory. |
boolean |
getUseSoftTransactionCache()
Return true if the PersistenceManager
should maintain soft references to objects in the
transactional cache. |
Value[] |
getValues()
|
void |
initDefaults()
|
void |
setCacheReferenceSize(int cacheReferenceSize)
Set the number of hard references to objects that the PersistenceManager's cache will retain. |
void |
setCacheReferenceSize(Integer cacheReferenceSize)
Wrapper setter for setCacheReferenceSize(int). |
void |
setConnectionDriverName(String driverName)
Class name of the Connection Driver. |
void |
setConnectionFactory(Object factory)
The connection factory. |
void |
setConnectionFactory2(Object factory)
The connection factory. |
void |
setConnectionFactory2Name(String connectionFactoryName2)
The name for the second data store connection factory. |
void |
setConnectionFactoryName(String connectionFactoryName)
The name for the data store connection factory. |
void |
setConnectionPassword(String connectionPassword)
The password for the data store connection. |
void |
setConnectionProperties(String connectionProperties)
Set the properties string to apply to the connection factory. |
void |
setConnectionURL(String connectionURL)
The URL for the data store connection. |
void |
setConnectionUserName(String connectionUserName)
The user name for the data store connection. |
void |
setDataCache(DataCache dataCache)
The L2 data cache. |
void |
setDataCacheClass(String clsName)
The class to use for level-2 data store caching. |
void |
setDataCacheProperties(String props)
Configuration options for the data cache. |
void |
setDefaultFetchBatchSize(int size)
Set the size of the batch that will be pre-selected when accessing elements in a Query result. |
void |
setDefaultFetchBatchSize(Integer size)
Wrapper setter for setDefaultFetchBatchSize(int). |
void |
setDefaultFetchThreshold(int threshold)
Set the threshold below which result lists will be completely instantiated upon their creation. |
void |
setDefaultFetchThreshold(Integer threshold)
Wrapper setter for setDefaultFetchThreshold(int). |
void |
setEnableQueryExtensions(boolean allow)
Set whether filter extensions can be used |
void |
setEnableQueryExtensions(Boolean allow)
Wrapper setter for setEnableQueryExtensions(boolean). |
void |
setIgnoreCache(boolean ignoreCache)
The default IgnoreCache setting for all PersistenceManager instances obtained from this factory. |
void |
setIgnoreCache(Boolean ignoreCache)
Wrapper setter for setIgnoreCache(boolean). |
void |
setLicenseKey(String licenseKey)
The runtime license key for Kodo. |
void |
setMaxPool(int maxPool)
The maximum number of connections in the connection pool. |
void |
setMaxPool(Integer maxPool)
Wrapper setter for setMaxPool(int). |
void |
setMinPool(int minPool)
The minimum number of connections in the connection pool. |
void |
setMinPool(Integer minPool)
Wrapper setter for setMinPool(int). |
void |
setMsWait(int msWait)
The number of milliseconds to wait for an available connection from the connection pool before throwing a JDODatastoreException. |
void |
setMsWait(Integer msWait)
Wrapper setter for setMsWait(int). |
void |
setMultithreaded(boolean multithreaded)
The default Multithreaded setting for all PersistenceManager instances obtained from this factory. |
void |
setMultithreaded(Boolean multithreaded)
Wrapper setter for setMultithreaded(boolean). |
void |
setNontransactionalRead(boolean nontransactionalRead)
The default NontransactionalRead setting for all PersistenceManager instances obtained from this factory. |
void |
setNontransactionalRead(Boolean nontransactionalRead)
Wrapper setter for setNontransactionalRead(boolean). |
void |
setNontransactionalWrite(boolean nontransactionalWrite)
The default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory. |
void |
setNontransactionalWrite(Boolean nontransactionalWrite)
Wrapper setter for setNontransactionalWrite(boolean). |
void |
setOptimistic(boolean optimistic)
The default Optimistic setting for all PersistenceManager instances obtained from this factory. |
void |
setOptimistic(Boolean optimistic)
Wrapper setter for setOptimistic(boolean). |
void |
setPersistenceManagerClass(String persistenceManagerClass)
The class name of the PersistenceManager
type to create. |
void |
setPersistenceManagerFactoryClass(String pmfName)
Class name of the PersistenceManagerFactoryClass implementation. |
void |
setPersistenceManagerProperties(String props)
Configuration options for the persistence manager. |
void |
setPersistentTypes(String persistentTypes)
Sets a list of persistent types that are to be registered every time a PersistenceManager is obtained from
a PersistenceManagerFactory. |
void |
setProxyManager(ProxyManager manager)
The proxy manager. |
void |
setProxyManagerClass(String clsName)
The manager for second class object proxies. |
void |
setProxyManagerProperties(String props)
Configuration for the proxy manager. |
void |
setQueryFilterListeners(String list)
Set the FilterListeners config properties |
void |
setRestoreValues(boolean restoreValues)
The default RestoreValues setting for all PersistenceManager instances obtained from this factory. |
void |
setRestoreValues(Boolean restoreValues)
Wrapper setter for setRestoreValues(boolean). |
void |
setRetainValues(boolean retainValues)
The default RetainValues setting for all PersistenceManager instances obtained from this factory. |
void |
setRetainValues(Boolean retainValues)
Wrapper setter for setRetainValues(boolean). |
void |
setUseSoftTransactionCache(boolean val)
Set whether or not the PersistenceManager should
maintain soft references to objects in the transactional
cache. |
void |
setUseSoftTransactionCache(Boolean val)
Wrapper setter for setUseSoftTransactionCache(boolean). |
| Methods inherited from class com.solarmetric.kodo.conf.DefaultConfiguration |
|---|
checkFrozen, clone, configurationClone, equals, freeze, fromProperties, getLog, hashCode, isFrozen, loadDefaults, toProperties |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final boolean EXPERT_OPTION
protected static final boolean BASIC_OPTION
protected static final String TYPE_GENERAL
protected static final String TYPE_JDO
protected static final String TYPE_CONNECTING
protected static final String TYPE_OPTIMIZATION
| Constructor Detail |
public SimpleConfiguration()
DefaultConfiguration.public SimpleConfiguration(boolean loadDefaults)
loadDefaults - if true, the constructor will attempt to
load default settings as described in
DefaultConfigurationpublic SimpleConfiguration(Properties props)
props - the Properties object to load via
DefaultConfiguration.fromProperties(java.util.Properties)| Method Detail |
public void initDefaults()
public Value[] getValues()
getValues in class DefaultConfiguration
protected StringValue addValue(String property,
Class clazz,
String def,
String type,
boolean expert)
protected ClassValue addValue(String property,
Class clazz,
String def,
Class intf,
String type,
boolean expert)
protected ClassValue addValue(String property,
Class clazz,
String def,
String[] implementors,
Class intf,
String type,
boolean expert)
protected StringValue addValue(String property,
Class clazz,
String def,
String[] allowed,
String type,
boolean expert)
protected IntegerValue addValue(String property,
Class clazz,
int def,
String type,
boolean expert)
protected BooleanValue addValue(String property,
Class clazz,
boolean def,
String type,
boolean expert)
public void setLicenseKey(String licenseKey)
Configurationpublic String getLicenseKey()
Configurationpublic int getDefaultFetchThreshold()
Configurationpublic void setDefaultFetchThreshold(int threshold)
Configurationpublic void setDefaultFetchThreshold(Integer threshold)
ConfigurationConfiguration.setDefaultFetchThreshold(int).public int getDefaultFetchBatchSize()
Configurationpublic void setDefaultFetchBatchSize(int size)
Configurationpublic void setDefaultFetchBatchSize(Integer size)
ConfigurationConfiguration.setDefaultFetchBatchSize(int).public void setQueryFilterListeners(String list)
Configurationpublic String getQueryFilterListeners()
Configurationpublic void setEnableQueryExtensions(boolean allow)
Configurationpublic void setEnableQueryExtensions(Boolean allow)
ConfigurationConfiguration.setEnableQueryExtensions(boolean).public boolean getEnableQueryExtensions()
Configurationpublic void setPersistenceManagerClass(String persistenceManagerClass)
ConfigurationPersistenceManager
type to create.public String getPersistenceManagerClass()
ConfigurationPersistenceManager
type to create.public void setPersistenceManagerProperties(String props)
Configurationpublic String getPersistenceManagerProperties()
Configurationpublic void setDataCacheClass(String clsName)
Configurationpublic String getDataCacheClass()
Configurationpublic void setDataCacheProperties(String props)
Configurationpublic String getDataCacheProperties()
Configurationpublic void setDataCache(DataCache dataCache)
ConfigurationConfiguration.setDataCacheClass(java.lang.String) and
Configuration.setDataCacheProperties(java.lang.String). Note that the instance set will
be held transiently.public DataCache getDataCache()
ConfigurationConfiguration.setDataCache(com.solarmetric.kodo.runtime.datacache.DataCache) method, it will be returned. Otherwise, if the
data cache class has been set, a new instance of the class will be
created and configured with any set data cache properties. This
instance will be cached for subsequent calls to this method. Finally,
if no data cache class is set, null is returned.public void setProxyManagerClass(String clsName)
Configurationpublic String getProxyManagerClass()
Configurationpublic void setProxyManagerProperties(String props)
Configurationpublic String getProxyManagerProperties()
Configurationpublic void setProxyManager(ProxyManager manager)
ConfigurationConfiguration.setProxyManagerClass(java.lang.String) and
Configuration.setProxyManagerProperties(java.lang.String). Note that the instance set will
be held transiently.public ProxyManager getProxyManager()
ConfigurationConfiguration.setProxyManager(com.solarmetric.kodo.util.ProxyManager) method, it will be returned. Otherwise, if the
data manager class has been set, a new instance of the class will be
created and configured with any set proxy manager properties. This
instance will be cached for subsequent calls to this method. Finally,
if no proxy manager class is set, null is returned.public void setCacheReferenceSize(int cacheReferenceSize)
ConfigurationPersistenceManager's cache will retain.public void setCacheReferenceSize(Integer cacheReferenceSize)
ConfigurationConfiguration.setCacheReferenceSize(int).public int getCacheReferenceSize()
ConfigurationPersistenceManager's cache will retain.
-1 to maintain hard refs to all objects in the
cache.public void setUseSoftTransactionCache(boolean val)
ConfigurationPersistenceManager should
maintain soft references to objects in the transactional
cache.public void setUseSoftTransactionCache(Boolean val)
ConfigurationConfiguration.setUseSoftTransactionCache(boolean).public boolean getUseSoftTransactionCache()
Configurationtrue if the PersistenceManager
should maintain soft references to objects in the
transactional cache.public void setOptimistic(boolean optimistic)
Configurationpublic void setOptimistic(Boolean optimistic)
ConfigurationConfiguration.setOptimistic(boolean).public boolean getOptimistic()
Configurationpublic void setRetainValues(boolean retainValues)
Configurationpublic void setRetainValues(Boolean retainValues)
ConfigurationConfiguration.setRetainValues(boolean).public boolean getRetainValues()
Configurationpublic void setRestoreValues(boolean restoreValues)
Configurationpublic void setRestoreValues(Boolean restoreValues)
ConfigurationConfiguration.setRestoreValues(boolean).public boolean getRestoreValues()
Configurationpublic void setIgnoreCache(boolean ignoreCache)
Configurationpublic void setIgnoreCache(Boolean ignoreCache)
ConfigurationConfiguration.setIgnoreCache(boolean).public boolean getIgnoreCache()
Configurationpublic void setNontransactionalRead(boolean nontransactionalRead)
Configurationpublic void setNontransactionalRead(Boolean nontransactionalRead)
ConfigurationConfiguration.setNontransactionalRead(boolean).public boolean getNontransactionalRead()
Configurationpublic void setNontransactionalWrite(boolean nontransactionalWrite)
Configurationpublic void setNontransactionalWrite(Boolean nontransactionalWrite)
ConfigurationConfiguration.setNontransactionalWrite(boolean).public boolean getNontransactionalWrite()
Configurationpublic void setMultithreaded(boolean multithreaded)
Configurationpublic void setMultithreaded(Boolean multithreaded)
ConfigurationConfiguration.setMultithreaded(boolean).public boolean getMultithreaded()
Configurationpublic void setConnectionUserName(String connectionUserName)
Configurationpublic String getConnectionUserName()
Configurationpublic void setConnectionPassword(String connectionPassword)
Configurationpublic String getConnectionPassword()
Configurationpublic void setConnectionURL(String connectionURL)
Configurationpublic String getConnectionURL()
Configurationpublic void setPersistenceManagerFactoryClass(String pmfName)
Configurationpublic String getDefaultPersistenceManagerFactoryClass()
public String getPersistenceManagerFactoryClass()
Configurationpublic void setConnectionDriverName(String driverName)
Configurationpublic String getConnectionDriverName()
Configurationprotected String[] getKnownDriverList()
protected String[] getKnownConnectionURLList()
public void setMaxPool(int maxPool)
Configurationpublic void setMaxPool(Integer maxPool)
ConfigurationConfiguration.setMaxPool(int).public int getMaxPool()
Configurationpublic void setMinPool(int minPool)
Configurationpublic void setMinPool(Integer minPool)
ConfigurationConfiguration.setMinPool(int).public int getMinPool()
Configurationpublic void setMsWait(int msWait)
Configurationpublic void setMsWait(Integer msWait)
ConfigurationConfiguration.setMsWait(int).public int getMsWait()
Configurationpublic void setConnectionFactoryName(String connectionFactoryName)
Configurationpublic String getConnectionFactoryName()
Configurationpublic void setConnectionFactory(Object factory)
Configurationpublic void setPersistentTypes(String persistentTypes)
ConfigurationPersistenceManager is obtained from
a PersistenceManagerFactory.public String getPersistentTypes()
ConfigurationPersistenceManager is obtained from
a PersistenceManagerFactory.public String[] getPersistentTypeNames()
Configurationcom.solarmetric.kodo.conf.ConfigurationConfiguration.getPersistentTypes()public Object getConnectionFactory()
Configurationpublic void setConnectionFactory2Name(String connectionFactoryName2)
Configurationpublic String getConnectionFactory2Name()
Configurationpublic void setConnectionFactory2(Object factory)
Configurationpublic Object getConnectionFactory2()
Configurationpublic Properties getConnectionPropertiesProps()
Properties
object.public void setConnectionProperties(String connectionProperties)
Configurationpublic String getConnectionProperties()
Configurationpublic BeanInfo[] getAdditionalBeanInfo()
public BeanDescriptor getBeanDescriptor()
public int getDefaultEventIndex()
public int getDefaultPropertyIndex()
public EventSetDescriptor[] getEventSetDescriptors()
public Image getIcon(int kind)
public MethodDescriptor[] getMethodDescriptors()
public PropertyDescriptor[] getPropertyDescriptors()
|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||