Jwma

dtw.webmail.plugin.std
Class CastorContact

java.lang.Object
  |
  +--dtw.webmail.util.AbstractIdentifiable
        |
        +--dtw.webmail.util.AssociatedAbstractIdentifiable
              |
              +--dtw.webmail.plugin.std.CastorContact
All Implemented Interfaces:
Identifiable, JwmaContact, JwmaContactImpl, org.exolab.castor.jdo.TimeStampable

public class CastorContact
extends AssociatedAbstractIdentifiable
implements JwmaContactImpl, org.exolab.castor.jdo.TimeStampable

Class implementing a specialized JwmaContactImpl for being persisted with the Castor Plugins.

Version:
0.9.7 07/02/2003
Author:
Dieter Wimberger

Field Summary
 
Fields inherited from interface org.exolab.castor.jdo.TimeStampable
NO_TIMESTAMP
 
Constructor Summary
CastorContact()
           
 
Method Summary
 java.lang.String getAlternateEmail()
          Returns a String representing the altnerate email of this contact object.
 java.util.Date getBirthDate()
          Returns the birthdate of this contact as Date.
 java.lang.String getCategory()
          Returns a String representing the category of this JwmaContact.
 java.lang.String getComments()
          Returns a String representing the comments of this contact object.
 java.lang.String getCompany()
          Returns a String representing the company name of this contact object.
 java.lang.String getCompanyURL()
          Returns a String representing the company URL associated with this contact object.
 java.lang.String getEmail()
          Returns a String representing the email of this contact object.
 java.lang.String getFaxNumber()
          Returns a String representing the fax number of this contact.
 java.lang.String getFirstname()
          Returns a String representing the firstname of this contact object.
 java.lang.String getHomeCity()
          Returns a String representing the city of this contact at home.
 java.lang.String getHomeCountry()
          Returns a String representing the country of this contact at home.
 java.lang.String getHomePhoneNumber()
          Returns a String representing the home phone number of this contact.
 java.lang.String getHomeRegion()
          Returns a String representing the region of this contact at home.
 java.lang.String getHomeStreet()
          Returns a String representing the street name of this contact at home.
 java.lang.String getHomeZIP()
          Returns a String representing the ZIP of this contact at home.
 java.lang.String getLastname()
          Returns a String representing the lastname of this contact object.
 java.lang.String getMiddlename()
          Returns a String representing the middlename of this contact object.
 java.lang.String getMobileNumber()
          Returns a String representing the mobile phone number of this contact.
 java.lang.String getNickname()
          Returns a String representing the nickname of this contact object.
 java.lang.String getPagerNumber()
          Returns a String representing the pager number of this contact.
 java.lang.String getRole()
          Returns a String representing the role of this contact object.
 java.lang.String getTitle()
          Returns a String representing the title of this contact object.
 java.lang.String getURL()
          Returns a String representing an URL associated with this contact object.
 java.lang.String getWorkCity()
          Returns a String representing the city of this contact at work.
 java.lang.String getWorkCountry()
          Returns a String representing the country of this contact at work.
 java.lang.String getWorkPhoneNumber()
          Returns a String representing the work phone number of this contact.
 java.lang.String getWorkRegion()
          Returns a String representing the region of this contact at work.
 java.lang.String getWorkStreet()
          Returns a String representing the street name of this contact at work.
 java.lang.String getWorkZIP()
          Returns a String representing the ZIP of this contact at work.
 boolean isFrequentRecipient()
          Tests if this contact represents a frequent recipient.
 boolean isPrimarilyWorkContact()
          Tests if this JwmaContact is primary a work contact.
 long jdoGetTimeStamp()
           
 void jdoSetTimeStamp(long timeStamp)
           
 void setAlternateEmail(java.lang.String email)
          Sets the alternate email of this JwmaContactImpl.
 void setBirthDate(java.util.Date date)
          Sets the birthdate of this JwmaContactImpl.
 void setCategory(java.lang.String category)
          Set the the category of this JwmaContactImpl.
 void setComments(java.lang.String comments)
          Sets the comments for this JwmaContactImpl.
 void setCompany(java.lang.String name)
          Sets the company name of this JwmaContactImpl.
 void setCompanyURL(java.lang.String url)
          Sets the company URL associated with this JwmaContactImpl.
 void setEmail(java.lang.String email)
          Sets the email of this JwmaContactImpl.
 void setFaxNumber(java.lang.String number)
          Sets the fax number of this JwmaContactImpl.
 void setFirstname(java.lang.String name)
          Sets the firstname of this JwmaContactImpl.
 void setFrequentRecipient(boolean b)
          Sets if this JwmaContactImpl represents a frequent mail recipient.
 void setHomeCity(java.lang.String city)
          Sets the city of this JwmaContactImpl at home.
 void setHomeCountry(java.lang.String country)
          Sets the country of this JwmaContactImpl at home.
 void setHomePhoneNumber(java.lang.String number)
          Sets the home phone number of this JwmaContactImpl.
 void setHomeRegion(java.lang.String region)
          Sets the region of this JwmaContactImpl at home.
 void setHomeStreet(java.lang.String street)
          Sets the street name of this JwmaContactImpl at home.
 void setHomeZIP(java.lang.String zip)
          Sets the ZIP of this JwmaContactImpl at home.
 void setLastname(java.lang.String name)
          Sets the lastname of this JwmaContactImpl.
 void setMiddlename(java.lang.String name)
          Sets the middlename of this JwmaContactImpl.
 void setMobileNumber(java.lang.String number)
          Sets the mobile phone number of this JwmaContactImpl.
 void setNickname(java.lang.String nickname)
          Sets the nickname of this JwmaContactImpl.
 void setPagerNumber(java.lang.String number)
          Sets the pager number of this JwmaContactImpl.
 void setPrimarilyWorkContact(boolean b)
          Sets if this JwmaContactImpl is primarily a work contact.
 void setRole(java.lang.String role)
          Sets the organizational role of this JwmaContactImpl.
 void setTitle(java.lang.String title)
          Sets the title of this JwmaContactImpl.
 void setURL(java.lang.String url)
          Sets the URL associated with this JwmaContactImpl.
 void setWorkCity(java.lang.String city)
          Sets the city of this JwmaContactImpl at work.
 void setWorkCountry(java.lang.String country)
          Sets the country of this JwmaContactImpl at work.
 void setWorkPhoneNumber(java.lang.String number)
          Sets the work phone number of this JwmaContactImpl.
 void setWorkRegion(java.lang.String region)
          Sets the region of this JwmaContactImpl at work.
 void setWorkStreet(java.lang.String street)
          Sets the street name of this JwmaContactImpl at work.
 void setWorkZIP(java.lang.String zip)
          Sets the ZIP of this JwmaContactImpl at work.
 
Methods inherited from class dtw.webmail.util.AssociatedAbstractIdentifiable
getAssociatorUID, isAssociated, resetAssociatorUID, setAssociatorUID
 
Methods inherited from class dtw.webmail.util.AbstractIdentifiable
equals, getUID, setUID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface dtw.webmail.model.JwmaContact
getUID
 

Constructor Detail

CastorContact

public CastorContact()
Method Detail

getCategory

public java.lang.String getCategory()
Description copied from interface: JwmaContact
Returns a String representing the category of this JwmaContact.

Specified by:
getCategory in interface JwmaContact
Returns:
the category as String.

setCategory

public void setCategory(java.lang.String category)
Description copied from interface: JwmaContactImpl
Set the the category of this JwmaContactImpl.

Specified by:
setCategory in interface JwmaContactImpl
Parameters:
category - of this contact as String.

getNickname

public java.lang.String getNickname()
Description copied from interface: JwmaContact
Returns a String representing the nickname of this contact object.

Note that the nickname is used as unique identifier of a contact object within the contacts database.

Specified by:
getNickname in interface JwmaContact
Returns:
the nickname of this contact as String.
See Also:
JwmaContacts

setNickname

public void setNickname(java.lang.String nickname)
Description copied from interface: JwmaContactImpl
Sets the nickname of this JwmaContactImpl.

Specified by:
setNickname in interface JwmaContactImpl
Parameters:
nickname - of this contact as String.

getFirstname

public java.lang.String getFirstname()
Description copied from interface: JwmaContact
Returns a String representing the firstname of this contact object.

Specified by:
getFirstname in interface JwmaContact
Returns:
the firstname of this contact as String.

setFirstname

public void setFirstname(java.lang.String name)
Description copied from interface: JwmaContactImpl
Sets the firstname of this JwmaContactImpl.

Specified by:
setFirstname in interface JwmaContactImpl
Parameters:
name - of this contact as String.

getLastname

public java.lang.String getLastname()
Description copied from interface: JwmaContact
Returns a String representing the lastname of this contact object.

Specified by:
getLastname in interface JwmaContact
Returns:
the lastname of this contact as String.

setLastname

public void setLastname(java.lang.String name)
Description copied from interface: JwmaContactImpl
Sets the lastname of this JwmaContactImpl.

Specified by:
setLastname in interface JwmaContactImpl
Parameters:
name - of this contact as String.

getMiddlename

public java.lang.String getMiddlename()
Description copied from interface: JwmaContact
Returns a String representing the middlename of this contact object.

Specified by:
getMiddlename in interface JwmaContact
Returns:
the middlename of this contact as String.

setMiddlename

public void setMiddlename(java.lang.String name)
Description copied from interface: JwmaContactImpl
Sets the middlename of this JwmaContactImpl.

Specified by:
setMiddlename in interface JwmaContactImpl
Parameters:
name - of this contact as String.

getCompany

public java.lang.String getCompany()
Description copied from interface: JwmaContact
Returns a String representing the company name of this contact object.

Specified by:
getCompany in interface JwmaContact
Returns:
the company name of this contact as String.

setCompany

public void setCompany(java.lang.String name)
Description copied from interface: JwmaContactImpl
Sets the company name of this JwmaContactImpl.

Specified by:
setCompany in interface JwmaContactImpl
Parameters:
name - of this contact as String.

getTitle

public java.lang.String getTitle()
Description copied from interface: JwmaContact
Returns a String representing the title of this contact object.

Specified by:
getTitle in interface JwmaContact
Returns:
the title of this contact as String.

setTitle

public void setTitle(java.lang.String title)
Description copied from interface: JwmaContactImpl
Sets the title of this JwmaContactImpl.

Specified by:
setTitle in interface JwmaContactImpl
Parameters:
title - of this contact as String.

getRole

public java.lang.String getRole()
Description copied from interface: JwmaContact
Returns a String representing the role of this contact object.

Specified by:
getRole in interface JwmaContact
Returns:
the role of this contact as String.

setRole

public void setRole(java.lang.String role)
Description copied from interface: JwmaContactImpl
Sets the organizational role of this JwmaContactImpl.

Specified by:
setRole in interface JwmaContactImpl
Returns:
role the organizational role of this contact as String.

getHomePhoneNumber

public java.lang.String getHomePhoneNumber()
Description copied from interface: JwmaContact
Returns a String representing the home phone number of this contact.

Specified by:
getHomePhoneNumber in interface JwmaContact
Returns:
the home phone number of this contact as String.

setHomePhoneNumber

public void setHomePhoneNumber(java.lang.String number)
Description copied from interface: JwmaContactImpl
Sets the home phone number of this JwmaContactImpl.

Specified by:
setHomePhoneNumber in interface JwmaContactImpl
Parameters:
number - the home phone number of this contact as String.

getWorkPhoneNumber

public java.lang.String getWorkPhoneNumber()
Description copied from interface: JwmaContact
Returns a String representing the work phone number of this contact.

