@ProviderType public class ContactWrapper extends Object implements Contact, ModelWrapper<Contact>
This class is a wrapper for Contact
.
Contact
,
Serialized FormCONTACT_ID_ACCESSOR
Constructor and Description |
---|
ContactWrapper(Contact contact) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(Contact contact) |
boolean |
equals(Object obj) |
long |
getAccountId()
Returns the account ID of this contact.
|
Date |
getBirthday()
Returns the birthday of this contact.
|
String |
getClassName()
Returns the fully qualified class name of this contact.
|
long |
getClassNameId()
Returns the class name ID of this contact.
|
long |
getClassPK()
Returns the class pk of this contact.
|
long |
getCompanyId()
Returns the company ID of this contact.
|
long |
getContactId()
Returns the contact ID of this contact.
|
Date |
getCreateDate()
Returns the create date of this contact.
|
String |
getEmailAddress()
Returns the email address of this contact.
|
String |
getEmployeeNumber()
Returns the employee number of this contact.
|
String |
getEmployeeStatusId()
Returns the employee status ID of this contact.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
String |
getFacebookSn()
Returns the facebook sn of this contact.
|
String |
getFirstName()
Returns the first name of this contact.
|
String |
getFullName() |
String |
getHoursOfOperation()
Returns the hours of operation of this contact.
|
String |
getJabberSn()
Returns the jabber sn of this contact.
|
String |
getJobClass()
Returns the job class of this contact.
|
String |
getJobTitle()
Returns the job title of this contact.
|
String |
getLastName()
Returns the last name of this contact.
|
boolean |
getMale()
Returns the male of this contact.
|
String |
getMiddleName()
Returns the middle name of this contact.
|
Map<String,Object> |
getModelAttributes() |
Class<?> |
getModelClass() |
String |
getModelClassName() |
Date |
getModifiedDate()
Returns the modified date of this contact.
|
long |
getMvccVersion()
Returns the mvcc version of this contact.
|
long |
getParentContactId()
Returns the parent contact ID of this contact.
|
long |
getPrefixId()
Returns the prefix ID of this contact.
|
long |
getPrimaryKey()
Returns the primary key of this contact.
|
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
String |
getSkypeSn()
Returns the skype sn of this contact.
|
String |
getSmsSn()
Returns the sms sn of this contact.
|
long |
getSuffixId()
Returns the suffix ID of this contact.
|
String |
getTwitterSn()
Returns the twitter sn of this contact.
|
long |
getUserId()
Returns the user ID of this contact.
|
String |
getUserName()
Returns the user name of this contact.
|
String |
getUserUuid()
Returns the user uuid of this contact.
|
Contact |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
boolean |
isMale()
Returns
true if this contact is male. |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
boolean |
isUser() |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
resetOriginalValues()
Reset all original fields to current values.
|
void |
setAccountId(long accountId)
Sets the account ID 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 |
setClassName(String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this contact.
|
void |
setClassPK(long classPK)
Sets the class pk of this contact.
|
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 |
setEmailAddress(String emailAddress)
Sets the email address 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 |
setExpandoBridgeAttributes(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
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 |
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 contact is male.
|
void |
setMiddleName(String middleName)
Sets the middle name of this contact.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this contact.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version 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(long prefixId)
Sets the prefix ID of this contact.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this contact.
|
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setSkypeSn(String skypeSn)
Sets the skype sn of this contact.
|
void |
setSmsSn(String smsSn)
Sets the sms sn of this contact.
|
void |
setSuffixId(long 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.
|
CacheModel<Contact> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
Contact |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler . |
String |
toString() |
Contact |
toUnescapedModel() |
String |
toXmlString()
Returns the XML representation of this model instance.
|
public ContactWrapper(Contact contact)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Contact>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Contact>
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 long getAccountId()
getAccountId
in interface ContactModel
public Date getBirthday()
getBirthday
in interface ContactModel
public String getClassName()
getClassName
in interface ContactModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface ContactModel
getClassNameId
in interface TypedModel
public long getClassPK()
getClassPK
in interface AttachedModel
getClassPK
in interface ContactModel
public long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface ContactModel
getCompanyId
in interface ShardedModel
public long getContactId()
getContactId
in interface ContactModel
public Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface ContactModel
public String getEmailAddress()
getEmailAddress
in interface ContactModel
public String getEmployeeNumber()
getEmployeeNumber
in interface ContactModel
public String getEmployeeStatusId()
getEmployeeStatusId
in interface ContactModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Contact>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ContactModel
public String getFacebookSn()
getFacebookSn
in interface ContactModel
public String getFirstName()
getFirstName
in interface ContactModel
public String getFullName()
getFullName
in interface Contact
public String getHoursOfOperation()
getHoursOfOperation
in interface ContactModel
public String getJabberSn()
getJabberSn
in interface ContactModel
public String getJobClass()
getJobClass
in interface ContactModel
public String getJobTitle()
getJobTitle
in interface ContactModel
public String getLastName()
getLastName
in interface ContactModel
public boolean getMale()
getMale
in interface ContactModel
public String getMiddleName()
getMiddleName
in interface ContactModel
public Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface ContactModel
public long getMvccVersion()
getMvccVersion
in interface ContactModel
getMvccVersion
in interface MVCCModel
public long getParentContactId()
getParentContactId
in interface ContactModel
public long getPrefixId()
getPrefixId
in interface ContactModel
public long getPrimaryKey()
getPrimaryKey
in interface ContactModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Contact>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ContactModel
public String getSkypeSn()
getSkypeSn
in interface ContactModel
public String getSmsSn()
getSmsSn
in interface ContactModel
public long getSuffixId()
getSuffixId
in interface ContactModel
public String getTwitterSn()
getTwitterSn
in interface ContactModel
public long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface ContactModel
public String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface ContactModel
public String getUserUuid()
getUserUuid
in interface AuditedModel
getUserUuid
in interface ContactModel
public int hashCode()
hashCode
in interface ContactModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.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 boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.isEscapedModel
in interface BaseModel<Contact>
isEscapedModel
in interface ContactModel
true
if this model instance is escaped;
false
otherwisepublic boolean isMale()
true
if this contact is male.isMale
in interface ContactModel
true
if this contact is male; false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface BaseModel<Contact>
isNew
in interface ContactModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setAccountId(long accountId)
setAccountId
in interface ContactModel
accountId
- the account ID of this contactpublic void setBirthday(Date birthday)
setBirthday
in interface ContactModel
birthday
- the birthday of this contactpublic 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 void setClassName(String className)
setClassName
in interface ContactModel
public void setClassNameId(long classNameId)
setClassNameId
in interface ContactModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this contactpublic void setClassPK(long classPK)
setClassPK
in interface AttachedModel
setClassPK
in interface ContactModel
classPK
- the class pk of this contactpublic void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface ContactModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this contactpublic void setContactId(long contactId)
setContactId
in interface ContactModel
contactId
- the contact ID of this contactpublic void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface ContactModel
createDate
- the create date of this contactpublic void setEmailAddress(String emailAddress)
setEmailAddress
in interface ContactModel
emailAddress
- the email address of this contactpublic void setEmployeeNumber(String employeeNumber)
setEmployeeNumber
in interface ContactModel
employeeNumber
- the employee number of this contactpublic void setEmployeeStatusId(String employeeStatusId)
setEmployeeStatusId
in interface ContactModel
employeeStatusId
- the employee status ID of this contactpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<Contact>
setExpandoBridgeAttributes
in interface ContactModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<Contact>
setExpandoBridgeAttributes
in interface ContactModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Contact>
setExpandoBridgeAttributes
in interface ContactModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setFacebookSn(String facebookSn)
setFacebookSn
in interface ContactModel
facebookSn
- the facebook sn of this contactpublic void setFirstName(String firstName)
setFirstName
in interface ContactModel
firstName
- the first name of this contactpublic void setHoursOfOperation(String hoursOfOperation)
setHoursOfOperation
in interface ContactModel
hoursOfOperation
- the hours of operation of this contactpublic void setJabberSn(String jabberSn)
setJabberSn
in interface ContactModel
jabberSn
- the jabber sn of this contactpublic void setJobClass(String jobClass)
setJobClass
in interface ContactModel
jobClass
- the job class of this contactpublic void setJobTitle(String jobTitle)
setJobTitle
in interface ContactModel
jobTitle
- the job title of this contactpublic void setLastName(String lastName)
setLastName
in interface ContactModel
lastName
- the last name of this contactpublic void setMale(boolean male)
setMale
in interface ContactModel
male
- the male of this contactpublic void setMiddleName(String middleName)
setMiddleName
in interface ContactModel
middleName
- the middle name of this contactpublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface ContactModel
modifiedDate
- the modified date of this contactpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface ContactModel
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this contactpublic 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 void setParentContactId(long parentContactId)
setParentContactId
in interface ContactModel
parentContactId
- the parent contact ID of this contactpublic void setPrefixId(long prefixId)
setPrefixId
in interface ContactModel
prefixId
- the prefix ID of this contactpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ContactModel
primaryKey
- the primary key of this contactpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Contact>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ContactModel
primaryKeyObj
- the primary key of this model instancepublic void setSkypeSn(String skypeSn)
setSkypeSn
in interface ContactModel
skypeSn
- the skype sn of this contactpublic void setSmsSn(String smsSn)
setSmsSn
in interface ContactModel
smsSn
- the sms sn of this contactpublic void setSuffixId(long suffixId)
setSuffixId
in interface ContactModel
suffixId
- the suffix ID of this contactpublic void setTwitterSn(String twitterSn)
setTwitterSn
in interface ContactModel
twitterSn
- the twitter sn of this contactpublic void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface ContactModel
userId
- the user ID of this contactpublic void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface ContactModel
userName
- the user name of this contactpublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface ContactModel
userUuid
- the user uuid of this contactpublic CacheModel<Contact> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<Contact>
toCacheModel
in interface ContactModel
public Contact toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<Contact>
toEscapedModel
in interface ContactModel
AutoEscapeBeanHandler
public String toString()
toString
in interface ContactModel
toString
in class Object
public Contact toUnescapedModel()
toUnescapedModel
in interface BaseModel<Contact>
toUnescapedModel
in interface ContactModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Contact>
toXmlString
in interface ContactModel
public boolean equals(Object obj)
equals
in class Object
public Contact getWrappedModel()
getWrappedModel
in interface ModelWrapper<Contact>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<Contact>
true
if this model's entity cache is enabled;
false
otherwisepublic boolean isFinderCacheEnabled()
BaseModel
true
if this model's finder cache is enabled.isFinderCacheEnabled
in interface BaseModel<Contact>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Contact>