Example #1
0
        /// <summary> Retrieves in this StatusCollection object all StatusEntity objects which are related via a  relation of type 'm:n' with the passed in EmployeeEntity.
        /// All current elements in the collection are removed from the collection.</summary>
        /// <param name="employeeInstance">EmployeeEntity 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 GetMultiManyToManyUsingEmployeeCollectionViaLoad(IEntity employeeInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, int pageNumber, int pageSize)
        {
            if (!base.SuppressClearInGetMulti)
            {
                this.Clear();
            }
            StatusDAO dao = DAOFactory.CreateStatusDAO();

            return(dao.GetMultiUsingEmployeeCollectionViaLoad(base.Transaction, this, maxNumberOfItemsToReturn, sortClauses, base.EntityFactoryToUse, employeeInstance, pageNumber, pageSize));
        }