public final class JDBCUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
URL_PREFIX
The Constant URL_PREFIX.
|
Modifier and Type | Method and Description |
---|---|
static int |
getSQLType(String type)
Gets the SQL type.
|
static LensConnectionParams |
parseUrl(String uri)
Parses the JDBC Connection URL.
|
public static final String URL_PREFIX
public static LensConnectionParams parseUrl(String uri) throws IllegalArgumentException
Examples :-
<code> jdbc:lens://hostname:port/dbname;[optional key value pair of session settings]? [optional configuration settings for connection]#[optional variables to be used in query] </code>uri
- to be used to connect to lens serverIllegalArgumentException
- if URI provided is malformedpublic static int getSQLType(String type) throws SQLException
type
- the typeSQLException
- the SQL exceptionCopyright © 2014–2018 Apache Software Foundation. All rights reserved.