SolarMetric Kodo JDO Enterprise Edition 2.3.1 generated on August 20 2002

com.solarmetric.kodo.conf
Interface Configuration

All Superinterfaces:
Cloneable, Serializable
All Known Subinterfaces:
EEConfiguration, EEConfiguration, JDBCConfiguration
All Known Implementing Classes:
DefaultConfiguration

public interface Configuration
extends Serializable, Cloneable

Configuration defines the properties necessary to configure runtime properties and connect to a data source.

Any property names ending in Properties can be used to configure the object they pertain to using a simple properties-style string. For example, if the set DataCacheClass has methods setMaxSize(int) and setRemoteHost(String,int), then these properties can be set using a DataCacheProperties string like: maxSize=500 remoteHost=cacheserver.xyz.com,8080

The following is a list of recognized properties:

The following is a list of recognized XML preferences (note: the use of XML prefs is deprecated):

Author:
Marc Prud'hommeaux, Abe White

Method Summary
 Object clone()
          Returns a clone of this Configuration.
 Configuration configurationClone()
          Return a new Configuration that is an exact copy of this one.
 void freeze()
          Freeze this Configuration; if frozen, calls to #checkFrozen will throw a JDOUserException.
 void fromProperties(Properties properties)
          Set this Configuration via the given Properties.
 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 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 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.
 boolean getEnableQueryExtensions()
          Allow filter extensions to be used
 boolean getIgnoreCache()
          The default IgnoreCache setting for all PersistenceManager instances obtained from this factory.
 String getLicenseKey()
          The runtime license key for Kodo.
 String getLogger()
          The name of the logger to use.
 PrintWriter getLogWriter()
          The PrintWriter to which messages should be sent.
 int getMaxPool()
          The maximum number of connections in the connection pool.
 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.
 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 isFrozen()
          Return true if this Configuration has been frozen.
 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 cf2Name)
          The name for the second data store connection factory.
 void setConnectionFactoryName(String cfName)
          The name for the data store connection factory.
 void setConnectionPassword(String connectionPassword)
          The password for the data store connection.
 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 cache)
          The L2 data cache.
 void setDataCacheClass(String dataCacheClass)
          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 setDefaultFetchThreshold(int threshold)
          Set the threshold below which result lists will be completely instantiated upon their creation.
 void setEnableQueryExtensions(boolean warn)
          Set whether filter extensions can be used
 void setIgnoreCache(boolean ignoreCache)
          The default IgnoreCache setting for all PersistenceManager instances obtained from this factory.
 void setLicenseKey(String licenseKey)
          The runtime license key for Kodo.
 void setLogger(String logger)
          The name of the logger to use.
 void setLogWriter(PrintWriter logWriter)
          The PrintWriter to which messages should be sent.
 void setMaxPool(int maxPool)
          The maximum number of connections in the connection pool.
 void setMinPool(int minPool)
          The minimum number of connections in the connection pool.
 void setMsWait(int msWait)
          The number of milliseconds to wait for an available connection from the connection pool before throwing a JDODatastoreException.
 void setMultithreaded(boolean multithreaded)
          The default Multithreaded setting for all PersistenceManager instances obtained from this factory.
 void setNontransactionalRead(boolean ntRead)
          The default NontransactionalRead setting for all PersistenceManager instances obtained from this factory.
 void setNontransactionalWrite(boolean ntWrite)
          The default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory.
 void setOptimistic(boolean optimistic)
          The default Optimistic setting for all PersistenceManager instances obtained from this factory.
 void setPersistenceManagerClass(String pmClass)
          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 setProxyManager(ProxyManager manager)
          The proxy manager.
 void setProxyManagerClass(String proxyClass)
          The manager for second class object proxies.
 void setProxyManagerProperties(String props)
          Configuration for the proxy manager.
 void setQueryFilterListeners(String props)
          Set the FilterListeners config properties
 void setRestoreValues(boolean restoreValues)
          The default RestoreValues setting for all PersistenceManager instances obtained from this factory.
 void setRetainValues(boolean retainValues)
          The default RetainValues setting for all PersistenceManager instances obtained from this factory.
 Properties toProperties()
          A Properties representation of this Configuration.
 

Method Detail

getLicenseKey

public String getLicenseKey()
The runtime license key for Kodo.

setLicenseKey

public void setLicenseKey(String licenseKey)
The runtime license key for Kodo.

getPersistenceManagerClass

public String getPersistenceManagerClass()
The class name of the PersistenceManager type to create.

setPersistenceManagerClass

public void setPersistenceManagerClass(String pmClass)
The class name of the PersistenceManager type to create.

getPersistenceManagerProperties

public String getPersistenceManagerProperties()
Configuration options for the persistence manager.

setPersistenceManagerProperties

public void setPersistenceManagerProperties(String props)
Configuration options for the persistence manager.

getDataCacheClass

public String getDataCacheClass()
The class to use for level-2 data store caching.

setDataCacheClass

public void setDataCacheClass(String dataCacheClass)
The class to use for level-2 data store caching.

getDataCacheProperties

public String getDataCacheProperties()
Configuration options for the data cache.

setDataCacheProperties

public void setDataCacheProperties(String props)
Configuration options for the data cache.

getDataCache

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

setDataCache

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

getProxyManagerClass

public String getProxyManagerClass()
The manager for second class object proxies.

setProxyManagerClass

public void setProxyManagerClass(String proxyClass)
The manager for second class object proxies.

getProxyManagerProperties

public String getProxyManagerProperties()
Configuration for the proxy manager.

setProxyManagerProperties

