public class DriverConnectionProvider extends Object implements ConnectionProvider
Constructor and Description |
---|
DriverConnectionProvider() |
Modifier and Type | Method and Description |
---|---|
Connection |
createConnection(String user,
String password)
Although named getConnection() this method should always return a new connection when being queried or should wrap
the connection in a way so that calls to "close()" on that connection do not prevent subsequent calls to this
method to fail.
|
boolean |
equals(Object o) |
Object |
getConnectionHash() |
String |
getDriver() |
String |
getProperty(String key) |
String[] |
getPropertyNames() |
String |
getUrl() |
int |
hashCode() |
void |
setDriver(String driver) |
Object |
setProperty(String key,
String value) |
void |
setUrl(String url) |
public String getUrl()
public void setUrl(String url)
public String getDriver()
public void setDriver(String driver)
public Connection createConnection(String user, String password) throws SQLException
createConnection
in interface ConnectionProvider
user
- the user name.password
- the password.SQLException
- if the connection has errors.public Object getConnectionHash()
getConnectionHash
in interface ConnectionProvider
public String[] getPropertyNames()
Copyright © 2017 Hitachi Vantara. All rights reserved.