|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.impl.config.ds.mysql.MySqlDataSourceConnector
public final class MySqlDataSourceConnector
Connector to be registered to DataSourceProxyManager
.
Constructor Summary | |
---|---|
MySqlDataSourceConnector() |
Method Summary | |
---|---|
boolean |
accepts(String databaseId) Checks if the implementation is designed to deal with a database identified by the given String. |
DataSourceProxy |
create(JndiDataSourceProxy dataSource) Creates a proxy for the given data source. |
DataSourceProxy |
create(String connectionUrl, String userName, String password) Creates a proxy with the given connection URL and credentials. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MySqlDataSourceConnector()
Method Detail |
---|
public boolean accepts(String databaseId)
DataSourceConnector
accepts
in interface
DataSourceConnector
databaseId
- the identifier of the database.
true
if the proxy may interface with the given database,
false
otherwise.
public DataSourceProxy create(JndiDataSourceProxy dataSource)
DataSourceConnector
create
in interface
DataSourceConnector
dataSource
- the data source to proxy.
public DataSourceProxy create(String connectionUrl, String userName, String password)
DataSourceConnector
create
in interface
DataSourceConnector
connectionUrl
- the JDBC URL to connect to.
userName
- the name of the user to access the data source.
password
- the password of the user to access the data source.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |