• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IMaintainableRefObject类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IMaintainableRefObject的典型用法代码示例。如果您正苦于以下问题:C# IMaintainableRefObject类的具体用法?C# IMaintainableRefObject怎么用?C# IMaintainableRefObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IMaintainableRefObject类属于命名空间,在下文中一共展示了IMaintainableRefObject类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: IGetHierarchicCodeListObjectBase

		public virtual IHierarchicalCodelistMutableObjectBase IGetHierarchicCodeListObjectBase(
				IMaintainableRefObject xref) {
			IHierarchicalCodelistObjectBase hclSuperBean = sdmxSuperBeanRetrievalManager
					.IGetHierarchicCodeListObjectBase(xref);
			if (hclSuperBean != null) {
				return new HierarchicalCodelistMutableObjectBaseCore(hclSuperBean);
			}
			return null;
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:9,代码来源:MutableSuperBeanRetrievalManagerImpl.cs


示例2: IGetCategorySchemeObjectBase

		public virtual ICategorySchemeObjectBase IGetCategorySchemeObjectBase(
				IMaintainableRefObject xref) {
			ISet<ICategorySchemeObjectBase> beans = IGetCategorySchemeObjectsBase(xref);
			if (!Org.Sdmxsource.Util.ObjectUtil.ValidCollection(beans)) {
				throw new ReferenceException(
						Org.Sdmxsource.Sdmx.Api.Constants.ExceptionCode.ReferenceErrorUnresolvable,
						Org.Sdmxsource.Sdmx.Api.Constants.SdmxStructureType.GetFromEnum(SdmxStructureEnumType.CategoryScheme), xref);
			}
            return (ICategorySchemeObjectBase)Org.Sdmxsource.Sdmx.Util.Objects.SuperBeanRefUtil<ICategorySchemeObjectBase>.ResolveReference(
					beans, xref);
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:11,代码来源:SdmxSuperBeanRetrievalManagerImpl.cs


示例3: GetRegistration

		public virtual IRegistrationObject GetRegistration(IMaintainableRefObject xref) {
			ISet<IRegistrationObject> registrations0 = GetRegistrations(xref);
			if (!Org.Sdmxsource.Util.ObjectUtil.ValidCollection(registrations0)) {
				return null;
			}
			if (registrations0.Count > 1) {
				throw new ArgumentException(
						"More then one registration returned for reference (expected only one):"
								+ xref);
			}
			return (IRegistrationObject) ILOG.J2CsMapping.Collections.Generics.Collections.ToArray(registrations0)[0];
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:12,代码来源:InMemoryRegistrationRetrievalManager.cs


示例4: CreateArtefactWhereClause

        /// <summary>
        /// Create the WHERE clause from the <paramref name="maintainableRef"/>  and write it to <paramref name="sqlCommand"/>
        /// </summary>
        /// <param name="maintainableRef">
        /// The maintainable Ref.
        /// </param>
        /// <param name="sqlCommand">
        /// The output string buffer
        /// </param>
        /// <param name="whereState">
        /// the current state of the WHERE clause in <paramref name="sqlCommand"/>
        /// </param>
        /// <param name="allowedDataflows">
        /// The allowed Dataflows.
        /// </param>
        /// <returns>
        /// The list of <see cref="DbParameter"/>
        /// </returns>
        protected override IList<DbParameter> CreateArtefactWhereClause(IMaintainableRefObject maintainableRef, StringBuilder sqlCommand, WhereState whereState, IList<IMaintainableRefObject> allowedDataflows)
        {
            IList<DbParameter> parameters = this.CreateArtefactWhereClause(maintainableRef, sqlCommand, whereState);
            if (parameters.Count > 0)
            {
                whereState = WhereState.And;
            }

            if (this._filter == DataflowFilter.Production)
            {
                SqlHelper.AddWhereClause(sqlCommand, whereState, DataflowConstant.ProductionWhereClause);
                whereState = WhereState.And;
            }

            return SecurityHelper.AddWhereClauses(maintainableRef, this.MappingStoreDB, sqlCommand, parameters, allowedDataflows, whereState);
        }
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:34,代码来源:DataflowCommandBuilder.cs


示例5: GetMutableStructureSetBeans

		public virtual ISet<IStructureSetMutableObject> GetMutableStructureSetBeans(
				IMaintainableRefObject xref) {
			ISet<IStructureSetObject> beans = this.SdmxObjectRetrievalManager
					.GetStructureSetBeans(xref);
			ISet<IStructureSetMutableObject> returnSet = new HashSet<IStructureSetMutableObject>();
			/* foreach */
			foreach (IStructureSetObject bean  in  beans) {
				returnSet.Add(new StructureSetMutableCore(bean));
			}
			return returnSet;
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:11,代码来源:MutableBeanRetrievalManager.cs


示例6: GetMutableReportingTaxonomyBeans

		public virtual ISet<IReportingTaxonomyMutableObject> GetMutableReportingTaxonomyBeans(
				IMaintainableRefObject xref) {
			ISet<IReportingTaxonomyObject> beans = this.SdmxObjectRetrievalManager
					.GetReportingTaxonomyBeans(xref);
			ISet<IReportingTaxonomyMutableObject> returnSet = new HashSet<IReportingTaxonomyMutableObject>();
			/* foreach */
			foreach (IReportingTaxonomyObject bean  in  beans) {
				returnSet.Add(new ReportingTaxonomyMutableCore(bean));
			}
			return returnSet;
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:11,代码来源:MutableBeanRetrievalManager.cs


示例7: GetMutableProcessBeanBeans

		public virtual ISet<IProcessMutableObject> GetMutableProcessBeanBeans(
				IMaintainableRefObject xref) {
			ISet<IProcessObject> beans = this.SdmxObjectRetrievalManager.GetProcessBeans(xref);
			ISet<IProcessMutableObject> returnSet = new HashSet<IProcessMutableObject>();
			/* foreach */
			foreach (IProcessObject bean  in  beans) {
				returnSet.Add(new ProcessMutableCore(bean));
			}
			return returnSet;
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:10,代码来源:MutableBeanRetrievalManager.cs


示例8: GetMutableOrganisationUnitSchemeBeans

		public virtual ISet<IOrganisationUnitSchemeMutableObject> GetMutableOrganisationUnitSchemeBeans(
				IMaintainableRefObject xref) {
			ISet<IOrganisationUnitSchemeObject> beans = this.SdmxObjectRetrievalManager
					.GetOrganisationUnitSchemeBeans(xref);
			ISet<IOrganisationUnitSchemeMutableObject> returnSet = new HashSet<IOrganisationUnitSchemeMutableObject>();
			/* foreach */
			foreach (IOrganisationUnitSchemeObject bean  in  beans) {
				returnSet.Add(bean.MutableInstance);
			}
			return returnSet;
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:11,代码来源:MutableBeanRetrievalManager.cs


示例9: GetMutableMetadataflowBeans

		public virtual ISet<IMetadataFlowMutableObject> GetMutableMetadataflowBeans(
				IMaintainableRefObject xref) {
			ISet<IMetadataFlow> beans = this.SdmxObjectRetrievalManager
					.GetMetadataflowBeans(xref);
			ISet<IMetadataFlowMutableObject> returnSet = new HashSet<IMetadataFlowMutableObject>();
			/* foreach */
			foreach (IMetadataFlow bean  in  beans) {
				returnSet.Add(new MetadataflowMutableCore(bean));
			}
			return returnSet;
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:11,代码来源:MutableBeanRetrievalManager.cs


示例10: GetMutableMetadataStructureBeans

		public virtual ISet<IMetadataStructureDefinitionMutbale> GetMutableMetadataStructureBeans(
				IMaintainableRefObject xref) {
			ISet<IMetadataStructureDefinitionObject> beans = this.SdmxObjectRetrievalManager
					.GetMetadataStructureBeans(xref);
			ISet<IMetadataStructureDefinitionMutbale> returnSet = new HashSet<IMetadataStructureDefinitionMutbale>();
			/* foreach */
			foreach (IMetadataStructureDefinitionObject bean  in  beans) {
				returnSet.Add(new MetadataStructureDefinitionMutableCore(bean));
			}
			return returnSet;
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:11,代码来源:MutableBeanRetrievalManager.cs


示例11: GetMutableCategorisationBeans

		public virtual ISet<ICategorisationMutableObject> GetMutableCategorisationBeans(
				IMaintainableRefObject xref) {
			ISet<ICategorisationObject> beans = this.SdmxObjectRetrievalManager
					.GetCategorisationBeans(xref);
			ISet<ICategorisationMutableObject> returnSet = new HashSet<ICategorisationMutableObject>();
			/* foreach */
			foreach (ICategorisationObject csBean  in  beans) {
				returnSet.Add(new CategorisationMutableCore(csBean));
			}
			return returnSet;
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:11,代码来源:MutableBeanRetrievalManager.cs


示例12: GetMutableCategorisation

		public virtual ICategorisationMutableObject GetMutableCategorisation(
				IMaintainableRefObject xref) {
			ICategorisationObject bean = this.SdmxObjectRetrievalManager
					.GetCategorisation(xref);
			return (bean == null) ? null : new CategorisationMutableCore(bean);
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:6,代码来源:MutableBeanRetrievalManager.cs


示例13: GetMutableDataProviderSchemeBeans

		public virtual ISet<IDataProviderSchemeMutableObject> GetMutableDataProviderSchemeBeans(
				IMaintainableRefObject xref) {
			ISet<IDataProviderSchemeMutableObject> returnSet = new HashSet<IDataProviderSchemeMutableObject>();
			/* foreach */
			foreach (IDataProviderScheme currentBean  in  this.SdmxObjectRetrievalManager
					.GetDataProviderSchemeBeans(xref)) {
				returnSet.Add(currentBean.MutableInstance);
			}
			return returnSet;
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:10,代码来源:MutableBeanRetrievalManager.cs


示例14: Retrieve

 /// <summary>
 /// Retrieve the <see cref="ICodelistMutableObject"/> from Mapping Store.
 /// </summary>
 /// <param name="maintainableRef">
 ///     The maintainable reference which may contain ID, AGENCY ID and/or VERSION.
 /// </param>
 /// <param name="detail">
 ///     The <see cref="StructureQueryDetail"/> which controls if the output will include details or not.
 /// </param>
 /// <param name="dataflowRef">
 ///     The dataflow Ref.
 /// </param>
 /// <param name="conceptId">
 ///     The concept Id.
 /// </param>
 /// <param name="isTranscoded">
 ///     The is Transcoded.
 /// </param>
 /// <param name="allowedDataflows">The allowed dataflows.</param>
 /// <returns>
 /// The <see cref="ISet{ICodelistMutableObject}"/>.
 /// </returns>
 public ISet<ICodelistMutableObject> Retrieve(IMaintainableRefObject maintainableRef, ComplexStructureQueryDetailEnumType detail, IMaintainableRefObject dataflowRef, string conceptId, bool isTranscoded, IList<IMaintainableRefObject> allowedDataflows)
 {
     var sqlQuery = new ArtefactSqlQuery(this.SqlQueryInfoForAll, maintainableRef);
     return this.RetrieveArtefacts(sqlQuery, detail, retrieveDetails: (o, l) => this.FillCodes(o, l, dataflowRef, conceptId, isTranscoded, allowedDataflows));
 }
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:27,代码来源:PartialCodeListRetrievalEngine.cs


示例15: FillCodes

        /// <summary>
        /// Get the Codes
        /// </summary>
        /// <param name="itemScheme">
        ///     The parent <see cref="ICodelistMutableObject"/>
        /// </param>
        /// <param name="parentSysId">
        ///     The parent ItemScheme primary key in Mapping Store
        /// </param>
        /// <param name="dataflowRef">
        ///     The dataflow Ref.
        /// </param>
        /// <param name="conceptId">
        ///     The concept Id.
        /// </param>
        /// <param name="isTranscoded">
        ///     Set to true if component is transcoded; otherwise false
        /// </param>
        /// <param name="allowedDataflows">The allowed dataflows.</param>
        /// <returns>
        /// The <see cref="ICodelistMutableObject"/>.
        /// </returns>
        private ICodelistMutableObject FillCodes(ICodelistMutableObject itemScheme, long parentSysId, IMaintainableRefObject dataflowRef, string conceptId, bool isTranscoded, IList<IMaintainableRefObject> allowedDataflows)
        {
            var allItems = new Dictionary<long, ICodeMutableObject>();
            var orderedItems = new List<KeyValuePair<long, ICodeMutableObject>>();
            var childItems = new Dictionary<long, long>();
            var sqlQuery = new PartialCodesSqlQuery(isTranscoded ? CodeListConstant.TranscodedSqlQueryInfo : CodeListConstant.LocalCodeSqlQueryInfo, parentSysId)
                               {
                                   ConceptId = conceptId, 
                                   DataflowReference = dataflowRef
                               };

            using (DbCommand command = this._partialCodesCommandBuilder.Build(sqlQuery, allowedDataflows))
            {
                this.ReadItems(allItems, orderedItems, command, childItems);
            }

            this.FillParentItems(itemScheme, childItems, allItems, orderedItems);

            return itemScheme;
        }
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:42,代码来源:PartialCodeListRetrievalEngine.cs


示例16: GetMutableContentConstraintBeans

		public ISet<IContentConstraintMutableObject> GetMutableContentConstraintBeans(
				IMaintainableRefObject xref) {
			ISet<IContentConstraintObject> beans = this.SdmxObjectRetrievalManager
					.GetContentConstraints(xref);
			ISet<IContentConstraintMutableObject> returnSet = new HashSet<IContentConstraintMutableObject>();
			/* foreach */
			foreach (IContentConstraintObject bean  in  beans) {
				returnSet.Add(new ContentConstraintMutableCore(bean));
			}
			return returnSet;
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:11,代码来源:MutableBeanRetrievalManager.cs


示例17: GetMutableMetadataStructure

		public virtual IMetadataStructureDefinitionMutbale GetMutableMetadataStructure(
				IMaintainableRefObject xref) {
			IMetadataStructureDefinitionObject bean = this.SdmxObjectRetrievalManager
					.GetMetadataStructure(xref);
			return (bean == null) ? null
					: new MetadataStructureDefinitionMutableCore(bean);
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:7,代码来源:MutableBeanRetrievalManager.cs


示例18: GetMutableConceptScheme

		public virtual IConceptSchemeMutableObject GetMutableConceptScheme(
				IMaintainableRefObject xref) {
			IConceptSchemeObject bean = this.SdmxObjectRetrievalManager.GetConceptScheme(xref);
			return (bean == null) ? null : new ConceptSchemeMutableCore(bean);
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:5,代码来源:MutableBeanRetrievalManager.cs


示例19: GetMutableMetadataflow

		public virtual IMetadataFlowMutableObject GetMutableMetadataflow(
				IMaintainableRefObject xref) {
			IMetadataFlow bean = this.SdmxObjectRetrievalManager.GetMetadataflow(xref);
			return (bean == null) ? null : new MetadataflowMutableCore(bean);
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:5,代码来源:MutableBeanRetrievalManager.cs


示例20: GetMutableConceptSchemeBeans

		public virtual ISet<IConceptSchemeMutableObject> GetMutableConceptSchemeBeans(
				IMaintainableRefObject xref) {
			ISet<IConceptSchemeObject> beans = this.SdmxObjectRetrievalManager
					.GetConceptSchemeBeans(xref);
			ISet<IConceptSchemeMutableObject> returnSet = new HashSet<IConceptSchemeMutableObject>();
			/* foreach */
			foreach (IConceptSchemeObject bean  in  beans) {
				returnSet.Add(new ConceptSchemeMutableCore(bean));
			}
			return returnSet;
		}
开发者ID:alcardac,项目名称:SDMXRI_WS_OF,代码行数:11,代码来源:MutableBeanRetrievalManager.cs



注:本文中的IMaintainableRefObject类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IManager类代码示例发布时间:2022-05-24
下一篇:
C# IMainWindow类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap