📄 crmservice.java
字号:
package net.robin.crm.service;
import java.util.List;
import org.dom4j.Document;
public interface CRMService {
public Company insertCompany(Company company) throws ServiceException;
public Company updateCompany(Company company) throws ServiceException;
public Company removeCompany(Company company) throws ServiceException;
public Company findCompanyById(String id) throws ServiceException;
public int getCompanyCount() throws ServiceException;
public Company findCompany(int index) throws ServiceException;
public int indexOf(Company company) throws ServiceException;
public List findCompanies() throws ServiceException;
public List findCompanies(Category category) throws ServiceException;
public Category insertCategory(Category category) throws ServiceException;
public Category updateCategory( Category category) throws ServiceException;
public Category removeCategory( Category category) throws ServiceException;
public Category findCategoryById(String id) throws ServiceException;
public List findCategories() throws ServiceException;
public Client insertClient( Client client) throws ServiceException;
public Client updateClient(Client client) throws ServiceException;
public Client removeClient( Client client) throws ServiceException;
public Client findClientById( String id) throws ServiceException;
public List findClientByFamilyName(String familyName) throws ServiceException;
public int getClientCount() throws ServiceException;
public Client findClient(int index) throws ServiceException;
public int getClientCount(Category category, Company company) throws ServiceException;
public Client findClient(Category category, Company company, int index) throws ServiceException;
//观察者模式!
public void addCRMServiceObserver(CRMServiceObserver observer);
public void removeCRMServiceObserver(CRMServiceObserver observer);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -