|
SolarMetric Kodo JDO Enterprise Edition 2.3.1 generated on August 20 2002 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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):
| 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 |
public String getLicenseKey()
public void setLicenseKey(String licenseKey)
public String getPersistenceManagerClass()
PersistenceManager type to create.public void setPersistenceManagerClass(String pmClass)
PersistenceManager type to create.public String getPersistenceManagerProperties()
public void setPersistenceManagerProperties(String props)
public String getDataCacheClass()
public void setDataCacheClass(String dataCacheClass)
public String getDataCacheProperties()
public void setDataCacheProperties(String props)
public DataCache getDataCache()
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 setDataCache(DataCache cache)
setDataCacheClass(java.lang.String) and
setDataCacheProperties(java.lang.String). Note that the instance set will
be held transiently.public String getProxyManagerClass()
public void setProxyManagerClass(String proxyClass)
public String getProxyManagerProperties()
public void setProxyManagerProperties(String props)
public ProxyManager getProxyManager()
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 setProxyManager(ProxyManager manager)
setProxyManagerClass(java.lang.String) and
setProxyManagerProperties(java.lang.String). Note that the instance set will
be held transiently.public boolean getOptimistic()
public void setOptimistic(boolean optimistic)
public boolean getRetainValues()
public void setRetainValues(boolean retainValues)
public boolean getRestoreValues()
public void setRestoreValues(boolean restoreValues)
public boolean getIgnoreCache()
public void setIgnoreCache(boolean ignoreCache)
public boolean getNontransactionalRead()
public void setNontransactionalRead(boolean ntRead)
public boolean getNontransactionalWrite()
public void setNontransactionalWrite(boolean ntWrite)
public boolean getMultithreaded()
public void setMultithreaded(boolean multithreaded)
public String getConnectionUserName()
public void setConnectionUserName(String connectionUserName)
public String getConnectionPassword()
public void setConnectionPassword(String connectionPassword)
public String getConnectionURL()
public void setConnectionURL(String connectionURL)
public String getConnectionDriverName()
public void setConnectionDriverName(String driverName)
public String getPersistenceManagerFactoryClass()
public void setPersistenceManagerFactoryClass(String pmfName)
public String getConnectionFactoryName()
public void setConnectionFactoryName(String cfName)
public Object getConnectionFactory()
public void setConnectionFactory(Object factory)
public String getConnectionFactory2Name()
public void setConnectionFactory2Name(String cf2Name)
public Object getConnectionFactory2()
public void setConnectionFactory2(Object factory)
public int getMaxPool()
public void setMaxPool(int maxPool)
public int getMinPool()
public void setMinPool(int minPool)
public int getMsWait()
public void setMsWait(int msWait)
public PrintWriter getLogWriter()
public void setLogWriter(PrintWriter logWriter)
public String getLogger()
public void setLogger(String logger)
public int getDefaultFetchThreshold()
public void setDefaultFetchThreshold(int threshold)
public int getDefaultFetchBatchSize()
public void setDefaultFetchBatchSize(int size)
public String getQueryFilterListeners()
public void setQueryFilterListeners(String props)
public boolean getEnableQueryExtensions()
public void setEnableQueryExtensions(boolean warn)
public void freeze()
#checkFrozen will throw a JDOUserException.public boolean isFrozen()
public Properties toProperties()
public void fromProperties(Properties properties)
public Configuration configurationClone()
public Object clone()
clone in class Object
|
SolarMetric Kodo JDO Enterprise Edition 2.3.1 generated on August 20 2002 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||