getConnection() public method

public getConnection ( string siteId ) : gov.va.medora.mdo.dao.AbstractConnection
siteId string
return gov.va.medora.mdo.dao.AbstractConnection
Esempio n. 1
0
 public IndexedHashtable setLocalPids(ConnectionSet cxns, string mpiPid)
 {
     IndexedHashtable result = cxns.query(DAO_NAME, "getLocalPid", new object[] { mpiPid });
     for (int i = 0; i < result.Count; i++)
     {
         if (result.GetValue(i).GetType().Name.EndsWith("Exception"))
         {
             continue;
         }
         string siteId = (string)result.GetKey(i);
         AbstractConnection cxn = cxns.getConnection(siteId);
         cxn.Pid = (string)result.GetValue(i);
     }
     return result;
 }