org.objectweb.medor.datasource.lib
Class ConnectionFactoryDataStore
- DataStore
public class ConnectionFactoryDataStore
This implementation of the DataStore interface could be used in all cases
where a data store could be identified by a connection factory. The reference
is not typed in order to support various connection factory (
javax.sql.Datasource, javax.resource.cci.ConnectionFactory, ...)
- S.Chassande-Barrioz
ConnectionFactoryDataStore(short dataStoreType, String sourceName, short[] capabilities, Object cf) - It builds a ConnectionFactoryDataStore.
|
connectionFactory
protected Object connectionFactory
ConnectionFactoryDataStore
public ConnectionFactoryDataStore(short dataStoreType,
String sourceName,
short[] capabilities,
Object cf)
throws DataSourceException
It builds a ConnectionFactoryDataStore.
dataStoreType
- is the type of the DataStore
(ex: DataStore.JDBC_STORE)sourceName
- is the name of the datastorecapabilities
- is the capabilities of the datastorecf
- is the connection factory (cannot be null)
DataSourceException
- if the specified connection factory is null.
getConnectionFactory
public Object getConnectionFactory()