public class ContactsEJB extends Object implements ContactsRemote
| Modifier and Type | Field and Description |
|---|---|
private EntityManager |
em |
private static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
ContactsEJB() |
| Modifier and Type | Method and Description |
|---|---|
void |
addContactInfo(int contactId,
ContactInfo contactInfo) |
int |
cleanup() |
Contact |
createContact(Contact contact) |
Contact |
createNormalizedContact(Contact contact)
This method will explicitly attempt to normalize the contact within the
body of the call.
|
void |
destroy() |
List<Contact> |
getContacts(String name,
int offset,
int limit) |
void |
init() |
void |
timeout(Timer timer) |
private static final org.slf4j.Logger logger
private EntityManager em
@PostConstruct public void init()
@PreDestroy public void destroy()
public int cleanup()
cleanup in interface ContactsRemotepublic Contact createContact(Contact contact) throws InvalidParam
createContact in interface ContactsRemoteInvalidParampublic Contact createNormalizedContact(Contact contact) throws InvalidParam
createNormalizedContact in interface ContactsRemoteInvalidParampublic void addContactInfo(int contactId,
ContactInfo contactInfo)
throws ContactNotFound,
InvalidParam
addContactInfo in interface ContactsRemoteContactNotFoundInvalidParampublic List<Contact> getContacts(String name, int offset, int limit)
getContacts in interface ContactsRemotepublic void timeout(Timer timer)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.