예제 #1
0
        /// <summary> Updates in the persistent storage all Attribute entities which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter.
        /// Which fields are updated in those matching entities depends on which fields are <i>changed</i> in the passed in entity entityWithNewValues. The new values of these fields are read from entityWithNewValues. </summary>
        /// <param name="entityWithNewValues">AttributeEntity instance which holds the new values for the matching entities to update. Only changed fields are taken into account</param>
        /// <param name="attributeTypeInstance">AttributeTypeEntity instance to use as a filter for the AttributeEntity objects to return</param>
        /// <param name="contextInstance">ContextEntity instance to use as a filter for the AttributeEntity objects to return</param>
        /// <returns>Amount of entities affected, if the used persistent storage has rowcounting enabled.</returns>
        public int UpdateMultiManyToOne(AttributeEntity entityWithNewValues, IEntity attributeTypeInstance, IEntity contextInstance)
        {
            AttributeDAO dao = DAOFactory.CreateAttributeDAO();

            return(dao.UpdateMulti(entityWithNewValues, base.Transaction, attributeTypeInstance, contextInstance));
        }
예제 #2
0
 /// <summary>Creates the DAO instance for this type</summary>
 /// <returns></returns>
 protected override IDao CreateDAOInstance()
 {
     return(DAOFactory.CreateCustomerCustomerDemoDAO());
 }
예제 #3
0
 /// <summary>Deletes from the persistent storage all Employee entities which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter.</summary>
 /// <remarks>Runs directly on the persistent storage. It will not delete entity objects from the current collection.</remarks>
 /// <param name="employeeSuperiorInstance">EmployeeEntity instance to use as a filter for the EmployeeEntity objects to return</param>
 /// <returns>Amount of entities affected, if the used persistent storage has rowcounting enabled.</returns>
 public int DeleteMultiManyToOne(IEntity employeeSuperiorInstance)
 {
     return(DAOFactory.CreateEmployeeDAO().DeleteMulti(this.Transaction, employeeSuperiorInstance));
 }
예제 #4
0
 /// <summary> Updates in the persistent storage all ForumRoleForumActionRight entities which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter.
 /// Which fields are updated in those matching entities depends on which fields are <i>changed</i> in the passed in entity entityWithNewValues. The new values of these fields are read from entityWithNewValues. </summary>
 /// <param name="entityWithNewValues">ForumRoleForumActionRightEntity instance which holds the new values for the matching entities to update. Only changed fields are taken into account</param>
 /// <param name="actionRightInstance">ActionRightEntity instance to use as a filter for the ForumRoleForumActionRightEntity objects to return</param>
 /// <param name="forumInstance">ForumEntity instance to use as a filter for the ForumRoleForumActionRightEntity objects to return</param>
 /// <param name="roleInstance">RoleEntity instance to use as a filter for the ForumRoleForumActionRightEntity objects to return</param>
 /// <returns>Amount of entities affected, if the used persistent storage has rowcounting enabled.</returns>
 public int UpdateMultiManyToOne(ForumRoleForumActionRightEntity entityWithNewValues, IEntity actionRightInstance, IEntity forumInstance, IEntity roleInstance)
 {
     return(DAOFactory.CreateForumRoleForumActionRightDAO().UpdateMulti(entityWithNewValues, this.Transaction, actionRightInstance, forumInstance, roleInstance));
 }
예제 #5
0
 /// <summary>Creats a new DAO instance so code which is in the base class can still use the proper DAO object.</summary>
 protected override IDao CreateDAOInstance()
 {
     return(DAOFactory.CreateForumRoleForumActionRightDAO());
 }
예제 #6
0
 /// <summary>Retrieves in this EmployeeCollection object all EmployeeEntity objects which are related via a  relation of type 'm:n' with the passed in TerritoryEntity. All current elements in the collection are removed from the collection.</summary>
 /// <param name="territoryInstance">TerritoryEntity 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 GetMultiManyToManyUsingTerritoriesCollectionViaEmployeeTerritories(IEntity territoryInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IPrefetchPath prefetchPathToUse)
 {
     ClearForGetMultiIfAllowed();
     return(DAOFactory.CreateEmployeeDAO().GetMultiUsingTerritoriesCollectionViaEmployeeTerritories(this.Transaction, this, maxNumberOfItemsToReturn, sortClauses, this.EntityFactoryToUse, territoryInstance, prefetchPathToUse, 0, 0));
 }
예제 #7
0
 /// <summary>Creats a new DAO instance so code which is in the base class can still use the proper DAO object.</summary>
 protected override IDao CreateDAOInstance()
 {
     return(DAOFactory.CreateEmployeeDAO());
 }
예제 #8
0
 /// <summary> Updates in the persistent storage all CustomerCustomerDemo entities which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter.
 /// Which fields are updated in those matching entities depends on which fields are <i>changed</i> in the passed in entity entityWithNewValues. The new values of these fields are read from entityWithNewValues. </summary>
 /// <param name="entityWithNewValues">CustomerCustomerDemoEntity instance which holds the new values for the matching entities to update. Only changed fields are taken into account</param>
 /// <param name="customersInstance">CustomerEntity instance to use as a filter for the CustomerCustomerDemoEntity objects to return</param>
 /// <param name="customerDemographicsInstance">CustomerDemographyEntity instance to use as a filter for the CustomerCustomerDemoEntity objects to return</param>
 /// <returns>Amount of entities affected, if the used persistent storage has rowcounting enabled.</returns>
 public int UpdateMultiManyToOne(CustomerCustomerDemoEntity entityWithNewValues, IEntity customersInstance, IEntity customerDemographicsInstance)
 {
     return(DAOFactory.CreateCustomerCustomerDemoDAO().UpdateMulti(entityWithNewValues, this.Transaction, customersInstance, customerDemographicsInstance));
 }
예제 #9
0
        /// <summary> Deletes from the persistent storage all Rebate entities which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter.</summary>
        /// <remarks>Runs directly on the persistent storage. It will not delete entity objects from the current collection.</remarks>
        /// <param name="accountInstance">AccountEntity instance to use as a filter for the RebateEntity objects to return</param>
        /// <param name="rebateTypeInstance">RebateTypeEntity instance to use as a filter for the RebateEntity objects to return</param>
        /// <param name="userInstance">UserEntity instance to use as a filter for the RebateEntity objects to return</param>
        /// <returns>Amount of entities affected, if the used persistent storage has rowcounting enabled.</returns>
        public int DeleteMultiManyToOne(IEntity accountInstance, IEntity rebateTypeInstance, IEntity userInstance)
        {
            RebateDAO dao = DAOFactory.CreateRebateDAO();

            return(dao.DeleteMulti(base.Transaction, accountInstance, rebateTypeInstance, userInstance));
        }
예제 #10
0
 /// <summary>Creats a new DAO instance so code which is in the base class can still use the proper DAO object.</summary>
 protected override IDao CreateDAOInstance()
 {
     return(DAOFactory.CreateOrderDAO());
 }
예제 #11
0
 /// <summary> Deletes from the persistent storage all CustomerCustomerDemo entities which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter.</summary>
 /// <remarks>Runs directly on the persistent storage. It will not delete entity objects from the current collection.</remarks>
 /// <param name="customersInstance">CustomerEntity instance to use as a filter for the CustomerCustomerDemoEntity objects to return</param>
 /// <param name="customerDemographicsInstance">CustomerDemographyEntity instance to use as a filter for the CustomerCustomerDemoEntity objects to return</param>
 /// <returns>Amount of entities affected, if the used persistent storage has rowcounting enabled.</returns>
 public int DeleteMultiManyToOne(IEntity customersInstance, IEntity customerDemographicsInstance)
 {
     return(DAOFactory.CreateCustomerCustomerDemoDAO().DeleteMulti(this.Transaction, customersInstance, customerDemographicsInstance));
 }
예제 #12
0
 /// <summary>Updates in the persistent storage all Order entities which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter.
 /// Which fields are updated in those matching entities depends on which fields are <i>changed</i> in the passed in entity entityWithNewValues. The new values of these fields are read from entityWithNewValues. </summary>
 /// <param name="entityWithNewValues">OrderEntity instance which holds the new values for the matching entities to update. Only changed fields are taken into account</param>
 /// <param name="customerInstance">CustomerEntity instance to use as a filter for the OrderEntity objects to return</param>
 /// <param name="employeeInstance">EmployeeEntity instance to use as a filter for the OrderEntity objects to return</param>
 /// <param name="shipperInstance">ShipperEntity instance to use as a filter for the OrderEntity objects to return</param>
 /// <returns>Amount of entities affected, if the used persistent storage has rowcounting enabled.</returns>
 public int UpdateMultiManyToOne(OrderEntity entityWithNewValues, IEntity customerInstance, IEntity employeeInstance, IEntity shipperInstance)
 {
     return(DAOFactory.CreateOrderDAO().UpdateMulti(entityWithNewValues, this.Transaction, customerInstance, employeeInstance, shipperInstance));
 }
