|
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 | ||||||||
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
JDBC event logging. |
static String |
LOG_SCHEMA
Schema-related stuff logging constant. |
static String |
LOG_SQL
SQL and SQL execution manager logging. |
| 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 |
| 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 |
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)
Deprecated. Use getSequenceFactory(Connector,ClassMetaData)
instead. |
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. |
void |
setConnectionRetainMode(String mode)
The connection retain mode. |
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 default SequenceFactory to use. |
void |
setSequenceFactory(SequenceFactory seq,
ClassMetaData meta)
The SequenceFactory to use for classes of type meta. |
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 |
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 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, setConnectionDriverName, setConnectionFactoryName, setConnectionPassword, setConnectionProperties, setConnectionURL, setConnectionUserName, setMaxPool, setMinPool, setMsWait |
| Field Detail |
public static final String LOG_SQL
public static final String LOG_JDBC
public static final String LOG_SCHEMA
| Method Detail |
public String getConnectionRetainMode()
persistence-manager, transaction,
and on-demand. Default value is
on-demand.public void setConnectionRetainMode(String mode)
persistence-manager, transaction,
and on-demand. Default value is
on-demand.public int getConnectionTestTimeout()
getConnectionTestTimeout in interface ConnectionFactoryConfigurationpublic void setConnectionTestTimeout(int timeout)
setConnectionTestTimeout in interface ConnectionFactoryConfigurationpublic 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)
getSequenceFactory(Connector,ClassMetaData)
instead.
public SequenceFactory getSequenceFactory(Connector connector,
ClassMetaData meta)
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.public void setSequenceFactory(SequenceFactory seq)
public void setSequenceFactory(SequenceFactory seq,
ClassMetaData meta)
meta.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(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()
getStatementCacheMaxSize in interface ConnectionFactoryConfigurationpublic void setStatementCacheMaxSize(int statementCacheMaxSize)
setStatementCacheMaxSize in interface ConnectionFactoryConfigurationpublic void setStatementCacheMaxSize(Integer statementCacheMaxSize)
setStatementCacheMaxSize(int).public void setStatementExecutionTimeout(int statementExecutionTimeout)
setStatementExecutionTimeout in interface ConnectionFactoryConfigurationpublic void setStatementExecutionTimeout(Integer stmntTimeout)
setStatementExecutionTimeout(int).public int getStatementExecutionTimeout()
getStatementExecutionTimeout in interface ConnectionFactoryConfigurationpublic 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_SERIALIZABLEpublic String getUseSQL92Joins()
true: Use SQL 92 joins.false: Use traditional joins.database: Use the database's proprietary join
syntax, if it has one.public void setUseSQL92Joins(String useSQL92Joins)
true: Use SQL 92 joins.false: Use traditional joins.database: Use the database's proprietary join
syntax, if it has one.public int getUseSQL92JoinsConstant()
JDBCQuery for the join type.
|
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 | ||||||||