|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| 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.
| Field Summary | |
static String |
SEQUENCE_FACTORY_CLASS
The metadata extension to use to specify the sequence factory class for a given persistent type. |
static String |
SEQUENCE_FACTORY_PROPS
The metadata extension to use to specify the sequence factory properties for a given persistent type. |
| Fields inherited from class com.solarmetric.kodo.conf.SimpleConfiguration |
BASIC_OPTION, EXPERT_OPTION, TYPE_CONNECTING, TYPE_GENERAL, TYPE_JDO, TYPE_OPTIMIZATION |
| Fields inherited from class com.solarmetric.kodo.conf.DefaultConfiguration |
_loc, _log |
| 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_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 | |
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 | |
String |
getConnectionRetainMode()
The connection retain mode. |
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 default SequenceFactory to use. |
SequenceFactory |
getSequenceFactory(Connector connector,
ClassMetaData meta)
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. |
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. |
String |
getUseSQL92Joins()
Whether or not to use SQL 92-style joins in queries, including left outer joins for joins in OR clauses. |
int |
getUseSQL92JoinsConstant()
Return the constant from JDBCQuery for the join type. |
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 |
setConnectionRetainMode(String mode)
The connection retain mode. |
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 |
setSequenceFactory(SequenceFactory seq)
The default SequenceFactory to use. |
void |
setSequenceFactory(SequenceFactory seq,
ClassMetaData meta)
The SequenceFactory to use for classes of type meta. |
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 |
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 |
setUseSQL92Joins(String useSQL92Joins)
Whether or not to use SQL 92-style joins in queries, including left outer joins for joins in OR clauses. |
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(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 |
|
| Methods inherited from interface java.beans.BeanInfo |
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptors |
| Methods inherited from interface com.solarmetric.kodo.impl.jdbc.ConnectionFactoryConfiguration |
getConnectionDriverName, getConnectionFactoryName, getConnectionPassword, getConnectionProperties, getConnectionPropertiesProps, getConnectionURL, getConnectionUserName, getMaxPool, getMinPool, getMsWait, setConnectionFactoryName, setConnectionPassword, setConnectionProperties, setConnectionURL, setConnectionUserName, setMaxPool, setMinPool, setMsWait |
| Field Detail |
public static final String SEQUENCE_FACTORY_CLASS
public static final String SEQUENCE_FACTORY_PROPS
| 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 SimpleConfigurationpublic void setConnectionRetainMode(String mode)
JDBCConfigurationpersistence-manager, transaction,
and on-demand. Default value is
on-demand.setConnectionRetainMode in interface JDBCConfigurationpublic String getConnectionRetainMode()
JDBCConfigurationpersistence-manager, transaction,
and on-demand. Default value is
on-demand.getConnectionRetainMode in interface JDBCConfigurationpublic 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 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)
JDBCConfigurationgetSequenceFactory in interface JDBCConfiguration
public SequenceFactory getSequenceFactory(Connector connector,
ClassMetaData meta)
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 subsequent calls to this
method. Finally, if no sequence factory class has been set, a default
sequence factory will be returned.getSequenceFactory in interface JDBCConfigurationpublic void setSequenceFactory(SequenceFactory seq)
JDBCConfigurationsetSequenceFactory in interface JDBCConfiguration
public void setSequenceFactory(SequenceFactory seq,
ClassMetaData meta)
JDBCConfigurationmeta.setSequenceFactory 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)
JDBCConfigurationJDBCConfiguration.setWarnOnPersistentTypeFailure(boolean).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 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 JDBCConfigurationpublic String getUseSQL92Joins()
JDBCConfigurationtrue: Use SQL 92 joins.false: Use traditional joins.database: Use the database's proprietary join
syntax, if it has one.getUseSQL92Joins in interface JDBCConfigurationpublic void setUseSQL92Joins(String useSQL92Joins)
JDBCConfigurationtrue: Use SQL 92 joins.false: Use traditional joins.database: Use the database's proprietary join
syntax, if it has one.setUseSQL92Joins in interface JDBCConfigurationpublic int getUseSQL92JoinsConstant()
JDBCConfigurationJDBCQuery for the join type.getUseSQL92JoinsConstant in interface JDBCConfigurationprotected String[] getKnownDriverList()
getKnownDriverList in class SimpleConfigurationprotected String[] getKnownConnectionURLList()
SimpleConfigurationgetKnownConnectionURLList in class SimpleConfiguration
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||