Specified by:
getWorkPhoneNumber in interface JwmaContact
Returns:
the work phone number of this contact as String.

setWorkPhoneNumber

public void setWorkPhoneNumber(java.lang.String number)
Description copied from interface: JwmaContactImpl
Sets the work phone number of this JwmaContactImpl.

Specified by:
setWorkPhoneNumber in interface JwmaContactImpl
Parameters:
number - the work phone number of this contact as String.

getPagerNumber

public java.lang.String getPagerNumber()
Description copied from interface: JwmaContact
Returns a String representing the pager number of this contact.

Specified by:
getPagerNumber in interface JwmaContact
Returns:
the pager number of this contact as String.

setPagerNumber

public void setPagerNumber(java.lang.String number)
Description copied from interface: JwmaContactImpl
Sets the pager number of this JwmaContactImpl.

Specified by:
setPagerNumber in interface JwmaContactImpl
Parameters:
number - the pager number of this contact as String.

getFaxNumber

public java.lang.String getFaxNumber()
Description copied from interface: JwmaContact
Returns a String representing the fax number of this contact.

Specified by:
getFaxNumber in interface JwmaContact
Returns:
the fax number of this contact as String.

setFaxNumber

public void setFaxNumber(java.lang.String number)
Description copied from interface: JwmaContactImpl
Sets the fax number of this JwmaContactImpl.

Specified by:
setFaxNumber in interface JwmaContactImpl
Parameters:
number - the fax number of this contact as String.

getMobileNumber

public java.lang.String getMobileNumber()
Description copied from interface: JwmaContact
Returns a String representing the mobile phone number of this contact.

Specified by:
getMobileNumber in interface JwmaContact
Returns:
the mobile phone number of this contact as String.

setMobileNumber

public void setMobileNumber(java.lang.String number)
Description copied from interface: JwmaContactImpl
Sets the mobile phone number of this JwmaContactImpl.

Specified by:
setMobileNumber in interface JwmaContactImpl
Parameters:
number - the mobile phone number of this contact as String.

isPrimarilyWorkContact

public boolean isPrimarilyWorkContact()
Description copied from interface: JwmaContact
Tests if this JwmaContact is primary a work contact.

Specified by:
isPrimarilyWorkContact in interface JwmaContact
Returns:
true if primarily work contact, false otherwise.

setPrimarilyWorkContact

public void setPrimarilyWorkContact(boolean b)
Description copied from interface: JwmaContactImpl
Sets if this JwmaContactImpl is primarily a work contact.

Specified by:
setPrimarilyWorkContact in interface JwmaContactImpl
Parameters:
b - true if primarily work contact, false otherwise.

getWorkStreet

public java.lang.String getWorkStreet()
Description copied from interface: JwmaContact
Returns a String representing the street name of this contact at work.

Specified by:
getWorkStreet in interface JwmaContact
Returns:
the street of this contact at work as String.

setWorkStreet

public void setWorkStreet(java.lang.String street)
Description copied from interface: JwmaContactImpl
Sets the street name of this JwmaContactImpl at work.

Specified by:
setWorkStreet in interface JwmaContactImpl
Parameters:
street - the street of this contact at work as String.

getWorkCity

public java.lang.String getWorkCity()
Description copied from interface: JwmaContact
Returns a String representing the city of this contact at work.

Specified by:
getWorkCity in interface JwmaContact
Returns:
the city of this contact at work as String.

setWorkCity

public void setWorkCity(java.lang.String city)
Description copied from interface: JwmaContactImpl
Sets the city of this JwmaContactImpl at work.

Specified by:
setWorkCity in interface JwmaContactImpl
Parameters:
city - the city of this contact at work as String.

getWorkRegion

public java.lang.String getWorkRegion()
Description copied from interface: JwmaContact
Returns a String representing the region of this contact at work.

Specified by:
getWorkRegion in interface JwmaContact
Returns:
the region of this contact at work as String.

setWorkRegion

public void setWorkRegion(java.lang.String region)
Description copied from interface: JwmaContactImpl
Sets the region of this JwmaContactImpl at work.

