com.opnworks.cbo
Class Contact

java.lang.Object
  extended bycom.opnworks.cbo.Contact
All Implemented Interfaces:
IContactMechanism, IPersistent, java.io.Serializable
Direct Known Subclasses:
Email, Phone

public abstract class Contact
extends java.lang.Object
implements IContactMechanism, IPersistent

Author:
Laurent
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.opnworks.cbo.IContactMechanism
EMAIL, EMAIL_1, EMAIL_2, EMAIL_3, IM, PHONE, PHONE_FAX, PHONE_HOME, PHONE_MOBILE, PHONE_OFFICE, PHONE_PAGER
 
Constructor Summary
Contact()
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Description of the Method
 java.lang.Long getId()
          Gets the Id attribute of the Contact object
 IParty getOwner()
           
 int getType()
           
 java.lang.String getValue()
           
 int getVersion()
           
 int hashCode()
          Description of the Method
 void setId(java.lang.Long id)
          Sets the Id attribute of the IPersistent object
 void setOwner(IParty party)
           
 void setType(int i)
           
 void setValue(java.lang.String value)
           
 void setVersion(int i)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Contact

public Contact()
Method Detail

setId

public void setId(java.lang.Long id)
Description copied from interface: IPersistent
Sets the Id attribute of the IPersistent object

Specified by:
setId in interface IPersistent
Parameters:
id -

setValue

public void setValue(java.lang.String value)
Parameters:
value - The new Value value

setType

public void setType(int i)
Parameters:
i -

setOwner

public void setOwner(IParty party)
Parameters:
party -

setVersion

public void setVersion(int i)
Specified by:
setVersion in interface IPersistent
Parameters:
i -

getId

public java.lang.Long getId()
Gets the Id attribute of the Contact object

Specified by:
getId in interface IPersistent
Returns:
The Id value

getValue

public java.lang.String getValue()
Returns:

getType

public int getType()
Returns:

getOwner

public IParty getOwner()
Returns:

getVersion

public int getVersion()
Specified by:
getVersion in interface IPersistent
Returns:

equals

public boolean equals(java.lang.Object other)
Description of the Method

Parameters:
other - Description of Parameter
Returns:
Description of the Returned Value

hashCode

public int hashCode()
Description of the Method

Returns:
Description of the Returned Value