Advertisement
Guest User

Cristian

a guest
Sep 4th, 2010
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.75 KB | None | 0 0
  1. package mp.demo.sales.dao.face.admin;
  2.  
  3. import mp.demo.sales.domain.admin.Customers;
  4. import java.util.List;
  5. import net.sf.minuteProject.architecture.bsla.bean.criteria.PaginationCriteria;
  6. import net.sf.minuteProject.architecture.bsla.dao.face.DataAccessObject;
  7.  
  8.  
  9. /**
  10.  *
  11.  * <p>Title: CustomersDao</p>
  12.  *
  13.  * <p>Description: Interface of a Data access object dealing with CustomersDao
  14.  * persistence. It offers a set of methods which allow for saving,
  15.  * deleting and searching customers objects</p>
  16.  *
  17.  */
  18. public interface CustomersDao extends DataAccessObject {
  19.  
  20.     /**
  21.      * Inserts a Customers entity
  22.      * @param Customers customers
  23.      */
  24.     public void insertCustomers(Customers customers) ;
  25.  
  26.     /**
  27.      * Inserts a list of Customers entity
  28.      * @param List<Customers> customerss
  29.      */
  30.     public void insertCustomerss(List<Customers> customerss) ;
  31.        
  32.     /**
  33.      * Updates a Customers entity
  34.      * @param Customers customers
  35.      */
  36.     public Customers updateCustomers(Customers customers) ;
  37.  
  38.      /**
  39.    * Updates a TbParty entity with only the attributes set into TbParty.
  40.      * The primary keys are to be set for this method to operate.
  41.      * This is a performance friendly feature, which remove the udibiquous full load and full update when an
  42.      * update is to be done
  43.    * Remark: The primary keys cannot be update by this methods, nor are the attributes that must be set to null.
  44.    * @param TbParty tbParty
  45.    */
  46.     public int updateNotNullOnlyCustomers(Customers customers) ;
  47.      
  48.     public int updateNotNullOnlyPrototypeCustomers(Customers customers, Customers prototypeCriteria);
  49.    
  50.      /**
  51.      * Saves a Customers entity
  52.      * @param Customers customers
  53.      */
  54.     public void saveCustomers(Customers customers);
  55.    
  56.     /**
  57.      * Deletes a Customers entity
  58.      * @param Customers customers
  59.      */
  60.     public void deleteCustomers(Customers customers) ;
  61.  
  62.     /**
  63.      * Loads the Customers entity which is related to an instance of
  64.      * Customers
  65.      * @param Long id
  66.      * @return Customers The Customers entity
  67.      
  68.     public Customers loadCustomers(Long id);
  69. */
  70.     /**
  71.      * Loads the Customers entity which is related to an instance of
  72.      * Customers
  73.      * @param java.lang.Integer Id
  74.      * @return Customers The Customers entity
  75.      */
  76.     public Customers loadCustomers(java.lang.Integer id);    
  77.  
  78.     /**
  79.      * Loads a list of Customers entity
  80.      * @param List<java.lang.Integer> ids
  81.      * @return List<Customers> The Customers entity
  82.      */
  83.     public List<Customers> loadCustomersListByCustomers (List<Customers> customerss);
  84.    
  85.     /**
  86.      * Loads a list of Customers entity
  87.      * @param List<java.lang.Integer> ids
  88.      * @return List<Customers> The Customers entity
  89.      */
  90.     public List<Customers> loadCustomersListById(List<java.lang.Integer> ids);
  91.    
  92.     /**
  93.      * Loads the Customers entity which is related to an instance of
  94.      * Customers and its dependent one to many objects
  95.      * @param Long id
  96.      * @return Customers The Customers entity
  97.      */
  98.     public Customers loadFullFirstLevelCustomers(java.lang.Integer id);
  99.    
  100.     /**
  101.      * Loads the Customers entity which is related to an instance of
  102.      * Customers
  103.      * @param Customers customers
  104.      * @return Customers The Customers entity
  105.      */
  106.     public Customers loadFullFirstLevelCustomers(Customers customers);    
  107.    
  108.    
  109.     /**
  110.      * Loads the Customers entity which is related to an instance of
  111.      * Customers and its dependent objects one to many
  112.      * @param Long id
  113.      * @return Customers The Customers entity
  114.      */
  115.     public Customers loadFullCustomers(Long id) ;
  116.  
  117.     /**
  118.      * Searches a list of Customers entity based on a Customers containing Customers matching criteria
  119.      * @param Customers customers
  120.      * @return List<Customers>
  121.      */
  122.     public List<Customers> searchPrototypeCustomers(Customers customers) ;
  123.    
  124.     /**
  125.      * Searches a list of Customers entity based on a list of Customers containing Customers matching criteria
  126.      * @param List<Customers> customerss
  127.      * @return List<Customers>
  128.      */
  129.     public List<Customers> searchPrototypeCustomers(List<Customers> customerss) ;    
  130.        
  131.     /**
  132.      * Searches a list of Customers entity
  133.      * @param Customers customers
  134.      * @return List
  135.      */
  136.     public List<Customers> searchPrototypeCustomers(Customers customersPositive, Customers customersNegative) ;
  137.        
  138.     /**
  139.      * Load a paginated list of Customers entity dependent of pagination criteria
  140.      * @param PaginationCriteria paginationCriteria
  141.      * @return List
  142.      */
  143.     public List loadPaginatedCustomers (Customers customers, PaginationCriteria paginationCriteria) ;
  144.            
  145. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement