-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddressBookDao.java
More file actions
23 lines (20 loc) · 863 Bytes
/
AddressBookDao.java
File metadata and controls
23 lines (20 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package AddressBook.dao;
import AddressBook.dto.Address;
import java.util.List;
/**
*
* @author Kelsey
*/
public interface AddressBookDao {
Address addAddress(String addressId, Address address)throws AddressBookDaoFileException;
List<Address> getAllAddress()throws AddressBookDaoFileException;
Address getAddress(String addressId)throws AddressBookDaoFileException;
Address editAddress(String addressId, Address newAddress)throws AddressBookDaoFileException;
Address searchAddressByLastName(String lastName)throws AddressBookDaoFileException;
Address removedAddress(String addressId)throws AddressBookDaoFileException;
}