public interface ContactDao
Modifier and Type | Method and Description |
---|---|
void |
addContact(String name,
String email)
Persist a new Contact in the DB.
|
Contact |
getContact(Long id)
Returns a specific Contact from DB.
|
List<Contact> |
getContacts()
Returns the currently available contacts.
|
void |
remove(Contact modelObject)
Removes a specific item from the DB.
|
List<Contact> getContacts()
Contact getContact(Long id)
id
- The Id for the Contactvoid addContact(String name, String email)
name
- The name of the new Contactemail
- The e-mail address of the new Contactvoid remove(Contact modelObject)
modelObject
- The specific Contact object, which we wants to removeCopyright © 2006–2021 Apache Software Foundation. All rights reserved.