public class DefaultDatabaseConnector extends Object implements IRegisterableDatabaseConnector
| Constructor and Description |
|---|
DefaultDatabaseConnector() |
| Modifier and Type | Method and Description |
|---|---|
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 |
isApplicable(String context) |
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 boolean isApplicable(String context)
isApplicable in interface net.anwiba.commons.lang.functional.IApplicable<String>public boolean isConnectable(IJdbcConnectionDescription description)
isConnectable in interface IDatabaseConnectorpublic boolean isConnectable(String url, String userName, String password)
isConnectable in interface IDatabaseConnectorCopyright © 2007–2017 Andreas W. Bartels. All rights reserved.