com.ibm.tivoli.maximo.skd.util

Class ConnUtil

  • java.lang.Object
    • com.ibm.tivoli.maximo.skd.util.ConnUtil


  • public class ConnUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      ConnUtil() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String getSPID(java.sql.Connection connection)
      Convenience Method for getting SPID from a Connection instance.
      • Methods inherited from class java.lang.Object

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

      • ConnUtil

        public ConnUtil()
    • Method Detail

      • getSPID

        public static java.lang.String getSPID(java.sql.Connection connection)
        Convenience Method for getting SPID from a Connection instance. If the connection has a SPID then it is returned, otherwise, it returns the SPID using DBManager.getSPID(). Using DBManager.getSPID() is expensive, since it calls application_id() under db2. This method helps transition the code from DBManager.getSPID() to something less expensive, while minimizing the changes to the code.
        Parameters:
        connection - ConRef instance
        Returns:
        SPID