当前位置: 首页>>代码示例>>C#>>正文


C# IMaintainableRefObject类代码示例

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


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


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