|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.client.jdbc.JDBCUtils
public final class JDBCUtils
The Class JDBCUtils.
Field Summary | |
---|---|
static String |
URL_PREFIX
The Constant URL_PREFIX. |
Method Summary | |
---|---|
static int |
getSQLType(String type)
Gets the SQL type. |
static LensConnectionParams |
parseUrl(String uri)
Parses the JDBC Connection URL. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String URL_PREFIX
Method Detail |
---|
public static LensConnectionParams parseUrl(String uri) throws IllegalArgumentException
Examples :-
jdbc:lens://hostname:port/dbname;[optional key value pair of session settings]?
[optional configuration settings for connection]#[optional variables to be used in query]
uri
- to be used to connect to lens server
IllegalArgumentException
- if URI provided is malformedpublic static int getSQLType(String type) throws SQLException
type
- the type
SQLException
- the SQL exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |