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