示例#1
0
 /// <summary>Retrieves in the calling AuditActionCollection object all AuditActionEntity objects which are related via a relation of type 'm:n' with the passed in RoleEntity.</summary>
 /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
 /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
 /// <param name="roleInstance">RoleEntity object to be used as a filter in the m:n relation</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch.</param>
 /// <param name="pageNumber">The page number to retrieve.</param>
 /// <param name="pageSize">The page size of the page to retrieve.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiUsingRolesWithAuditAction(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity roleInstance, IPrefetchPath prefetchPathToUse, int pageNumber, int pageSize)
 {
     RelationCollection relations = new RelationCollection();
     relations.Add(AuditActionEntity.Relations.RoleAuditActionEntityUsingAuditActionID, "RoleAuditAction_");
     relations.Add(RoleAuditActionEntity.Relations.RoleEntityUsingRoleID, "RoleAuditAction_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(roleInstance.Fields[(int)RoleFieldIndex.RoleID], ComparisonOperator.Equal));
     return this.GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, prefetchPathToUse, pageNumber, pageSize);
 }
示例#2
0
 /// <summary>Retrieves in the calling ForumCollection object all ForumEntity objects which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter. </summary>
 /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
 /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
 /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
 /// <param name="sectionInstance">SectionEntity instance to use as a filter for the ForumEntity objects to return</param>
 /// <param name="defaultSupportQueueInstance">SupportQueueEntity instance to use as a filter for the ForumEntity objects to return</param>
 /// <param name="pageNumber">The page number to retrieve.</param>
 /// <param name="pageSize">The page size of the page to retrieve.</param>
 public bool GetMulti(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IPredicateExpression filter, IEntity sectionInstance, IEntity defaultSupportQueueInstance, int pageNumber, int pageSize)
 {
     this.EntityFactoryToUse = entityFactoryToUse;
     IEntityFields fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(SD.HnD.DAL.EntityType.ForumEntity);
     IPredicateExpression selectFilter = CreateFilterUsingForeignKeys(sectionInstance, defaultSupportQueueInstance, fieldsToReturn);
     if(filter!=null)
     {
         selectFilter.AddWithAnd(filter);
     }
     return this.PerformGetMultiAction(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, selectFilter, null, null, null, pageNumber, pageSize);
 }
 /// <summary>Retrieves in the calling MembershipCollection object all MembershipEntity objects which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter. </summary>
 /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
 /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
 /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
 /// <param name="roleInstance">RoleEntity instance to use as a filter for the MembershipEntity objects to return</param>
 /// <param name="storeInformationInstance">StoreInformationEntity instance to use as a filter for the MembershipEntity objects to return</param>
 /// <param name="pageNumber">The page number to retrieve.</param>
 /// <param name="pageSize">The page size of the page to retrieve.</param>
 public bool GetMulti(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IPredicateExpression filter, IEntity roleInstance, IEntity storeInformationInstance, int pageNumber, int pageSize)
 {
     this.EntityFactoryToUse = entityFactoryToUse;
     IEntityFields fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(ProductSearchEngine.EntityType.MembershipEntity);
     IPredicateExpression selectFilter = CreateFilterUsingForeignKeys(roleInstance, storeInformationInstance, fieldsToReturn);
     if(filter!=null)
     {
         selectFilter.AddWithAnd(filter);
     }
     return this.PerformGetMultiAction(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, selectFilter, null, null, null, pageNumber, pageSize);
 }
示例#4
0
 /// <summary> Sets the collection parameters for the collection for 'BidderCollectionViaPackage__'. These settings will be taken into account
 /// when the property BidderCollectionViaPackage__ is requested or GetMultiBidderCollectionViaPackage__ is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersBidderCollectionViaPackage__(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _bidderCollectionViaPackage__.SortClauses=sortClauses;
     _bidderCollectionViaPackage__.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
示例#5
0
        /// <summary>Retrieves in the calling OrderAuditInfoCollection object all OrderAuditInfoEntity objects which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter. </summary>
        /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
        /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. When set to 0, no limitations are specified.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
        /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
        /// <param name="auditActionTypeInstance">AuditActionTypeEntity instance to use as a filter for the OrderAuditInfoEntity objects to return</param>
        /// <param name="orderInstance">OrderEntity instance to use as a filter for the OrderAuditInfoEntity objects to return</param>
        /// <param name="userInstance">UserEntity instance to use as a filter for the OrderAuditInfoEntity objects to return</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        public bool GetMulti(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IPredicateExpression filter, IEntity auditActionTypeInstance, IEntity orderInstance, IEntity userInstance, int pageNumber, int pageSize)
        {
            this.EntityFactoryToUse = entityFactoryToUse;
            IEntityFields        fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(SD.LLBLGen.Pro.Examples.Auditing.EntityType.OrderAuditInfoEntity);
            IPredicateExpression selectFilter   = CreateFilterUsingForeignKeys(auditActionTypeInstance, orderInstance, userInstance, fieldsToReturn);

            if (filter != null)
            {
                selectFilter.AddWithAnd(filter);
            }
            return(this.PerformGetMultiAction(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, selectFilter, null, null, null, pageNumber, pageSize));
        }
示例#6
0
 /// <summary>
 /// Retrieves in the calling AccountCollection object all AccountEntity objects
 /// which are related via a relation of type 'm:n' with the passed in RoleEntity. 
 /// </summary>
 /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
 /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. 
 /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
 /// <param name="roleInstance">RoleEntity object to be used as a filter in the m:n relation</param>
 /// <param name="pageNumber">The page number to retrieve.</param>
 /// <param name="pageSize">The page size of the page to retrieve.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiUsingRoleCollectionViaUser(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity roleInstance, int pageNumber, int pageSize)
 {
     IEntityFields fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(Auction.Entities.EntityType.AccountEntity);
     RelationCollection relations = new RelationCollection();
     relations.Add(AccountEntity.Relations.UserEntityUsingAccountId, "User_");
     relations.Add(UserEntity.Relations.RoleEntityUsingRoleId, "User_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(roleInstance.Fields[(int)RoleFieldIndex.Id], ComparisonOperator.Equal));
     return GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, pageNumber, pageSize);
 }
示例#7
0
 /// <summary>
 /// Retrieves in the calling EffectCollection object all EffectEntity objects
 /// which are related via a relation of type 'm:n' with the passed in DecisionNodeEntity. 
 /// </summary>
 /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
 /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. 
 /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
 /// <param name="decisionNodeInstance">DecisionNodeEntity object to be used as a filter in the m:n relation</param>
 /// <param name="pageNumber">The page number to retrieve.</param>
 /// <param name="pageSize">The page size of the page to retrieve.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiUsingDecisionNodeCollectionViaRule(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity decisionNodeInstance, int pageNumber, int pageSize)
 {
     IEntityFields fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(policyDB.EntityType.EffectEntity);
     RelationCollection relations = new RelationCollection();
     relations.Add(EffectEntity.Relations.RuleEntityUsingEffectId, "Rule_");
     relations.Add(RuleEntity.Relations.DecisionNodeEntityUsingConditionId, "Rule_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(decisionNodeInstance.Fields[(int)DecisionNodeFieldIndex.Id], ComparisonOperator.Equal));
     return GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, pageNumber, pageSize);
 }
 /// <summary> Sets the collection parameters for the collection for 'AuctionEventDonor'. These settings will be taken into account
 /// when the property AuctionEventDonor is requested or GetMultiAuctionEventDonor is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersAuctionEventDonor(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _auctionEventDonor.SortClauses=sortClauses;
     _auctionEventDonor.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
 /// <summary> Sets the collection parameters for the collection for 'TargetCollectionViaPolicy'. These settings will be taken into account
 /// when the property TargetCollectionViaPolicy is requested or GetMultiTargetCollectionViaPolicy is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersTargetCollectionViaPolicy(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _targetCollectionViaPolicy.SortClauses=sortClauses;
     _targetCollectionViaPolicy.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
示例#10
0
 /// <summary>
 /// Retrieves in the calling PackageCollection object all PackageEntity objects which have data in common
 /// with the specified related Entities. If one is omitted, that entity is not used as a filter. 
 /// </summary>
 /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
 /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. 
 /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. 
 /// When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
 /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
 /// <param name="auctionEventInstance">AuctionEventEntity instance to use as a filter for the PackageEntity objects to return</param>
 /// <param name="bidderInstance">BidderEntity instance to use as a filter for the PackageEntity objects to return</param>
 /// <param name="categoryInstance">CategoryEntity instance to use as a filter for the PackageEntity objects to return</param>
 /// <param name="user__Instance">UserEntity instance to use as a filter for the PackageEntity objects to return</param>
 /// <param name="user_Instance">UserEntity instance to use as a filter for the PackageEntity objects to return</param>
 /// <param name="userInstance">UserEntity instance to use as a filter for the PackageEntity objects to return</param>
 /// <param name="pageNumber">The page number to retrieve.</param>
 /// <param name="pageSize">The page size of the page to retrieve.</param>
 public bool GetMulti(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IPredicateExpression filter, IEntity auctionEventInstance, IEntity bidderInstance, IEntity categoryInstance, IEntity user__Instance, IEntity user_Instance, IEntity userInstance, int pageNumber, int pageSize)
 {
     base.EntityFactoryToUse = entityFactoryToUse;
     IEntityFields fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(Auction.Entities.EntityType.PackageEntity);
     IPredicateExpression selectFilter = CreateFilterUsingForeignKeys(auctionEventInstance, bidderInstance, categoryInstance, user__Instance, user_Instance, userInstance, fieldsToReturn);
     if(filter!=null)
     {
         selectFilter.AddWithAnd(filter);
     }
     return base.PerformGetMultiAction(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, selectFilter, null, null, null, pageNumber, pageSize);
 }
示例#11
0
        /// <summary>
        /// Retrieves in the calling AddressTypeCollection object all AddressTypeEntity objects
        /// which are related via a relation of type 'm:n' with the passed in AddressEntity.
        /// </summary>
        /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
        /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.
        /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
        /// <param name="addressInstance">AddressEntity object to be used as a filter in the m:n relation</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        /// <returns>true if succeeded, false otherwise</returns>
        public bool GetMultiUsingAddressCollectionViaVendorAddress(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity addressInstance, int pageNumber, int pageSize)
        {
            IEntityFields      fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(AW.Data.EntityType.AddressTypeEntity);
            RelationCollection relations      = new RelationCollection();

            relations.Add(AddressTypeEntity.Relations.VendorAddressEntityUsingAddressTypeID, "VendorAddress_");
            relations.Add(VendorAddressEntity.Relations.AddressEntityUsingAddressID, "VendorAddress_", string.Empty, JoinHint.None);
            IPredicateExpression selectFilter = new PredicateExpression();

            selectFilter.Add(new FieldCompareValuePredicate(addressInstance.Fields[(int)AddressFieldIndex.AddressID], ComparisonOperator.Equal));
            return(GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, pageNumber, pageSize));
        }
 /// <summary> Retrieves in this ResponseCollection object all ResponseEntity objects which have data in common with the specified related Entities.
 /// If one is omitted, that entity is not used as a filter. All current elements in the collection are removed from the collection.</summary>
 /// <param name="feedInstance">FeedEntity instance to use as a filter for the ResponseEntity objects to return</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiManyToOne(IEntity feedInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicateExpression filter)
 {
     return(GetMultiManyToOne(feedInstance, maxNumberOfItemsToReturn, sortClauses, filter, 0, 0));
 }
示例#13
0
        /// <summary> Retrieves in this CountryRegionCollection object all CountryRegionEntity objects which are related via a  relation of type 'm:n' with the passed in CurrencyEntity.
        /// All current elements in the collection are removed from the collection.</summary>
        /// <param name="currencyInstance">CurrencyEntity object to be used as a filter in the m:n relation</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        /// <returns>true if the retrieval succeeded, false otherwise</returns>
        public virtual bool GetMultiManyToManyUsingCurrencyCollectionViaCountryRegionCurrency(IEntity currencyInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, int pageNumber, int pageSize)
        {
            if (!base.SuppressClearInGetMulti)
            {
                this.Clear();
            }
            CountryRegionDAO dao = DAOFactory.CreateCountryRegionDAO();

            return(dao.GetMultiUsingCurrencyCollectionViaCountryRegionCurrency(base.Transaction, this, maxNumberOfItemsToReturn, sortClauses, base.EntityFactoryToUse, currencyInstance, pageNumber, pageSize));
        }
示例#14
0
 /// <summary> Retrieves in this CountryRegionCollection object all CountryRegionEntity objects which are related via a  relation of type 'm:n' with the passed in CurrencyEntity.
 /// All current elements in the collection are removed from the collection.</summary>
 /// <param name="currencyInstance">CurrencyEntity object to be used as a filter in the m:n relation</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <returns>true if the retrieval succeeded, false otherwise</returns>
 public bool GetMultiManyToManyUsingCurrencyCollectionViaCountryRegionCurrency(IEntity currencyInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     return(GetMultiManyToManyUsingCurrencyCollectionViaCountryRegionCurrency(currencyInstance, maxNumberOfItemsToReturn, sortClauses, 0, 0));
 }
示例#15
0
        /// <summary> Retrieves in this CountryRegionCollection object all CountryRegionEntity objects which are related via a  relation of type 'm:n' with the passed in SalesTerritoryEntity.
        /// All current elements in the collection are removed from the collection.</summary>
        /// <param name="salesTerritoryInstance">SalesTerritoryEntity object to be used as a filter in the m:n relation</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch.</param>
        /// <returns>true if the retrieval succeeded, false otherwise</returns>
        public bool GetMultiManyToManyUsingSalesTerritoryCollectionViaStateProvince(IEntity salesTerritoryInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPrefetchPath prefetchPathToUse)
        {
            if (!base.SuppressClearInGetMulti)
            {
                this.Clear();
            }
            CountryRegionDAO dao = DAOFactory.CreateCountryRegionDAO();

            return(dao.GetMultiUsingSalesTerritoryCollectionViaStateProvince(base.Transaction, this, maxNumberOfItemsToReturn, sortClauses, base.EntityFactoryToUse, salesTerritoryInstance, prefetchPathToUse));
        }
示例#16
0
 /// <summary> Retrieves in this CountryRegionCollection object all CountryRegionEntity objects which are related via a  relation of type 'm:n' with the passed in SalesTerritoryEntity.
 /// All current elements in the collection are removed from the collection.</summary>
 /// <param name="salesTerritoryInstance">SalesTerritoryEntity object to be used as a filter in the m:n relation</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <returns>true if the retrieval succeeded, false otherwise</returns>
 public bool GetMultiManyToManyUsingSalesTerritoryCollectionViaStateProvince(IEntity salesTerritoryInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     return(GetMultiManyToManyUsingSalesTerritoryCollectionViaStateProvince(salesTerritoryInstance, maxNumberOfItemsToReturn, sortClauses, 0, 0));
 }
 /// <summary> Retrieves in this ProductModelIllustrationCollection object all ProductModelIllustrationEntity objects which have data in common with the specified related Entities.
 /// If one is omitted, that entity is not used as a filter. All current elements in the collection are removed from the collection.</summary>
 /// <param name="illustrationInstance">IllustrationEntity instance to use as a filter for the ProductModelIllustrationEntity objects to return</param>
 /// <param name="productModelInstance">ProductModelEntity instance to use as a filter for the ProductModelIllustrationEntity objects to return</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiManyToOne(IEntity illustrationInstance, IEntity productModelInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicateExpression filter)
 {
     return(GetMultiManyToOne(illustrationInstance, productModelInstance, maxNumberOfItemsToReturn, sortClauses, filter, 0, 0));
 }
示例#18
0
 /// <summary> Sets the collection parameters for the collection for 'RoleCollectionViaUser_'. These settings will be taken into account
 /// when the property RoleCollectionViaUser_ is requested or GetMultiRoleCollectionViaUser_ is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersRoleCollectionViaUser_(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _roleCollectionViaUser_.SortClauses=sortClauses;
     _roleCollectionViaUser_.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
示例#19
0
 /// <summary> Sets the collection parameters for the collection for 'PolicyLinkCollectionViaPolicyLink'. These settings will be taken into account
 /// when the property PolicyLinkCollectionViaPolicyLink is requested or GetMultiPolicyLinkCollectionViaPolicyLink is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersPolicyLinkCollectionViaPolicyLink(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _policyLinkCollectionViaPolicyLink.SortClauses=sortClauses;
     _policyLinkCollectionViaPolicyLink.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
        /// <summary>
        /// Retrieves in the calling DecisionNodeCollection object all DecisionNodeEntity objects
        /// which are related via a relation of type 'm:n' with the passed in AttributeEntity.
        /// </summary>
        /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
        /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.
        /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
        /// <param name="attributeInstance">AttributeEntity object to be used as a filter in the m:n relation</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        /// <returns>true if succeeded, false otherwise</returns>
        public bool GetMultiUsingAttributeCollectionViaAttributeValue(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity attributeInstance, int pageNumber, int pageSize)
        {
            IEntityFields      fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(policyDB.EntityType.DecisionNodeEntity);
            RelationCollection relations      = new RelationCollection();

            relations.Add(DecisionNodeEntity.Relations.AttributeValueEntityUsingAttributeMatchId, "AttributeValue_");
            relations.Add(AttributeValueEntity.Relations.AttributeEntityUsingAttributeId, "AttributeValue_", string.Empty, JoinHint.None);
            IPredicateExpression selectFilter = new PredicateExpression();

            selectFilter.Add(new FieldCompareValuePredicate(attributeInstance.Fields[(int)AttributeFieldIndex.Id], ComparisonOperator.Equal));
            return(GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, pageNumber, pageSize));
        }
 /// <summary> Sets the collection parameters for the collection for 'ProductSpecifications'. These settings will be taken into account
 /// when the property ProductSpecifications is requested or GetMultiProductSpecifications is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersProductSpecifications(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _productSpecifications.SortClauses=sortClauses;
     _productSpecifications.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
        /// <summary>
        /// Retrieves in the calling DecisionNodeCollection object all DecisionNodeEntity objects
        /// which are related via a relation of type 'm:n' with the passed in TargetEntity.
        /// </summary>
        /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
        /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.
        /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
        /// <param name="targetInstance">TargetEntity object to be used as a filter in the m:n relation</param>
        /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch.</param>
        /// <returns>true if succeeded, false otherwise</returns>
        public bool GetMultiUsingTargetCollectionViaTargetCondition(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity targetInstance, IPrefetchPath prefetchPathToUse)
        {
            IEntityFields      fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(policyDB.EntityType.DecisionNodeEntity);
            RelationCollection relations      = new RelationCollection();

            relations.Add(DecisionNodeEntity.Relations.TargetConditionEntityUsingConditionId, "TargetCondition_");
            relations.Add(TargetConditionEntity.Relations.TargetEntityUsingTargetId, "TargetCondition_", string.Empty, JoinHint.None);
            IPredicateExpression selectFilter = new PredicateExpression();

            selectFilter.Add(new FieldCompareValuePredicate(targetInstance.Fields[(int)TargetFieldIndex.Id], ComparisonOperator.Equal));
            return(GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, prefetchPathToUse));
        }
        /// <summary>
        /// Retrieves in the calling DecisionNodeCollection object all DecisionNodeEntity objects which have data in common
        /// with the specified related Entities. If one is omitted, that entity is not used as a filter.
        /// </summary>
        /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
        /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.
        /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return.
        /// When set to 0, no limitations are specified.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
        /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
        /// <param name="attributeInstance">AttributeEntity instance to use as a filter for the DecisionNodeEntity objects to return</param>
        /// <param name="parentInstance">DecisionNodeEntity instance to use as a filter for the DecisionNodeEntity objects to return</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        public bool GetMulti(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IPredicateExpression filter, IEntity attributeInstance, IEntity parentInstance, int pageNumber, int pageSize)
        {
            base.EntityFactoryToUse = entityFactoryToUse;
            IEntityFields        fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(policyDB.EntityType.DecisionNodeEntity);
            IPredicateExpression selectFilter   = CreateFilterUsingForeignKeys(attributeInstance, parentInstance, fieldsToReturn);

            if (filter != null)
            {
                selectFilter.AddWithAnd(filter);
            }
            return(base.PerformGetMultiAction(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, selectFilter, null, null, null, pageNumber, pageSize));
        }
 /// <summary>
 /// Retrieves entities of the type 'DecisionNodeEntity' in a datatable which match the specified filter.
 /// It will always create a new connection to the database.
 /// </summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.
 /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return.
 /// When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="selectFilter">A predicate or predicate expression which should be used as filter for the entities to retrieve.</param>
 /// <param name="relations">The set of relations to walk to construct to total query.</param>
 /// <param name="pageNumber">The page number to retrieve.</param>
 /// <param name="pageSize">The page size of the page to retrieve.</param>
 /// <returns>a filled datatable if succeeded, false otherwise</returns>
 public virtual DataTable GetMultiAsDataTable(long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicate selectFilter, IRelationCollection relations, int pageNumber, int pageSize)
 {
     return(base.PerformGetMultiAsDataTableAction(maxNumberOfItemsToReturn, sortClauses, selectFilter, relations, pageNumber, pageSize));
 }
示例#25
0
 /// <summary> Sets the collection parameters for the collection for 'UserCollectionViaDonation_'. These settings will be taken into account
 /// when the property UserCollectionViaDonation_ is requested or GetMultiUserCollectionViaDonation_ is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersUserCollectionViaDonation_(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _userCollectionViaDonation_.SortClauses=sortClauses;
     _userCollectionViaDonation_.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
示例#26
0
 /// <summary> Sets the collection parameters for the collection for 'Products'. These settings will be taken into account
 /// when the property Products is requested or GetMultiProducts is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersProducts(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _products.SortClauses = sortClauses;
     _products.MaxNumberOfItemsToReturn = maxNumberOfItemsToReturn;
 }
        /// <summary> Retrieves in this ProductModelIllustrationCollection object all ProductModelIllustrationEntity objects which have data in common with the specified related Entities.
        /// If one is omitted, that entity is not used as a filter. All current elements in the collection are removed from the collection.</summary>
        /// <param name="illustrationInstance">IllustrationEntity instance to use as a filter for the ProductModelIllustrationEntity objects to return</param>
        /// <param name="productModelInstance">ProductModelEntity instance to use as a filter for the ProductModelIllustrationEntity objects to return</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        /// <returns>true if succeeded, false otherwise</returns>
        public virtual bool GetMultiManyToOne(IEntity illustrationInstance, IEntity productModelInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicateExpression filter, int pageNumber, int pageSize)
        {
            bool validParameters = false;

            validParameters |= (illustrationInstance != null);
            validParameters |= (productModelInstance != null);
            if (!validParameters)
            {
                return(GetMulti(filter, maxNumberOfItemsToReturn, sortClauses, null, pageNumber, pageSize));
            }
            if (!base.SuppressClearInGetMulti)
            {
                this.Clear();
            }
            ProductModelIllustrationDAO dao = DAOFactory.CreateProductModelIllustrationDAO();

            return(dao.GetMulti(base.Transaction, this, maxNumberOfItemsToReturn, sortClauses, base.EntityFactoryToUse, filter, illustrationInstance, productModelInstance, pageNumber, pageSize));
        }
        /// <summary> Retrieves in this VendorContactCollection object all VendorContactEntity objects which have data in common with the specified related Entities.
        /// If one is omitted, that entity is not used as a filter. All current elements in the collection are removed from the collection.</summary>
        /// <param name="contactInstance">ContactEntity instance to use as a filter for the VendorContactEntity objects to return</param>
        /// <param name="contactTypeInstance">ContactTypeEntity instance to use as a filter for the VendorContactEntity objects to return</param>
        /// <param name="vendorInstance">VendorEntity instance to use as a filter for the VendorContactEntity objects to return</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        /// <returns>true if succeeded, false otherwise</returns>
        public virtual bool GetMultiManyToOne(IEntity contactInstance, IEntity contactTypeInstance, IEntity vendorInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicateExpression filter, int pageNumber, int pageSize)
        {
            bool validParameters = false;

            validParameters |= (contactInstance != null);
            validParameters |= (contactTypeInstance != null);
            validParameters |= (vendorInstance != null);
            if (!validParameters)
            {
                return(GetMulti(filter, maxNumberOfItemsToReturn, sortClauses, null, pageNumber, pageSize));
            }
            if (!base.SuppressClearInGetMulti)
            {
                this.Clear();
            }
            VendorContactDAO dao = DAOFactory.CreateVendorContactDAO();

            return(dao.GetMulti(base.Transaction, this, maxNumberOfItemsToReturn, sortClauses, base.EntityFactoryToUse, filter, contactInstance, contactTypeInstance, vendorInstance, pageNumber, pageSize));
        }
示例#29
0
 /// <summary>
 /// Retrieves entities of the type 'MUserEntity' in a datatable which match the specified filter. 
 /// It will always create a new connection to the database.
 /// </summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. 
 /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. 
 /// When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="selectFilter">A predicate or predicate expression which should be used as filter for the entities to retrieve.</param>
 /// <param name="relations">The set of relations to walk to construct to total query.</param>
 /// <param name="pageNumber">The page number to retrieve.</param>
 /// <param name="pageSize">The page size of the page to retrieve.</param>
 /// <returns>a filled datatable if succeeded, false otherwise</returns>
 public virtual DataTable GetMultiAsDataTable(long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicate selectFilter, IRelationCollection relations, int pageNumber, int pageSize)
 {
     return base.PerformGetMultiAsDataTableAction(maxNumberOfItemsToReturn, sortClauses, selectFilter, relations, pageNumber, pageSize);
 }
 /// <summary> Retrieves in this VendorContactCollection object all VendorContactEntity objects which have data in common with the specified related Entities.
 /// If one is omitted, that entity is not used as a filter. All current elements in the collection are removed from the collection.</summary>
 /// <param name="contactInstance">ContactEntity instance to use as a filter for the VendorContactEntity objects to return</param>
 /// <param name="contactTypeInstance">ContactTypeEntity instance to use as a filter for the VendorContactEntity objects to return</param>
 /// <param name="vendorInstance">VendorEntity instance to use as a filter for the VendorContactEntity objects to return</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiManyToOne(IEntity contactInstance, IEntity contactTypeInstance, IEntity vendorInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicateExpression filter)
 {
     return(GetMultiManyToOne(contactInstance, contactTypeInstance, vendorInstance, maxNumberOfItemsToReturn, sortClauses, filter, 0, 0));
 }
示例#31
0
 /// <summary> Sets the collection parameters for the collection for 'AccountCollectionViaDonor_'. These settings will be taken into account
 /// when the property AccountCollectionViaDonor_ is requested or GetMultiAccountCollectionViaDonor_ is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersAccountCollectionViaDonor_(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _accountCollectionViaDonor_.SortClauses=sortClauses;
     _accountCollectionViaDonor_.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
示例#32
0
        /// <summary> Retrieves in this BaleCollection object all BaleEntity objects which have data in common with the specified related Entities.
        /// If one is omitted, that entity is not used as a filter. All current elements in the collection are removed from the collection.</summary>
        /// <param name="accountInstance">AccountEntity instance to use as a filter for the BaleEntity objects to return</param>
        /// <param name="dockInstance">DockEntity instance to use as a filter for the BaleEntity objects to return</param>
        /// <param name="recycleTypeInstance">RecycleTypeEntity instance to use as a filter for the BaleEntity objects to return</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        /// <returns>true if succeeded, false otherwise</returns>
        public virtual bool GetMultiManyToOne(IEntity accountInstance, IEntity dockInstance, IEntity recycleTypeInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicateExpression filter, int pageNumber, int pageSize)
        {
            bool validParameters = false;

            validParameters |= (accountInstance != null);
            validParameters |= (dockInstance != null);
            validParameters |= (recycleTypeInstance != null);
            if (!validParameters)
            {
                return(GetMulti(filter, maxNumberOfItemsToReturn, sortClauses, null, pageNumber, pageSize));
            }
            if (!base.SuppressClearInGetMulti)
            {
                this.Clear();
            }
            BaleDAO dao = DAOFactory.CreateBaleDAO();

            return(dao.GetMulti(base.Transaction, this, maxNumberOfItemsToReturn, sortClauses, base.EntityFactoryToUse, filter, accountInstance, dockInstance, recycleTypeInstance, pageNumber, pageSize));
        }
示例#33
0
 /// <summary> Sets the collection parameters for the collection for 'Expense_'. These settings will be taken into account
 /// when the property Expense_ is requested or GetMultiExpense_ is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersExpense_(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _expense_.SortClauses=sortClauses;
     _expense_.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
示例#34
0
 /// <summary> Retrieves in this BaleCollection object all BaleEntity objects which have data in common with the specified related Entities.
 /// If one is omitted, that entity is not used as a filter. All current elements in the collection are removed from the collection.</summary>
 /// <param name="accountInstance">AccountEntity instance to use as a filter for the BaleEntity objects to return</param>
 /// <param name="dockInstance">DockEntity instance to use as a filter for the BaleEntity objects to return</param>
 /// <param name="recycleTypeInstance">RecycleTypeEntity instance to use as a filter for the BaleEntity objects to return</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiManyToOne(IEntity accountInstance, IEntity dockInstance, IEntity recycleTypeInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicateExpression filter)
 {
     return(GetMultiManyToOne(accountInstance, dockInstance, recycleTypeInstance, maxNumberOfItemsToReturn, sortClauses, filter, 0, 0));
 }
示例#35
0
 /// <summary> Sets the collection parameters for the collection for 'EffectCollectionViaRule'. These settings will be taken into account
 /// when the property EffectCollectionViaRule is requested or GetMultiEffectCollectionViaRule is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersEffectCollectionViaRule(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _effectCollectionViaRule.SortClauses=sortClauses;
     _effectCollectionViaRule.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
示例#36
0
 /// <summary>Sets the collection parameters for the collection for 'CustomerCustomerDemos'. These settings will be taken into account
 /// when the property CustomerCustomerDemos is requested or GetMultiCustomerCustomerDemos is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersCustomerCustomerDemos(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _customerCustomerDemos.SortClauses = sortClauses;
     _customerCustomerDemos.MaxNumberOfItemsToReturn = maxNumberOfItemsToReturn;
 }
示例#37
0
 /// <summary> Sets the collection parameters for the collection for 'ThistoryAlat'. These settings will be taken into account
 /// when the property ThistoryAlat is requested or GetMultiThistoryAlat is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersThistoryAlat(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _thistoryAlat.SortClauses=sortClauses;
     _thistoryAlat.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
示例#38
0
        /// <summary>Retrieves in the calling EmployeeCollection object all EmployeeEntity objects which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter. </summary>
        /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
        /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. When set to 0, no limitations are specified.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
        /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
        /// <param name="employeeInstance">EmployeeEntity instance to use as a filter for the EmployeeEntity objects to return</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        public bool GetMulti(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IPredicateExpression filter, IEntity employeeInstance, int pageNumber, int pageSize)
        {
            this.EntityFactoryToUse = entityFactoryToUse;
            IEntityFields        fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(Northwind.DAL.EntityType.EmployeeEntity);
            IPredicateExpression selectFilter   = CreateFilterUsingForeignKeys(employeeInstance, fieldsToReturn);

            if (filter != null)
            {
                selectFilter.AddWithAnd(filter);
            }
            return(this.PerformGetMultiAction(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, selectFilter, null, null, null, pageNumber, pageSize));
        }
示例#39
0
 /// <summary> Sets the collection parameters for the collection for 'CategoryCollectionViaPackage'. These settings will be taken into account
 /// when the property CategoryCollectionViaPackage is requested or GetMultiCategoryCollectionViaPackage is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersCategoryCollectionViaPackage(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _categoryCollectionViaPackage.SortClauses=sortClauses;
     _categoryCollectionViaPackage.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
 /// <summary>Sets the collection parameters for the collection for 'EmployeesCollectionViaOrders'. These settings will be taken into account
 /// when the property EmployeesCollectionViaOrders is requested or GetMultiEmployeesCollectionViaOrders is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersEmployeesCollectionViaOrders(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _employeesCollectionViaOrders.SortClauses = sortClauses;
     _employeesCollectionViaOrders.MaxNumberOfItemsToReturn = maxNumberOfItemsToReturn;
 }
示例#41
0
 /// <summary>
 /// Retrieves in the calling CategoryCollection object all CategoryEntity objects
 /// which are related via a relation of type 'm:n' with the passed in UserEntity. 
 /// </summary>
 /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
 /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. 
 /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
 /// <param name="userInstance">UserEntity object to be used as a filter in the m:n relation</param>
 /// <param name="pageNumber">The page number to retrieve.</param>
 /// <param name="pageSize">The page size of the page to retrieve.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiUsingUserCollectionViaPackage_(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity userInstance, int pageNumber, int pageSize)
 {
     IEntityFields fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(Auction.Entities.EntityType.CategoryEntity);
     RelationCollection relations = new RelationCollection();
     relations.Add(CategoryEntity.Relations.PackageEntityUsingCategoryId, "Package_");
     relations.Add(PackageEntity.Relations.UserEntityUsingClosedOutBy, "Package_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(userInstance.Fields[(int)UserFieldIndex.Id], ComparisonOperator.Equal));
     return GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, pageNumber, pageSize);
 }
 /// <summary> Retrieves in this UserCollection object all UserEntity objects which are related via a  relation of type 'm:n' with the passed in AuditActionTypeEntity. All current elements in the collection are removed from the collection.</summary>
 /// <param name="auditActionTypeInstance">AuditActionTypeEntity object to be used as a filter in the m:n relation</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch.</param>
 /// <returns>true if the retrieval succeeded, false otherwise</returns>
 public bool GetMultiManyToManyUsingAuditActionTypeCollectionViaAuditInfo(IEntity auditActionTypeInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPrefetchPath prefetchPathToUse)
 {
     if (!this.SuppressClearInGetMulti)
     {
         this.Clear();
     }
     return(DAOFactory.CreateUserDAO().GetMultiUsingAuditActionTypeCollectionViaAuditInfo(this.Transaction, this, maxNumberOfItemsToReturn, sortClauses, this.EntityFactoryToUse, auditActionTypeInstance, prefetchPathToUse, 0, 0));
 }
