crmservice.java
来自「基于Struts的客户资料管理系统」· Java 代码 · 共 65 行
JAVA
65 行
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 + =
减小字号Ctrl + -
显示快捷键?