public class DBConnect
extends java.lang.Object
DBManager
or DBShortcut
.
The getConnection
method does the following:
mxe.db.transaction_isolation
.
If the property is not defined or is invalid, the connection is set to Serializable.
Constructor and Description |
---|
DBConnect() |
Modifier and Type | Method and Description |
---|---|
static java.sql.Connection |
getConnection(java.lang.String url,
java.lang.String user,
java.lang.String password,
java.lang.String schemaOwner)
Return a database connection for the supplied parameters.
|
static java.sql.Connection |
getConnection(java.lang.String url,
java.lang.String user,
java.lang.String password,
java.lang.String schemaOwner,
java.lang.String sslConnection,
java.lang.String sslTrustStoreLocation,
java.lang.String sslTrustStorePassword)
Return a database connection for the supplied parameters.
|
public static java.sql.Connection getConnection(java.lang.String url, java.lang.String user, java.lang.String password, java.lang.String schemaOwner) throws java.lang.Exception
url
- Database url, normally from maximo.properties for mxe.db.url.user
- Database username, normally from maximo.properties for mxe.db.user.password
- Database password, normally from maximo.properties for mxe.db.password.schemaOwner
- Database schema, normally from maximo.properties for mxe.db.schemaowner.java.lang.Exception
public static java.sql.Connection getConnection(java.lang.String url, java.lang.String user, java.lang.String password, java.lang.String schemaOwner, java.lang.String sslConnection, java.lang.String sslTrustStoreLocation, java.lang.String sslTrustStorePassword) throws java.lang.Exception
url
- Database url, normally from maximo.properties for mxe.db.url.user
- Database username, normally from maximo.properties for mxe.db.user.password
- Database password, normally from maximo.properties for mxe.db.password.schemaOwner
- Database schema, normally from maximo.properties for mxe.db.schemaowner.sslConnection
- For DB2 only, is ssl connection?sslTrustStoreLocation
- For DB2 only, ssl connection trust store locationsslTrustStorePassword
- For DB2 only, ssl connection trust store passwordjava.lang.Exception