示例#43
0
 /// <summary>
 /// Retrieves in the calling LibraryCollection object all LibraryEntity objects
 /// which are related via a relation of type 'm:n' with the passed in TargetEntity. 
 /// </summary>
 /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
 /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. 
 /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
 /// <param name="targetInstance">TargetEntity object to be used as a filter in the m:n relation</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiUsingTargetCollectionViaPolicy(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity targetInstance, IPrefetchPath prefetchPathToUse)
 {
     IEntityFields fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(policyDB.EntityType.LibraryEntity);
     RelationCollection relations = new RelationCollection();
     relations.Add(LibraryEntity.Relations.PolicyEntityUsingLibraryId, "Policy_");
     relations.Add(PolicyEntity.Relations.TargetEntityUsingTargetId, "Policy_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(targetInstance.Fields[(int)TargetFieldIndex.Id], ComparisonOperator.Equal));
     return GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, prefetchPathToUse);
 }
 /// <summary> Retrieves in this UserCollection object all UserEntity objects which are related via a  relation of type 'm:n' with the passed in AuditActionTypeEntity. All current elements in the collection are removed from the collection.</summary>
 /// <param name="auditActionTypeInstance">AuditActionTypeEntity object to be used as a filter in the m:n relation</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <returns>true if the retrieval succeeded, false otherwise</returns>
 public bool GetMultiManyToManyUsingAuditActionTypeCollectionViaAuditInfo(IEntity auditActionTypeInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     return(GetMultiManyToManyUsingAuditActionTypeCollectionViaAuditInfo(auditActionTypeInstance, maxNumberOfItemsToReturn, sortClauses, 0, 0));
 }
 /// <summary> Sets the collection parameters for the collection for 'StoreInformations'. These settings will be taken into account
 /// when the property StoreInformations is requested or GetMultiStoreInformations is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersStoreInformations(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _storeInformations.SortClauses=sortClauses;
     _storeInformations.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
 /// <summary> Retrieves in this UserCollection object all UserEntity objects which are related via a  relation of type 'm:n' with the passed in AuditActionTypeEntity. All current elements in the collection are removed from the collection.</summary>
 /// <param name="auditActionTypeInstance">AuditActionTypeEntity object to be used as a filter in the m:n relation</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="pageNumber">The page number to retrieve.</param>
 /// <param name="pageSize">The page size of the page to retrieve.</param>
 /// <returns>true if the retrieval succeeded, false otherwise</returns>
 public virtual bool GetMultiManyToManyUsingAuditActionTypeCollectionViaAuditInfo(IEntity auditActionTypeInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, int pageNumber, int pageSize)
 {
     if (!this.SuppressClearInGetMulti)
     {
         this.Clear();
     }
     return(DAOFactory.CreateUserDAO().GetMultiUsingAuditActionTypeCollectionViaAuditInfo(this.Transaction, this, maxNumberOfItemsToReturn, sortClauses, this.EntityFactoryToUse, auditActionTypeInstance, null, pageNumber, pageSize));
 }
示例#47
0
 /// <summary> Sets the collection parameters for the collection for 'PackageCollectionViaDonation'. These settings will be taken into account
 /// when the property PackageCollectionViaDonation is requested or GetMultiPackageCollectionViaDonation is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersPackageCollectionViaDonation(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _packageCollectionViaDonation.SortClauses=sortClauses;
     _packageCollectionViaDonation.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
示例#48
0
 /// <summary>Retrieves in the calling ForumCollection object all ForumEntity objects which are related via a relation of type 'm:n' with the passed in UserEntity.</summary>
 /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
 /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
 /// <param name="userInstance">UserEntity object to be used as a filter in the m:n relation</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch.</param>
 /// <param name="pageNumber">The page number to retrieve.</param>
 /// <param name="pageSize">The page size of the page to retrieve.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiUsingUsersWhoStartedThreads(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity userInstance, IPrefetchPath prefetchPathToUse, int pageNumber, int pageSize)
 {
     RelationCollection relations = new RelationCollection();
     relations.Add(ForumEntity.Relations.ThreadEntityUsingForumID, "Thread_");
     relations.Add(ThreadEntity.Relations.UserEntityUsingStartedByUserID, "Thread_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(userInstance.Fields[(int)UserFieldIndex.UserID], ComparisonOperator.Equal));
     return this.GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, prefetchPathToUse, pageNumber, pageSize);
 }
示例#49
0
 /// <summary> Sets the collection parameters for the collection for 'Muser'. These settings will be taken into account
 /// when the property Muser is requested or GetMultiMuser is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersMuser(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _muser.SortClauses=sortClauses;
     _muser.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
示例#50
0
 /// <summary> Sets the collection parameters for the collection for 'SystemRightAssignedToRoles'. These settings will be taken into account
 /// when the property SystemRightAssignedToRoles is requested or GetMultiSystemRightAssignedToRoles is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersSystemRightAssignedToRoles(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _systemRightAssignedToRoles.SortClauses=sortClauses;
     _systemRightAssignedToRoles.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
        /// <summary> Retrieves in this CustomerCustomerDemoCollection object all CustomerCustomerDemoEntity objects which have data in common with the specified related Entities.
        /// If one is omitted, that entity is not used as a filter. All current elements in the collection are removed from the collection.</summary>
        /// <param name="customerInstance">CustomerEntity instance to use as a filter for the CustomerCustomerDemoEntity objects to return</param>
        /// <param name="customerDemographyInstance">CustomerDemographyEntity instance to use as a filter for the CustomerCustomerDemoEntity objects to return</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        /// <returns>true if succeeded, false otherwise</returns>
        public virtual bool GetMultiManyToOne(IEntity customerInstance, IEntity customerDemographyInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicateExpression filter, int pageNumber, int pageSize)
        {
            bool validParameters = false;

            validParameters |= (customerInstance != null);
            validParameters |= (customerDemographyInstance != null);
            if (!validParameters)
            {
                return(GetMulti(filter, maxNumberOfItemsToReturn, sortClauses, null, pageNumber, pageSize));
            }
            if (!this.SuppressClearInGetMulti)
            {
                this.Clear();
            }
            return(DAOFactory.CreateCustomerCustomerDemoDAO().GetMulti(this.Transaction, this, maxNumberOfItemsToReturn, sortClauses, this.EntityFactoryToUse, filter, customerInstance, customerDemographyInstance, pageNumber, pageSize));
        }
示例#52
0
        /// <summary>Retrieves in the calling UserCollection object all UserEntity objects which are related via a relation of type 'm:n' with the passed in ForumEntity.</summary>
        /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
        /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. When set to 0, no limitations are specified.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
        /// <param name="forumInstance">ForumEntity object to be used as a filter in the m:n relation</param>
        /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch.</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        /// <returns>true if succeeded, false otherwise</returns>
        public bool GetMultiUsingStartedThreadsInForums(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity forumInstance, IPrefetchPath prefetchPathToUse, int pageNumber, int pageSize)
        {
            RelationCollection relations = new RelationCollection();

            relations.Add(UserEntity.Relations.ThreadEntityUsingStartedByUserID, "Thread_");
            relations.Add(ThreadEntity.Relations.ForumEntityUsingForumID, "Thread_", string.Empty, JoinHint.None);
            IPredicateExpression selectFilter = new PredicateExpression();

            selectFilter.Add(new FieldCompareValuePredicate(forumInstance.Fields[(int)ForumFieldIndex.ForumID], ComparisonOperator.Equal));
            return(this.GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, prefetchPathToUse, pageNumber, pageSize));
        }
示例#53
0
 /// <summary> Sets the collection parameters for the collection for 'RoleSystemActionRights'. These settings will be taken into account
 /// when the property RoleSystemActionRights is requested or GetMultiRoleSystemActionRights is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersRoleSystemActionRights(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _roleSystemActionRights.SortClauses=sortClauses;
     _roleSystemActionRights.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
 /// <summary> Retrieves Entity rows in a datatable which match the specified filter. It will always create a new connection to the database.</summary>
 /// <param name="selectFilter">A predicate or predicate expression which should be used as filter for the entities to retrieve.</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="relations">The set of relations to walk to construct to total query.</param>
 /// <returns>DataTable with the rows requested.</returns>
 public static DataTable GetMultiAsDataTable(IPredicate selectFilter, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IRelationCollection relations)
 {
     return(GetMultiAsDataTable(selectFilter, maxNumberOfItemsToReturn, sortClauses, relations, 0, 0));
 }
示例#55
0
 /// <summary>
 /// Retrieves in the calling AccountCollection object all AccountEntity objects
 /// which are related via a relation of type 'm:n' with the passed in UserEntity. 
 /// </summary>
 /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
 /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. 
 /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
 /// <param name="userInstance">UserEntity object to be used as a filter in the m:n relation</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiUsingUserCollectionViaDonor_(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity userInstance, IPrefetchPath prefetchPathToUse)
 {
     IEntityFields fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(Auction.Entities.EntityType.AccountEntity);
     RelationCollection relations = new RelationCollection();
     relations.Add(AccountEntity.Relations.DonorEntityUsingAccountId, "Donor_");
     relations.Add(DonorEntity.Relations.UserEntityUsingUpdatedBy, "Donor_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(userInstance.Fields[(int)UserFieldIndex.Id], ComparisonOperator.Equal));
     return GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, prefetchPathToUse);
 }
        /// <summary> Retrieves Entity rows in a datatable which match the specified filter. It will always create a new connection to the database.</summary>
        /// <param name="selectFilter">A predicate or predicate expression which should be used as filter for the entities to retrieve.</param>
        /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
        /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
        /// <param name="relations">The set of relations to walk to construct to total query.</param>
        /// <param name="pageNumber">The page number to retrieve.</param>
        /// <param name="pageSize">The page size of the page to retrieve.</param>
        /// <returns>DataTable with the rows requested.</returns>
        public static DataTable GetMultiAsDataTable(IPredicate selectFilter, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IRelationCollection relations, int pageNumber, int pageSize)
        {
            CustomerCustomerDemoDAO dao = DAOFactory.CreateCustomerCustomerDemoDAO();

            return(dao.GetMultiAsDataTable(maxNumberOfItemsToReturn, sortClauses, selectFilter, relations, pageNumber, pageSize));
        }
示例#57
0
 /// <summary> Sets the collection parameters for the collection for 'Forums'. These settings will be taken into account
 /// when the property Forums is requested or GetMultiForums is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersForums(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _forums.SortClauses=sortClauses;
     _forums.MaxNumberOfItemsToReturn=maxNumberOfItemsToReturn;
 }
 /// <summary> Retrieves in this CustomerCustomerDemoCollection object all CustomerCustomerDemoEntity objects which have data in common with the specified related Entities.
 /// If one is omitted, that entity is not used as a filter. All current elements in the collection are removed from the collection.</summary>
 /// <param name="customerInstance">CustomerEntity instance to use as a filter for the CustomerCustomerDemoEntity objects to return</param>
 /// <param name="customerDemographyInstance">CustomerDemographyEntity instance to use as a filter for the CustomerCustomerDemoEntity objects to return</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiManyToOne(IEntity customerInstance, IEntity customerDemographyInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicateExpression filter)
 {
     return(GetMultiManyToOne(customerInstance, customerDemographyInstance, maxNumberOfItemsToReturn, sortClauses, filter, 0, 0));
 }
示例#59
0
 /// <summary>
 /// Retrieves in the calling MUserCollection object all MUserEntity objects which have data in common
 /// with the specified related Entities. If one is omitted, that entity is not used as a filter. 
 /// </summary>
 /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
 /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. 
 /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. 
 /// When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
 /// <param name="filter">Extra filter to limit the resultset. Predicate expression can be null, in which case it will be ignored.</param>
 /// <param name="mhakAksesInstance">MHakAksesEntity instance to use as a filter for the MUserEntity objects to return</param>
 /// <param name="pageNumber">The page number to retrieve.</param>
 /// <param name="pageSize">The page size of the page to retrieve.</param>
 public bool GetMulti(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IPredicateExpression filter, IEntity mhakAksesInstance, int pageNumber, int pageSize)
 {
     base.EntityFactoryToUse = entityFactoryToUse;
     IEntityFields fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(Kalibrasi.Data.EntityType.MUserEntity);
     IPredicateExpression selectFilter = CreateFilterUsingForeignKeys(mhakAksesInstance, fieldsToReturn);
     if(filter!=null)
     {
         selectFilter.AddWithAnd(filter);
     }
     return base.PerformGetMultiAction(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, selectFilter, null, null, null, pageNumber, pageSize);
 }
示例#60
0
 /// <summary>Sets the collection parameters for the collection for 'OrderDetails'. These settings will be taken into account
 /// when the property OrderDetails is requested or GetMultiOrderDetails is called.</summary>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return. When set to 0, this parameter is ignored</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified (null), no sorting is applied.</param>
 public virtual void SetCollectionParametersOrderDetails(long maxNumberOfItemsToReturn, ISortExpression sortClauses)
 {
     _orderDetails.SortClauses = sortClauses;
     _orderDetails.MaxNumberOfItemsToReturn = maxNumberOfItemsToReturn;
 }