|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.common.jdbc.JDBCUtil
public class JDBCUtil
Field Summary | |
---|---|
static java.lang.String |
DATABASE
The environment property name for the database name. |
static java.lang.String |
DRIVER
The environment property name for the class of the driver. |
static java.lang.String |
PASSWORD
The environment property name for the password that is to be used for connecting to the metadata store. |
static java.lang.String |
PROTOCOL
The environment property name for the protocol that is to be used. |
static java.lang.String |
USERNAME
The environment property name for the username that is to be used for connecting to the metadata store. |
Constructor Summary | |
---|---|
JDBCUtil()
|
Method Summary | |
---|---|
static java.sql.Connection |
createJDBCConnection(java.util.Properties env)
This creates a JDBC connection. |
static java.lang.String |
getDatabaseURL(java.util.Properties env)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DRIVER
public static final java.lang.String PROTOCOL
public static final java.lang.String DATABASE
public static final java.lang.String USERNAME
public static final java.lang.String PASSWORD
Constructor Detail |
---|
public JDBCUtil()
Method Detail |
---|
public static java.sql.Connection createJDBCConnection(java.util.Properties env) throws MetaMatrixException
ManagedConnectionException
- if there is an error establishing the connection.
MetaMatrixException
public static java.lang.String getDatabaseURL(java.util.Properties env) throws MetaMatrixException
MetaMatrixException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |