Class ConnectionInfo
- java.lang.Object
-
- com.opentable.db.postgres.embedded.ConnectionInfo
-
public class ConnectionInfo extends Object
Basic data holding class to hold the connection information - the url, user, and password
-
-
Constructor Summary
Constructors Constructor Description ConnectionInfo(String url, String user, String password, String host, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHost()Use sparingly! Prefer getUrl as a general rule over composition using getHost and getPortStringgetPassword()intgetPort()Use sparingly! Prefer getUrl as a general rule over composition using getHost and getPortStringgetUrl()StringgetUser()
-
-
-
Method Detail
-
getUser
public String getUser()
-
getUrl
public String getUrl()
-
getPassword
public String getPassword()
-
getHost
public String getHost()
Use sparingly! Prefer getUrl as a general rule over composition using getHost and getPort- Returns:
- the host. could be a hostname or an ip address
-
getPort
public int getPort()
Use sparingly! Prefer getUrl as a general rule over composition using getHost and getPort- Returns:
- the port
-
-