de.smartics.properties.spi.config.ds
Interface DataSourceConnector

Package class diagram package DataSourceConnector
All Known Implementing Classes:
HSqlDataSourceConnector, MySqlDataSourceConnector

public interface DataSourceConnector

A connector to interface with data sources.


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.
 

Method Detail

accepts

boolean accepts(String databaseId)
Checks if the implementation is designed to deal with a database identified by the given String.

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

create

DataSourceProxy create(JndiDataSourceProxy dataSource)
Creates a proxy for the given data source.

Parameters:
dataSource - the data source to proxy.
Returns:
a specialized proxy for the given data source.

create

DataSourceProxy create(String connectionUrl,
                       String userName,
                       String password)
Creates a proxy with the given connection URL and credentials.

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.