de.smartics.properties.impl.config.ds.mysql
Class MySqlDataSourceConnector

Package class diagram package MySqlDataSourceConnector
java.lang.Object
  extended by de.smartics.properties.impl.config.ds.mysql.MySqlDataSourceConnector
All Implemented Interfaces:
DataSourceConnector

public final class MySqlDataSourceConnector
     
     
extends Object
implements DataSourceConnector

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

MySqlDataSourceConnector

public MySqlDataSourceConnector()
Method Detail

accepts

public boolean accepts(String databaseId)
Description copied from interface: DataSourceConnector
Checks if the implementation is designed to deal with a database identified by the given String.

Specified by:
accepts in interface DataSourceConnector
Parameters:
databaseId - the identifier of the database.
Returns:
true if the proxy may interface with the given database, false otherwise.

create

public DataSourceProxy create(JndiDataSourceProxy dataSource)
Description copied from interface: DataSourceConnector
Creates a proxy for the given data source.

Specified by:
create in interface DataSourceConnector
Parameters:
dataSource - the data source to proxy.
Returns:
a specialized proxy for the given data source.

create

public DataSourceProxy create(String connectionUrl,
                              String userName,
                              String password)
Description copied from interface: DataSourceConnector
Creates a proxy with the given connection URL and credentials.

Specified by:
create in interface DataSourceConnector
Parameters:
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.
Returns:
a specialized proxy for the given connection information.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.