Specified by:
setWorkRegion in interface JwmaContactImpl
Parameters:
region - the region of this contact at work as String.

getWorkCountry

public java.lang.String getWorkCountry()
Description copied from interface: JwmaContact
Returns a String representing the country of this contact at work.

Specified by:
getWorkCountry in interface JwmaContact
Returns:
the country of this contact at work as String.

setWorkCountry

public void setWorkCountry(java.lang.String country)
Description copied from interface: JwmaContactImpl
Sets the country of this JwmaContactImpl at work.

Specified by:
setWorkCountry in interface JwmaContactImpl
Parameters:
country - the country of this contact at work as String.

getWorkZIP

public java.lang.String getWorkZIP()
Description copied from interface: JwmaContact
Returns a String representing the ZIP of this contact at work.

Specified by:
getWorkZIP in interface JwmaContact
Returns:
the ZIP of this contact at work as String.

setWorkZIP

public void setWorkZIP(java.lang.String zip)
Description copied from interface: JwmaContactImpl
Sets the ZIP of this JwmaContactImpl at work.

Specified by:
setWorkZIP in interface JwmaContactImpl
Parameters:
zip - the ZIP of this contact at work as String.

getHomeStreet

public java.lang.String getHomeStreet()
Description copied from interface: JwmaContact
Returns a String representing the street name of this contact at home.

Specified by:
getHomeStreet in interface JwmaContact
Returns:
the street of this contact at home as String.

setHomeStreet

public void setHomeStreet(java.lang.String street)
Description copied from interface: JwmaContactImpl
Sets the street name of this JwmaContactImpl at home.

Specified by:
setHomeStreet in interface JwmaContactImpl
Parameters:
street - the street of this contact at home as String.

getHomeCity

public java.lang.String getHomeCity()
Description copied from interface: JwmaContact
Returns a String representing the city of this contact at home.

Specified by:
getHomeCity in interface JwmaContact
Returns:
the city of this contact at home as String.

setHomeCity

public void setHomeCity(java.lang.String city)
Description copied from interface: JwmaContactImpl
Sets the city of this JwmaContactImpl at home.

Specified by:
setHomeCity in interface JwmaContactImpl
Parameters:
city - the city of this contact at home as String.

getHomeRegion

public java.lang.String getHomeRegion()
Description copied from interface: JwmaContact
Returns a String representing the region of this contact at home.

Specified by:
getHomeRegion in interface JwmaContact
Returns:
the region of this contact at home as String.

setHomeRegion

public void setHomeRegion(java.lang.String region)
Description copied from interface: JwmaContactImpl
Sets the region of this JwmaContactImpl at home.

Specified by:
setHomeRegion in interface JwmaContactImpl
Parameters:
region - the region of this contact at home as String.

getHomeCountry

public java.lang.String getHomeCountry()
Description copied from interface: JwmaContact
Returns a String representing the country of this contact at home.

Specified by:
getHomeCountry in interface JwmaContact
Returns:
the country of this contact at home as String.

setHomeCountry

public void setHomeCountry(java.lang.String country)
Description copied from interface: JwmaContactImpl
Sets the country of this JwmaContactImpl at home.

Specified by:
setHomeCountry in interface JwmaContactImpl
Parameters:
country - the country of this contact at home as String.

getHomeZIP

public java.lang.String getHomeZIP()
Description copied from interface: JwmaContact
Returns a String representing the ZIP of this contact at home.

Specified by:
getHomeZIP in interface JwmaContact
Returns:
the ZIP of this contact at home as String.

setHomeZIP

public void setHomeZIP(java.lang.String zip)
Description copied from interface: JwmaContactImpl
Sets the ZIP of this JwmaContactImpl at home.

Specified by:
setHomeZIP in interface JwmaContactImpl
Parameters:
zip - the ZIP of this contact at home as String.

getEmail

public java.lang.String getEmail()
Description copied from interface: JwmaContact
Returns a String representing the email of this contact object.

Specified by:
getEmail in interface JwmaContact
Returns:
the email of this contact as String.

setEmail

public void setEmail(java.lang.String email)
Description copied from interface: JwmaContactImpl
Sets the email of this JwmaContactImpl.

Specified by:
setEmail in interface JwmaContactImpl
Parameters:
email - the email of this contact as String.

getAlternateEmail

public java.lang.String getAlternateEmail()
Description copied from interface: JwmaContact
Returns a String representing the altnerate email of this contact object.

Specified by:
getAlternateEmail in interface JwmaContact
Returns:
the alternate email of this contact as String.

setAlternateEmail

public void setAlternateEmail(java.lang.String email)
Description copied from interface: JwmaContactImpl
Sets the alternate email of this JwmaContactImpl.

Specified by:
setAlternateEmail in interface JwmaContactImpl
Parameters:
email - the alternate email of this contact as String.

getURL

public java.lang.String getURL()
Description copied from interface: JwmaContact
Returns a String representing an URL associated with this contact object.

Specified by:
getURL in interface JwmaContact
Returns:
an URL associated with this contact as String.

setURL

public void setURL(java.lang.String url)
Description copied from interface: JwmaContactImpl
Sets the URL associated with this JwmaContactImpl.

Specified by:
setURL in interface JwmaContactImpl
Parameters:
url - the URL associated with this contact as String.

getCompanyURL

public java.lang.String getCompanyURL()
Description copied from interface: JwmaContact
Returns a String representing the company URL associated with this contact object.

Specified by:
getCompanyURL in interface JwmaContact
Returns:
the company URL associated with this contact as String.

setCompanyURL

public void setCompanyURL(java.lang.String url)
Description copied from interface: JwmaContactImpl
Sets the company URL associated with this JwmaContactImpl.

Specified by:
setCompanyURL in interface JwmaContactImpl
Parameters:
url - the company URL associated with this contact as String.

getComments

public java.lang.String getComments()
Description copied from interface: JwmaContact
Returns a String representing the comments of this contact object.

Specified by:
getComments in interface JwmaContact
Returns:
the comments of this contact as String.

setComments

public void setComments(java.lang.String comments)
Description copied from interface: JwmaContactImpl
Sets the comments for this JwmaContactImpl.

Specified by:
setComments in interface JwmaContactImpl
Parameters:
comments - the comments of this contact as String.

getBirthDate

public java.util.Date getBirthDate()
Description copied from interface: JwmaContact
Returns the birthdate of this contact as Date.

Specified by:
getBirthDate in interface JwmaContact
Returns:
the birthdate as Date.

setBirthDate

public void setBirthDate(java.util.Date date)
Description copied from interface: JwmaContactImpl
Sets the birthdate of this JwmaContactImpl.

Specified by:
setBirthDate in interface JwmaContactImpl
Parameters:
date - the birthdate as Date.

isFrequentRecipient

public boolean isFrequentRecipient()
Description copied from interface: JwmaContact
Tests if this contact represents a frequent recipient.

Specified by:
isFrequentRecipient in interface JwmaContact
Returns:
true if this contact represents a frequent recipient, false otherwise.

setFrequentRecipient

public void setFrequentRecipient(boolean b)
Description copied from interface: JwmaContactImpl
Sets if this JwmaContactImpl represents a frequent mail recipient.

Specified by:
setFrequentRecipient in interface JwmaContactImpl
Parameters:
b - true if this contact represents a frequent recipient, false otherwise.

jdoGetTimeStamp

public long jdoGetTimeStamp()
Specified by:
jdoGetTimeStamp in interface org.exolab.castor.jdo.TimeStampable

jdoSetTimeStamp

public void jdoSetTimeStamp(long timeStamp)
Specified by:
jdoSetTimeStamp in interface org.exolab.castor.jdo.TimeStampable

Jwma

Copyright © 2000-2003 jwma team (All Rights Reserved.)