예제 #13
0
 /// <summary>Deletes from the persistent storage all Order entities which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter.</summary>
 /// <remarks>Runs directly on the persistent storage. It will not delete entity objects from the current collection.</remarks>
 /// <param name="customerInstance">CustomerEntity instance to use as a filter for the OrderEntity objects to return</param>
 /// <param name="employeeInstance">EmployeeEntity instance to use as a filter for the OrderEntity objects to return</param>
 /// <param name="shipperInstance">ShipperEntity instance to use as a filter for the OrderEntity objects to return</param>
 /// <returns>Amount of entities affected, if the used persistent storage has rowcounting enabled.</returns>
 public int DeleteMultiManyToOne(IEntity customerInstance, IEntity employeeInstance, IEntity shipperInstance)
 {
     return(DAOFactory.CreateOrderDAO().DeleteMulti(this.Transaction, customerInstance, employeeInstance, shipperInstance));
 }
예제 #14
0
 /// <summary>Creats a new DAO instance so code which is in the base class can still use the proper DAO object.</summary>
 protected override IDao CreateDAOInstance()
 {
     return(DAOFactory.CreateAttributeDAO());
 }
예제 #15
0
 public void Delete(string code)
 {
     DAOFactory.GetRefactionDAO().Delete(code);
 }
예제 #16
0
        /// <summary> Updates in the persistent storage all Rebate entities which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter.
        /// Which fields are updated in those matching entities depends on which fields are <i>changed</i> in the passed in entity entityWithNewValues. The new values of these fields are read from entityWithNewValues. </summary>
        /// <param name="entityWithNewValues">RebateEntity instance which holds the new values for the matching entities to update. Only changed fields are taken into account</param>
        /// <param name="accountInstance">AccountEntity instance to use as a filter for the RebateEntity objects to return</param>
        /// <param name="rebateTypeInstance">RebateTypeEntity instance to use as a filter for the RebateEntity objects to return</param>
        /// <param name="userInstance">UserEntity instance to use as a filter for the RebateEntity objects to return</param>
        /// <returns>Amount of entities affected, if the used persistent storage has rowcounting enabled.</returns>
        public int UpdateMultiManyToOne(RebateEntity entityWithNewValues, IEntity accountInstance, IEntity rebateTypeInstance, IEntity userInstance)
        {
            RebateDAO dao = DAOFactory.CreateRebateDAO();

            return(dao.UpdateMulti(entityWithNewValues, base.Transaction, accountInstance, rebateTypeInstance, userInstance));
        }
예제 #17
0
 /// <summary>Retrieves in this EmployeeCollection object all EmployeeEntity objects which are related via a  relation of type 'm:n' with the passed in TerritoryEntity. All current elements in the collection are removed from the collection.</summary>
 /// <param name="territoryInstance">TerritoryEntity 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 GetMultiManyToManyUsingTerritoriesCollectionViaEmployeeTerritories(IEntity territoryInstance, long maxNumberOfItemsToReturn, ISortExpression sortClauses, int pageNumber, int pageSize)
 {
     ClearForGetMultiIfAllowed();
     return(DAOFactory.CreateEmployeeDAO().GetMultiUsingTerritoriesCollectionViaEmployeeTerritories(this.Transaction, this, maxNumberOfItemsToReturn, sortClauses, this.EntityFactoryToUse, territoryInstance, null, pageNumber, pageSize));
 }
예제 #18
0
 public void Create(Refaction refaction)
 {
     DAOFactory.GetRefactionDAO().Create(refaction);
 }
예제 #19
0
 /// <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)
 {
     return(DAOFactory.CreateEmployeeDAO().GetMultiAsDataTable(maxNumberOfItemsToReturn, sortClauses, selectFilter, relations, pageNumber, pageSize));
 }
