|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.solarmetric.conf.ConfigurationImpl
|
+--kodo.conf.JDOConfigurationImpl
|
+--kodo.jdbc.conf.JDBCConfigurationImpl
Default implementation of the JDBCConfiguration interface.
| Fields inherited from class com.solarmetric.conf.ConfigurationImpl |
logFactory |
| Fields inherited from interface kodo.jdbc.conf.JDBCConfiguration |
LOG_JDBC, LOG_SCHEMA, LOG_SQL |
| Fields inherited from interface com.solarmetric.conf.Configuration |
ATTRIBUTE_ALLOWED_VALUES, ATTRIBUTE_CATEGORY, ATTRIBUTE_ORDER, ATTRIBUTE_TYPE |
| Fields inherited from interface java.beans.BeanInfo |
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
| Constructor Summary | |
JDBCConfigurationImpl()
Default constructor. |
|
JDBCConfigurationImpl(boolean loadDefaults)
Constructor. |
|
JDBCConfigurationImpl(JDBCConfiguration conf)
Constructor. |
|
| Method Summary | |
void |
close()
Free the data sources. |
boolean |
getAutoIncrementConstraints()
Whether Kodo will order SQL to meet constraints imposed by auto-increment primary key values. |
String |
getClassIndicator()
The ClassIndicator to use when creating new class mappings. |
ConnectionDecorator[] |
getConnectionDecoratorInstances()
The ConnectionDecorators to use. |
String |
getConnectionDecorators()
A comma-separated list of the ConnectionDecorator for adding
functionality to JDBC connections. |
Object |
getConnectionFactory()
The connection factory, possibly from JNDI. |
Object |
getConnectionFactory2()
The non-XA connection factory. |
DataSource |
getDataSource(KodoPersistenceManager pm)
Return the primary data source to use. |
DataSource |
getDataSource2(KodoPersistenceManager pm)
Return the non-xa data source to use. |
String |
getDataSourceMode()
The mode of the JDBC data source in use. |
String |
getDBDictionary()
The DBDictionary to use to define the RDBMS SQL
information. |
DBDictionary |
getDBDictionaryInstance()
The DBDictionary to use. |
String |
getFetchDirection()
The JDBC fetch direction. |
int |
getFetchDirectionConstant()
Return the result set constant for the fetch direction. |
boolean |
getForeignKeyConstraints()
Whether Kodo will order SQL inserts, updates, and deletes to meet foreign key constraints. |
JDBCListener[] |
getJDBCListenerInstances()
The JDBCListeners to use. |
String |
getJDBCListeners()
A comma-separated list of the JDBCListener plugins for
listening to JDBCEvents. |
com.solarmetric.license.License |
getLicense()
Return the license for the set license key. |
String |
getLRSSize()
How to obtain the size of large result sets. |
int |
getLRSSizeConstant()
Return the JDBCFetchConfiguration constant for the large
result set size setting. |
String |
getMappingFactory()
The plugin string for the MappingFactory to use in creating the
O-R mappings. |
MappingFactory |
getMappingFactoryInstance()
The MappingFactory to use for O-R mapping. |
MappingRepository |
getMappingRepository()
Return the mapping repository. |
JDOMetaDataRepository |
getMetaDataRepository()
The metadata repository of managed class information. |
String |
getResultSetType()
The JDBC result set type. |
int |
getResultSetTypeConstant()
Return the result set constant for the result set type. |
String |
getSchemaFactory()
The plugin string for the SchemaFactory to use to provide
schema information during system initialization. |
SchemaFactory |
getSchemaFactoryInstance()
The SchemaFactory to use for schema information. |
String |
getSchemas()
Comma-separated list of modifiable schemas for JDO instances. |
String[] |
getSchemasList()
Modificable schema components. |
String |
getSequenceFactory()
The plugin string for the SequenceFactory implementation. |
SequenceFactory |
getSequenceFactoryInstance()
The SequenceFactory to use. |
String |
getSubclassMapping()
The ClassMapping to use when mapping subclasses. |
String |
getSynchronizeMappings()
Whether Kodo should try to automatically refresh O/R mapping information and the database schema. |
String |
getTransactionIsolation()
The transaction isolation level to use at the database level. |
int |
getTransactionIsolationConstant()
Return the proper transaction isolation level constant from Connection, or -1 for the default level. |
String |
getUpdateManager()
The UpdateManager to use for managing SQL updates. |
UpdateManager |
getUpdateManagerInstance()
The UpdateManager for runtime data store interaction. |
String |
getVersionIndicator()
The VersionIndicator to use when creating new class mappings. |
boolean |
isDataSourceModeEnlisted()
Whether the data source is automatically enlisted in global transactions. |
protected boolean |
isInvalidProperty(String propName)
Returns true if the specified property name should raise a warning if it is not found in the list of known properties. |
void |
setAutoIncrementConstraints(boolean autoIncrementConstraints)
Whether Kodo will order SQL to meet constraints imposed by auto-increment primary key values. |
void |
setAutoIncrementConstraints(Boolean autoIncrementConstraints)
Wrapper for JCA usage of setAutoIncrementConstraints(boolean). |
void |
setClassIndicator(String classIndicator)
The full class or type name of the ClassIndicator
to use when creating new class mappings. |
void |
setConnectionDecorators(ConnectionDecorator[] decorators)
The ConnectionDecorators to use. |
void |
setConnectionDecorators(String connectionDecorators)
A comma-separated list of the ConnectionDecorator for
adding functionality to JDBC connections. |
void |
setConnectionFactory(Object factory)
The connection factory. |
void |
setConnectionFactory2(Object factory)
The non-XA connection factory. |
void |
setDataSourceMode(String mode)
The mode of the JDBC data source in use. |
void |
setDataSourceModeEnlisted(boolean enlisted)
Whether the data source is automatically enlisted in global transactions. |
void |
setDBDictionary(DBDictionary dbdictionary)
The DBDictionary to use. |
void |
setDBDictionary(String dbdictionary)
The DBDictionary to use to define the RDBMS SQL
information. |
void |
setFetchDirection(int fetchDirection)
Set the result set fetch direction constant. |
void |
setFetchDirection(String fetchDirection)
The JDBC fetch direction. |
void |
setFirstPersistenceManagerPassword(String pass)
Set the first connection password used to obtain a persistence manager. |
void |
setFirstPersistenceManagerUserName(String user)
Set the first connection user name used to obtain a persistence manager. |
void |
setForeignKeyConstraints(boolean foreignKeyConstraints)
Whether Kodo will order SQL inserts, updates, and deletes to meet foreign key constraints. |
void |
setForeignKeyConstraints(Boolean foreignKeyConstraints)
Wrapper for JCA usage of setForeignKeyConstraints(boolean). |
void |
setJDBCListeners(JDBCListener[] listeners)
The JDBCListeners to use. |
void |
setJDBCListeners(String jdbcListeners)
A comma-separated list of the JDBCListener plugins for
listening to JDBCEvents. |
void |
setLRSSize(int lrsSize)
Set the fetch configuration large result set size constant. |
void |
setLRSSize(String lrsSize)
How to obtain the size of large result sets. |
void |
setMappingFactory(MappingFactory mappingFactory)
The MappingFactory to use for O-R mapping. |
void |
setMappingFactory(String mappingFactory)
The plugin string for the MappingFactory to use in creating the
O-R mappings. |
void |
setResultSetType(int resultSetType)
Set the result set constant type. |
void |
setResultSetType(String resultSetType)
The JDBC result set type. |
void |
setSchemaFactory(SchemaFactory schemaFactory)
The SchemaFactory to use for schema information. |
void |
setSchemaFactory(String schemaFactory)
The plugin string for the SchemaFactory to use to provide
schema information during system initialization. |
void |
setSchemas(String schemas)
Comma-separated list of modifiable schemas for JDO instances. |
void |
setSchemas(String[] schemas)
Modifiable schema components. |
void |
setSequenceFactory(SequenceFactory sequenceFactory)
The SequenceFactory to use. |
void |
setSequenceFactory(String sequenceFactory)
The plugin string for the SequenceFactory implementation. |
void |
setSubclassMapping(String subclassMapping)
The ClassMapping to use when mapping subclasses. |
void |
setSynchronizeMappings(String synchronizeMappings)
Whether Kodo should try to automatically refresh O/R mapping information and the database schema. |
void |
setTransactionIsolation(int transactionIsolation)
Set the proper transaction isolation level constant from Connection, or -1 for the default level. |
void |
setTransactionIsolation(String transactionIsolation)
The transaction isolation level to use at the database level. |
void |
setUpdateManager(String updateManager)
The UpdateManager to use for managing SQL updates. |
void |
setUpdateManager(UpdateManager updateManager)
The UpdateManager for runtime data store interaction. |
void |
setVersionIndicator(String versionIndicator)
The VersionIndicator to use when creating new class mappings. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.solarmetric.conf.Configuration |
addPropertyChangeListener, fromProperties, getConfigurationException, getConfigurationLog, getLog, getLogFactory, getValue, getValues, isCaching, isFrozen, removePropertyChangeListener, setCaching, setFrozen, setLogFactory, toProperties, toProperties |
| Methods inherited from interface java.beans.BeanInfo |
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptors |
| Field Detail |
protected DBDictionary dbdictionary
protected SequenceFactory sequenceFactory
protected MappingFactory mappingFactory
protected SchemaFactory schemaFactory
protected UpdateManager updateManager
protected JDBCListener[] jdbcListeners
protected ConnectionDecorator[] connectionDecorators
protected final StringListValue schemas
protected final IntValue transactionIsolation
protected final IntValue resultSetType
protected final IntValue fetchDirection
protected final IntValue lrsSize
protected final BooleanValue foreignKeyConstraints
protected final BooleanValue autoIncrementConstraints
protected final BooleanValue dataSourceMode
protected final StringValue synchronizeMappings
protected final PluginListValue jdbcListenerPlugins
protected final PluginListValue connectionDecoratorPlugins
protected final PluginValue dbdictionaryPlugin
protected final PluginValue sequenceFactoryPlugin
protected final PluginValue updateManagerPlugin
protected final PluginValue mappingFactoryPlugin
protected final PluginValue schemaFactoryPlugin
protected final StringValue versionIndicator
protected final StringValue classIndicator
protected final StringValue subclassMapping
| Constructor Detail |
public JDBCConfigurationImpl()
kodo.properties.public JDBCConfigurationImpl(JDBCConfiguration conf)
loadDefaults - configuration template to use to populate
this configurationpublic JDBCConfigurationImpl(boolean loadDefaults)
loadDefaults - whether to attempt to load the default
kodo.properties resource| Method Detail |
public void setSchemas(String schemas)
JDBCConfigurationsetSchemas in interface JDBCConfigurationpublic String getSchemas()
JDBCConfigurationgetSchemas in interface JDBCConfigurationpublic void setSchemas(String[] schemas)
JDBCConfigurationsetSchemas in interface JDBCConfigurationpublic String[] getSchemasList()
JDBCConfigurationgetSchemasList in interface JDBCConfigurationpublic void setTransactionIsolation(String transactionIsolation)
JDBCConfigurationdefault: The JDBC driver's default isolation
level.none: The standard JDBC
Connection.TRANSACTION_NONE level.read-committed: The standard JDBC
Connection.TRANSACTION_READ_COMMITTED level.read-uncommitted: The standard JDBC
Connection.TRANSACTION_READ_UNCOMMITTED level.repeatable-read: The standard JDBC
Connection.TRANSACTION_REPEATABLE_READ level.serializable: The standard JDBC
Connection.TRANSACTION_SERIALIZABLE level.setTransactionIsolation in interface JDBCConfigurationpublic String getTransactionIsolation()
JDBCConfigurationdefault: The JDBC driver's default isolation
level.none: The standard JDBC
Connection.TRANSACTION_NONE level.read-committed: The standard JDBC
Connection.TRANSACTION_READ_COMMITTED level.read-uncommitted: The standard JDBC
Connection.TRANSACTION_READ_UNCOMMITTED level.repeatable-read: The standard JDBC
Connection.TRANSACTION_REPEATABLE_READ level.serializable: The standard JDBC
Connection.TRANSACTION_SERIALIZABLE level.getTransactionIsolation in interface JDBCConfigurationpublic void setTransactionIsolation(int transactionIsolation)
JDBCConfigurationConnection, or -1 for the default level.setTransactionIsolation in interface JDBCConfigurationpublic int getTransactionIsolationConstant()
JDBCConfigurationConnection, or -1 for the default level.getTransactionIsolationConstant in interface JDBCConfigurationpublic void setResultSetType(String resultSetType)
JDBCConfigurationforward-only.
forward-only: The standard JDBC
ResultSet#TYPE_FORWARD_ONLY type.scroll-sensitive: The standard JDBC
ResultSet#TYPE_SCROLL_SENSITIVE type.scroll-insensitive: The standard JDBC
ResultSet#TYPE_SCROLL_INSENSITIVE type.setResultSetType in interface JDBCConfigurationpublic String getResultSetType()
JDBCConfigurationforward-only.
forward-only: The standard JDBC
ResultSet#TYPE_FORWARD_ONLY type.scroll-sensitive: The standard JDBC
ResultSet#TYPE_SCROLL_SENSITIVE type.scroll-insensitive: The standard JDBC
ResultSet#TYPE_SCROLL_INSENSITIVE type.getResultSetType in interface JDBCConfigurationpublic void setResultSetType(int resultSetType)
JDBCConfigurationsetResultSetType in interface JDBCConfigurationpublic int getResultSetTypeConstant()
JDBCConfigurationgetResultSetTypeConstant in interface JDBCConfigurationpublic void setFetchDirection(String fetchDirection)
JDBCConfigurationforward.
forward: The standard JDBC
ResultSet#FETCH_FORWARD direction.reverse: The standard JDBC
ResultSet#FETCH_REVERSE direction.unknown: The standard JDBC
ResultSet#FETCH_UNKNOWN direction.setFetchDirection in interface JDBCConfigurationpublic String getFetchDirection()
JDBCConfigurationforward.
forward: The standard JDBC
ResultSet#FETCH_FORWARD direction.reverse: The standard JDBC
ResultSet#FETCH_REVERSE direction.unknown: The standard JDBC
ResultSet#FETCH_UNKNOWN direction.getFetchDirection in interface JDBCConfigurationpublic void setFetchDirection(int fetchDirection)
JDBCConfigurationsetFetchDirection in interface JDBCConfigurationpublic int getFetchDirectionConstant()
JDBCConfigurationgetFetchDirectionConstant in interface JDBCConfigurationpublic void setLRSSize(String lrsSize)
JDBCConfigurationunknown.
unknown: Do not attempt to calculate the size of
large result sets; return Integer.MAX_VALUE.last: For result sets that support random access,
calculate the size using ResultSet#last.query: Use a separate COUNT query to calculate the
size of the results.setLRSSize in interface JDBCConfigurationpublic String getLRSSize()
JDBCConfigurationunknown.
unknown: Do not attempt to calculate the size of
large result sets; return Integer.MAX_VALUE.last: For result sets that support random access,
calculate the size using ResultSet#last.query: Use a separate COUNT query to calculate the
size of the results.getLRSSize in interface JDBCConfigurationpublic void setLRSSize(int lrsSize)
JDBCConfigurationsetLRSSize in interface JDBCConfigurationpublic int getLRSSizeConstant()
JDBCConfigurationJDBCFetchConfiguration constant for the large
result set size setting.getLRSSizeConstant in interface JDBCConfigurationpublic void setForeignKeyConstraints(boolean foreignKeyConstraints)
JDBCConfigurationsetForeignKeyConstraints in interface JDBCConfigurationpublic void setForeignKeyConstraints(Boolean foreignKeyConstraints)
JDBCConfigurationJDBCConfiguration.setForeignKeyConstraints(boolean).setForeignKeyConstraints in interface JDBCConfigurationpublic boolean getForeignKeyConstraints()
JDBCConfigurationgetForeignKeyConstraints in interface JDBCConfigurationpublic void setSynchronizeMappings(String synchronizeMappings)
JDBCConfigurationsetSynchronizeMappings in interface JDBCConfigurationpublic String getSynchronizeMappings()
JDBCConfigurationgetSynchronizeMappings in interface JDBCConfigurationpublic void setAutoIncrementConstraints(boolean autoIncrementConstraints)
JDBCConfigurationsetAutoIncrementConstraints in interface JDBCConfigurationpublic void setAutoIncrementConstraints(Boolean autoIncrementConstraints)
JDBCConfigurationJDBCConfiguration.setAutoIncrementConstraints(boolean).setAutoIncrementConstraints in interface JDBCConfigurationpublic boolean getAutoIncrementConstraints()
JDBCConfigurationgetAutoIncrementConstraints in interface JDBCConfigurationpublic String getDataSourceMode()
JDBCConfigurationgetDataSourceMode in interface JDBCConfigurationpublic void setDataSourceMode(String mode)
JDBCConfigurationsetDataSourceMode in interface JDBCConfigurationpublic boolean isDataSourceModeEnlisted()
JDBCConfigurationisDataSourceModeEnlisted in interface JDBCConfigurationpublic void setDataSourceModeEnlisted(boolean enlisted)
JDBCConfigurationsetDataSourceModeEnlisted in interface JDBCConfigurationpublic void setJDBCListeners(String jdbcListeners)
JDBCConfigurationJDBCListener plugins for
listening to JDBCEvents.setJDBCListeners in interface JDBCConfigurationpublic String getJDBCListeners()
JDBCConfigurationJDBCListener plugins for
listening to JDBCEvents.getJDBCListeners in interface JDBCConfigurationpublic void setJDBCListeners(JDBCListener[] listeners)
JDBCConfigurationJDBCListeners to use.setJDBCListeners in interface JDBCConfigurationpublic JDBCListener[] getJDBCListenerInstances()
JDBCConfigurationJDBCListeners to use.getJDBCListenerInstances in interface JDBCConfigurationpublic void setConnectionDecorators(String connectionDecorators)
JDBCConfigurationConnectionDecorator for
adding functionality to JDBC connections.setConnectionDecorators in interface JDBCConfigurationpublic String getConnectionDecorators()
JDBCConfigurationConnectionDecorator for adding
functionality to JDBC connections.getConnectionDecorators in interface JDBCConfigurationpublic void setConnectionDecorators(ConnectionDecorator[] decorators)
JDBCConfigurationConnectionDecorators to use.setConnectionDecorators in interface JDBCConfigurationpublic ConnectionDecorator[] getConnectionDecoratorInstances()
JDBCConfigurationConnectionDecorators to use.getConnectionDecoratorInstances in interface JDBCConfigurationpublic void setDBDictionary(String dbdictionary)
JDBCConfigurationDBDictionary to use to define the RDBMS SQL
information.setDBDictionary in interface JDBCConfigurationpublic String getDBDictionary()
JDBCConfigurationDBDictionary to use to define the RDBMS SQL
information.getDBDictionary in interface JDBCConfigurationpublic void setDBDictionary(DBDictionary dbdictionary)
JDBCConfigurationDBDictionary to use.setDBDictionary in interface JDBCConfigurationpublic DBDictionary getDBDictionaryInstance()
JDBCConfigurationDBDictionary to use.getDBDictionaryInstance in interface JDBCConfigurationpublic void setSequenceFactory(String sequenceFactory)
JDBCConfigurationSequenceFactory implementation.setSequenceFactory in interface JDBCConfigurationpublic String getSequenceFactory()
JDBCConfigurationSequenceFactory implementation.getSequenceFactory in interface JDBCConfigurationpublic void setSequenceFactory(SequenceFactory sequenceFactory)
JDBCConfigurationSequenceFactory to use.setSequenceFactory in interface JDBCConfigurationpublic SequenceFactory getSequenceFactoryInstance()
JDBCConfigurationSequenceFactory to use.getSequenceFactoryInstance in interface JDBCConfigurationpublic void setUpdateManager(String updateManager)
JDBCConfigurationUpdateManager to use for managing SQL updates.setUpdateManager in interface JDBCConfigurationpublic String getUpdateManager()
JDBCConfigurationUpdateManager to use for managing SQL updates.getUpdateManager in interface JDBCConfigurationpublic void setUpdateManager(UpdateManager updateManager)
JDBCConfigurationUpdateManager for runtime data store interaction.setUpdateManager in interface JDBCConfigurationpublic UpdateManager getUpdateManagerInstance()
JDBCConfigurationUpdateManager for runtime data store interaction.getUpdateManagerInstance in interface JDBCConfigurationpublic void setMappingFactory(String mappingFactory)
JDBCConfigurationMappingFactory to use in creating the
O-R mappings. Defaults to the FileMappingFactory.setMappingFactory in interface JDBCConfigurationpublic String getMappingFactory()
JDBCConfigurationMappingFactory to use in creating the
O-R mappings. Defaults to the FileMappingFactory.getMappingFactory in interface JDBCConfigurationpublic void setMappingFactory(MappingFactory mappingFactory)
JDBCConfigurationMappingFactory to use for O-R mapping.setMappingFactory in interface JDBCConfigurationpublic MappingFactory getMappingFactoryInstance()
JDBCConfigurationMappingFactory to use for O-R mapping.getMappingFactoryInstance in interface JDBCConfigurationpublic void setSchemaFactory(String schemaFactory)
JDBCConfigurationSchemaFactory to use to provide
schema information during system initialization.
Defaults to the LazySchemaFactory.setSchemaFactory in interface JDBCConfigurationpublic String getSchemaFactory()
JDBCConfigurationSchemaFactory to use to provide
schema information during system initialization.
Defaults to the LazySchemaFactory.getSchemaFactory in interface JDBCConfigurationpublic void setSchemaFactory(SchemaFactory schemaFactory)
JDBCConfigurationSchemaFactory to use for schema information.setSchemaFactory in interface JDBCConfigurationpublic SchemaFactory getSchemaFactoryInstance()
JDBCConfigurationSchemaFactory to use for schema information.getSchemaFactoryInstance in interface JDBCConfigurationpublic void setVersionIndicator(String versionIndicator)
JDBCConfigurationVersionIndicator to use when creating new class mappings.
Defaults to version-number.setVersionIndicator in interface JDBCConfigurationpublic String getVersionIndicator()
JDBCConfigurationVersionIndicator to use when creating new class mappings.
Defaults to version-number.getVersionIndicator in interface JDBCConfigurationpublic void setClassIndicator(String classIndicator)
JDBCConfigurationClassIndicator
to use when creating new class mappings.
Defaults to in-class-name.setClassIndicator in interface JDBCConfigurationpublic String getClassIndicator()
JDBCConfigurationClassIndicator to use when creating new class mappings.
Defaults to in-class-name.getClassIndicator in interface JDBCConfigurationpublic void setSubclassMapping(String subclassMapping)
JDBCConfigurationClassMapping to use when mapping subclasses.
Defaults to flat.setSubclassMapping in interface JDBCConfigurationpublic String getSubclassMapping()
JDBCConfigurationClassMapping to use when mapping subclasses.
Defaults to flat.getSubclassMapping in interface JDBCConfigurationpublic MappingRepository getMappingRepository()
JDBCConfigurationgetMappingRepository in interface JDBCConfigurationpublic com.solarmetric.license.License getLicense()
JDOConfigurationgetLicense in interface JDOConfigurationgetLicense in class JDOConfigurationImplpublic JDOMetaDataRepository getMetaDataRepository()
JDOConfigurationgetMetaDataRepository in interface JDOConfigurationgetMetaDataRepository in class JDOConfigurationImplpublic Object getConnectionFactory()
JDOConfigurationgetConnectionFactory in interface JDOConfigurationgetConnectionFactory in class JDOConfigurationImplpublic void setConnectionFactory(Object factory)
JDOConfigurationsetConnectionFactory in interface JDOConfigurationsetConnectionFactory in class JDOConfigurationImplpublic Object getConnectionFactory2()
JDOConfigurationgetConnectionFactory2 in interface JDOConfigurationgetConnectionFactory2 in class JDOConfigurationImplpublic void setConnectionFactory2(Object factory)
JDOConfigurationsetConnectionFactory2 in interface JDOConfigurationsetConnectionFactory2 in class JDOConfigurationImplpublic DataSource getDataSource(KodoPersistenceManager pm)
JDBCConfigurationDataSource.getConnection(). If the given
persistence manager is null, the data source will use the
configuration's default connection user name and password. If those
too are null and the first persistence manager has been obtained
already, then the user name and password for that persistence manager
will be used, as we know they represent a valid combination. This
method avoids casting the result of
JDOConfiguration.getConnectionFactory(), and avoids having to
pass in the user name and password to obtain connections.getDataSource in interface JDBCConfigurationpublic DataSource getDataSource2(KodoPersistenceManager pm)
JDBCConfigurationDataSource.getConnection() will be the specificed connection 2
user name and password. If those are null and the given persistence
manager is non-null, its user name password will be used instead. If
the persistence manager is null too, then the user name and password
used to retrieve the first persistence manager will be used. If there
is no second connection factory the primary connection factory is used.getDataSource2 in interface JDBCConfigurationkodo.jdbc.conf.JDBCConfigurationJDBCConfiguration.getDataSource(kodo.runtime.KodoPersistenceManager)public void setFirstPersistenceManagerUserName(String user)
JDBCConfigurationsetFirstPersistenceManagerUserName in interface JDBCConfigurationpublic void setFirstPersistenceManagerPassword(String pass)
JDBCConfigurationsetFirstPersistenceManagerPassword in interface JDBCConfigurationpublic void close()
close in interface Configurationclose in class JDOConfigurationImplprotected boolean isInvalidProperty(String propName)
ConfigurationImplisInvalidProperty in class JDOConfigurationImpl
|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||