/** * Return complete XML query for this type. * * @param id ID of instance to get. May be empty to indicate all. * Non-null. * @param parentId Parent IDs. Closest first. May be empty if instances * are accessed from the root. Non-null. * @return XML query. Never null. */ static String getQuery(String id, params String[] parentId) { //Debug.Assert(id != null : "id cannot be null"; //Debug.Assert(parentId != null : "parentId cannot be null"; String uidWellbore = parentId.Length > 0 ? parentId[0] : ""; String uidWell = parentId.Length > 1 ? parentId[1] : ""; String query = "<formationMarkers xmlns=\"" + WitsmlVersion.VERSION_1_3_1.getNamespace() + "\">" + " <formationMarker uidWell = \"" + uidWell + "\"" + " uidWellbore = \"" + uidWellbore + "\"" + " uid = \"" + id + "\">" + " <name/>" + " <mdPrognosed uom=\"" + WitsmlServer.distUom + "\"/>" + " <tvdPrognosed uom=\"" + WitsmlServer.distUom + "\"/>" + " <mdTopSample uom=\"" + WitsmlServer.distUom + "\"/>" + " <tvdTopSample uom=\"" + WitsmlServer.distUom + "\"/>" + " <thicknessBed uom=\"" + WitsmlServer.distUom + "\"/>" + " <thicknessApparent uom=\"" + WitsmlServer.distUom + "\"/>" + " <thicknessPerpen uom=\"" + WitsmlServer.distUom + "\"/>" + " <mdLogSample uom=\"" + WitsmlServer.distUom + "\"/>" + " <tvdLogSample uom=\"" + WitsmlServer.distUom + "\"/>" + " <dip/>" + " <dipDirection/>" + " <chronostratigraphic/>" + " <nameFormation/>" + " <description/>" + WitsmlCommonData.getQuery() + " </formationMarker>" + "</formationMarkers>"; return(query); }
/** * Return complete XML query for this type. * * @param id ID of instance to get. May be empty to indicate all. * Non-null. * @param parentId Parent IDs. Closest first. May be empty if instances * are accessed from the root. Non-null. * @return XML query. Never null. */ static String getQuery(String id, params String[] parentId) { //Debug.Assert(id != null : "id cannot be null"; //Debug.Assert(parentId != null : "parentId cannot be null"; String uidWellbore = parentId.Length > 0 ? parentId[0] : ""; String uidWell = parentId.Length > 1 ? parentId[1] : ""; String query = "<fluidsReports xmlns=\"" + WitsmlVersion.VERSION_1_3_1.getNamespace() + "\">" + " <fluidsReport uidWell = \"" + uidWell + "\"" + " uidWellbore = \"" + uidWellbore + "\"" + " uid = \"" + id + "\">" + " <name/>" + " <dTim/>" + " <md uom=\"" + WitsmlServer.distUom + "\"/>" + " <tvd uom=\"" + WitsmlServer.distUom + "\"/>" + " <numReport/>" + " <fluids>" + // TODO " </fluids>" + WitsmlCommonData.getQuery() + " </fluidsReport>" + "</fluidsReports>"; return(query); }
/// <summary> /// Return complete XML query for this type. /// </summary> /// <param name="id">ID of instance to get. May be empty to indicate all. Non-null.</param> /// <param name="parentId">Parent IDs. Closest first. May be empty if instances are accessed from the root. Non-null.</param> /// <returns>XML query. Never null.</returns> static String getQuery(String id, params String[] parentId) { if (id == null || id == "") { throw new ArgumentNullException("id cannot be null"); } if (parentId == null) { throw new ArgumentNullException("parentId cannot be null"); } String uidWellbore = parentId.Length > 0 ? parentId[0] : ""; String uidWell = parentId.Length > 1 ? parentId[1] : ""; String query = "<mudLogs xmlns=\"" + WitsmlVersion.VERSION_1_3_1.getNamespace() + "\">" + " <mudLog uidWell = \"" + uidWell + "\"" + " uidWellbore = \"" + uidWellbore + "\"" + " uid = \"" + id + "\">" + " <name/>" + " <dTim/>" + " <mudLogCompany/>" + " <mudLogEngineers/>" + " <startMd uom=\"" + WitsmlServer.distUom + "\"/>" + " <endMd uom=\"" + WitsmlServer.distUom + "\"/>" + WitsmlCommonData.getQuery() + " </mudLog>" + "</mudLogs>"; return(query); }
/** * Return complete XML query for this type. * * @param id ID of instance to get. May be empty to indicate all. * Non-null. * @param parentId Parent IDs. Closest first. May be empty if instances * are accessed from the root. Non-null. * @return XML query. Never null. */ static String getQuery(String id, params String[] parentId) { //Debug.Assert(id != null : "id cannot be null"; //Debug.Assert(parentId != null : "parentId cannot be null"; String uidWellbore = parentId.Length > 0 ? parentId[0] : ""; String uidWell = parentId.Length > 1 ? parentId[1] : ""; String query = "<messages xmlns=\"" + WitsmlVersion.VERSION_1_3_1.getNamespace() + "\">" + " <message uidWell =\"" + uidWell + "\"" + " uidWellbore = \"" + uidWellbore + "\"" + " uid = \"" + id + "\">" + " <name/>" + " <dTim/>" + " <activityCode/>" + " <activitySubcode/>" + " <md/>" + " <mdBit/>" + " <typeMessage/>" + " <messageText/>" + " <param/>" + " <severity/>" + " <warnProbability/>" + WitsmlCommonData.getQuery() + " </message>" + "</messages>"; return(query); }
/// <summary> /// Return complete XML query for this type. /// </summary> /// <param name="id">ID of instance to get. May be empty to indicate all. Non-null.</param> /// <param name="parentId">Parent IDs. Closest first. May be empty if instances are accessed from the root. Non-null.</param> /// <returns>XML query. Never null.</returns> static String getQuery(String id, params String[] parentId) { if (id == null) { throw new ArgumentNullException("id cannot be null"); } if (parentId == null) { throw new ArgumentNullException("parentId cannot be null"); } String query = "<wells xmlns=\"" + WitsmlVersion.VERSION_1_3_1.getNamespace() + "\">" + " <well uid=\"" + id + "\">" + " <name/>" + " <nameLegal/>" + " <numLicense/>" + " <numGovt/>" + " <dTimLicense/>" + " <field/>" + " <country/>" + " <state/>" + " <county/>" + " <region/>" + " <district/>" + " <block/>" + " <timeZone/>" + " <operator/>" + " <operatorDiv/>" + " <pcInterest/>" + //BM added uom " <numAPI/>" + " <statusWell/>" + " <purposeWell/>" + " <fluidWell/>" + " <directionWell/>" + " <dTimSpud/>" + " <dTimPa/>" + " <wellheadElevation/>" + " <wellDatum/>" + " <groundElevation/>" + " <waterDepth uom=\"" + WitsmlServer.distUom + "\"/>" + " <wellLocation>" + WitsmlLocation.getQuery() + " </wellLocation>" + " <referencePoint/>" + " <wellCRS/>" + WitsmlCommonData.getQuery() + " </well>" + "</wells>"; return(query); }
/** * Return complete XML query for this type. * * @return XML query. Never null. */ public static String getQuery() { String query = "<trajectoryStation uid = \"\">" + " <dTimStn/>" + " <typeTrajStation/>" + " <typeSurveyTool/>" + " <md uom=\"" + WitsmlServer.distUom + "\"/>" + " <tvd uom=\"" + WitsmlServer.distUom + "\"/>" + " <incl uom=\"rad\"/>" + " <azi uom=\"rad\"/>" + " <mtf uom=\"rad\"/>" + " <gtf uom=\"rad\"/>" + " <dispNs uom=\"" + WitsmlServer.distUom + "\"/>" + " <dispEw uom=\"" + WitsmlServer.distUom + "\"/>" + " <vertSect uom=\"" + WitsmlServer.distUom + "\"/>" + " <dls/>" + " <rateTurn/>" + " <rateBuild/>" + " <mdDelta uom=\"" + WitsmlServer.distUom + "\"/>" + " <tvdDelta uom=\"" + WitsmlServer.distUom + "\"/>" + " <modelToolError/>" + " <gravTotalUncert/>" + " <dipAngleUncert uom=\"rad\"/>" + " <magTotalUncert/>" + " <gravAccelCorUsed/>" + " <magXAxialCorUsed/>" + " <sagCorUsed/>" + " <magDrlstrCorUsed/>" + " <gravTotalFieldReference/>" + " <magTotalFieldReference/>" + " <magDipAngleReference uom=\"rad\"/>" + " <magModelUsed/>" + " <magModelValid/>" + " <geoModelUsed/>" + " <statusTrajStation/>" + " <rawData/>" + " <corUsed/>" + " <valid/>" + " <matrixCov/>" + " <location>" + WitsmlLocation.getQuery() + " </location>" + " <sourceStation/>" + WitsmlCommonData.getQuery() + "</trajectoryStation>"; return(query); }
/** * Return complete XML query for this type. * * @param id ID of instance to get. May be empty to indicate all. * Non-null. * @param parentId Parent IDs. Closest first. May be empty if instances * are accessed from the root. Non-null. * @return XML query. Never null. */ static String getQuery(String id, params String[] parentId) { //Debug.Assert(id != null : "id cannot be null"; //Debug.Assert(parentId != null : "parentId cannot be null"; String uidWellbore = parentId.Length > 0 ? parentId[0] : ""; String uidWell = parentId.Length > 1 ? parentId[1] : ""; String query = "<realtimes version=\"" + WitsmlVersion.VERSION_1_3_1.getVersion() + "\"" + " xmlns=\"" + WitsmlVersion.VERSION_1_3_1.getNamespace() + "\">" + " <realtime uidWell =\"" + uidWell + "\"" + " uidWellbore =\"" + uidWellbore + "\"" + " idSub = \"\">" + " <dTim/>" + " <md/>" + " <sequence/>" + " <activityCode/>" + " <realtimeHeader>" + " <nameWell/>" + " <nameWellbore/>" + " <serviceCompany/>" + " <runNumber/>" + " <creationDate/>" + " <description/>" + " <groupDefinition>" + " <id/>" + " <multiplexed/>" + " <channelDefinition>" + " <mnemonic/>" + " <dataType/>" + " <classWitsml/>" + " <description/>" + " <mnemAlias/>" + " <sensorOffset uom=\"" + WitsmlServer.distUom + "\"/>" + " <dataSource/>" + WitsmlInterval.getQuery() + " </channelDefinition>" + " </groupDefinition>" + " </realtimeHeader>" + WitsmlRealtimeChannel.getQuery() + WitsmlCommonData.getQuery() + " </realtime>" + "</realtimes>"; return(query); }
/// <summary> /// Return query for instances of this type. /// </summary> /// <param name="id">ID of instance to find. Empty to find all. Non-null.</param> /// <param name="parentId">ID(s) of parent. Closest parent first. Must contain at least one element.</param> /// <returns>XML query for identifying objects of this type. Never null.</returns> static String getQuery(String id, params String[] parentId) { if (id == null) { throw new ArgumentException("id cannot be null"); } if (parentId == null) { throw new ArgumentException("parentId cannot be null"); } String uidWellbore = parentId.Length > 0 ? parentId[0] : ""; String uidWell = parentId.Length > 1 ? parentId[1] : ""; String query = "<trajectorys xmlns=\"" + WitsmlVersion.VERSION_1_3_1.getNamespace() + "\">" + " <trajectory uidWell = \"" + uidWell + "\"" + " uidWellbore =\"" + uidWellbore + "\"" + " uid = \"" + id + "\">" + " <name/>" + " <objectGrowing/>" + " <parentTrajectory>" + " <trajectoryReference/>" + " </parentTrajectory>" + " <dTimTrajStart/>" + " <dTimTrajEnd/>" + " <mdMn uom=\"" + WitsmlServer.distUom + "\"/>" + " <mdMx uom=\"" + WitsmlServer.distUom + "\"/>" + " <serviceCompany/>" + " <magDeclUsed uom=\"rad\"/>" + " <gridCorUsed uom=\"rad\"/>" + " <aziVertSect uom=\"rad\"/>" + " <dispNsVertSectOrig uom=\"" + WitsmlServer.distUom + "\"/>" + " <dispEwVertSectOrig uom=\"" + WitsmlServer.distUom + "\"/>" + " <definitive/>" + " <memory/>" + " <finalTraj/>" + " <aziRef/>" + WitsmlTrajectoryStation.getQuery() + WitsmlCommonData.getQuery() + " </trajectory>" + "</trajectorys>"; return(query); }
/** * Return complete XML query for this type. * * @param id ID of instance to get. May be empty to indicate all. * Non-null. * @param parentId Parent IDs. Closest first. May be empty if instances * are accessed from the root. Non-null. * @return XML query. Never null. */ static String getQuery(String id, params String[] parentId) { //Debug.Assert(id != null : "id cannot be null"; //Debug.Assert(parentId != null : "parentId cannot be null"; String uidWellbore = parentId.Length > 0 ? parentId[0] : ""; String uidWell = parentId.Length > 1 ? parentId[1] : ""; String query = "<cementJobs xmlns=\"" + WitsmlVersion.VERSION_1_3_1.getNamespace() + "\">" + " <cementJob uidWell = \"" + uidWell + "\"" + " uidWellbore = \"" + uidWellbore + "\"" + " uid = \"" + id + "\">" + " <name/>" + " <jobType/>" + " <jobConfig/>" + WitsmlCommonData.getQuery() + " </cementJob>" + "</cementJobs>"; return(query); }
/// <summary> /// Return complete XML query for this type. /// </summary> /// <param name="id">ID of instance to get. May be empty to indicate all. Non-null</param> /// <param name="parentId">Parent IDs. Closest first. May be empty if instances are accessed from the root. Non-null.</param> /// <returns>XML query. Never null.</returns> static String getQuery(String id, params String[] parentId) { //Debug.Assert(id != null : "id cannot be null"; //Debug.Assert(parentId != null : "parentId cannot be null"; String uidWell = parentId.Length > 0 ? parentId[0] : ""; String query = "<wellbores xmlns=\"" + WitsmlVersion.VERSION_1_3_1.getNamespace() + "\">" + " <wellbore uidWell = \"" + uidWell + "\"" + " uid = \"" + id + "\">" + " <name/>" + " <nameWell/>" + " <parentWellbore/>" + " <number/>" + " <suffixAPI/>" + " <numGovt/>" + " <statusWellbore/>" + " <purposeWellbore/>" + " <typeWellbore/>" + " <shape/>" + " <dTimKickoff/>" + " <achievedTD/>" + " <mdCurrent uom=\"" + WitsmlServer.distUom + "\"/>" + " <tvdCurrent uom=\"" + WitsmlServer.distUom + "\"/>" + " <mdKickoff uom=\"" + WitsmlServer.distUom + "\"/>" + " <tvdKickoff uom=\"" + WitsmlServer.distUom + "\"/>" + " <mdPlanned uom=\"" + WitsmlServer.distUom + "\"/>" + " <tvdPlanned uom=\"" + WitsmlServer.distUom + "\"/>" + " <mdSubSeaPlanned uom=\"" + WitsmlServer.distUom + "\"/>" + " <tvdSubSeaPlanned uom=\"" + WitsmlServer.distUom + "\"/>" + " <dayTarget/>" + WitsmlCommonData.getQuery() + " <customData/>" + " </wellbore>" + "</wellbores>"; return(query); }
/** * Return complete XML query for this type. * * @param id ID of instance to get. May be empty to indicate all. * Non-null. * @param parentId Parent IDs. Closest first. May be empty if instances * are accessed from the root. Non-null. * @return XML query. Never null. */ static String getQuery(String id, params String[] parentId) { //Debug.Assert(id != null : "id cannot be null"; //Debug.Assert(parentId != null : "parentId cannot be null"; String uidWellbore = parentId.Length > 0 ? parentId[0] : ""; String uidWell = parentId.Length > 1 ? parentId[1] : ""; String query = "<targets xmlns=\"" + WitsmlVersion.VERSION_1_3_1.getNamespace() + "\">" + " <target uidWell =\"" + uidWell + "\"" + " uidWellbore = \"" + uidWellbore + "\"" + " uid = \"" + id + "\">" + " <name/>" + " <uidTargetParent/>" + " <dispNsCenter uom=\"" + WitsmlServer.distUom + "\"/>" + " <dispEwCenter uom=\"" + WitsmlServer.distUom + "\"/>" + " <tvd uom=\"" + WitsmlServer.distUom + "\"/>" + " <classRig/>" + WitsmlCommonData.getQuery() + " </target>" + "</targets>"; return(query); }
/// <summary> /// Return complete XML query for this type. /// </summary> /// <param name="logId">ID of instance to get. May be empty to indicate all. Non-null.</param> /// <param name="parentId">Parent IDs. Closest first. May be empty if instances are accessed from the root. Non-null.</param> /// <returns>XML query. Never null.</returns> static String getQuery(String logId, params String[] parentId) { if (logId == null) { throw new ArgumentNullException("id cannot be null"); } if (parentId == null) { throw new ArgumentNullException("parentId cannot be null"); } string uidWell; string uidWellbore; string mnemonic; string startIndex = ""; if (parentId.Length == 4) { uidWell = parentId[3]; uidWellbore = parentId[2]; logId = parentId[1]; mnemonic = parentId[0]; } else { uidWellbore = parentId.Length > 0 ? parentId[0] : ""; uidWell = parentId.Length > 1 ? parentId[1] : ""; mnemonic = ""; } String query = "<logs xmlns=\"" + WitsmlVersion.VERSION_1_3_1.getNamespace() + "\">" + " <log uidWell = \"" + uidWell + "\"" + " uidWellbore = \"" + uidWellbore + "\"" + " uid = \"" + logId + "\">" + " <name/>" + " <nameWell/>" + " <nameWellbore/>" + " <objectGrowing/>" + " <dataRowCount/>" + " <serviceCompany/>" + " <runNumber/>" + " <bhaRunNumber/>" + " <pass/>" + " <creationDate/>" + " <description/>" + " <indexType/>" + " <startIndex uom=\"" + WitsmlServer.distUom + "\">" + startIndex + "</startIndex>" + " <endIndex uom=\"" + WitsmlServer.distUom + "\"/>" + " <indexCurve/>" + " <startDateTimeIndex/>" + " <endDateTimeIndex/>" + " <stepIncrement/>" + " <direction/>" + " <nullValue/>" + " <logParam/>" + WitsmlLogCurve.getQuery() + " <logData>" + " <data/>" + " </logData>" + WitsmlCommonData.getQuery() + " </log>" + "</logs>"; //String query = "<logs xmlns=\"" + WitsmlVersion.VERSION_1_3_1.getNamespace() + "\">" + // " <log uidWell = \"" + uidWell + "\"" + // " uidWellbore = \"" + uidWellbore + "\"" + // " uid = \"" + logId + "\">" + // " <name/>" + // " <nameWell/>" + // " <nameWellbore/>" + // " <objectGrowing/>" + // " <dataRowCount/>" + // " <serviceCompany/>" + // " <runNumber/>" + // " <bhaRunNumber/>" + // " <pass/>" + // " <creationDate/>" + // " <description/>" + // " <indexType/>" + // " <indexCurve/>" + // " <startDateTimeIndex/>" + // " <endDateTimeIndex/>" + // " <stepIncrement/>" + // " <direction/>" + // " <nullValue/>" + // " <logParam/>" + // WitsmlLogCurve.getQuery(mnemonic) + // WitsmlCommonData.getQuery() + // " </log>" + // "</logs>"; return(query); }
/** * Return complete XML query for this type. * * @param id ID of instance to get. May be empty to indicate all. * Non-null. * @param parentId Parent IDs. Closest first. May be empty if instances * are accessed from the root. Non-null. * @return XML query. Never null. */ static String getQuery(String id, params String[] parentId) { //Debug.Assert(id != null : "id cannot be null"; //Debug.Assert(parentId != null : "parentId cannot be null"; String uidWellbore = parentId.Length > 0 ? parentId[0] : ""; String uidWell = parentId.Length > 1 ? parentId[1] : ""; String query = "<bhaRuns xmlns=\"" + WitsmlVersion.VERSION_1_3_1.getNamespace() + "\">" + " <bhaRun uidWell = \"" + uidWell + "\"" + " uidWellbore = \"" + uidWellbore + "\"" + " uid = \"" + id + "\">" + " <name/>" + " <tubular/>" + " <dTimStart/>" + " <dTimStop/>" + " <dTimStartDrilling/>" + " <dTimStopDrilling/>" + " <planDogleg/>" + " <actDogleg/>" + " <actDoglegMx/>" + " <statusBha/>" + " <numBitRun/>" + " <numStringRun/>" + " <reasonTrip/>" + " <objectiveBha/>" + " <drillingParams>" + " <eTimOpBit uom=\"s\"/>" + " <mdHoleStart uom=\"" + WitsmlServer.distUom + "\"/>" + " <mdHoleStop uom=\"" + WitsmlServer.distUom + "\"/>" + " <tubular/>" + " <hkldRot/>" + " <overPull/>" + " <slackOff/>" + " <hkldUp/>" + " <hkldDn/>" + " <tqOnBotAv/>" + " <tqOnBotMx/>" + " <tqOnBotMn/>" + " <tqOffBotAv/>" + " <tqDhAv/>" + " <wtAboveJar/>" + " <wtBelowJar/>" + " <wtMud/>" + " <flowratePump/>" + " <powBit/>" + " <velNozzleAv uom=\"m/s\"/>" + " <presDropBit uom=\"pa\"/>" + " <cTimHold/>" + " <cTimSteering/>" + " <cTimDrillRot/>" + " <cTimDrillSlid/>" + " <cTimCirc/>" + " <cTimReam/>" + " <distDrillRot/>" + " <distDrillSlid/>" + " <distReam/>" + " <distHold/>" + " <distSteering/>" + " <rpmAv/>" + " <rpmMx/>" + " <rpmMn/>" + " <rpmAvDh/>" + " <ropAv/>" + " <ropMx/>" + " <ropMn/>" + " <wobAv/>" + " <wobMx/>" + " <wobMn/>" + " <wobAvDh/>" + " <reasonTrip/>" + " <objectiveBha/>" + " <aziTop/>" + " <aziBottom/>" + " <inclStart/>" + " <inclMx/>" + " <inclMn/>" + " <inclStop/>" + " <tempMudDhMx uom=\"degC\"/>" + " <presPumpAv uom=\"psi\"/>" + " <flowrateBit/>" + " <comments/>" + " </drillingParams>" + WitsmlCommonData.getQuery() + " </bhaRun>" + "</bhaRuns>"; return(query); }