com.ibm.tivoli.maximo.dbmanage

Class ScriptDBConnect

  • java.lang.Object
    • com.ibm.tivoli.maximo.dbmanage.ScriptDBConnect
    • Constructor Summary

      Constructors 
      Constructor and Description
      ScriptDBConnect() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScriptDBConnect

        public ScriptDBConnect()
    • Method Detail

      • getConnection

        public static java.sql.Connection getConnection(java.util.Properties properties)
                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getConnection

        public static java.sql.Connection getConnection(java.util.Properties properties,
                                                        LogSQL logger)
                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getMaximoConnection

        public static java.sql.Connection getMaximoConnection(java.util.Properties properties)
                                                       throws java.lang.Exception
        Get the connection, but ignore MT.
        Parameters:
        properties -
        Returns:
        the connection
        Throws:
        java.lang.Exception
      • getMaximoConnection

        public static java.sql.Connection getMaximoConnection(java.util.Properties properties,
                                                              LogSQL logger)
                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getSubConnection

        public static java.sql.Connection getSubConnection(java.util.Properties properties,
                                                           java.lang.String user,
                                                           java.lang.String pswd)
                                                    throws java.lang.Exception
        This is used by MT to get the other connections, besides the master.
        Parameters:
        master -
        Returns:
        Throws:
        java.lang.Exception
      • getConnection

        public static java.sql.Connection getConnection(java.io.File propertiesFile)
                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception