Advertisement
hsianghui

IS3106 Lab1 CustomerSessionLocal.java

Aug 27th, 2017 (edited)
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.01 KB | None | 0 0
  1. package session;
  2.  
  3. import entity.Contact;
  4. import entity.Customer;
  5. import entity.Field;
  6. import error.NoResultException;
  7. import java.util.List;
  8. import java.util.Set;
  9. import javax.ejb.Local;
  10.  
  11. @Local
  12. public interface CustomerSessionLocal {
  13.  
  14.     public List<Customer> searchCustomers(String name);
  15.  
  16.     public Customer getCustomer(Long cId) throws NoResultException;
  17.  
  18.     public void createCustomer(Customer c);
  19.  
  20.     public void updateCustomer(Customer c) throws NoResultException;
  21.  
  22.     public void addContact(Long cId, Contact c) throws NoResultException;
  23.  
  24.     public void addField(Long cId, Field f) throws NoResultException;
  25.  
  26.     public void deleteContact(Long cId) throws NoResultException;
  27.  
  28.     public void deleteField(Long cId, Long fId) throws NoResultException;
  29.  
  30.     public void deleteCustomer(Long cId) throws NoResultException;
  31.  
  32.     public List<Customer> searchCustomersByContact(Contact c);
  33.  
  34.     public List<Customer> searchCustomersByField(Field f);
  35.  
  36.     public Set<String> getAllFieldNames();
  37. }
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement