public static class SqlServiceImpl.ConnectionInfo extends Object
Constructor and Description |
---|
ConnectionInfo(String user,
String password,
String driverClassName,
String authlessUrl,
String fullUrl)
Create a new ConnectionInfo with the give parameters
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static SqlServiceImpl.ConnectionInfo |
fromUrl(String fullUrl)
Extracts the connection info from a JDBC url with additional authentication information as specified in
SqlService . |
String |
getAuthlessUrl() |
String |
getDriverClassName() |
String |
getFullUrl() |
String |
getPassword() |
String |
getUser() |
int |
hashCode() |
public ConnectionInfo(@Nullable String user, @Nullable String password, String driverClassName, String authlessUrl, String fullUrl)
user
- The username to use when connecting to th databasepassword
- The password to connect with. If user is not null, password must not be nulldriverClassName
- The class name of the driver to use for this connectionauthlessUrl
- A JDBC url for this driver not containing authentication informationfullUrl
- The full jdbc url containing user, password, and database infopublic String getDriverClassName()
public String getAuthlessUrl()
public String getFullUrl()
public static SqlServiceImpl.ConnectionInfo fromUrl(String fullUrl) throws SQLException
SqlService
.fullUrl
- The full JDBC URL as specified in SqlServiceSQLException
- If the driver for the given URL is not present