|
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
|
+--com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration
Simple implementation of the JDBCConfiguration interface.
| Fields inherited from class com.solarmetric.kodo.conf.SimpleConfiguration |
|---|
BASIC_OPTION, EXPERT_OPTION, TYPE_CONNECTING, TYPE_GENERAL, TYPE_JDO, TYPE_OPTIMIZATION |
| Fields inherited from interface com.solarmetric.kodo.impl.jdbc.JDBCConfiguration |
|---|
LOG_JDBC, LOG_SCHEMA, LOG_SQL |
| 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 | |
|---|---|
JDBCSimpleConfiguration()
Default constructor. |
|
JDBCSimpleConfiguration(boolean loadDefaults)
|
|
JDBCSimpleConfiguration(InputStream propertiesStream)
Constructor to access the properties taken from the specified stream |
|
JDBCSimpleConfiguration(Properties props)
Instantiate a JDBCSimpleConfiguration from a Properties object. |
|
| Method Summary | |
|---|---|
int |
getConnectionTestTimeout()
The number of seconds to wait between testing connections retrieved from the connection pool. |
String |
getDefaultClassMappingClass()
The class name of the default ClassMapping implementation. |
String |
getDefaultPersistenceManagerFactoryClass()
|
String |
getDefaultSubclassProviderClass()
The class name of the default SubclassProvider implementation. |
String |
getDefaultSubclassProviderProperties()
Configuration properties for the subclass provider. |
DBDictionary |
getDictionary(Connector connector)
The DBDictionary to use. |
String |
getDictionaryClass()
The dictionary class to use to define the RDBMS SQL information |
String |
getDictionaryProperties()
Configuration options for the dictionary. |
boolean |
getFlatInheritanceMapping()
Return whether or not a flat inheritance mapping strategy should be used by default. |
protected String[] |
getKnownConnectionURLList()
Allows a subclass to provide a list of example drivers, for use in a graphical component. |
protected String[] |
getKnownDriverList()
Return a list of the known drivers for the Configuration. |
SequenceFactory |
getSequenceFactory(Connector connector)
The SequenceFactory to use. |
String |
getSequenceFactoryClass()
The class name of the SequenceFactory implementation. |
String |
getSequenceFactoryProperties()
Configuration properties for the sequence factory. |
SQLExecutionListener |
getSQLExecutionListener()
Create an instance of the getSQLExecutionListenerClass() class. |
String |
getSQLExecutionListenerClass()
The static class for listening to SQLExecutionEvents. |
SQLExecutionManager |
getSQLExecutionManager()
|
String |
getSQLExecutionManagerClass()
The class to use for managing SQL execution. |
int |
getStatementCacheMaxSize()
The size of the statement re-use cache. |
int |
getStatementExecutionTimeout()
The timout for Statement execution (in seconds). |
boolean |
getSynchronizeSchema()
Automatically refresh the schema for all persistent types seen. |
String |
getTransactionIsolation()
The transaction isolation that will be used when starting JDBC transactions. |
int |
getTransactionIsolationLevel()
Return the transaction isolation as a Connection transaction constant. |
boolean |
getUseBatchedStatements()
Batch together multiple similiar statements for faster execution. |
boolean |
getUsePreparedStatements()
Use cache-able PreparedStatment objects for all JDBC access. |
boolean |
getWarnOnPersistentTypeFailure()
Warn (rather than throw an exception) when the class in the data store's persistent metadata is not found. |
protected static Properties |
loadProperties(InputStream in)
|
void |
setConnectionDriverName(String name)
Make sure the driver is loaded. |
void |
setConnectionTestTimeout(int connectionTestTimeout)
The number of seconds to wait between testing connections retrieved from the connection pool. |
void |
setConnectionTestTimeout(Integer connectionTestTimeout)
Wrapper setter for setConnectionTestTimeout(int). |
void |
setDefaultClassMappingClass(String defClass)
The class name of the default ClassMapping implementation. |
void |
setDefaultSubclassProviderClass(String defClass)
The class name of the default SubclassProvider implementation. |
void |
setDefaultSubclassProviderProperties(String defProps)
Configuration properties for the default subclass provider. |
void |
setDictionary(DBDictionary dict)
The DBDictionary to use. |
void |
setDictionaryClass(String dictionaryClass)
The dictionary class to use to define the RDBMS SQL information |
void |
setDictionaryProperties(String dictionaryProperties)
Configuration options for the dictionary. |
void |
setFlatInheritanceMapping(boolean map)
Configure the default inheritance hierarchy mapping strategy. |
void |
setFlatInheritanceMapping(Boolean map)
Wrapper setter for setFlatInheritanceMapping(boolean). |
void |
setProperties(String resourceName)
|
void |
setSequenceFactory(SequenceFactory dict)
The SequenceFactory to use. |
void |
setSequenceFactoryClass(String sequenceFactoryClass)
The class name of the SequenceFactory implementation. |
void |
setSequenceFactoryProperties(String sequenceFactoryProperties)
Configuration properties for the sequence factory. |
void |
setSQLExecutionListenerClass(String sqlExecutionListenerClass)
The static class for listening to SQLExecutionEvents. |
void |
setSQLExecutionManager(SQLExecutionManager executionManager)
|
void |
setSQLExecutionManagerClass(String sqlExecutionManagerClass)
The class to use for managing SQL execution. |
void |
setStatementCacheMaxSize(int statementCacheMaxSize)
The size of the statement re-use cache. |
void |
setStatementCacheMaxSize(Integer statementCacheMaxSize)
Wrapper setter for setStatementCacheMaxSize(int). |
void |
setStatementExecutionTimeout(int statementExecutionTimeout)
The timout for Statement execution (in seconds). |
void |
setStatementExecutionTimeout(Integer statementExecutionTimeout)
Wrapper setter for setStatementExecutionTimeout(int). |
void |
setSynchronizeSchema(boolean val)
Automatically refresh the schema for all persistent types seen. |
void |
setSynchronizeSchema(Boolean val)
Wrapper setter for setSynchronizeSchema(boolean). |
void |
setTransactionIsolation(String transactionIsolation)
The transaction isolation that will be used when starting JDBC transactions. |
void |
setUseBatchedStatements(boolean useBatchedStatements)
Batch together multiple similiar statements for faster execution. |
void |
setUseBatchedStatements(Boolean useBatchedStatements)
Wrapper setter for setUseBatchedStatements(boolean). |
void |
setUsePreparedStatements(boolean usePreparedStatements)
Use cache-able PreparedStatment objects for all JDBC access. |
void |
setUsePreparedStatements(Boolean usePreparedStatements)
Wrapper setter for setUsePreparedStatements(boolean). |
void |
setWarnOnPersistentTypeFailure(boolean warn)
Warn (rather than throw an exception) when the class in the data store's persistent metadata is not found. |
void |
setWarnOnPersistentTypeFailure(Boolean warn)
Wrapper setter for #setWarnOnPersistentTypeFailure(int). |
| 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 |
| Methods inherited from interface java.beans.BeanInfo |
|---|
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptors |
| Constructor Detail |
public JDBCSimpleConfiguration()
public JDBCSimpleConfiguration(boolean loadDefaults)
public JDBCSimpleConfiguration(InputStream propertiesStream)
throws IOException
public JDBCSimpleConfiguration(Properties props)
| Method Detail |
protected static Properties loadProperties(InputStream in)
throws IOException
public void setConnectionDriverName(String name)
setConnectionDriverName in interface ConfigurationsetConnectionDriverName in class SimpleConfiguration
public void setProperties(String resourceName)
throws IOException
public void setConnectionTestTimeout(int connectionTestTimeout)
JDBCConfigurationsetConnectionTestTimeout in interface JDBCConfigurationpublic void setConnectionTestTimeout(Integer connectionTestTimeout)
JDBCConfigurationJDBCConfiguration.setConnectionTestTimeout(int).setConnectionTestTimeout in interface JDBCConfigurationpublic int getConnectionTestTimeout()
JDBCConfigurationgetConnectionTestTimeout in interface JDBCConfigurationpublic void setDictionaryClass(String dictionaryClass)
JDBCConfigurationsetDictionaryClass in interface JDBCConfigurationpublic String getDictionaryClass()
JDBCConfigurationgetDictionaryClass in interface JDBCConfigurationpublic void setDictionaryProperties(String dictionaryProperties)
JDBCConfigurationsetDictionaryProperties in interface JDBCConfigurationpublic String getDictionaryProperties()
JDBCConfigurationgetDictionaryProperties in interface JDBCConfigurationpublic void setDictionary(DBDictionary dict)
JDBCConfigurationsetDictionary in interface JDBCConfigurationpublic DBDictionary getDictionary(Connector connector)
JDBCConfigurationJDBCConfiguration.setDictionary(com.solarmetric.kodo.impl.jdbc.schema.DBDictionary) method, it will be returned.
Otherwise, if the dictionary class has been set, a new instance
of the class will created and configured with any set dictionary
properties. This instance will be cached for subsequence calls to this
method. Finally, if no dictionary class has been set a default
dictionary will be returned.getDictionary in interface JDBCConfigurationpublic void setSQLExecutionManager(SQLExecutionManager executionManager)
public SQLExecutionManager getSQLExecutionManager()
public void setSQLExecutionManagerClass(String sqlExecutionManagerClass)
JDBCConfigurationsetSQLExecutionManagerClass in interface JDBCConfigurationpublic String getSQLExecutionManagerClass()
JDBCConfigurationgetSQLExecutionManagerClass in interface JDBCConfigurationpublic void setSequenceFactoryClass(String sequenceFactoryClass)
JDBCConfigurationsetSequenceFactoryClass in interface JDBCConfigurationpublic String getSequenceFactoryClass()
JDBCConfigurationgetSequenceFactoryClass in interface JDBCConfigurationpublic void setSequenceFactoryProperties(String sequenceFactoryProperties)
JDBCConfigurationsetSequenceFactoryProperties in interface JDBCConfigurationpublic String getSequenceFactoryProperties()
JDBCConfigurationgetSequenceFactoryProperties in interface JDBCConfigurationpublic SequenceFactory getSequenceFactory(Connector connector)
JDBCConfigurationJDBCConfiguration.setSequenceFactory(com.solarmetric.kodo.impl.jdbc.SequenceFactory) method, it will be returned.
Otherwise, if the sequence factory class has been set, a new instance
of the class will created and configured with any set sequence factory
properties. This instance will be cached for subsequence calls to this
method. Finally, if no sequence factory class has been seta default
sequence factory will be returned.getSequenceFactory in interface JDBCConfigurationpublic void setSequenceFactory(SequenceFactory dict)
JDBCConfigurationsetSequenceFactory in interface JDBCConfigurationpublic void setSQLExecutionListenerClass(String sqlExecutionListenerClass)
JDBCConfigurationSQLExecutionEvents.setSQLExecutionListenerClass in interface JDBCConfigurationpublic String getSQLExecutionListenerClass()
JDBCConfigurationSQLExecutionEvents.getSQLExecutionListenerClass in interface JDBCConfigurationpublic SQLExecutionListener getSQLExecutionListener()
JDBCConfigurationJDBCConfiguration.getSQLExecutionListenerClass() class.getSQLExecutionListener in interface JDBCConfigurationpublic String getDefaultPersistenceManagerFactoryClass()
getDefaultPersistenceManagerFactoryClass in class SimpleConfigurationpublic void setDefaultSubclassProviderClass(String defClass)
JDBCConfigurationsetDefaultSubclassProviderClass in interface JDBCConfigurationpublic String getDefaultSubclassProviderClass()
JDBCConfigurationgetDefaultSubclassProviderClass in interface JDBCConfigurationpublic void setDefaultSubclassProviderProperties(String defProps)
JDBCConfigurationsetDefaultSubclassProviderProperties in interface JDBCConfigurationpublic String getDefaultSubclassProviderProperties()
JDBCConfigurationgetDefaultSubclassProviderProperties in interface JDBCConfigurationpublic void setDefaultClassMappingClass(String defClass)
JDBCConfigurationsetDefaultClassMappingClass in interface JDBCConfigurationpublic String getDefaultClassMappingClass()
JDBCConfigurationgetDefaultClassMappingClass in interface JDBCConfigurationpublic void setWarnOnPersistentTypeFailure(boolean warn)
JDBCConfigurationsetWarnOnPersistentTypeFailure in interface JDBCConfigurationpublic void setWarnOnPersistentTypeFailure(Boolean warn)
JDBCConfiguration#setWarnOnPersistentTypeFailure(int).setWarnOnPersistentTypeFailure in interface JDBCConfigurationpublic boolean getWarnOnPersistentTypeFailure()
JDBCConfigurationgetWarnOnPersistentTypeFailure in interface JDBCConfigurationpublic void setFlatInheritanceMapping(boolean map)
JDBCConfigurationsetFlatInheritanceMapping in interface JDBCConfigurationpublic void setFlatInheritanceMapping(Boolean map)
JDBCConfigurationJDBCConfiguration.setFlatInheritanceMapping(boolean).setFlatInheritanceMapping in interface JDBCConfigurationpublic boolean getFlatInheritanceMapping()
JDBCConfigurationtrue, then all
fields of all classes in a given inheritance hierarchy will by
default map into the least-derived type's default primary
table. If false then a new default primary table
will be created for each class in the inheritance hierarchy,
and each type's declared fields will map to that table by
default.getFlatInheritanceMapping in interface JDBCConfigurationpublic void setUseBatchedStatements(boolean useBatchedStatements)
JDBCConfigurationsetUseBatchedStatements in interface JDBCConfigurationpublic void setUseBatchedStatements(Boolean useBatchedStatements)
JDBCConfigurationJDBCConfiguration.setUseBatchedStatements(boolean).setUseBatchedStatements in interface JDBCConfigurationpublic boolean getUseBatchedStatements()
JDBCConfigurationgetUseBatchedStatements in interface JDBCConfigurationpublic void setSynchronizeSchema(boolean val)
setSynchronizeSchema in interface JDBCConfigurationpublic void setSynchronizeSchema(Boolean val)
JDBCConfigurationJDBCConfiguration.setSynchronizeSchema(boolean).setSynchronizeSchema in interface JDBCConfigurationpublic boolean getSynchronizeSchema()
getSynchronizeSchema in interface JDBCConfigurationpublic void setUsePreparedStatements(boolean usePreparedStatements)
JDBCConfigurationsetUsePreparedStatements in interface JDBCConfigurationpublic void setUsePreparedStatements(Boolean usePreparedStatements)
JDBCConfigurationJDBCConfiguration.setUsePreparedStatements(boolean).setUsePreparedStatements in interface JDBCConfigurationpublic boolean getUsePreparedStatements()
JDBCConfigurationgetUsePreparedStatements in interface JDBCConfigurationpublic void setStatementCacheMaxSize(int statementCacheMaxSize)
JDBCConfigurationsetStatementCacheMaxSize in interface JDBCConfigurationpublic void setStatementCacheMaxSize(Integer statementCacheMaxSize)
JDBCConfigurationJDBCConfiguration.setStatementCacheMaxSize(int).setStatementCacheMaxSize in interface JDBCConfigurationpublic int getStatementCacheMaxSize()
JDBCConfigurationgetStatementCacheMaxSize in interface JDBCConfigurationpublic void setStatementExecutionTimeout(int statementExecutionTimeout)
setStatementExecutionTimeout in interface JDBCConfigurationpublic void setStatementExecutionTimeout(Integer statementExecutionTimeout)
JDBCConfigurationJDBCConfiguration.setStatementExecutionTimeout(int).setStatementExecutionTimeout in interface JDBCConfigurationpublic int getStatementExecutionTimeout()
getStatementExecutionTimeout in interface JDBCConfigurationpublic void setTransactionIsolation(String transactionIsolation)
setTransactionIsolation in interface JDBCConfigurationpublic int getTransactionIsolationLevel()
Connection transaction constant.getTransactionIsolationLevel in interface JDBCConfigurationpublic String getTransactionIsolation()
getTransactionIsolation in interface JDBCConfigurationprotected String[] getKnownDriverList()
getKnownDriverList in class SimpleConfigurationprotected String[] getKnownConnectionURLList()
SimpleConfigurationgetKnownConnectionURLList in class SimpleConfiguration
|
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 | |||||||||