Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mp.demo.sales.dao.face.admin;
- import mp.demo.sales.domain.admin.Customers;
- import java.util.List;
- import net.sf.minuteProject.architecture.bsla.bean.criteria.PaginationCriteria;
- import net.sf.minuteProject.architecture.bsla.dao.face.DataAccessObject;
- /**
- *
- * <p>Title: CustomersDao</p>
- *
- * <p>Description: Interface of a Data access object dealing with CustomersDao
- * persistence. It offers a set of methods which allow for saving,
- * deleting and searching customers objects</p>
- *
- */
- public interface CustomersDao extends DataAccessObject {
- /**
- * Inserts a Customers entity
- * @param Customers customers
- */
- public void insertCustomers(Customers customers) ;
- /**
- * Inserts a list of Customers entity
- * @param List<Customers> customerss
- */
- public void insertCustomerss(List<Customers> customerss) ;
- /**
- * Updates a Customers entity
- * @param Customers customers
- */
- public Customers updateCustomers(Customers customers) ;
- /**
- * Updates a TbParty entity with only the attributes set into TbParty.
- * The primary keys are to be set for this method to operate.
- * This is a performance friendly feature, which remove the udibiquous full load and full update when an
- * update is to be done
- * Remark: The primary keys cannot be update by this methods, nor are the attributes that must be set to null.
- * @param TbParty tbParty
- */
- public int updateNotNullOnlyCustomers(Customers customers) ;
- public int updateNotNullOnlyPrototypeCustomers(Customers customers, Customers prototypeCriteria);
- /**
- * Saves a Customers entity
- * @param Customers customers
- */
- public void saveCustomers(Customers customers);
- /**
- * Deletes a Customers entity
- * @param Customers customers
- */
- public void deleteCustomers(Customers customers) ;
- /**
- * Loads the Customers entity which is related to an instance of
- * Customers
- * @param Long id
- * @return Customers The Customers entity
- public Customers loadCustomers(Long id);
- */
- /**
- * Loads the Customers entity which is related to an instance of
- * Customers
- * @param java.lang.Integer Id
- * @return Customers The Customers entity
- */
- public Customers loadCustomers(java.lang.Integer id);
- /**
- * Loads a list of Customers entity
- * @param List<java.lang.Integer> ids
- * @return List<Customers> The Customers entity
- */
- public List<Customers> loadCustomersListByCustomers (List<Customers> customerss);
- /**
- * Loads a list of Customers entity
- * @param List<java.lang.Integer> ids
- * @return List<Customers> The Customers entity
- */
- public List<Customers> loadCustomersListById(List<java.lang.Integer> ids);
- /**
- * Loads the Customers entity which is related to an instance of
- * Customers and its dependent one to many objects
- * @param Long id
- * @return Customers The Customers entity
- */
- public Customers loadFullFirstLevelCustomers(java.lang.Integer id);
- /**
- * Loads the Customers entity which is related to an instance of
- * Customers
- * @param Customers customers
- * @return Customers The Customers entity
- */
- public Customers loadFullFirstLevelCustomers(Customers customers);
- /**
- * Loads the Customers entity which is related to an instance of
- * Customers and its dependent objects one to many
- * @param Long id
- * @return Customers The Customers entity
- */
- public Customers loadFullCustomers(Long id) ;
- /**
- * Searches a list of Customers entity based on a Customers containing Customers matching criteria
- * @param Customers customers
- * @return List<Customers>
- */
- public List<Customers> searchPrototypeCustomers(Customers customers) ;
- /**
- * Searches a list of Customers entity based on a list of Customers containing Customers matching criteria
- * @param List<Customers> customerss
- * @return List<Customers>
- */
- public List<Customers> searchPrototypeCustomers(List<Customers> customerss) ;
- /**
- * Searches a list of Customers entity
- * @param Customers customers
- * @return List
- */
- public List<Customers> searchPrototypeCustomers(Customers customersPositive, Customers customersNegative) ;
- /**
- * Load a paginated list of Customers entity dependent of pagination criteria
- * @param PaginationCriteria paginationCriteria
- * @return List
- */
- public List loadPaginatedCustomers (Customers customers, PaginationCriteria paginationCriteria) ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement