public class ScriptDBConnect
extends java.lang.Object
Constructor and Description |
---|
ScriptDBConnect() |
Modifier and Type | Method and Description |
---|---|
static java.sql.Connection |
getConnection(java.io.File propertiesFile) |
static java.sql.Connection |
getConnection(java.util.Properties properties)
Get the connection, give the properties from a Maximo properties file.
|
static java.sql.Connection |
getMaximoConnection(java.util.Properties properties)
Get the connection, but ignore MT.
|
static java.sql.Connection |
getSubConnection(java.util.Properties properties,
java.lang.String user,
java.lang.String pswd)
This is used by MT to get the other connections, besides the master.
|
public static java.sql.Connection getConnection(java.util.Properties properties) throws java.lang.Exception
properties
- java.lang.Exception
public static java.sql.Connection getMaximoConnection(java.util.Properties properties) throws java.lang.Exception
properties
- java.lang.Exception
public static java.sql.Connection getSubConnection(java.util.Properties properties, java.lang.String user, java.lang.String pswd) throws java.lang.Exception
master
- java.lang.Exception
public static java.sql.Connection getConnection(java.io.File propertiesFile) throws java.lang.Exception
java.lang.Exception