예제 #20
0
 public List <Refaction> ReadAll()
 {
     return(DAOFactory.GetRefactionDAO().Read_all());
 }
예제 #21
0
 /// <summary> Deletes from the persistent storage all ForumRoleForumActionRight entities which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter.</summary>
 /// <remarks>Runs directly on the persistent storage. It will not delete entity objects from the current collection.</remarks>
 /// <param name="actionRightInstance">ActionRightEntity instance to use as a filter for the ForumRoleForumActionRightEntity objects to return</param>
 /// <param name="forumInstance">ForumEntity instance to use as a filter for the ForumRoleForumActionRightEntity objects to return</param>
 /// <param name="roleInstance">RoleEntity instance to use as a filter for the ForumRoleForumActionRightEntity objects to return</param>
 /// <returns>Amount of entities affected, if the used persistent storage has rowcounting enabled.</returns>
 public int DeleteMultiManyToOne(IEntity actionRightInstance, IEntity forumInstance, IEntity roleInstance)
 {
     return(DAOFactory.CreateForumRoleForumActionRightDAO().DeleteMulti(this.Transaction, actionRightInstance, forumInstance, roleInstance));
 }
예제 #22
0
 public List <Refaction> Read_all_like(string search)
 {
     return(DAOFactory.GetRefactionDAO().Read_all_like(search));
 }
예제 #23
0
        /// <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)
        {
            ForumRoleForumActionRightDAO dao = DAOFactory.CreateForumRoleForumActionRightDAO();

            return(dao.GetMultiAsDataTable(maxNumberOfItemsToReturn, sortClauses, selectFilter, relations, pageNumber, pageSize));
        }
예제 #24
0
 public bool Read_once_exist(string code)
 {
     return(DAOFactory.GetRefactionDAO().Read_once_exist(code));
 }
 /// <summary> Creates the DAO instance for this type</summary>
 /// <returns></returns>
 protected override IDao CreateDAOInstance()
 {
     return(DAOFactory.CreateActivityTypeDAO());
 }
예제 #26
0
 public Refaction Read_once(string code)
 {
     return(DAOFactory.GetRefactionDAO().Read_once(code));
 }
예제 #27
0
 /// <summary> Creates the DAO instance for this type</summary>
 /// <returns></returns>
 protected override IDao CreateDAOInstance()
 {
     return(DAOFactory.CreateContextDAO());
 }
예제 #28
0
 public void Update(Refaction refaction)
 {
     DAOFactory.GetRefactionDAO().Update(refaction);
 }
예제 #29
0
 /// <summary>Updates in the persistent storage all Employee entities which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter.
 /// Which fields are updated in those matching entities depends on which fields are <i>changed</i> in the passed in entity entityWithNewValues. The new values of these fields are read from entityWithNewValues. </summary>
 /// <param name="entityWithNewValues">EmployeeEntity instance which holds the new values for the matching entities to update. Only changed fields are taken into account</param>
 /// <param name="employeeSuperiorInstance">EmployeeEntity instance to use as a filter for the EmployeeEntity objects to return</param>
 /// <returns>Amount of entities affected, if the used persistent storage has rowcounting enabled.</returns>
 public int UpdateMultiManyToOne(EmployeeEntity entityWithNewValues, IEntity employeeSuperiorInstance)
 {
     return(DAOFactory.CreateEmployeeDAO().UpdateMulti(entityWithNewValues, this.Transaction, employeeSuperiorInstance));
 }
예제 #30
0
        /// <summary> Deletes from the persistent storage all Attribute entities which have data in common with the specified related Entities. If one is omitted, that entity is not used as a filter.</summary>
        /// <remarks>Runs directly on the persistent storage. It will not delete entity objects from the current collection.</remarks>
        /// <param name="attributeTypeInstance">AttributeTypeEntity instance to use as a filter for the AttributeEntity objects to return</param>
        /// <param name="contextInstance">ContextEntity instance to use as a filter for the AttributeEntity objects to return</param>
        /// <returns>Amount of entities affected, if the used persistent storage has rowcounting enabled.</returns>
        public int DeleteMultiManyToOne(IEntity attributeTypeInstance, IEntity contextInstance)
        {
            AttributeDAO dao = DAOFactory.CreateAttributeDAO();

            return(dao.DeleteMulti(base.Transaction, attributeTypeInstance, contextInstance));
        }