Liferay 6.0.5

com.liferay.portal.model
Class ContactWrapper

java.lang.Object
  extended by com.liferay.portal.model.ContactWrapper
All Implemented Interfaces:
BaseModel<Contact>, Contact, ContactModel, Serializable, Cloneable, Comparable<Contact>

public class ContactWrapper
extends Object
implements Contact

This class is a wrapper for Contact.

See Also:
Contact, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
ContactWrapper(Contact contact)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Contact contact)
           
 long getAccountId()
          Gets the account id of this contact.
 String getAimSn()
          Gets the aim sn of this contact.
 Date getBirthday()
          Gets the birthday of this contact.
 long getCompanyId()
          Gets the company id of this contact.
 long getContactId()
          Gets the contact id of this contact.
 Date getCreateDate()
          Gets the create date of this contact.
 String getEmployeeNumber()
          Gets the employee number of this contact.
 String getEmployeeStatusId()
          Gets the employee status id of this contact.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 String getFacebookSn()
          Gets the facebook sn of this contact.
 String getFirstName()
          Gets the first name of this contact.
 String getFullName()
           
 String getHoursOfOperation()
          Gets the hours of operation of this contact.
 String getIcqSn()
          Gets the icq sn of this contact.
 String getJabberSn()
          Gets the jabber sn of this contact.
 String getJobClass()
          Gets the job class of this contact.
 String getJobTitle()
          Gets the job title of this contact.
 String getLastName()
          Gets the last name of this contact.
 boolean getMale()
          Gets the male of this contact.
 String getMiddleName()
          Gets the middle name of this contact.
 Date getModifiedDate()
          Gets the modified date of this contact.
 String getMsnSn()
          Gets the msn sn of this contact.
 String getMySpaceSn()
          Gets the my space sn of this contact.
 long getParentContactId()
          Gets the parent contact id of this contact.
 int getPrefixId()
          Gets the prefix id of this contact.
 long getPrimaryKey()
          Gets the primary key of this contact.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 String getSkypeSn()
          Gets the skype sn of this contact.
 String getSmsSn()
          Gets the sms sn of this contact.
 int getSuffixId()
          Gets the suffix id of this contact.
 String getTwitterSn()
          Gets the twitter sn of this contact.
 long getUserId()
          Gets the user id of this contact.
 String getUserName()
          Gets the user name of this contact.
 String getUserUuid()
          Gets the user uuid of this contact.
 Contact getWrappedContact()
           
 String getYmSn()
          Gets the ym sn of this contact.
 int hashCode()
           
 boolean isCachedModel()
          Determines if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Determines if this model instance is escaped.
 boolean isMale()
          Determines whether this contact is male.
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 void setAccountId(long accountId)
          Sets the account id of this contact.
 void setAimSn(String aimSn)
          Sets the aim sn of this contact.
 void setBirthday(Date birthday)
          Sets the birthday of this contact.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setCompanyId(long companyId)
          Sets the company id of this contact.
 void setContactId(long contactId)
          Sets the contact id of this contact.
 void setCreateDate(Date createDate)
          Sets the create date of this contact.
 void setEmployeeNumber(String employeeNumber)
          Sets the employee number of this contact.
 void setEmployeeStatusId(String employeeStatusId)
          Sets the employee status id of this contact.
 void setEscapedModel(boolean escapedModel)
          Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setFacebookSn(String facebookSn)
          Sets the facebook sn of this contact.
 void setFirstName(String firstName)
          Sets the first name of this contact.
 void setHoursOfOperation(String hoursOfOperation)
          Sets the hours of operation of this contact.
 void setIcqSn(String icqSn)
          Sets the icq sn of this contact.
 void setJabberSn(String jabberSn)
          Sets the jabber sn of this contact.
 void setJobClass(String jobClass)
          Sets the job class of this contact.
 void setJobTitle(String jobTitle)
          Sets the job title of this contact.
 void setLastName(String lastName)
          Sets the last name of this contact.
 void setMale(boolean male)
          Sets whether this {$entity.humanName} is male.
 void setMiddleName(String middleName)
          Sets the middle name of this contact.
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this contact.
 void setMsnSn(String msnSn)
          Sets the msn sn of this contact.
 void setMySpaceSn(String mySpaceSn)
          Sets the my space sn of this contact.
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setParentContactId(long parentContactId)
          Sets the parent contact id of this contact.
 void setPrefixId(int prefixId)
          Sets the prefix id of this contact.
 void setPrimaryKey(long pk)
          Sets the primary key of this contact
 void setSkypeSn(String skypeSn)
          Sets the skype sn of this contact.
 void setSmsSn(String smsSn)
          Sets the sms sn of this contact.
 void setSuffixId(int suffixId)
          Sets the suffix id of this contact.
 void setTwitterSn(String twitterSn)
          Sets the twitter sn of this contact.
 void setUserId(long userId)
          Sets the user id of this contact.
 void setUserName(String userName)
          Sets the user name of this contact.
 void setUserUuid(String userUuid)
          Sets the user uuid of this contact.
 void setYmSn(String ymSn)
          Sets the ym sn of this contact.
 Contact toEscapedModel()
          Gets a copy of this contact as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContactWrapper

public ContactWrapper(Contact contact)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: ContactModel
Gets the primary key of this contact.

Specified by:
getPrimaryKey in interface ContactModel
Returns:
the primary key of this contact

setPrimaryKey

public void setPrimaryKey(long pk)
Description copied from interface: ContactModel
Sets the primary key of this contact

Specified by:
setPrimaryKey in interface ContactModel
Parameters:
pk - the primary key of this contact

getContactId

public long getContactId()
Description copied from interface: ContactModel
Gets the contact id of this contact.

Specified by:
getContactId in interface ContactModel
Returns:
the contact id of this contact

setContactId

public void setContactId(long contactId)
Description copied from interface: ContactModel
Sets the contact id of this contact.

Specified by:
setContactId in interface ContactModel
Parameters:
contactId - the contact id of this contact

getCompanyId

public long getCompanyId()
Description copied from interface: ContactModel
Gets the company id of this contact.

Specified by:
getCompanyId in interface ContactModel
Returns:
the company id of this contact

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: ContactModel
Sets the company id of this contact.

Specified by:
setCompanyId in interface ContactModel
Parameters:
companyId - the company id of this contact

getUserId

public long getUserId()
Description copied from interface: ContactModel
Gets the user id of this contact.

Specified by:
getUserId in interface ContactModel
Returns:
the user id of this contact

setUserId

public void setUserId(long userId)
Description copied from interface: ContactModel
Sets the user id of this contact.

Specified by:
setUserId in interface ContactModel
Parameters:
userId - the user id of this contact

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: ContactModel
Gets the user uuid of this contact.

Specified by:
getUserUuid in interface ContactModel
Returns:
the user uuid of this contact
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: ContactModel
Sets the user uuid of this contact.

Specified by:
setUserUuid in interface ContactModel
Parameters:
userUuid - the user uuid of this contact

getUserName

public String getUserName()
Description copied from interface: ContactModel
Gets the user name of this contact.

Specified by:
getUserName in interface ContactModel
Returns:
the user name of this contact

setUserName

public void setUserName(String userName)
Description copied from interface: ContactModel
Sets the user name of this contact.

Specified by:
setUserName in interface ContactModel
Parameters:
userName - the user name of this contact

getCreateDate

public Date getCreateDate()
Description copied from interface: ContactModel
Gets the create date of this contact.

Specified by:
getCreateDate in interface ContactModel
Returns:
the create date of this contact

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: ContactModel
Sets the create date of this contact.

Specified by:
setCreateDate in interface ContactModel
Parameters:
createDate - the create date of this contact

getModifiedDate

public Date getModifiedDate()
Description copied from interface: ContactModel
Gets the modified date of this contact.

Specified by:
getModifiedDate in interface ContactModel
Returns:
the modified date of this contact

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: ContactModel
Sets the modified date of this contact.

Specified by:
setModifiedDate in interface ContactModel
Parameters:
modifiedDate - the modified date of this contact

getAccountId

public long getAccountId()
Description copied from interface: ContactModel
Gets the account id of this contact.

