@Service(value="customerService") public class MockCustomerService extends Object implements CustomerService
| 修飾子とタイプ | フィールドと説明 |
|---|---|
private Map<Integer,Customer> |
customerMap |
private int |
nextId |
| コンストラクタと説明 |
|---|
MockCustomerService() |
private boolean isExists(int id)
public List<Customer> findAll()
findAll インタフェース内 CustomerServicepublic Customer findById(int id) throws DataNotFoundException
findById インタフェース内 CustomerServiceDataNotFoundExceptionpublic Customer register(Customer customer)
register インタフェース内 CustomerServicepublic void update(Customer customer) throws DataNotFoundException
update インタフェース内 CustomerServiceDataNotFoundExceptionpublic void delete(int id)
throws DataNotFoundException
delete インタフェース内 CustomerServiceDataNotFoundExceptionpublic boolean isFreeEmailCustomer(Customer customer)
isFreeEmailCustomer インタフェース内 CustomerService@PostConstruct public void initCustomer()