Class JDBCURI
java.lang.Object
com.apple.foundationdb.relational.jdbc.JDBCURI
JDBC connection URI public utility and constants.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic URI
addQueryParameter
(URI uri, String key, String value) static String
Return first value in the values list.splitQuery
(URI uri) From https://stackoverflow.com/questions/13592236/parse-a-uri-string-into-name-value-collection.
-
Field Details
-
JDBC_URL_PREFIX
- See Also:
-
JDBC_URL_SCHEME
- See Also:
-
JDBC_BASE_URL
Base URL.JDBCRelationalDriver.acceptsURL(String)
accepts any jdbc url that starts with the below. Used to check passed urls inJDBCRelationalDriver.acceptsURL(String)
but also as a key to pick out the loaded driver from DriverManager.- See Also:
-
INPROCESS_URI_QUERY_SERVERNAME_KEY
Key we use to get servername parameter from query component of an 'inprocess' JDBC URI. For example, jdbc:relational:///__SYS?server=123e4567-e89b-12d3-a456-426614174000.- See Also:
-
-
Method Details
-
getFirstValue
Return first value in the values list.- Parameters:
key
- Key to use looking up values list.map
- Map to search.- Returns:
- First value in values list or null if no values found.
-
splitQuery
From https://stackoverflow.com/questions/13592236/parse-a-uri-string-into-name-value-collection. Converts UnsupportedEncodingException to a RuntimeException should it ever occur.- Parameters:
uri
- JDBC Connect URL.- Returns:
- Map of lists of query string parameters keyed by query parameter name.
-
addQueryParameter
-