|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.opmath.test.j2ee.contact.ContactVO
The value object for the Contact EJB. The value object is used to transfer the state of the Contact EJB across the wire in a single logical operation. This class implements the Value Object Pattern. Note that an inconsistency over the use of getter and setter methods prevents this value object class being used as the superclass for the EJB Bean class
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, Serialized Form| Constructor Summary | |
ContactVO()
Constructs a new ContactVO. |
|
ContactVO(ContactVO cVO)
Constructs a new ContactVO. |
|
ContactVO(String givenName,
String familyName,
String email,
String phone)
Constructs a new ContactVO. |
|
| Method Summary | |
boolean |
equals(Object o)
Returns true iff the given Object is the same class as this
instance, and has the same index. |
ContactVO |
getData()
Returns a copy of this ContactPK. |
String |
getEmail()
Returns the 'email' field for this ContactVO instance. |
String |
getFamilyName()
Returns the 'family name' field for this ContactVO instance. |
String |
getGivenName()
Returns the 'given name' field for this ContactVO instance. |
String |
getPhone()
Returns the 'phone' field for this ContactVO instance. |
int |
hashCode()
Returns the hash code for this ContactPK. |
void |
setData(ContactVO cVO)
Sets the state of this ContactVO instance to the values found in the given ContactVO instance. |
void |
setEmail(String email)
Sets the 'email' field for this ContactVO instance to the given value. |
void |
setFamilyName(String familyName)
Sets the 'family name' field for this ContactVO instance to the given value. |
void |
setGivenName(String givenName)
Sets the 'given name' field for this ContactVO instance to the given value. |
void |
setPhone(String phone)
Sets the 'phone' field for this ContactVO instance to the given value. |
String |
toString()
Returns a descriptive string for this ContactVO instance. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public ContactVO()
Constructs a new ContactVO. The new ContactVO instance has instance variables
set to null.
public ContactVO(String givenName,
String familyName,
String email,
String phone)
Constructs a new ContactVO. The new ContactVO instance has instance variables set according to the given parameters.
givenName - a String specifying the givenName
field of the new instance.familyName - a String specifying the familyName
field of the new instance.email - a String specifying the email field of
the new instance.phone - a String specifying the phone field of
the new instance.public ContactVO(ContactVO cVO)
Constructs a new ContactVO. The new ContactVO instance is a copy of the the given parameter.
cVO - a ContactVO specifying the state of
the new instance.| Method Detail |
public ContactVO getData()
Returns a copy of this ContactPK.
ContactVO copy of this ContactPK.public void setData(ContactVO cVO)
Sets the state of this ContactVO instance to the values found in the given ContactVO instance.
cVO - a ContactVO specifying the new state of
this instance.public String getGivenName()
Returns the 'given name' field for this ContactVO instance.
String carrying the 'given name' field.public void setGivenName(String givenName)
Sets the 'given name' field for this ContactVO instance to the given value.
givenName - a String carrying the
new 'given name' value.public String getFamilyName()
Returns the 'family name' field for this ContactVO instance.
String carrying the 'given family' field.public void setFamilyName(String familyName)
Sets the 'family name' field for this ContactVO instance to the given value.
familyName - a String carrying the
new 'family name' value.public String getEmail()
Returns the 'email' field for this ContactVO instance.
String carrying the 'email' field.public void setEmail(String email)
Sets the 'email' field for this ContactVO instance to the given value.
email - a String carrying the
new 'email' value.public String getPhone()
Returns the 'phone' field for this ContactVO instance.
String carrying the 'phone' field.public void setPhone(String phone)
Sets the 'phone' field for this ContactVO instance to the given value.
phone - a String carrying the
new 'phone' value.public boolean equals(Object o)
Returns true iff the given Object is the same class as this
instance, and has the same index.
equals in class Objectboolean indicating equivalance.public int hashCode()
Returns the hash code for this ContactPK. The value returned is the hash code of a concatenation of all of the fields of this ContactPK.
hashCode in class Objectint hash code.public String toString()
Returns a descriptive string for this ContactVO instance.
toString in class ObjectString.
|
OpMath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||