Class ContactModelImpl

Object
com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Contact>
com.liferay.portal.model.impl.ContactModelImpl
All Implemented Interfaces:
com.liferay.portal.kernel.model.AttachedModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.ContactModel, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.TypedModel, Serializable, Cloneable, Comparable<com.liferay.portal.kernel.model.Contact>
Direct Known Subclasses:
ContactBaseImpl

@JSON(strict=true) public class ContactModelImpl extends com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Contact> implements com.liferay.portal.kernel.model.ContactModel
The base model implementation for the Contact service. Represents a row in the "Contact_" database table, with each column mapped to a property of this class.

This implementation and its corresponding interface ContactModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in ContactImpl.

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Field Details

  • Constructor Details

    • ContactModelImpl

      public ContactModelImpl()
  • Method Details

    • getPrimaryKey

      public long getPrimaryKey()
      Specified by:
      getPrimaryKey in interface com.liferay.portal.kernel.model.ContactModel
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Specified by:
      setPrimaryKey in interface com.liferay.portal.kernel.model.ContactModel
    • getPrimaryKeyObj

      public Serializable getPrimaryKeyObj()
      Specified by:
      getPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>
      Specified by:
      getPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModel
    • setPrimaryKeyObj

      public void setPrimaryKeyObj(Serializable primaryKeyObj)
      Specified by:
      setPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>
      Specified by:
      setPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModel
    • getModelClass

      public Class<?> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.model.ClassedModel
    • getModelClassName

      public String getModelClassName()
      Specified by:
      getModelClassName in interface com.liferay.portal.kernel.model.ClassedModel
    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>
      Overrides:
      getModelAttributes in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Contact>
    • setModelAttributes

      public void setModelAttributes(Map<String,Object> attributes)
      Specified by:
      setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>
      Overrides:
      setModelAttributes in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Contact>
    • getAttributeGetterFunctions

      public Map<String,Function<com.liferay.portal.kernel.model.Contact,Object>> getAttributeGetterFunctions()
      Specified by:
      getAttributeGetterFunctions in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>
    • getAttributeSetterBiConsumers

      public Map<String,BiConsumer<com.liferay.portal.kernel.model.Contact,Object>> getAttributeSetterBiConsumers()
      Specified by:
      getAttributeSetterBiConsumers in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>
    • getMvccVersion

      @JSON public long getMvccVersion()
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.ContactModel
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
    • setMvccVersion

      public void setMvccVersion(long mvccVersion)
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.ContactModel
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
    • getContactId

      @JSON public long getContactId()
      Specified by:
      getContactId in interface com.liferay.portal.kernel.model.ContactModel
    • setContactId

      public void setContactId(long contactId)
      Specified by:
      setContactId in interface com.liferay.portal.kernel.model.ContactModel
    • getCompanyId

      @JSON public long getCompanyId()
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.ContactModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
    • setCompanyId

      public void setCompanyId(long companyId)
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.ContactModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
    • getOriginalCompanyId

      @Deprecated public long getOriginalCompanyId()
      Deprecated.
      As of Athanasius (7.3.x), replaced by getColumnOriginalValue(String)
    • getUserId

      @JSON public long getUserId()
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.ContactModel
    • setUserId

      public void setUserId(long userId)
      Specified by:
      setUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserId in interface com.liferay.portal.kernel.model.ContactModel
    • getUserUuid

      public String getUserUuid()
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.ContactModel
    • setUserUuid

      public void setUserUuid(String userUuid)
      Specified by:
      setUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserUuid in interface com.liferay.portal.kernel.model.ContactModel
    • getOriginalUserId

      @Deprecated public long getOriginalUserId()
      Deprecated.
      As of Athanasius (7.3.x), replaced by getColumnOriginalValue(String)
    • getUserName

      @JSON public String getUserName()
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.ContactModel
    • setUserName

      public void setUserName(String userName)
      Specified by:
      setUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserName in interface com.liferay.portal.kernel.model.ContactModel
    • getCreateDate

      @JSON public Date getCreateDate()
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.ContactModel
    • setCreateDate

      public void setCreateDate(Date createDate)
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.ContactModel
    • getModifiedDate

      @JSON public Date getModifiedDate()
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.ContactModel
    • hasSetModifiedDate

      public boolean hasSetModifiedDate()
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.ContactModel
    • getClassName

      public String getClassName()
      Specified by:
      getClassName in interface com.liferay.portal.kernel.model.ContactModel
      Specified by:
      getClassName in interface com.liferay.portal.kernel.model.TypedModel
    • setClassName

      public void setClassName(String className)
      Specified by:
      setClassName in interface com.liferay.portal.kernel.model.ContactModel
    • getClassNameId

      @JSON public long getClassNameId()
      Specified by:
      getClassNameId in interface com.liferay.portal.kernel.model.ContactModel
      Specified by:
      getClassNameId in interface com.liferay.portal.kernel.model.TypedModel
    • setClassNameId

      public void setClassNameId(long classNameId)
      Specified by:
      setClassNameId in interface com.liferay.portal.kernel.model.ContactModel
      Specified by:
      setClassNameId in interface com.liferay.portal.kernel.model.TypedModel
    • getOriginalClassNameId

      @Deprecated public long getOriginalClassNameId()
      Deprecated.
      As of Athanasius (7.3.x), replaced by getColumnOriginalValue(String)
    • getClassPK

      @JSON public long getClassPK()
      Specified by:
      getClassPK in interface com.liferay.portal.kernel.model.AttachedModel
      Specified by:
      getClassPK in interface com.liferay.portal.kernel.model.ContactModel
    • setClassPK

      public void setClassPK(long classPK)
      Specified by:
      setClassPK in interface com.liferay.portal.kernel.model.AttachedModel
      Specified by:
      setClassPK in interface com.liferay.portal.kernel.model.ContactModel
    • getOriginalClassPK

      @Deprecated public long getOriginalClassPK()
      Deprecated.
      As of Athanasius (7.3.x), replaced by getColumnOriginalValue(String)
    • getParentContactId

      @JSON public long getParentContactId()
      Specified by:
      getParentContactId in interface com.liferay.portal.kernel.model.ContactModel
    • setParentContactId

      public void setParentContactId(long parentContactId)
      Specified by:
      setParentContactId in interface com.liferay.portal.kernel.model.ContactModel
    • getEmailAddress

      @JSON public String getEmailAddress()
      Specified by:
      getEmailAddress in interface com.liferay.portal.kernel.model.ContactModel
    • setEmailAddress

      public void setEmailAddress(String emailAddress)
      Specified by:
      setEmailAddress in interface com.liferay.portal.kernel.model.ContactModel
    • getFirstName

      @JSON public String getFirstName()
      Specified by:
      getFirstName in interface com.liferay.portal.kernel.model.ContactModel
    • setFirstName

      public void setFirstName(String firstName)
      Specified by:
      setFirstName in interface com.liferay.portal.kernel.model.ContactModel
    • getMiddleName

      @JSON public String getMiddleName()
      Specified by:
      getMiddleName in interface com.liferay.portal.kernel.model.ContactModel
    • setMiddleName

      public void setMiddleName(String middleName)
      Specified by:
      setMiddleName in interface com.liferay.portal.kernel.model.ContactModel
    • getLastName

      @JSON public String getLastName()
      Specified by:
      getLastName in interface com.liferay.portal.kernel.model.ContactModel
    • setLastName

      public void setLastName(String lastName)
      Specified by:
      setLastName in interface com.liferay.portal.kernel.model.ContactModel
    • getPrefixListTypeId

      @JSON public long getPrefixListTypeId()
      Specified by:
      getPrefixListTypeId in interface com.liferay.portal.kernel.model.ContactModel
    • setPrefixListTypeId

      public void setPrefixListTypeId(long prefixListTypeId)
      Specified by:
      setPrefixListTypeId in interface com.liferay.portal.kernel.model.ContactModel
    • getSuffixListTypeId

      @JSON public long getSuffixListTypeId()
      Specified by:
      getSuffixListTypeId in interface com.liferay.portal.kernel.model.ContactModel
    • setSuffixListTypeId

      public void setSuffixListTypeId(long suffixListTypeId)
      Specified by:
      setSuffixListTypeId in interface com.liferay.portal.kernel.model.ContactModel
    • getMale

      @JSON public boolean getMale()
      Specified by:
      getMale in interface com.liferay.portal.kernel.model.ContactModel
    • isMale

      @JSON public boolean isMale()
      Specified by:
      isMale in interface com.liferay.portal.kernel.model.ContactModel
    • setMale

      public void setMale(boolean male)
      Specified by:
      setMale in interface com.liferay.portal.kernel.model.ContactModel
    • getBirthday

      @JSON public Date getBirthday()
      Specified by:
      getBirthday in interface com.liferay.portal.kernel.model.ContactModel
    • setBirthday

      public void setBirthday(Date birthday)
      Specified by:
      setBirthday in interface com.liferay.portal.kernel.model.ContactModel
    • getSmsSn

      @JSON public String getSmsSn()
      Specified by:
      getSmsSn in interface com.liferay.portal.kernel.model.ContactModel
    • setSmsSn

      public void setSmsSn(String smsSn)
      Specified by:
      setSmsSn in interface com.liferay.portal.kernel.model.ContactModel
    • getFacebookSn

      @JSON public String getFacebookSn()
      Specified by:
      getFacebookSn in interface com.liferay.portal.kernel.model.ContactModel
    • setFacebookSn

      public void setFacebookSn(String facebookSn)
      Specified by:
      setFacebookSn in interface com.liferay.portal.kernel.model.ContactModel
    • getJabberSn

      @JSON public String getJabberSn()
      Specified by:
      getJabberSn in interface com.liferay.portal.kernel.model.ContactModel
    • setJabberSn

      public void setJabberSn(String jabberSn)
      Specified by:
      setJabberSn in interface com.liferay.portal.kernel.model.ContactModel
    • getSkypeSn

      @JSON public String getSkypeSn()
      Specified by:
      getSkypeSn in interface com.liferay.portal.kernel.model.ContactModel
    • setSkypeSn

      public void setSkypeSn(String skypeSn)
      Specified by:
      setSkypeSn in interface com.liferay.portal.kernel.model.ContactModel
    • getTwitterSn

      @JSON public String getTwitterSn()
      Specified by:
      getTwitterSn in interface com.liferay.portal.kernel.model.ContactModel
    • setTwitterSn

      public void setTwitterSn(String twitterSn)
      Specified by:
      setTwitterSn in interface com.liferay.portal.kernel.model.ContactModel
    • getEmployeeStatusId

      @JSON public String getEmployeeStatusId()
      Specified by:
      getEmployeeStatusId in interface com.liferay.portal.kernel.model.ContactModel
    • setEmployeeStatusId

      public void setEmployeeStatusId(String employeeStatusId)
      Specified by:
      setEmployeeStatusId in interface com.liferay.portal.kernel.model.ContactModel
    • getEmployeeNumber

      @JSON public String getEmployeeNumber()
      Specified by:
      getEmployeeNumber in interface com.liferay.portal.kernel.model.ContactModel
    • setEmployeeNumber

      public void setEmployeeNumber(String employeeNumber)
      Specified by:
      setEmployeeNumber in interface com.liferay.portal.kernel.model.ContactModel
    • getJobTitle

      @JSON public String getJobTitle()
      Specified by:
      getJobTitle in interface com.liferay.portal.kernel.model.ContactModel
    • setJobTitle

      public void setJobTitle(String jobTitle)
      Specified by:
      setJobTitle in interface com.liferay.portal.kernel.model.ContactModel
    • getJobClass

      @JSON public String getJobClass()
      Specified by:
      getJobClass in interface com.liferay.portal.kernel.model.ContactModel
    • setJobClass

      public void setJobClass(String jobClass)
      Specified by:
      setJobClass in interface com.liferay.portal.kernel.model.ContactModel
    • getHoursOfOperation

      @JSON public String getHoursOfOperation()
      Specified by:
      getHoursOfOperation in interface com.liferay.portal.kernel.model.ContactModel
    • setHoursOfOperation

      public void setHoursOfOperation(String hoursOfOperation)
      Specified by:
      setHoursOfOperation in interface com.liferay.portal.kernel.model.ContactModel
    • getColumnBitmask

      public long getColumnBitmask()
    • getExpandoBridge

      public com.liferay.expando.kernel.model.ExpandoBridge getExpandoBridge()
      Specified by:
      getExpandoBridge in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>
      Specified by:
      getExpandoBridge in interface com.liferay.portal.kernel.model.ClassedModel
      Overrides:
      getExpandoBridge in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Contact>
    • setExpandoBridgeAttributes

      public void setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext)
      Specified by:
      setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>
      Overrides:
      setExpandoBridgeAttributes in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Contact>
    • toEscapedModel

      public com.liferay.portal.kernel.model.Contact toEscapedModel()
      Specified by:
      toEscapedModel in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>
      Overrides:
      toEscapedModel in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Contact>
    • clone

      public Object clone()
      Specified by:
      clone in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>
      Specified by:
      clone in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Contact>
    • cloneWithOriginalValues

      public com.liferay.portal.kernel.model.Contact cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.ContactModel
    • compareTo

      public int compareTo(com.liferay.portal.kernel.model.Contact contact)
      Specified by:
      compareTo in interface Comparable<com.liferay.portal.kernel.model.Contact>
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isEntityCacheEnabled

      @Deprecated public boolean isEntityCacheEnabled()
      Deprecated.
      As of Athanasius (7.3.x), with no direct replacement
      Specified by:
      isEntityCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>
    • isFinderCacheEnabled

      @Deprecated public boolean isFinderCacheEnabled()
      Deprecated.
      As of Athanasius (7.3.x), with no direct replacement
      Specified by:
      isFinderCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>
    • resetOriginalValues

      public void resetOriginalValues()
      Specified by:
      resetOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>
      Overrides:
      resetOriginalValues in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Contact>
    • toCacheModel

      public com.liferay.portal.kernel.model.CacheModel<com.liferay.portal.kernel.model.Contact> toCacheModel()
      Specified by:
      toCacheModel in interface com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.Contact>
      Overrides:
      toCacheModel in class com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.Contact>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getColumnValue

      public <T> T getColumnValue(String columnName)
    • getColumnOriginalValue

      public <T> T getColumnOriginalValue(String columnName)
    • getColumnBitmask

      public static long getColumnBitmask(String columnName)