@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
インタフェース内 CustomerService
public Customer findById(int id) throws DataNotFoundException
findById
インタフェース内 CustomerService
DataNotFoundException
public Customer register(Customer customer)
register
インタフェース内 CustomerService
public void update(Customer customer) throws DataNotFoundException
update
インタフェース内 CustomerService
DataNotFoundException
public void delete(int id) throws DataNotFoundException
delete
インタフェース内 CustomerService
DataNotFoundException
public boolean isFreeEmailCustomer(Customer customer)
isFreeEmailCustomer
インタフェース内 CustomerService
@PostConstruct public void initCustomer()