|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.ContactWrapper
public class ContactWrapper
This class is a wrapper for Contact
.
Contact
,
Serialized FormConstructor 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 |
---|
public ContactWrapper(Contact contact)
Method Detail |
---|
public long getPrimaryKey()
ContactModel
getPrimaryKey
in interface ContactModel
public void setPrimaryKey(long pk)
ContactModel
setPrimaryKey
in interface ContactModel
pk
- the primary key of this contactpublic long getContactId()
ContactModel
getContactId
in interface ContactModel
public void setContactId(long contactId)
ContactModel
setContactId
in interface ContactModel
contactId
- the contact id of this contactpublic long getCompanyId()
ContactModel
getCompanyId
in interface ContactModel
public void setCompanyId(long companyId)
ContactModel
setCompanyId
in interface ContactModel
companyId
- the company id of this contactpublic long getUserId()
ContactModel
getUserId
in interface ContactModel
public void setUserId(long userId)
ContactModel
setUserId
in interface ContactModel
userId
- the user id of this contactpublic String getUserUuid() throws SystemException
ContactModel
getUserUuid
in interface ContactModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
ContactModel
setUserUuid
in interface ContactModel
userUuid
- the user uuid of this contactpublic String getUserName()
ContactModel
getUserName
in interface ContactModel
public void setUserName(String userName)
ContactModel
setUserName
in interface ContactModel
userName
- the user name of this contactpublic Date getCreateDate()
ContactModel
getCreateDate
in interface ContactModel
public void setCreateDate(Date createDate)
ContactModel
setCreateDate
in interface ContactModel
createDate
- the create date of this contactpublic Date getModifiedDate()
ContactModel
getModifiedDate
in interface ContactModel
public void setModifiedDate(Date modifiedDate)
ContactModel
setModifiedDate
in interface ContactModel
modifiedDate
- the modified date of this contactpublic long getAccountId()
ContactModel
getAccountId
in interface ContactModel
public void setAccountId(long accountId)
ContactModel
setAccountId
in interface ContactModel
accountId
- the account id of this contactpublic long getParentContactId()
ContactModel
getParentContactId
in interface ContactModel
public void setParentContactId(long parentContactId)
ContactModel
setParentContactId
in interface ContactModel
parentContactId
- the parent contact id of this contactpublic String getFirstName()
ContactModel
getFirstName
in interface ContactModel
public void setFirstName(String firstName)
ContactModel
setFirstName
in interface ContactModel
firstName
- the first name of this contactpublic String getMiddleName()
ContactModel
getMiddleName
in interface ContactModel
public void setMiddleName(String middleName)
ContactModel
setMiddleName
in interface ContactModel
middleName
- the middle name of this contactpublic String getLastName()
ContactModel
getLastName
in interface ContactModel
public void setLastName(String lastName)
ContactModel
setLastName
in interface ContactModel
lastName
- the last name of this contactpublic int getPrefixId()
ContactModel
getPrefixId
in interface ContactModel
public void setPrefixId(int prefixId)
ContactModel
setPrefixId
in interface ContactModel
prefixId
- the prefix id of this contactpublic int getSuffixId()
ContactModel
getSuffixId
in interface ContactModel
public void setSuffixId(int suffixId)
ContactModel
setSuffixId
in interface ContactModel
suffixId
- the suffix id of this contactpublic boolean getMale()
ContactModel
getMale
in interface ContactModel
public boolean isMale()
ContactModel
isMale
in interface ContactModel
public void setMale(boolean male)
ContactModel
setMale
in interface ContactModel
male
- the male of this contactpublic Date getBirthday()
ContactModel
getBirthday
in interface ContactModel
public void setBirthday(Date birthday)
ContactModel
setBirthday
in interface ContactModel
birthday
- the birthday of this contactpublic String getSmsSn()
ContactModel
getSmsSn
in interface ContactModel
public void setSmsSn(String smsSn)
ContactModel
setSmsSn
in interface ContactModel
smsSn
- the sms sn of this contactpublic String getAimSn()
ContactModel
getAimSn
in interface ContactModel
public void setAimSn(String aimSn)
ContactModel
setAimSn
in interface ContactModel
aimSn
- the aim sn of this contactpublic String getFacebookSn()
ContactModel
getFacebookSn
in interface ContactModel
public void setFacebookSn(String facebookSn)
ContactModel
setFacebookSn
in interface ContactModel
facebookSn
- the facebook sn of this contactpublic String getIcqSn()
ContactModel
getIcqSn
in interface ContactModel
public void setIcqSn(String icqSn)
ContactModel
setIcqSn
in interface ContactModel
icqSn
- the icq sn of this contactpublic String getJabberSn()
ContactModel
getJabberSn
in interface ContactModel
public void setJabberSn(String jabberSn)
ContactModel
setJabberSn
in interface ContactModel
jabberSn
- the jabber sn of this contactpublic String getMsnSn()
ContactModel
getMsnSn
in interface ContactModel
public void setMsnSn(String msnSn)
ContactModel
setMsnSn
in interface ContactModel
msnSn
- the msn sn of this contactpublic String getMySpaceSn()
ContactModel
getMySpaceSn
in interface ContactModel
public void setMySpaceSn(String mySpaceSn)
ContactModel
setMySpaceSn
in interface ContactModel
mySpaceSn
- the my space sn of this contactpublic String getSkypeSn()
ContactModel
getSkypeSn
in interface ContactModel
public void setSkypeSn(String skypeSn)
ContactModel
setSkypeSn
in interface ContactModel
skypeSn
- the skype sn of this contactpublic String getTwitterSn()
ContactModel
getTwitterSn
in interface ContactModel
public void setTwitterSn(String twitterSn)
ContactModel
setTwitterSn
in interface ContactModel
twitterSn
- the twitter sn of this contactpublic String getYmSn()
ContactModel
getYmSn
in interface ContactModel
public void setYmSn(String ymSn)
ContactModel
setYmSn
in interface ContactModel
ymSn
- the ym sn of this contactpublic String getEmployeeStatusId()
ContactModel
getEmployeeStatusId
in interface ContactModel
public void setEmployeeStatusId(String employeeStatusId)
ContactModel
setEmployeeStatusId
in interface ContactModel
employeeStatusId
- the employee status id of this contactpublic String getEmployeeNumber()
ContactModel
getEmployeeNumber
in interface ContactModel
public void setEmployeeNumber(String employeeNumber)
ContactModel
setEmployeeNumber
in interface ContactModel
employeeNumber
- the employee number of this contactpublic String getJobTitle()
ContactModel
getJobTitle
in interface ContactModel
public void setJobTitle(String jobTitle)
ContactModel
setJobTitle
in interface ContactModel
jobTitle
- the job title of this contactpublic String getJobClass()
ContactModel
getJobClass
in interface ContactModel
public void setJobClass(String jobClass)
ContactModel
setJobClass
in interface ContactModel
jobClass
- the job class of this contactpublic String getHoursOfOperation()
ContactModel
getHoursOfOperation
in interface ContactModel
public void setHoursOfOperation(String hoursOfOperation)
ContactModel
setHoursOfOperation
in interface ContactModel
hoursOfOperation
- the hours of operation of this contactpublic Contact toEscapedModel()
ContactModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface ContactModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<Contact>
isNew
in interface ContactModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<Contact>
setNew
in interface ContactModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<Contact>
isCachedModel
in interface ContactModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<Contact>
setCachedModel
in interface ContactModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<Contact>
isEscapedModel
in interface ContactModel
true
if this model instance is escaped;
false
otherwiseBaseModel.setEscapedModel(boolean)
public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel
method. For example,
UserModel.toEscapedModel()
.
setEscapedModel
in interface BaseModel<Contact>
setEscapedModel
in interface ContactModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Contact>
getPrimaryKeyObj
in interface ContactModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Contact>
getExpandoBridge
in interface ContactModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Contact>
setExpandoBridgeAttributes
in interface ContactModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<Contact>
clone
in interface ContactModel
clone
in class Object
public int compareTo(Contact contact)
compareTo
in interface ContactModel
compareTo
in interface Comparable<Contact>
public int hashCode()
hashCode
in interface ContactModel
hashCode
in class Object
public String toString()
toString
in interface ContactModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Contact>
toXmlString
in interface ContactModel
public String getFullName()
getFullName
in interface Contact
public Contact getWrappedContact()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |