/// <summary> /// Initializes a new instance of the <see cref="CodeListRetrievalEngine" /> class. /// </summary> /// <param name="mappingStoreDb">The mapping store DB.</param> /// <param name="itemOrderBy">The item order by.</param> /// <exception cref="ArgumentNullException"><paramref name="mappingStoreDb" /> is null</exception> public CodeListRetrievalEngine(Database mappingStoreDb, string itemOrderBy = CodeListConstant.ItemOrderBy) : base(mappingStoreDb) { var itemSqlQueryBuilder = new ItemSqlQueryBuilder(mappingStoreDb, itemOrderBy); this._itemSqlQueryInfo = itemSqlQueryBuilder.Build(CodeListConstant.ItemTableInfo); }
/// <summary> /// Initializes a new instance of the <see cref="ItemSchemeRetrieverEngine{TMaintaible,TItem}"/> class. /// </summary> /// <param name="mappingStoreDb"> /// The mapping store DB. /// </param> /// <param name="orderBy"> /// The order By. /// </param> /// <exception cref="ArgumentNullException"> /// <paramref name="mappingStoreDb"/> is null /// </exception> protected ItemSchemeRetrieverEngine(Database mappingStoreDb, string orderBy = null) : base(mappingStoreDb, orderBy) { this._itemCommandBuilder = new ItemCommandBuilder(mappingStoreDb); var itemTableInfoBuilder = new ItemTableInfoBuilder(); TableInfo tableInfo = new TableInfoBuilder().Build(typeof(TMaintaible)); var itemTableInfo = itemTableInfoBuilder.Build(tableInfo.StructureType); var itemSqlQueryBuilder = new ItemSqlQueryBuilder(mappingStoreDb, null); this._itemSqlQueryInfo = itemSqlQueryBuilder.Build(itemTableInfo); this._identifiableAnnotationRetrieverEngine = new IdentifiableAnnotationRetrieverEngine(mappingStoreDb, itemTableInfo); }
/// <summary> /// Initializes a new instance of the <see cref="AgencySchemeRetrievalEngine"/> class. /// </summary> /// <param name="mappingStoreDb"> /// The mapping store DB. /// </param> /// <exception cref="ArgumentNullException"> /// <paramref name="mappingStoreDb"/> is null /// </exception> public AgencySchemeRetrievalEngine(Database mappingStoreDb) : base(mappingStoreDb) { this._itemSqlQueryBuilder = new ItemSqlQueryBuilder(mappingStoreDb, AgencySchemeConstant.ItemOrderBy); this._itemSqlQueryInfo = this._itemSqlQueryBuilder.Build(AgencySchemeConstant.ItemTableInfo); }
/// <summary> /// Initializes a new instance of the <see cref="OrganisationUnitSchemeRetrievalEngine"/> class. /// </summary> /// <param name="mappingStoreDb"> /// The mapping store DB. /// </param> /// <exception cref="ArgumentNullException"> /// <paramref name="mappingStoreDb"/> is null /// </exception> public OrganisationUnitSchemeRetrievalEngine(Database mappingStoreDb) : base(mappingStoreDb) { this._itemSqlQueryBuilder = new ItemSqlQueryBuilder(mappingStoreDb, OrganisationUnitSchemeConstant.ItemOrderBy); this._itemSqlQueryInfo = this._itemSqlQueryBuilder.Build(OrganisationUnitSchemeConstant.ItemTableInfo); }
/// <summary> /// Initializes a new instance of the <see cref="CategorySchemeRetrievalEngine"/> class. /// </summary> /// <param name="mappingStoreDb"> /// The mapping store DB. /// </param> /// <exception cref="ArgumentNullException"> /// <paramref name="mappingStoreDb"/> is null /// </exception> public CategorySchemeRetrievalEngine(Database mappingStoreDb) : base(mappingStoreDb, null) { this._itemSqlQueryBuilder = new ItemSqlQueryBuilder(mappingStoreDb, null); this._itemSqlQueryInfo = this._itemSqlQueryBuilder.Build(CategorySchemeConstant.ItemTableInfo); }