public class ContactDaoBean extends Object implements ContactDaoLocal
| Constructor and Description |
|---|
ContactDaoBean() |
| 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
|
public List<Contact> getContacts()
getContacts in interface ContactDaoLocalpublic Contact getContact(Long id)
getContact in interface ContactDaoLocalid - The Id for the Contactpublic void addContact(String name, String email)
addContact in interface ContactDaoLocalname - The name of the new Contactemail - The e-mail address of the new Contactpublic void remove(Contact modelObject)
remove in interface ContactDaoLocalmodelObject - The specific Contact object, which we wants to removeCopyright © 2015. All rights reserved.