gov.nih.nci.caarray.domain.contact
Class AbstractContact

java.lang.Object
  extended by gov.nih.nci.caarray.domain.AbstractCaArrayObject
      extended by gov.nih.nci.caarray.domain.AbstractCaArrayEntity
          extended by gov.nih.nci.caarray.domain.contact.AbstractContact
All Implemented Interfaces:
com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, java.io.Serializable
Direct Known Subclasses:
Organization, Person

public abstract class AbstractContact
extends AbstractCaArrayEntity

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity
CAARRAY_LSID_AUTHORITY, CAARRAY_LSID_NAMESPACE
 
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
DEFAULT_BATCH_SIZE, DEFAULT_STRING_COLUMN_SIZE, LARGE_TEXT_FIELD_LENGTH
 
Constructor Summary
AbstractContact()
           
 
Method Summary
 boolean equals(java.lang.Object object)
          The default comparison uses the id.
 Address getAddress()
          Gets the address.
 java.lang.String getEmail()
          Gets the email.
 java.lang.String getFax()
          Gets the fax.
 java.lang.String getPhone()
          Gets the phone.
 java.lang.String getUrl()
          Gets the url.
 int hashCode()
          Default hashCode goes off of id.
 void setAddress(Address addressVal)
          Sets the address.
 void setEmail(java.lang.String emailVal)
          Sets the email.
 void setFax(java.lang.String faxVal)
          Sets the fax.
 void setPhone(java.lang.String phoneVal)
          Sets the phone.
 void setUrl(java.lang.String urlVal)
          Sets the url.
 java.lang.String toString()
          
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayEntity
getLsid, getLsidAuthority, getLsidNamespace, getLsidObjectId, setLsid, setLsid, setLsidForEntity
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
getCaBigId, getId, getPostLoadSecurityPolicies, getRemoteApiSecurityPolicies, setCaBigId, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractContact

public AbstractContact()
Method Detail

getEmail

@Length(max=254)
@Email
public java.lang.String getEmail()
Gets the email.

Returns:
the email

setEmail

public void setEmail(java.lang.String emailVal)
Sets the email.

Parameters:
emailVal - the email

getFax

@Length(max=254)
public java.lang.String getFax()
Gets the fax.

Returns:
the fax

setFax

public void setFax(java.lang.String faxVal)
Sets the fax.

Parameters:
faxVal - the fax

getPhone

@Length(max=254)
public java.lang.String getPhone()
Gets the phone.

Returns:
the phone

setPhone

public void setPhone(java.lang.String phoneVal)
Sets the phone.

Parameters:
phoneVal - the phone

getUrl

@Length(max=254)
public java.lang.String getUrl()
Gets the url.

Returns:
the url

setUrl

public void setUrl(java.lang.String urlVal)
Sets the url.

Parameters:
urlVal - the url

getAddress

public Address getAddress()
Gets the address.

Returns:
the address

setAddress

public void setAddress(Address addressVal)
Sets the address.

Parameters:
addressVal - the address

equals

public boolean equals(java.lang.Object object)
The default comparison uses the id.

Overrides:
equals in class AbstractCaArrayObject
Parameters:
object - other object
Returns:
equal or not

hashCode

public int hashCode()
Default hashCode goes off of id.

Overrides:
hashCode in class AbstractCaArrayObject
Returns:
hashCode

toString

public java.lang.String toString()

Overrides:
toString in class AbstractCaArrayObject