public class DatabaseConnectorRegistry extends Object implements IDatabaseConnectorRegistry
| Constructor and Description |
|---|
DatabaseConnectorRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(IRegisterableDatabaseConnector connector) |
Connection |
connect(String url,
String userName,
String password,
int timeout,
boolean isReadOnly) |
Connection |
connectReadOnly(IJdbcConnectionDescription description) |
Connection |
connectReadOnly(IJdbcConnectionDescription description,
int timeout) |
Connection |
connectReadOnly(String url,
String userName,
String password,
int timeout) |
Connection |
connectWritable(IJdbcConnectionDescription description) |
Connection |
connectWritable(IJdbcConnectionDescription description,
int timeout) |
Connection |
connectWritable(String url,
String userName,
String password,
int timeout) |
boolean |
isConnectable(IJdbcConnectionDescription description) |
boolean |
isConnectable(String url,
String userName,
String password) |
public Connection connectReadOnly(IJdbcConnectionDescription description) throws SQLException
connectReadOnly in interface IDatabaseConnectorSQLExceptionpublic Connection connectReadOnly(IJdbcConnectionDescription description, int timeout) throws SQLException
connectReadOnly in interface IDatabaseConnectorSQLExceptionpublic Connection connectReadOnly(String url, String userName, String password, int timeout) throws SQLException
connectReadOnly in interface IDatabaseConnectorSQLExceptionpublic Connection connectWritable(IJdbcConnectionDescription description) throws SQLException
connectWritable in interface IDatabaseConnectorSQLExceptionpublic Connection connectWritable(IJdbcConnectionDescription description, int timeout) throws SQLException
connectWritable in interface IDatabaseConnectorSQLExceptionpublic Connection connectWritable(String url, String userName, String password, int timeout) throws SQLException
connectWritable in interface IDatabaseConnectorSQLExceptionpublic Connection connect(String url, String userName, String password, int timeout, boolean isReadOnly) throws SQLException
SQLExceptionpublic void add(IRegisterableDatabaseConnector connector)
add in interface IDatabaseConnectorRegistrypublic boolean isConnectable(IJdbcConnectionDescription description)
isConnectable in interface IDatabaseConnectorpublic boolean isConnectable(String url, String userName, String password)
isConnectable in interface IDatabaseConnectorCopyright © 2007–2018 Andreas W. Bartels. All rights reserved.