public void setProxyManagerProperties(String props)
Configuration for the proxy manager.

getProxyManager

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

setProxyManager

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

getOptimistic

public boolean getOptimistic()
The default Optimistic setting for all PersistenceManager instances obtained from this factory.

setOptimistic

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

getRetainValues

public boolean getRetainValues()
The default RetainValues setting for all PersistenceManager instances obtained from this factory.

setRetainValues

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

getRestoreValues

public boolean getRestoreValues()
The default RestoreValues setting for all PersistenceManager instances obtained from this factory.

setRestoreValues

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

getIgnoreCache

public boolean getIgnoreCache()
The default IgnoreCache setting for all PersistenceManager instances obtained from this factory.

setIgnoreCache

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

getNontransactionalRead

public boolean getNontransactionalRead()
The default NontransactionalRead setting for all PersistenceManager instances obtained from this factory.

setNontransactionalRead

public void setNontransactionalRead(boolean ntRead)
The default NontransactionalRead setting for all PersistenceManager instances obtained from this factory.

getNontransactionalWrite

public boolean getNontransactionalWrite()
The default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory.

setNontransactionalWrite

public void setNontransactionalWrite(boolean ntWrite)
The default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory.

getMultithreaded

public boolean getMultithreaded()
The default Multithreaded setting for all PersistenceManager instances obtained from this factory.

setMultithreaded

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

getConnectionUserName

public String getConnectionUserName()
The user name for the data store connection.

setConnectionUserName

public void setConnectionUserName(String connectionUserName)
The user name for the data store connection.

getConnectionPassword

public String getConnectionPassword()
The password for the data store connection.

setConnectionPassword

public void setConnectionPassword(String connectionPassword)
The password for the data store connection.

getConnectionURL

public String getConnectionURL()
The URL for the data store connection.

setConnectionURL

public void setConnectionURL(String connectionURL)
The URL for the data store connection.

getConnectionDriverName

public String getConnectionDriverName()
Class name of the Connection Driver.

setConnectionDriverName

public void setConnectionDriverName(String driverName)
Class name of the Connection Driver.

getPersistenceManagerFactoryClass

public String getPersistenceManagerFactoryClass()
Class name of the PersistenceManagerFactoryClass implementation

setPersistenceManagerFactoryClass

public void setPersistenceManagerFactoryClass(String pmfName)
Class name of the PersistenceManagerFactoryClass implementation.

getConnectionFactoryName

public String getConnectionFactoryName()
The name for the data store connection factory.

setConnectionFactoryName

public void setConnectionFactoryName(String cfName)
The name for the data store connection factory.

getConnectionFactory

public Object getConnectionFactory()
The connection factory, possibly from JNDI.

setConnectionFactory

public void setConnectionFactory(Object factory)
The connection factory.

getConnectionFactory2Name

public String getConnectionFactory2Name()
The name for the second data store connection factory.

setConnectionFactory2Name

public void setConnectionFactory2Name(String cf2Name)
The name for the second data store connection factory.

getConnectionFactory2

public Object getConnectionFactory2()
The connection factory, possibly from JNDI.

setConnectionFactory2

public void setConnectionFactory2(Object factory)
The connection factory.

getMaxPool

public int getMaxPool()
The maximum number of connections in the connection pool.

setMaxPool

public void setMaxPool(int maxPool)
The maximum number of connections in the connection pool.

getMinPool

public int getMinPool()
The minimum number of connections in the connection pool.

setMinPool

public void setMinPool(int minPool)
The minimum number of connections in the connection pool.

getMsWait

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

setMsWait

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

getLogWriter

public PrintWriter getLogWriter()
The PrintWriter to which messages should be sent.

setLogWriter

public void setLogWriter(PrintWriter logWriter)
The PrintWriter to which messages should be sent.

getLogger

public String getLogger()
The name of the logger to use.

setLogger

public void setLogger(String logger)
The name of the logger to use.

getDefaultFetchThreshold

public int getDefaultFetchThreshold()
Get the threshold below which result lists will be completely instantiated upon theircreation.

setDefaultFetchThreshold

public void setDefaultFetchThreshold(int threshold)
Set the threshold below which result lists will be completely instantiated upon their creation.

getDefaultFetchBatchSize

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

setDefaultFetchBatchSize

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

getQueryFilterListeners

public String getQueryFilterListeners()
set the FilterListeners properties

setQueryFilterListeners

public void setQueryFilterListeners(String props)
Set the FilterListeners config properties

getEnableQueryExtensions

public boolean getEnableQueryExtensions()
Allow filter extensions to be used

setEnableQueryExtensions

public void setEnableQueryExtensions(boolean warn)
Set whether filter extensions can be used

freeze

public void freeze()
Freeze this Configuration; if frozen, calls to #checkFrozen will throw a JDOUserException.

isFrozen

public boolean isFrozen()
Return true if this Configuration has been frozen.

toProperties

public Properties toProperties()
A Properties representation of this Configuration. Note that changes made to this Properties object will not be automatically reflected in this Configuration object.

fromProperties

public void fromProperties(Properties properties)
Set this Configuration via the given Properties. Any keys missing from the given properties will not be set. Note that changes made to this Properties object will not be automatically reflected in this Configuration object.

configurationClone

public Configuration configurationClone()
Return a new Configuration that is an exact copy of this one.

clone

public Object clone()
Returns a clone of this Configuration. The clone will not have its configuration frozen, regardless of the original setting of the original.
Overrides:
clone in class Object

SolarMetric Kodo JDO Enterprise Edition 2.3.1 generated on August 20 2002

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