|
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 | |||||||||
Configuration that defines the properties necessary to configure runtime and connect to a JDBC DataSource.
In addition to those supported by the Configuration,
the following properties are recognized:
| Field Summary | |
|---|---|
static String |
LOG_JDBC
|
static String |
LOG_SCHEMA
|
static String |
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 |
| 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 |
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. |
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. |
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. |
void |
setConnectionTestTimeout(int timeout)
The number of seconds to wait between testing connections retrieved from the connection pool. |
void |
setConnectionTestTimeout(Integer timeout)
Wrapper setter for setConnectionTestTimeout(int). |
void |
setDefaultClassMappingClass(String clsName)
The class name of the default ClassMapping implementation. |
void |
setDefaultSubclassProviderClass(String clsName)
The class name of the default SubclassProvider implementation. |
void |
setDefaultSubclassProviderProperties(String props)
Configuration properties for the default subclass provider. |
void |
setDictionary(DBDictionary dict)
The DBDictionary to use. |
void |
setDictionaryClass(String clsName)
The dictionary class to use to define the RDBMS SQL information |
void |
setDictionaryProperties(String props)
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 SequenceFactory to use. |
void |
setSequenceFactoryClass(String clsName)
The class name of the SequenceFactory implementation. |
void |
setSequenceFactoryProperties(String props)
Configuration properties for the sequence factory. |
void |
setSQLExecutionListenerClass(String sqlExecutionListenerClass)
The static class for listening to SQLExecutionEvents. |
void |
setSQLExecutionManagerClass(String clsName)
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 stmntTimeout)
Wrapper setter for setStatementExecutionTimeout(int). |
void |
setSynchronizeSchema(boolean synchronizeSchema)
Automatically refresh the schema for all persistent types seen. |
void |
setSynchronizeSchema(Boolean synchronizeSchema)
Wrapper setter for setSynchronizeSchema(boolean). |
void |
setTransactionIsolation(String transactionIsolation)
The transaction isolation that will be used when starting JDBC transactions. |
void |
setUseBatchedStatements(boolean useBatch)
Batch together multiple similiar statements for faster execution. |
void |
setUseBatchedStatements(Boolean useBatch)
Wrapper setter for setUseBatchedStatements(boolean). |
void |
setUsePreparedStatements(boolean usePs)
Use cache-able PreparedStatment objects for all JDBC access. |
void |
setUsePreparedStatements(Boolean usePs)
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 interface java.beans.BeanInfo |
|---|
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptors |
| Field Detail |
public static final String LOG_SQL
public static final String LOG_JDBC
public static final String LOG_SCHEMA
| Method Detail |
public int getConnectionTestTimeout()
public void setConnectionTestTimeout(int timeout)
public void setConnectionTestTimeout(Integer timeout)
setConnectionTestTimeout(int).public String getDictionaryClass()
public void setDictionaryClass(String clsName)
public String getSQLExecutionManagerClass()
public void setSQLExecutionManagerClass(String clsName)
public String getDictionaryProperties()
public void setDictionaryProperties(String props)
public DBDictionary getDictionary(Connector connector)
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.public void setDictionary(DBDictionary dict)
public String getSequenceFactoryClass()
public void setSequenceFactoryClass(String clsName)
public String getSequenceFactoryProperties()
public void setSequenceFactoryProperties(String props)
public SequenceFactory getSequenceFactory(Connector connector)
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.public void setSequenceFactory(SequenceFactory seq)
public String getDefaultSubclassProviderClass()
public void setDefaultSubclassProviderClass(String clsName)
public String getDefaultSubclassProviderProperties()
public void setDefaultSubclassProviderProperties(String props)
public String getDefaultClassMappingClass()
public void setDefaultClassMappingClass(String clsName)
public boolean getWarnOnPersistentTypeFailure()
public void setWarnOnPersistentTypeFailure(boolean warn)
public void setWarnOnPersistentTypeFailure(Boolean warn)
#setWarnOnPersistentTypeFailure(int).public boolean getUsePreparedStatements()
public void setUsePreparedStatements(boolean usePs)
public void setUsePreparedStatements(Boolean usePs)
setUsePreparedStatements(boolean).public boolean getSynchronizeSchema()
public void setSynchronizeSchema(boolean synchronizeSchema)
public void setSynchronizeSchema(Boolean synchronizeSchema)
setSynchronizeSchema(boolean).public boolean getUseBatchedStatements()
public void setUseBatchedStatements(boolean useBatch)
public void setUseBatchedStatements(Boolean useBatch)
setUseBatchedStatements(boolean).public boolean getFlatInheritanceMapping()
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.public void setFlatInheritanceMapping(boolean map)
public void setFlatInheritanceMapping(Boolean map)
setFlatInheritanceMapping(boolean).public int getStatementCacheMaxSize()
public void setStatementCacheMaxSize(int statementCacheMaxSize)
public void setStatementCacheMaxSize(Integer statementCacheMaxSize)
setStatementCacheMaxSize(int).public void setStatementExecutionTimeout(int statementExecutionTimeout)
public void setStatementExecutionTimeout(Integer stmntTimeout)
setStatementExecutionTimeout(int).public int getStatementExecutionTimeout()
public String getSQLExecutionListenerClass()
SQLExecutionEvents.public void setSQLExecutionListenerClass(String sqlExecutionListenerClass)
SQLExecutionEvents.public SQLExecutionListener getSQLExecutionListener()
getSQLExecutionListenerClass() class.public void setTransactionIsolation(String transactionIsolation)
public String getTransactionIsolation()
public int getTransactionIsolationLevel()
Connection transaction constant.Connection.TRANSACTION_NONE,
Connection.TRANSACTION_READ_COMMITTED,
Connection.TRANSACTION_READ_UNCOMMITTED,
Connection.TRANSACTION_REPEATABLE_READ,
Connection.TRANSACTION_SERIALIZABLE
|
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 | |||||||||