org.objectweb.medor.datasource.lib
Class ConnectionFactoryDataStore
java.lang.Object
org.objectweb.medor.datasource.lib.BasicDataStore
org.objectweb.medor.datasource.lib.ConnectionFactoryDataStore
- All Implemented Interfaces:
- DataStore
- public class ConnectionFactoryDataStore
- extends BasicDataStore
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, ...)
- Author:
- S.Chassande-Barrioz
Constructor Summary |
ConnectionFactoryDataStore(short dataStoreType,
java.lang.String sourceName,
short[] capabilities,
java.lang.Object cf)
It builds a ConnectionFactoryDataStore. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connectionFactory
protected java.lang.Object connectionFactory
ConnectionFactoryDataStore
public ConnectionFactoryDataStore(short dataStoreType,
java.lang.String sourceName,
short[] capabilities,
java.lang.Object cf)
throws DataSourceException
- It builds a ConnectionFactoryDataStore.
- Parameters:
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)
- Throws:
DataSourceException
- if the specified connection factory is null.
getConnectionFactory
public java.lang.Object getConnectionFactory()
isSameAs
public boolean isSameAs(DataStore ds)
- Two ConnectionFactoryDataStore with the same connection factory are equals.
- Specified by:
isSameAs
in interface DataStore
- Overrides:
isSameAs
in class BasicDataStore