|
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 SQLExecutionEvent s. |
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 SQLExecutionEvent s. |
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 Configuration
setConnectionDriverName
in class SimpleConfiguration
public void setProperties(String resourceName) throws IOException
public void setConnectionTestTimeout(int connectionTestTimeout)
JDBCConfiguration
setConnectionTestTimeout
in interface JDBCConfiguration
public void setConnectionTestTimeout(Integer connectionTestTimeout)
JDBCConfiguration
JDBCConfiguration.setConnectionTestTimeout(int)
.setConnectionTestTimeout
in interface JDBCConfiguration
public int getConnectionTestTimeout()
JDBCConfiguration
getConnectionTestTimeout
in interface JDBCConfiguration
public void setDictionaryClass(String dictionaryClass)
JDBCConfiguration
setDictionaryClass
in interface JDBCConfiguration
public String getDictionaryClass()
JDBCConfiguration
getDictionaryClass
in interface JDBCConfiguration
public void setDictionaryProperties(String dictionaryProperties)
JDBCConfiguration
setDictionaryProperties
in interface JDBCConfiguration
public String getDictionaryProperties()
JDBCConfiguration
getDictionaryProperties
in interface JDBCConfiguration
public void setDictionary(DBDictionary dict)
JDBCConfiguration
setDictionary
in interface JDBCConfiguration
public DBDictionary getDictionary(Connector connector)
JDBCConfiguration
JDBCConfiguration.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 JDBCConfiguration
public void setSQLExecutionManager(SQLExecutionManager executionManager)
public SQLExecutionManager getSQLExecutionManager()
public void setSQLExecutionManagerClass(String sqlExecutionManagerClass)
JDBCConfiguration
setSQLExecutionManagerClass
in interface JDBCConfiguration
public String getSQLExecutionManagerClass()
JDBCConfiguration
getSQLExecutionManagerClass
in interface JDBCConfiguration
public void setSequenceFactoryClass(String sequenceFactoryClass)
JDBCConfiguration
setSequenceFactoryClass
in interface JDBCConfiguration
public String getSequenceFactoryClass()
JDBCConfiguration
getSequenceFactoryClass
in interface JDBCConfiguration
public void setSequenceFactoryProperties(String sequenceFactoryProperties)
JDBCConfiguration
setSequenceFactoryProperties
in interface JDBCConfiguration
public String getSequenceFactoryProperties()
JDBCConfiguration
getSequenceFactoryProperties
in interface JDBCConfiguration
public SequenceFactory getSequenceFactory(Connector connector)
JDBCConfiguration
JDBCConfiguration.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 JDBCConfiguration
public void setSequenceFactory(SequenceFactory dict)
JDBCConfiguration
setSequenceFactory
in interface JDBCConfiguration
public void setSQLExecutionListenerClass(String sqlExecutionListenerClass)
JDBCConfiguration
SQLExecutionEvent
s.setSQLExecutionListenerClass
in interface JDBCConfiguration
public String getSQLExecutionListenerClass()
JDBCConfiguration
SQLExecutionEvent
s.getSQLExecutionListenerClass
in interface JDBCConfiguration
public SQLExecutionListener getSQLExecutionListener()
JDBCConfiguration
JDBCConfiguration.getSQLExecutionListenerClass()
class.getSQLExecutionListener
in interface JDBCConfiguration
public String getDefaultPersistenceManagerFactoryClass()
getDefaultPersistenceManagerFactoryClass
in class SimpleConfiguration
public void setDefaultSubclassProviderClass(String defClass)
JDBCConfiguration
setDefaultSubclassProviderClass
in interface JDBCConfiguration
public String getDefaultSubclassProviderClass()
JDBCConfiguration
getDefaultSubclassProviderClass
in interface JDBCConfiguration
public void setDefaultSubclassProviderProperties(String defProps)
JDBCConfiguration
setDefaultSubclassProviderProperties
in interface JDBCConfiguration
public String getDefaultSubclassProviderProperties()
JDBCConfiguration
getDefaultSubclassProviderProperties
in interface JDBCConfiguration
public void setDefaultClassMappingClass(String defClass)
JDBCConfiguration
setDefaultClassMappingClass
in interface JDBCConfiguration
public String getDefaultClassMappingClass()
JDBCConfiguration
getDefaultClassMappingClass
in interface JDBCConfiguration
public void setWarnOnPersistentTypeFailure(boolean warn)
JDBCConfiguration
setWarnOnPersistentTypeFailure
in interface JDBCConfiguration
public void setWarnOnPersistentTypeFailure(Boolean warn)
JDBCConfiguration
#setWarnOnPersistentTypeFailure(int)
.setWarnOnPersistentTypeFailure
in interface JDBCConfiguration
public boolean getWarnOnPersistentTypeFailure()
JDBCConfiguration
getWarnOnPersistentTypeFailure
in interface JDBCConfiguration
public void setFlatInheritanceMapping(boolean map)
JDBCConfiguration
setFlatInheritanceMapping
in interface JDBCConfiguration
public void setFlatInheritanceMapping(Boolean map)
JDBCConfiguration
JDBCConfiguration.setFlatInheritanceMapping(boolean)
.setFlatInheritanceMapping
in interface JDBCConfiguration
public boolean getFlatInheritanceMapping()
JDBCConfiguration
true
, 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 JDBCConfiguration
public void setUseBatchedStatements(boolean useBatchedStatements)
JDBCConfiguration
setUseBatchedStatements
in interface JDBCConfiguration
public void setUseBatchedStatements(Boolean useBatchedStatements)
JDBCConfiguration
JDBCConfiguration.setUseBatchedStatements(boolean)
.setUseBatchedStatements
in interface JDBCConfiguration
public boolean getUseBatchedStatements()
JDBCConfiguration
getUseBatchedStatements
in interface JDBCConfiguration
public void setSynchronizeSchema(boolean val)
setSynchronizeSchema
in interface JDBCConfiguration
public void setSynchronizeSchema(Boolean val)
JDBCConfiguration
JDBCConfiguration.setSynchronizeSchema(boolean)
.setSynchronizeSchema
in interface JDBCConfiguration
public boolean getSynchronizeSchema()
getSynchronizeSchema
in interface JDBCConfiguration
public void setUsePreparedStatements(boolean usePreparedStatements)
JDBCConfiguration
setUsePreparedStatements
in interface JDBCConfiguration
public void setUsePreparedStatements(Boolean usePreparedStatements)
JDBCConfiguration
JDBCConfiguration.setUsePreparedStatements(boolean)
.setUsePreparedStatements
in interface JDBCConfiguration
public boolean getUsePreparedStatements()
JDBCConfiguration
getUsePreparedStatements
in interface JDBCConfiguration
public void setStatementCacheMaxSize(int statementCacheMaxSize)
JDBCConfiguration
setStatementCacheMaxSize
in interface JDBCConfiguration
public void setStatementCacheMaxSize(Integer statementCacheMaxSize)
JDBCConfiguration
JDBCConfiguration.setStatementCacheMaxSize(int)
.setStatementCacheMaxSize
in interface JDBCConfiguration
public int getStatementCacheMaxSize()
JDBCConfiguration
getStatementCacheMaxSize
in interface JDBCConfiguration
public void setStatementExecutionTimeout(int statementExecutionTimeout)
setStatementExecutionTimeout
in interface JDBCConfiguration
public void setStatementExecutionTimeout(Integer statementExecutionTimeout)
JDBCConfiguration
JDBCConfiguration.setStatementExecutionTimeout(int)
.setStatementExecutionTimeout
in interface JDBCConfiguration
public int getStatementExecutionTimeout()
getStatementExecutionTimeout
in interface JDBCConfiguration
public void setTransactionIsolation(String transactionIsolation)
setTransactionIsolation
in interface JDBCConfiguration
public int getTransactionIsolationLevel()
Connection
transaction constant.getTransactionIsolationLevel
in interface JDBCConfiguration
public String getTransactionIsolation()
getTransactionIsolation
in interface JDBCConfiguration
protected String[] getKnownDriverList()
getKnownDriverList
in class SimpleConfiguration
protected String[] getKnownConnectionURLList()
SimpleConfiguration
getKnownConnectionURLList
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 |