Specified by:
getAccountId in interface ContactModel
Returns:
the account id of this contact

setAccountId

public void setAccountId(long accountId)
Description copied from interface: ContactModel
Sets the account id of this contact.

Specified by:
setAccountId in interface ContactModel
Parameters:
accountId - the account id of this contact

getParentContactId

public long getParentContactId()
Description copied from interface: ContactModel
Gets the parent contact id of this contact.

Specified by:
getParentContactId in interface ContactModel
Returns:
the parent contact id of this contact

setParentContactId

public void setParentContactId(long parentContactId)
Description copied from interface: ContactModel
Sets the parent contact id of this contact.

Specified by:
setParentContactId in interface ContactModel
Parameters:
parentContactId - the parent contact id of this contact

getFirstName

public String getFirstName()
Description copied from interface: ContactModel
Gets the first name of this contact.

Specified by:
getFirstName in interface ContactModel
Returns:
the first name of this contact

setFirstName

public void setFirstName(String firstName)
Description copied from interface: ContactModel
Sets the first name of this contact.

Specified by:
setFirstName in interface ContactModel
Parameters:
firstName - the first name of this contact

getMiddleName

public String getMiddleName()
Description copied from interface: ContactModel
Gets the middle name of this contact.

Specified by:
getMiddleName in interface ContactModel
Returns:
the middle name of this contact

setMiddleName

public void setMiddleName(String middleName)
Description copied from interface: ContactModel
Sets the middle name of this contact.

Specified by:
setMiddleName in interface ContactModel
Parameters:
middleName - the middle name of this contact

getLastName

public String getLastName()
Description copied from interface: ContactModel
Gets the last name of this contact.

Specified by:
getLastName in interface ContactModel
Returns:
the last name of this contact

setLastName

public void setLastName(String lastName)
Description copied from interface: ContactModel
Sets the last name of this contact.

Specified by:
setLastName in interface ContactModel
Parameters:
lastName - the last name of this contact

getPrefixId

public int getPrefixId()
Description copied from interface: ContactModel
Gets the prefix id of this contact.

Specified by:
getPrefixId in interface ContactModel
Returns:
the prefix id of this contact

setPrefixId

public void setPrefixId(int prefixId)
Description copied from interface: ContactModel
Sets the prefix id of this contact.

Specified by:
setPrefixId in interface ContactModel
Parameters:
prefixId - the prefix id of this contact

getSuffixId

public int getSuffixId()
Description copied from interface: ContactModel
Gets the suffix id of this contact.

Specified by:
getSuffixId in interface ContactModel
Returns:
the suffix id of this contact

setSuffixId

public void setSuffixId(int suffixId)
Description copied from interface: ContactModel
Sets the suffix id of this contact.

Specified by:
setSuffixId in interface ContactModel
Parameters:
suffixId - the suffix id of this contact

getMale

public boolean getMale()
Description copied from interface: ContactModel
Gets the male of this contact.

Specified by:
getMale in interface ContactModel
Returns:
the male of this contact

isMale

public boolean isMale()
Description copied from interface: ContactModel
Determines whether this contact is male.

Specified by:
isMale in interface ContactModel
Returns:
whether this contact is male

setMale

public void setMale(boolean male)
Description copied from interface: ContactModel
Sets whether this {$entity.humanName} is male.

Specified by:
setMale in interface ContactModel
Parameters:
male - the male of this contact

getBirthday

public Date getBirthday()
Description copied from interface: ContactModel
Gets the birthday of this contact.

Specified by:
getBirthday in interface ContactModel
Returns:
the birthday of this contact

setBirthday

public void setBirthday(Date birthday)
Description copied from interface: ContactModel
Sets the birthday of this contact.

Specified by:
setBirthday in interface ContactModel
Parameters:
birthday - the birthday of this contact

getSmsSn

public String getSmsSn()
Description copied from interface: ContactModel
Gets the sms sn of this contact.

Specified by:
getSmsSn in interface ContactModel
Returns:
the sms sn of this contact

setSmsSn

public void setSmsSn(String smsSn)
Description copied from interface: ContactModel
Sets the sms sn of this contact.

Specified by:
setSmsSn in interface ContactModel
Parameters:
smsSn - the sms sn of this contact

getAimSn

public String getAimSn()
Description copied from interface: ContactModel
Gets the aim sn of this contact.

Specified by:
getAimSn in interface ContactModel
Returns:
the aim sn of this contact

setAimSn

public void setAimSn(String aimSn)
Description copied from interface: ContactModel
Sets the aim sn of this contact.

Specified by:
setAimSn in interface ContactModel
Parameters:
aimSn - the aim sn of this contact

getFacebookSn

public String getFacebookSn()
Description copied from interface: ContactModel
Gets the facebook sn of this contact.

Specified by:
getFacebookSn in interface ContactModel
Returns:
the facebook sn of this contact

setFacebookSn

public void setFacebookSn(String facebookSn)
Description copied from interface: ContactModel
Sets the facebook sn of this contact.

Specified by:
setFacebookSn in interface ContactModel
Parameters:
facebookSn - the facebook sn of this contact

getIcqSn

public String getIcqSn()
Description copied from interface: ContactModel
Gets the icq sn of this contact.

Specified by:
getIcqSn in interface ContactModel
Returns:
the icq sn of this contact

setIcqSn

public void setIcqSn(String icqSn)
Description copied from interface: ContactModel
Sets the icq sn of this contact.

Specified by:
setIcqSn in interface ContactModel
Parameters:
icqSn - the icq sn of this contact

getJabberSn

public String getJabberSn()
Description copied from interface: ContactModel
Gets the jabber sn of this contact.

Specified by:
getJabberSn in interface ContactModel
Returns:
the jabber sn of this contact

setJabberSn

public void setJabberSn(String jabberSn)
Description copied from interface: ContactModel
Sets the jabber sn of this contact.

Specified by:
setJabberSn in interface ContactModel
Parameters:
jabberSn - the jabber sn of this contact

getMsnSn

public String getMsnSn()
Description copied from interface: ContactModel
Gets the msn sn of this contact.

Specified by:
getMsnSn in interface ContactModel
Returns:
the msn sn of this contact

setMsnSn

public void setMsnSn(String msnSn)
Description copied from interface: ContactModel
Sets the msn sn of this contact.

Specified by:
setMsnSn in interface ContactModel
Parameters:
msnSn - the msn sn of this contact

getMySpaceSn

public String getMySpaceSn()
Description copied from interface: ContactModel
Gets the my space sn of this contact.

Specified by:
getMySpaceSn in interface ContactModel
Returns:
the my space sn of this contact

setMySpaceSn

public void setMySpaceSn(String mySpaceSn)
Description copied from interface: ContactModel
Sets the my space sn of this contact.

Specified by:
setMySpaceSn in interface ContactModel
Parameters:
mySpaceSn - the my space sn of this contact

getSkypeSn

public String getSkypeSn()
Description copied from interface: ContactModel
Gets the skype sn of this contact.

Specified by:
getSkypeSn in interface ContactModel
Returns:
the skype sn of this contact

setSkypeSn

public void setSkypeSn(String skypeSn)
Description copied from interface: ContactModel
Sets the skype sn of this contact.

Specified by:
setSkypeSn in interface ContactModel
Parameters:
skypeSn - the skype sn of this contact

getTwitterSn

public String getTwitterSn()
Description copied from interface: ContactModel
Gets the twitter sn of this contact.

Specified by:
getTwitterSn in interface ContactModel
Returns:
the twitter sn of this contact

setTwitterSn

public void setTwitterSn(String twitterSn)
Description copied from interface: ContactModel
Sets the twitter sn of this contact.

Specified by:
setTwitterSn in interface ContactModel
Parameters:
twitterSn - the twitter sn of this contact

getYmSn

public String getYmSn()
Description copied from interface: ContactModel
Gets the ym sn of this contact.

Specified by:
getYmSn in interface ContactModel
Returns:
the ym sn of this contact

setYmSn

public void setYmSn(String ymSn)
Description copied from interface: ContactModel
Sets the ym sn of this contact.

Specified by:
setYmSn in interface ContactModel
Parameters:
ymSn - the ym sn of this contact

getEmployeeStatusId

public String getEmployeeStatusId()
Description copied from interface: ContactModel
Gets the employee status id of this contact.

Specified by:
getEmployeeStatusId in interface ContactModel
Returns:
the employee status id of this contact

setEmployeeStatusId

public void setEmployeeStatusId(String employeeStatusId)
Description copied from interface: ContactModel
Sets the employee status id of this contact.

Specified by:
setEmployeeStatusId in interface ContactModel
Parameters:
employeeStatusId - the employee status id of this contact

getEmployeeNumber

public String getEmployeeNumber()
Description copied from interface: ContactModel
Gets the employee number of this contact.

Specified by:
getEmployeeNumber in interface ContactModel
Returns:
the employee number of this contact

setEmployeeNumber

public void setEmployeeNumber(String employeeNumber)
Description copied from interface: ContactModel
Sets the employee number of this contact.

Specified by:
setEmployeeNumber in interface ContactModel
Parameters:
employeeNumber - the employee number of this contact

getJobTitle

public String getJobTitle()
Description copied from interface: ContactModel
Gets the job title of this contact.

Specified by:
getJobTitle in interface ContactModel
Returns:
the job title of this contact

setJobTitle

public void setJobTitle(String jobTitle)
Description copied from interface: ContactModel
Sets the job title of this contact.

Specified by:
setJobTitle in interface ContactModel
Parameters:
jobTitle - the job title of this contact

getJobClass

public String getJobClass()
Description copied from interface: ContactModel
Gets the job class of this contact.

Specified by:
getJobClass in interface ContactModel
Returns:
the job class of this contact

setJobClass

public void setJobClass(String jobClass)
Description copied from interface: ContactModel
Sets the job class of this contact.

Specified by:
setJobClass in interface ContactModel
Parameters:
jobClass - the job class of this contact

getHoursOfOperation

public String getHoursOfOperation()
Description copied from interface: ContactModel
Gets the hours of operation of this contact.

Specified by:
getHoursOfOperation in interface ContactModel
Returns:
the hours of operation of this contact

setHoursOfOperation

public void setHoursOfOperation(String hoursOfOperation)
Description copied from interface: ContactModel
Sets the hours of operation of this contact.

Specified by:
setHoursOfOperation in interface ContactModel
Parameters:
hoursOfOperation - the hours of operation of this contact

toEscapedModel

public Contact toEscapedModel()
Description copied from interface: ContactModel
Gets a copy of this contact as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface ContactModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

isNew

public boolean isNew()
Description copied from interface: BaseModel
Determines if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<Contact>
Specified by:
isNew in interface ContactModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<Contact>
Specified by:
setNew in interface ContactModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Determines if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<Contact>
Specified by:
isCachedModel in interface ContactModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<Contact>
Specified by:
setCachedModel in interface ContactModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Determines if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<Contact>
Specified by:
isEscapedModel in interface ContactModel
Returns:
true if this model instance is escaped; false otherwise
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.

A model instance can be made escaped by wrapping it with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface BaseModel<Contact>
Specified by:
setEscapedModel in interface ContactModel
Parameters:
escapedModel - whether this model instance is escaped
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Gets the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<Contact>
Specified by:
getPrimaryKeyObj in interface ContactModel
Returns:
the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Gets the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<Contact>
Specified by:
getExpandoBridge in interface ContactModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<Contact>
Specified by:
setExpandoBridgeAttributes in interface ContactModel
Parameters:
serviceContext - the service context to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<Contact>
Specified by:
clone in interface ContactModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(Contact contact)
Specified by:
compareTo in interface ContactModel
Specified by:
compareTo in interface Comparable<Contact>

hashCode

public int hashCode()
Specified by:
hashCode in interface ContactModel
Overrides:
hashCode in class Object

toString

public String toString()
Specified by:
toString in interface ContactModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<Contact>
Specified by:
toXmlString in interface ContactModel
Returns:
the XML representation of this model instance

getFullName

public String getFullName()
Specified by:
getFullName in interface Contact

getWrappedContact

public Contact getWrappedContact()

Liferay 6.0.5