|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The (remote) Remote interface of the ContactBook EJB. Specifies the functionality of ContactBook instances, avaliable to remote clients.
Copyright: (c) 2002 The Open Math Company Limited
The Terms of Distribution of this software are stipulated in the javadoc Overview for this project.
ContactBean| Method Summary | |
Contact |
createContact(ContactVO data)
Requests that a new Contact EJB is created in this contact book. |
Collection |
getAllContacts()
Finds all the Contact EJBs in this contact book. |
Contact |
getContact(ContactPK key)
Finds the specified Contact EJB in this contact book. |
Collection |
getContactsForNames(String givenName,
String familyName)
Finds all Contact EJBs in this contact book whose 'given name' field exactly matches the parameter givenName or 'family name' field exactly matches
the parameter familyName. |
void |
removeContact(ContactPK key)
Requests that the specified Contact EJB in this contact book is removed. |
Contact |
updateContact(ContactPK key,
ContactVO data)
Requests that the state of the specified Contact EJB is set using the given value object. |
| Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
| Method Detail |
public Contact createContact(ContactVO data)
throws RemoteException,
CreateException
Requests that a new Contact EJB is created in this contact book. The new contact will have state determined by the given value object. The key for the new contact will be set automatically. The method returns the (remote interface of) the new EJB.
data - a ContactVO carrying the state for the
new Contact EJB.Contact remote interface to the new Contact EJB.RemoteException - if problems were encountered in communicating
with the application server.CreateException - if the request not be completed, for whatever
reason.ContactBookBean.createContact(ContactVO)
public Contact updateContact(ContactPK key,
ContactVO data)
throws RemoteException,
FinderException
Requests that the state of the specified Contact EJB is set using the given value object.
key - a ContactPK specifying the Contact EJB.data - a ContactVO carrying the new state for the
specified Contact EJB.RemoteException - if problems were encountered in communicating
with the application server.FinderException - if the request not be completed, for whatever
reason (for example, because no Contact EJB exists for the given key within
this contact book).ContactBookBean.updateContact(ContactPK, ContactVO)
public void removeContact(ContactPK key)
throws RemoteException,
RemoveException
Requests that the specified Contact EJB in this contact book is removed.
key - a ContactPK specifying the Contact EJB.RemoteException - if problems were encountered in communicating
with the application server.RemoveException - if the request not be completed, for whatever
reason (for example, because no Contact EJB exists for the given key within
this contact book).ContactBookBean.removeContact(ContactPK)
public Contact getContact(ContactPK key)
throws RemoteException,
FinderException
Finds the specified Contact EJB in this contact book. The method returns the remote interface for the found Contact EJB.
key - a ContactPK specifying the Contact EJB.RemoteException - if problems were encountered in communicating
with the application server.FinderException - if the request not be completed, for whatever
reason (for example, because no Contact EJB exists for the given key within
this contact book).ContactBookBean.getContact(ContactPK)
public Collection getContactsForNames(String givenName,
String familyName)
throws RemoteException,
FinderException
Finds all Contact EJBs in this contact book whose 'given name' field exactly
matches the parameter givenName or 'family name' field exactly matches
the parameter familyName. Parameters may be empty Strings, but may
not be null. Regular expressions are not recognised. Matching
is case-sensitive.
givenName - a String specifying the 'given name' field.familyName - a String specifying the 'family name' field.RemoteException - if problems were encountered in communicating
with the application server.FinderException - if the request not be completed, for whatever
reason (for example, because no matching Contact EJBs exist within
this contact book).ContactBookBean.getContactsForNames(String, String)
public Collection getAllContacts()
throws RemoteException,
FinderException
Finds all the Contact EJBs in this contact book.
RemoteException - if problems were encountered in communicating
with the application server.FinderException - if the request not be completed, for whatever
reason (for example, because no Contact EJBs exist within this contact book).ContactBookBean.getAllContacts()
|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||