SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

com.solarmetric.kodo.conf
Class SimpleConfiguration

java.lang.Object
  |
  +--com.solarmetric.kodo.conf.DefaultConfiguration
        |
        +--com.solarmetric.kodo.conf.SimpleConfiguration
All Implemented Interfaces:
BeanInfo, Cloneable, Configuration, Serializable
Direct Known Subclasses:
JDBCSimpleConfiguration

public class SimpleConfiguration
extends DefaultConfiguration

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.

See Also:
Serialized Form

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 class com.solarmetric.kodo.conf.DefaultConfiguration
_loc, _log
 
Fields inherited from interface com.solarmetric.kodo.conf.Configuration
LOG_CACHE, LOG_CONF, LOG_ENHANCE, LOG_METADATA, LOG_PERFORMANCE, LOG_PORTABILITY, 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  DoubleValue addValue(String property, Class clazz, double 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 getConnectionFactory2Properties()
          Property String to use to configure the ConnectionFactory2.
 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.
 double getDefaultDataCacheTimeout()
          Default data cache timeout.
 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()
           
 String[] getFetchGroupNames()
          Returns an array of fetch groups with which all PersistenceManager objects obtained from a PersistenceManagerFactory should be configured.
 String getFetchGroups()
          Returns a list of fetch groups with which all PersistenceManager objects obtained from a PersistenceManagerFactory should be configured.
 String getFlushBeforeQueries()
          Returns whether or not Kodo should automatically flush modifications to the data store before executing queries.
 int getFlushBeforeQueriesMode()
          Returns one of KodoQuery.FLUSH_ALWAYS_MODE, KodoQuery.FLUSH_NEVER_MODE, or KodoQuery.FLUSH_WITH_CONNECTION_MODE, as determined by parsing the string returned by getFlushBeforeQueries().
 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.
 QueryCache getQueryCache()
          The L2 query cache.
 String getQueryCacheClass()
          The class to use for level-2 data store query caching.
 String getQueryCacheProperties()
          Configuration options for the query cache.
 FilterListener[] getQueryFilterListenerInstances()
          set the FilterListeners properties
 String getQueryFilterListeners()
          Set the FilterListeners properties
 String getRemoteCommitProviderClass()
          The class to use for remote commit notification.
 String getRemoteCommitProviderProperties()
          Configuration options for the remote commit provider.
 boolean getRestoreValues()
          The default RestoreValues setting for all PersistenceManager instances obtained from this factory.
 String getResultListClass()
          Returns the implementation of ResultList that will be used to return query results.
 String getResultListProperties()
          Returns the property string that will be used to configure the resultlist specified by setResultListClass(java.lang.String).
 boolean getRetainValues()
          The default RetainValues setting for all PersistenceManager instances obtained from this factory.
 String getTransactionCacheClass()
          The class to use for the PM transaction cache.
 String getTransactionCacheProperties()
          Configuration options for the PM transaction cache.
 String getTransactionMode()
          Specifys the behavior of the transaction model.
 boolean getTransactionModeIsXA()
          Returns whether XA transactions should be used or not.
 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 setConnectionFactory2Properties(String connectionFactory2Properties)
          Property String to use to configure the ConnectionFactory2.
 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 setDefaultDataCacheTimeout(double timeout)
          Default data cache timeout.
 void setDefaultDataCacheTimeout(Double timeout)
          Wrapper setter for setDefaultDataCacheTimeout(double).
 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 setFetchGroups(String fetchGroups)
          Sets a list of fetch groups with which all PersistenceManager objects obtained from a PersistenceManagerFactory should be configured.
 void setFlushBeforeQueries(String flush)
          Sets whether or not Kodo should automatically flush modifications to the data store before executing queries.
 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 setQueryCache(QueryCache queryCache)
          The L2 query cache.
 void setQueryCacheClass(String clsName)
          The class to use for level-2 data store query caching.
 void setQueryCacheProperties(String props)
          Configuration options for the query cache.
 void setQueryFilterListenerInstances(FilterListener[] listeners)
          Set the FilterListeners config properties
 void setQueryFilterListeners(String list)
          Set the FilterListeners config properties
 void setRemoteCommitProviderClass(String str)
          The class to use for remote commit notification.
 void setRemoteCommitProviderProperties(String props)
          Configuration options for the remote commit provider.
 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 setResultListClass(String clsName)
          Sets the implementation of ResultList that will be used to return query results.
 void setResultListProperties(String props)
          Sets the property string that will be used to configure the resultlist specified by setResultListClass(java.lang.String).
 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 setTransactionCacheClass(String clsName)
          The class to use for the PM transaction cache.
 void setTransactionCacheProperties(String props)
          Configuration options for the PM transaction cache.
 void setTransactionMode(String transactionMode)
          Specifys the behavior of the transaction model.
 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, setProperties, setPropertiesFile, setPropertiesInputStream, toProperties
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPERT_OPTION

protected static final boolean EXPERT_OPTION

BASIC_OPTION

protected static final boolean BASIC_OPTION

TYPE_GENERAL

protected static final String TYPE_GENERAL

TYPE_JDO

protected static final String TYPE_JDO

TYPE_CONNECTING

protected static final String TYPE_CONNECTING

TYPE_OPTIMIZATION

protected static final String TYPE_OPTIMIZATION
Constructor Detail

SimpleConfiguration

public SimpleConfiguration()
Default constructor. Loads default settings as described in DefaultConfiguration.

SimpleConfiguration

public SimpleConfiguration(boolean loadDefaults)
Constructor.
Parameters:
loadDefaults - if true, the constructor will attempt to load default settings as described in DefaultConfiguration

SimpleConfiguration

public SimpleConfiguration(Properties props)
Constructor.
Parameters:
props - the Properties object to load via DefaultConfiguration.fromProperties(java.util.Properties)
Method Detail

initDefaults

public void initDefaults()

getValues

public Value[] getValues()
Overrides:
getValues in class DefaultConfiguration

addValue

protected StringValue addValue(String property,
                               Class clazz,
                               String def,
                               String type,
                               boolean expert)

addValue

protected ClassValue addValue(String property,
                              Class clazz,
                              String def,
                              Class intf,
                              String type,
                              boolean expert)

addValue

protected ClassValue addValue(String property,
                              Class clazz,
                              String def,
                              String[] implementors,
                              Class intf,
                              String type,
                              boolean expert)

addValue

protected StringValue addValue(String property,
                               Class clazz,
                               String def,
                               String[] allowed,
                               String type,
                               boolean expert)

addValue

protected IntegerValue addValue(String property,
                                Class clazz,
                                int def,
                                String type,
                                boolean expert)

addValue

protected DoubleValue addValue(String property,
                               Class clazz,
                               double def,
                               String type,
                               boolean expert)

addValue

protected BooleanValue addValue(String property,
                                Class clazz,
                                boolean def,
                                String type,
                                boolean expert)

setLicenseKey

public void setLicenseKey(String licenseKey)
Description copied from interface: Configuration
The runtime license key for Kodo.

getLicenseKey

public String getLicenseKey()
Description copied from interface: Configuration
The runtime license key for Kodo.

getDefaultFetchThreshold

public int getDefaultFetchThreshold()
Description copied from interface: Configuration
Get the threshold below which result lists will be completely instantiated upon theircreation.

setDefaultFetchThreshold

public void setDefaultFetchThreshold(int threshold)
Description copied from interface: Configuration
Set the threshold below which result lists will be completely instantiated upon their creation.

setDefaultFetchThreshold

public void setDefaultFetchThreshold(Integer threshold)
Description copied from interface: Configuration
Wrapper setter for Configuration.setDefaultFetchThreshold(int).

getDefaultFetchBatchSize

public int getDefaultFetchBatchSize()
Description copied from interface: Configuration
Get the size of the batch that will be pre-selected when accessing elements in a Query result.

setDefaultFetchBatchSize

public void setDefaultFetchBatchSize(int size)
Description copied from interface: Configuration
Set the size of the batch that will be pre-selected when accessing elements in a Query result.

setDefaultFetchBatchSize

public void setDefaultFetchBatchSize(Integer size)
Description copied from interface: Configuration
Wrapper setter for Configuration.setDefaultFetchBatchSize(int).

setQueryFilterListeners

public void setQueryFilterListeners(String list)
Description copied from interface: Configuration
Set the FilterListeners config properties

getQueryFilterListeners

public String getQueryFilterListeners()
Description copied from interface: Configuration
Set the FilterListeners properties

setQueryFilterListenerInstances

public void setQueryFilterListenerInstances(FilterListener[] listeners)
Description copied from interface: Configuration
Set the FilterListeners config properties

getQueryFilterListenerInstances

public FilterListener[] getQueryFilterListenerInstances()
Description copied from interface: Configuration
set the FilterListeners properties

setEnableQueryExtensions

public void setEnableQueryExtensions(boolean allow)
Description copied from interface: Configuration
Set whether filter extensions can be used

setEnableQueryExtensions

public void setEnableQueryExtensions(Boolean allow)
Description copied from interface: Configuration
Wrapper setter for Configuration.setEnableQueryExtensions(boolean).

getEnableQueryExtensions

public boolean getEnableQueryExtensions()
Description copied from interface: Configuration
Allow filter extensions to be used

setPersistenceManagerClass

public void setPersistenceManagerClass(String persistenceManagerClass)
Description copied from interface: Configuration
The class name of the PersistenceManager type to create.

getPersistenceManagerClass

public String getPersistenceManagerClass()
Description copied from interface: Configuration
The class name of the PersistenceManager type to create.

setPersistenceManagerProperties

public void setPersistenceManagerProperties(String props)
Description copied from interface: Configuration
Configuration options for the persistence manager.

getPersistenceManagerProperties

public String getPersistenceManagerProperties()
Description copied from interface: Configuration
Configuration options for the persistence manager.

getRemoteCommitProviderClass

public String getRemoteCommitProviderClass()
Description copied from interface: Configuration
The class to use for remote commit notification.

setRemoteCommitProviderClass

public void setRemoteCommitProviderClass(String str)
Description copied from interface: Configuration
The class to use for remote commit notification.

getRemoteCommitProviderProperties

public String getRemoteCommitProviderProperties()
Description copied from interface: Configuration
Configuration options for the remote commit provider.

setRemoteCommitProviderProperties

public void setRemoteCommitProviderProperties(String props)
Description copied from interface: Configuration
Configuration options for the remote commit provider.

setDataCacheClass

public void setDataCacheClass(String clsName)
Description copied from interface: Configuration
The class to use for level-2 data store caching.

getDataCacheClass

public String getDataCacheClass()
Description copied from interface: Configuration
The class to use for level-2 data store caching.

setDataCacheProperties

public void setDataCacheProperties(String props)
Description copied from interface: Configuration
Configuration options for the data cache.

getDataCacheProperties

public String getDataCacheProperties()
Description copied from interface: Configuration
Configuration options for the data cache.

setDefaultDataCacheTimeout

public void setDefaultDataCacheTimeout(Double timeout)
Description copied from interface: Configuration
Wrapper setter for Configuration.setDefaultDataCacheTimeout(double).

setDefaultDataCacheTimeout

public void setDefaultDataCacheTimeout(double timeout)
Description copied from interface: Configuration
Default data cache timeout.

getDefaultDataCacheTimeout

public double getDefaultDataCacheTimeout()
Description copied from interface: Configuration
Default data cache timeout.

setDataCache

public void setDataCache(DataCache dataCache)
Description copied from interface: Configuration
The L2 data cache. Setting this property overrides any information set through Configuration.setDataCacheClass(java.lang.String) and Configuration.setDataCacheProperties(java.lang.String). Note that the instance set will be held transiently.

getDataCache

public DataCache getDataCache()
Description copied from interface: Configuration
The L2 data cache. If a data cache has been explicitly set via the Configuration.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.

setQueryCacheClass

public void setQueryCacheClass(String clsName)
Description copied from interface: Configuration
The class to use for level-2 data store query caching.

getQueryCacheClass

public String getQueryCacheClass()
Description copied from interface: Configuration
The class to use for level-2 data store query caching.

setQueryCacheProperties

public void setQueryCacheProperties(String props)
Description copied from interface: Configuration
Configuration options for the query cache.

getQueryCacheProperties

public String getQueryCacheProperties()
Description copied from interface: Configuration
Configuration options for the query cache.

setQueryCache

public void setQueryCache(QueryCache queryCache)
Description copied from interface: Configuration
The L2 query cache. Setting this property overrides any information set through Configuration.setQueryCacheClass(java.lang.String) and Configuration.setQueryCacheProperties(java.lang.String). Note that the instance set will be held transiently.

getQueryCache

public QueryCache getQueryCache()
Description copied from interface: Configuration
The L2 query cache. If a query cache has been explicitly set via the Configuration.setQueryCache(com.solarmetric.kodo.runtime.datacache.query.QueryCache) method, it will be returned. Otherwise, if the query 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 query cache class is set, null is returned.

setProxyManagerClass

public void setProxyManagerClass(String clsName)
Description copied from interface: Configuration
The manager for second class object proxies.

getProxyManagerClass

public String getProxyManagerClass()
Description copied from interface: Configuration
The manager for second class object proxies.

setProxyManagerProperties

public void setProxyManagerProperties(String props)
Description copied from interface: Configuration
Configuration for the proxy manager.

getProxyManagerProperties

public String getProxyManagerProperties()
Description copied from interface: Configuration
Configuration for the proxy manager.

setProxyManager

public void setProxyManager(ProxyManager manager)
Description copied from interface: Configuration
The proxy manager. Setting this property overrides any information set through Configuration.setProxyManagerClass(java.lang.String) and Configuration.setProxyManagerProperties(java.lang.String). Note that the instance set will be held transiently.

getProxyManager

public ProxyManager getProxyManager()
Description copied from interface: Configuration
The proxy manager. If a proxy manager has been explicitly set via the Configuration.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.

setCacheReferenceSize

public void setCacheReferenceSize(int cacheReferenceSize)
Description copied from interface: Configuration
Set the number of hard references to objects that the PersistenceManager's cache will retain.

setCacheReferenceSize

public void setCacheReferenceSize(Integer cacheReferenceSize)
Description copied from interface: Configuration
Wrapper setter for Configuration.setCacheReferenceSize(int).

getCacheReferenceSize

public int getCacheReferenceSize()
Description copied from interface: Configuration
Returns the number of hard references to objects that the PersistenceManager's cache will retain. -1 to maintain hard refs to all objects in the cache.

setUseSoftTransactionCache

public void setUseSoftTransactionCache(boolean val)
Description copied from interface: Configuration
Set whether or not the PersistenceManager should maintain soft references to objects in the transactional cache.

setUseSoftTransactionCache

public void setUseSoftTransactionCache(Boolean val)
Description copied from interface: Configuration
Wrapper setter for Configuration.setUseSoftTransactionCache(boolean).

getUseSoftTransactionCache

public boolean getUseSoftTransactionCache()
Description copied from interface: Configuration
Return true if the PersistenceManager should maintain soft references to objects in the transactional cache.

setTransactionCacheClass

public void setTransactionCacheClass(String clsName)
Description copied from interface: Configuration
The class to use for the PM transaction cache. Must implement StateManagerSet.

getTransactionCacheClass

public String getTransactionCacheClass()
Description copied from interface: Configuration
The class to use for the PM transaction cache. Must implement StateManagerSet.

setTransactionCacheProperties

public void setTransactionCacheProperties(String props)
Description copied from interface: Configuration
Configuration options for the PM transaction cache.

getTransactionCacheProperties

public String getTransactionCacheProperties()
Description copied from interface: Configuration
Configuration options for the PM transaction cache.

setOptimistic

public void setOptimistic(boolean optimistic)
Description copied from interface: Configuration
The default Optimistic setting for all PersistenceManager instances obtained from this factory.

setOptimistic

public void setOptimistic(Boolean optimistic)
Description copied from interface: Configuration
Wrapper setter for Configuration.setOptimistic(boolean).

getOptimistic

public boolean getOptimistic()
Description copied from interface: Configuration
The default Optimistic setting for all PersistenceManager instances obtained from this factory.

setRetainValues

public void setRetainValues(boolean retainValues)
Description copied from interface: Configuration
The default RetainValues setting for all PersistenceManager instances obtained from this factory.

setRetainValues

public void setRetainValues(Boolean retainValues)
Description copied from interface: Configuration
Wrapper setter for Configuration.setRetainValues(boolean).

getRetainValues

public boolean getRetainValues()
Description copied from interface: Configuration
The default RetainValues setting for all PersistenceManager instances obtained from this factory.

setRestoreValues

public void setRestoreValues(boolean restoreValues)
Description copied from interface: Configuration
The default RestoreValues setting for all PersistenceManager instances obtained from this factory.

setRestoreValues

public void setRestoreValues(Boolean restoreValues)
Description copied from interface: Configuration
Wrapper setter for Configuration.setRestoreValues(boolean).

getRestoreValues

public boolean getRestoreValues()
Description copied from interface: Configuration
The default RestoreValues setting for all PersistenceManager instances obtained from this factory.

setIgnoreCache

public void setIgnoreCache(boolean ignoreCache)
Description copied from interface: Configuration
The default IgnoreCache setting for all PersistenceManager instances obtained from this factory.

setIgnoreCache

public void setIgnoreCache(Boolean ignoreCache)
Description copied from interface: Configuration
Wrapper setter for Configuration.setIgnoreCache(boolean).

getIgnoreCache

public boolean getIgnoreCache()
Description copied from interface: Configuration
The default IgnoreCache setting for all PersistenceManager instances obtained from this factory.

setNontransactionalRead

public void setNontransactionalRead(boolean nontransactionalRead)
Description copied from interface: Configuration
The default NontransactionalRead setting for all PersistenceManager instances obtained from this factory.

setNontransactionalRead

public void setNontransactionalRead(Boolean nontransactionalRead)
Description copied from interface: Configuration
Wrapper setter for Configuration.setNontransactionalRead(boolean).

getNontransactionalRead

public boolean getNontransactionalRead()
Description copied from interface: Configuration
The default NontransactionalRead setting for all PersistenceManager instances obtained from this factory.

setNontransactionalWrite

public void setNontransactionalWrite(boolean nontransactionalWrite)
Description copied from interface: Configuration
The default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory.

setNontransactionalWrite

public void setNontransactionalWrite(Boolean nontransactionalWrite)
Description copied from interface: Configuration
Wrapper setter for Configuration.setNontransactionalWrite(boolean).

getNontransactionalWrite

public boolean getNontransactionalWrite()
Description copied from interface: Configuration
The default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory.

setMultithreaded

public void setMultithreaded(boolean multithreaded)
Description copied from interface: Configuration
The default Multithreaded setting for all PersistenceManager instances obtained from this factory.

setMultithreaded

public void setMultithreaded(Boolean multithreaded)
Description copied from interface: Configuration
Wrapper setter for Configuration.setMultithreaded(boolean).

getMultithreaded

public boolean getMultithreaded()
Description copied from interface: Configuration
The default Multithreaded setting for all PersistenceManager instances obtained from this factory.

setConnectionUserName

public void setConnectionUserName(String connectionUserName)
Description copied from interface: Configuration
The user name for the data store connection.

getConnectionUserName

public String getConnectionUserName()
Description copied from interface: Configuration
The user name for the data store connection.

setConnectionPassword

public void setConnectionPassword(String connectionPassword)
Description copied from interface: Configuration
The password for the data store connection.

getConnectionPassword

public String getConnectionPassword()
Description copied from interface: Configuration
The password for the data store connection.

setConnectionURL

public void setConnectionURL(String connectionURL)
Description copied from interface: Configuration
The URL for the data store connection.

getConnectionURL

public String getConnectionURL()
Description copied from interface: Configuration
The URL for the data store connection.

setPersistenceManagerFactoryClass

public void setPersistenceManagerFactoryClass(String pmfName)
Description copied from interface: Configuration
Class name of the PersistenceManagerFactoryClass implementation.

getDefaultPersistenceManagerFactoryClass

public String getDefaultPersistenceManagerFactoryClass()

getPersistenceManagerFactoryClass

public String getPersistenceManagerFactoryClass()
Description copied from interface: Configuration
Class name of the PersistenceManagerFactoryClass implementation

setConnectionDriverName

public void setConnectionDriverName(String driverName)
Description copied from interface: Configuration
Class name of the Connection Driver.

getConnectionDriverName

public String getConnectionDriverName()
Description copied from interface: Configuration
Class name of the Connection Driver.

getKnownDriverList

protected String[] getKnownDriverList()
Allows a subclass to provide a list of example drivers, for use in a graphical component.

getKnownConnectionURLList

protected String[] getKnownConnectionURLList()
Allows a subclass to provide a list of example drivers, for use in a graphical component.

setMaxPool

public void setMaxPool(int maxPool)
Description copied from interface: Configuration
The maximum number of connections in the connection pool.

setMaxPool

public void setMaxPool(Integer maxPool)
Description copied from interface: Configuration
Wrapper setter for Configuration.setMaxPool(int).

getMaxPool

public int getMaxPool()
Description copied from interface: Configuration
The maximum number of connections in the connection pool.

setMinPool

public void setMinPool(int minPool)
Description copied from interface: Configuration
The minimum number of connections in the connection pool.

setMinPool

public void setMinPool(Integer minPool)
Description copied from interface: Configuration
Wrapper setter for Configuration.setMinPool(int).

getMinPool

public int getMinPool()
Description copied from interface: Configuration
The minimum number of connections in the connection pool.

setMsWait

public void setMsWait(int msWait)
Description copied from interface: Configuration
The number of milliseconds to wait for an available connection from the connection pool before throwing a JDODatastoreException.

setMsWait

public void setMsWait(Integer msWait)
Description copied from interface: Configuration
Wrapper setter for Configuration.setMsWait(int).

getMsWait

public int getMsWait()
Description copied from interface: Configuration
The number of milliseconds to wait for an available connection from the connection pool before throwing a JDODatastoreException.

setConnectionFactoryName

public void setConnectionFactoryName(String connectionFactoryName)
Description copied from interface: Configuration
The name for the data store connection factory.

getConnectionFactoryName

public String getConnectionFactoryName()
Description copied from interface: Configuration
The name for the data store connection factory.

setConnectionFactory

public void setConnectionFactory(Object factory)
Description copied from interface: Configuration
The connection factory.

setPersistentTypes

public void setPersistentTypes(String persistentTypes)
Description copied from interface: Configuration
Sets a list of persistent types that are to be registered every time a PersistenceManager is obtained from a PersistenceManagerFactory.

getPersistentTypes

public String getPersistentTypes()
Description copied from interface: Configuration
Returns a list of persistent types that are to be registered every time a PersistenceManager is obtained from a PersistenceManagerFactory.

getPersistentTypeNames

public String[] getPersistentTypeNames()
Description copied from interface: Configuration
Returns an array of names of the persistent types in the PersistentTypes property, or null if no types were listed in the property.
Following copied from interface: com.solarmetric.kodo.conf.Configuration
See Also:
Configuration.getPersistentTypes()

setFetchGroups

public void setFetchGroups(String fetchGroups)
Description copied from interface: Configuration
Sets a list of fetch groups with which all PersistenceManager objects obtained from a PersistenceManagerFactory should be configured.

getFetchGroups

public String getFetchGroups()
Description copied from interface: Configuration
Returns a list of fetch groups with which all PersistenceManager objects obtained from a PersistenceManagerFactory should be configured.

getFetchGroupNames

public String[] getFetchGroupNames()
Description copied from interface: Configuration
Returns an array of fetch groups with which all PersistenceManager objects obtained from a PersistenceManagerFactory should be configured.
Following copied from interface: com.solarmetric.kodo.conf.Configuration
See Also:
Configuration.getFetchGroups()

setFlushBeforeQueries

public void setFlushBeforeQueries(String flush)
Description copied from interface: Configuration
Sets whether or not Kodo should automatically flush modifications to the data store before executing queries. See the Kodo JDO Reference Guide for details.

getFlushBeforeQueries

public String getFlushBeforeQueries()
Description copied from interface: Configuration
Returns whether or not Kodo should automatically flush modifications to the data store before executing queries. See the Kodo JDO Reference Guide for details.

getFlushBeforeQueriesMode

public int getFlushBeforeQueriesMode()
Description copied from interface: Configuration
Returns one of KodoQuery.FLUSH_ALWAYS_MODE, KodoQuery.FLUSH_NEVER_MODE, or KodoQuery.FLUSH_WITH_CONNECTION_MODE, as determined by parsing the string returned by Configuration.getFlushBeforeQueries().

getConnectionFactory

public Object getConnectionFactory()
Description copied from interface: Configuration
The connection factory, possibly from JNDI.

setConnectionFactory2Name

public void setConnectionFactory2Name(String connectionFactoryName2)
Description copied from interface: Configuration
The name for the second data store connection factory.

getConnectionFactory2Name

public String getConnectionFactory2Name()
Description copied from interface: Configuration
The name for the second data store connection factory.

setConnectionFactory2

public void setConnectionFactory2(Object factory)
Description copied from interface: Configuration
The connection factory.

getConnectionFactory2

public Object getConnectionFactory2()
Description copied from interface: Configuration
The connection factory, possibly from JNDI.

getConnectionPropertiesProps

public Properties getConnectionPropertiesProps()
Returns the ConnectionFactory properties as a Properties object.

setConnectionProperties

public void setConnectionProperties(String connectionProperties)
Description copied from interface: Configuration
Set the properties string to apply to the connection factory.

getConnectionProperties

public String getConnectionProperties()
Description copied from interface: Configuration
Get the properties string to apply to the connection factory.

setTransactionMode

public void setTransactionMode(String transactionMode)
Description copied from interface: Configuration
Specifys the behavior of the transaction model. Possible values are:

getTransactionModeIsXA

public boolean getTransactionModeIsXA()
Description copied from interface: Configuration
Returns whether XA transactions should be used or not.
Following copied from interface: com.solarmetric.kodo.conf.Configuration
Returns:
true if XA transactions should be used
See Also:
Configuration.getTransactionMode()

getTransactionMode

public String getTransactionMode()
Description copied from interface: Configuration
Specifys the behavior of the transaction model. Possible values are:

setConnectionFactory2Properties

public void setConnectionFactory2Properties(String connectionFactory2Properties)
Description copied from interface: Configuration
Property String to use to configure the ConnectionFactory2.

getConnectionFactory2Properties

public String getConnectionFactory2Properties()
Description copied from interface: Configuration
Property String to use to configure the ConnectionFactory2.

setResultListClass

public void setResultListClass(String clsName)
Description copied from interface: Configuration
Sets the implementation of ResultList that will be used to return query results.

getResultListClass

public String getResultListClass()
Description copied from interface: Configuration
Returns the implementation of ResultList that will be used to return query results.

setResultListProperties

public void setResultListProperties(String props)
Description copied from interface: Configuration
Sets the property string that will be used to configure the resultlist specified by Configuration.setResultListClass(java.lang.String).

getResultListProperties

public String getResultListProperties()
Description copied from interface: Configuration
Returns the property string that will be used to configure the resultlist specified by Configuration.setResultListClass(java.lang.String).

getAdditionalBeanInfo

public BeanInfo[] getAdditionalBeanInfo()

getBeanDescriptor

public BeanDescriptor getBeanDescriptor()

getDefaultEventIndex

public int getDefaultEventIndex()

getDefaultPropertyIndex

public int getDefaultPropertyIndex()

getEventSetDescriptors

public EventSetDescriptor[] getEventSetDescriptors()

getIcon

public Image getIcon(int kind)

getMethodDescriptors

public MethodDescriptor[] getMethodDescriptors()

getPropertyDescriptors

public PropertyDescriptor[] getPropertyDescriptors()

SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.