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) |
static java.sql.Connection |
getConnection(java.util.Properties properties,
LogSQL logger) |
static java.sql.Connection |
getMaximoConnection(java.util.Properties properties)
Get the connection, but ignore MT.
|
static java.sql.Connection |
getMaximoConnection(java.util.Properties properties,
LogSQL logger) |
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
java.lang.Exceptionpublic static java.sql.Connection getConnection(java.util.Properties properties,
LogSQL logger)
throws java.lang.Exception
java.lang.Exceptionpublic static java.sql.Connection getMaximoConnection(java.util.Properties properties)
throws java.lang.Exception
properties - java.lang.Exceptionpublic static java.sql.Connection getMaximoConnection(java.util.Properties properties,
LogSQL logger)
throws java.lang.Exception
java.lang.Exceptionpublic static java.sql.Connection getSubConnection(java.util.Properties properties,
java.lang.String user,
java.lang.String pswd)
throws java.lang.Exception
master - java.lang.Exceptionpublic static java.sql.Connection getConnection(java.io.File propertiesFile)
throws java.lang.Exception
java.lang.Exception