Beispiel #1
0
        public SQLMethod GetMethodByID(int MethodID)
        {
            SQLMethod foundElement         = null;
            String    methodPropertyString = "";

            if (FullDatabaseCheckout)
            {
                if (t_operationOperationID.ContainsKey(MethodID.ToString()))
                {
                    methodPropertyString = t_operationOperationID[MethodID.ToString()].ToString();
                }
            }
            else
            {
                String connectorQry = this.SQLQuery("select * from t_operation where OperationID = " + MethodID);
                methodPropertyString = EAEcoreAddin.Util.EAUtil.getXMLNodeContentFromSQLQueryString(connectorQry, "Row")[0];
            }

            if (methodPropertyString != "")
            {
                foundElement = new SQLMethod(methodPropertyString, this);
            }
            if (foundElement == null)
            {
                throw new COMException("Can't find matching ID");
            }
            return(foundElement);
        }
Beispiel #2
0
        public SQLMethod GetMethodByGuid(string GUID)
        {
            SQLMethod foundElement         = null;
            String    methodPropertyString = "";

            if (FullDatabaseCheckout)
            {
                if (t_operationGUID.ContainsKey(GUID))
                {
                    methodPropertyString = t_operationGUID[GUID];
                }
            }
            else
            {
                String connectorQry = this.SQLQuery("select * from t_operation where ea_guid = '" + GUID + "'");
                methodPropertyString = EAEcoreAddin.Util.EAUtil.getXMLNodeContentFromSQLQueryString(connectorQry, "Row")[0];
            }

            if (methodPropertyString != "")
            {
                foundElement = new SQLMethod(methodPropertyString, this);
            }
            return(foundElement);
        }