|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
boolean accepts(String databaseId)
databaseId
- the identifier of the database.
true
if the proxy may interface with the given database,
false
otherwise.
DataSourceProxy create(JndiDataSourceProxy dataSource)
dataSource
- the data source to proxy.
DataSourceProxy create(String connectionUrl, String userName, String password)
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 |