com.liferay.portal.model.impl
Class ContactModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Contact>
      extended by com.liferay.portal.model.impl.ContactModelImpl
All Implemented Interfaces:
com.liferay.portal.model.AuditedModel, com.liferay.portal.model.BaseModel<com.liferay.portal.model.Contact>, com.liferay.portal.model.ClassedModel, com.liferay.portal.model.ContactModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<com.liferay.portal.model.Contact>
Direct Known Subclasses:
ContactBaseImpl

@JSON(strict=true)
public class ContactModelImpl
extends com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Contact>
implements com.liferay.portal.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:
ContactImpl, Contact, ContactModel, Serialized Form
Generated:

Field Summary
static boolean COLUMN_BITMASK_ENABLED
           
static long COMPANYID_COLUMN_BITMASK
           
static java.lang.String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LOCK_EXPIRATION_TIME
           
static java.lang.String SESSION_FACTORY
           
static java.lang.Object[][] TABLE_COLUMNS
           
static java.lang.String TABLE_NAME
           
static java.lang.String TABLE_SQL_CREATE
           
static java.lang.String TABLE_SQL_DROP
           
static java.lang.String TX_MANAGER
           
 
Constructor Summary
ContactModelImpl()
           
 
Method Summary
 java.lang.Object clone()
           
 int compareTo(com.liferay.portal.model.Contact contact)
           
 boolean equals(java.lang.Object obj)
           
 long getAccountId()
           
 java.lang.String getAimSn()
           
 java.util.Date getBirthday()
           
 long getColumnBitmask()
           
 long getCompanyId()
           
 long getContactId()
           
 java.util.Date getCreateDate()
           
 java.lang.String getEmployeeNumber()
           
 java.lang.String getEmployeeStatusId()
           
 com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge()
           
 java.lang.String getFacebookSn()
           
 java.lang.String getFirstName()
           
 java.lang.String getHoursOfOperation()
           
 java.lang.String getIcqSn()
           
 java.lang.String getJabberSn()
           
 java.lang.String getJobClass()
           
 java.lang.String getJobTitle()
           
 java.lang.String getLastName()
           
 boolean getMale()
           
 java.lang.String getMiddleName()
           
 java.lang.Class<?> getModelClass()
           
 java.lang.String getModelClassName()
           
 java.util.Date getModifiedDate()
           
 java.lang.String getMsnSn()
           
 java.lang.String getMySpaceSn()
           
 long getOriginalCompanyId()
           
 long getParentContactId()
           
 int getPrefixId()
           
 long getPrimaryKey()
           
 java.io.Serializable getPrimaryKeyObj()
           
 java.lang.String getSkypeSn()
           
 java.lang.String getSmsSn()
           
 int getSuffixId()
           
 java.lang.String getTwitterSn()
           
 long getUserId()
           
 java.lang.String getUserName()
           
 java.lang.String getUserUuid()
           
 java.lang.String getYmSn()
           
 int hashCode()
           
 boolean isMale()
           
 void resetOriginalValues()
           
 void setAccountId(long accountId)
           
 void setAimSn(java.lang.String aimSn)
           
 void setBirthday(java.util.Date birthday)
           
 void setCompanyId(long companyId)
           
 void setContactId(long contactId)
           
 void setCreateDate(java.util.Date createDate)
           
 void setEmployeeNumber(java.lang.String employeeNumber)
           
 void setEmployeeStatusId(java.lang.String employeeStatusId)
           
 void setExpandoBridgeAttributes(com.liferay.portal.service.ServiceContext serviceContext)
           
 void setFacebookSn(java.lang.String facebookSn)
           
 void setFirstName(java.lang.String firstName)
           
 void setHoursOfOperation(java.lang.String hoursOfOperation)
           
 void setIcqSn(java.lang.String icqSn)
           
 void setJabberSn(java.lang.String jabberSn)
           
 void setJobClass(java.lang.String jobClass)
           
 void setJobTitle(java.lang.String jobTitle)
           
 void setLastName(java.lang.String lastName)
           
 void setMale(boolean male)
           
 void setMiddleName(java.lang.String middleName)
           
 void setModifiedDate(java.util.Date modifiedDate)
           
 void setMsnSn(java.lang.String msnSn)
           
 void setMySpaceSn(java.lang.String mySpaceSn)
           
 void setParentContactId(long parentContactId)
           
 void setPrefixId(int prefixId)
           
 void setPrimaryKey(long primaryKey)
           
 void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
           
 void setSkypeSn(java.lang.String skypeSn)
           
 void setSmsSn(java.lang.String smsSn)
           
 void setSuffixId(int suffixId)
           
 void setTwitterSn(java.lang.String twitterSn)
           
 void setUserId(long userId)
           
 void setUserName(java.lang.String userName)
           
 void setUserUuid(java.lang.String userUuid)
           
 void setYmSn(java.lang.String ymSn)
           
 com.liferay.portal.model.CacheModel<com.liferay.portal.model.Contact> toCacheModel()
           
 com.liferay.portal.model.Contact toEscapedModel()
           
static com.liferay.portal.model.Contact toModel(com.liferay.portal.model.ContactSoap soapModel)
          Converts the soap model instance into a normal model instance.
static java.util.List<com.liferay.portal.model.Contact> toModels(com.liferay.portal.model.ContactSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 java.lang.String toString()
           
 java.lang.String toXmlString()
           
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.ContactModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 

Field Detail

TABLE_NAME

public static final java.lang.String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final java.lang.Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final java.lang.String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final java.lang.String TABLE_SQL_DROP
See Also:
Constant Field Values

DATA_SOURCE

public static final java.lang.String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final java.lang.String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final java.lang.String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

COMPANYID_COLUMN_BITMASK

public static long COMPANYID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

ContactModelImpl

public ContactModelImpl()
Method Detail

toModel

public static com.liferay.portal.model.Contact toModel(com.liferay.portal.model.ContactSoap soapModel)
Converts the soap model instance into a normal model instance.

Parameters:
soapModel - the soap model instance to convert
Returns:
the normal model instance

toModels

public static java.util.List<com.liferay.portal.model.Contact> toModels(com.liferay.portal.model.ContactSoap[] soapModels)
Converts the soap model instances into normal model instances.

Parameters:
soapModels - the soap model instances to convert
Returns:
the normal model instances

getPrimaryKey

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

setPrimaryKey

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

getPrimaryKeyObj

public java.io.Serializable getPrimaryKeyObj()
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Contact>
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.model.ClassedModel
Specified by:
getPrimaryKeyObj in interface com.liferay.portal.model.ContactModel

setPrimaryKeyObj

public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Contact>
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.model.ClassedModel
Specified by:
setPrimaryKeyObj in interface com.liferay.portal.model.ContactModel

getModelClass

public java.lang.Class<?> getModelClass()
Specified by:
getModelClass in interface com.liferay.portal.model.ClassedModel

getModelClassName

public java.lang.String getModelClassName()
Specified by:
getModelClassName in interface com.liferay.portal.model.ClassedModel

getContactId

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

setContactId

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

getCompanyId

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

setCompanyId

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

getOriginalCompanyId

public long getOriginalCompanyId()

getUserId

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

setUserId

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

getUserUuid

public java.lang.String getUserUuid()
                             throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getUserUuid in interface com.liferay.portal.model.AuditedModel
Specified by:
getUserUuid in interface com.liferay.portal.model.ContactModel
Throws:
com.liferay.portal.kernel.exception.SystemException

setUserUuid

public void setUserUuid(java.lang.String userUuid)
Specified by:
setUserUuid in interface com.liferay.portal.model.AuditedModel
Specified by:
setUserUuid in interface com.liferay.portal.model.ContactModel

getUserName

@JSON
public java.lang.String getUserName()
Specified by:
getUserName in interface com.liferay.portal.model.AuditedModel
Specified by:
getUserName in interface com.liferay.portal.model.ContactModel

setUserName

public void setUserName(java.lang.String userName)
Specified by:
setUserName in interface com.liferay.portal.model.AuditedModel
Specified by:
setUserName in interface com.liferay.portal.model.ContactModel

getCreateDate

@JSON
public java.util.Date getCreateDate()
Specified by:
getCreateDate in interface com.liferay.portal.model.AuditedModel
Specified by:
getCreateDate in interface com.liferay.portal.model.ContactModel

setCreateDate

public void setCreateDate(java.util.Date createDate)
Specified by:
setCreateDate in interface com.liferay.portal.model.AuditedModel
Specified by:
setCreateDate in interface com.liferay.portal.model.ContactModel

getModifiedDate

@JSON
public java.util.Date getModifiedDate()
Specified by:
getModifiedDate in interface com.liferay.portal.model.AuditedModel
Specified by:
getModifiedDate in interface com.liferay.portal.model.ContactModel

setModifiedDate

public void setModifiedDate(java.util.Date modifiedDate)
Specified by:
setModifiedDate in interface com.liferay.portal.model.AuditedModel
Specified by:
setModifiedDate in interface com.liferay.portal.model.ContactModel

getAccountId

@JSON
public long getAccountId()
Specified by:
getAccountId in interface com.liferay.portal.model.ContactModel

setAccountId

public void setAccountId(long accountId)
Specified by:
setAccountId in interface com.liferay.portal.model.ContactModel

getParentContactId

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

setParentContactId

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

getFirstName

@JSON
public java.lang.String getFirstName()
Specified by:
getFirstName in interface com.liferay.portal.model.ContactModel

setFirstName

public void setFirstName(java.lang.String firstName)
Specified by:
setFirstName in interface com.liferay.portal.model.ContactModel

getMiddleName

@JSON
public java.lang.String getMiddleName()
Specified by:
getMiddleName in interface com.liferay.portal.model.ContactModel

setMiddleName

public void setMiddleName(java.lang.String middleName)
Specified by:
setMiddleName in interface com.liferay.portal.model.ContactModel

getLastName

@JSON
public java.lang.String getLastName()
Specified by:
getLastName in interface com.liferay.portal.model.ContactModel

setLastName

public void setLastName(java.lang.String lastName)
Specified by:
setLastName in interface com.liferay.portal.model.ContactModel

getPrefixId

@JSON
public int getPrefixId()
Specified by:
getPrefixId in interface com.liferay.portal.model.ContactModel

setPrefixId

public void setPrefixId(int prefixId)
Specified by:
setPrefixId in interface com.liferay.portal.model.ContactModel

getSuffixId

@JSON
public int getSuffixId()
Specified by:
getSuffixId in interface com.liferay.portal.model.ContactModel

setSuffixId

public void setSuffixId(int suffixId)
Specified by:
setSuffixId in interface com.liferay.portal.model.ContactModel

getMale

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

isMale

public boolean isMale()
Specified by:
isMale in interface com.liferay.portal.model.ContactModel

setMale

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

getBirthday

@JSON
public java.util.Date getBirthday()
Specified by:
getBirthday in interface com.liferay.portal.model.ContactModel

setBirthday

public void setBirthday(java.util.Date birthday)
Specified by:
setBirthday in interface com.liferay.portal.model.ContactModel

getSmsSn

@JSON
public java.lang.String getSmsSn()
Specified by:
getSmsSn in interface com.liferay.portal.model.ContactModel

setSmsSn

public void setSmsSn(java.lang.String smsSn)
Specified by:
setSmsSn in interface com.liferay.portal.model.ContactModel

getAimSn

@JSON
public java.lang.String getAimSn()
Specified by:
getAimSn in interface com.liferay.portal.model.ContactModel

setAimSn

public void setAimSn(java.lang.String aimSn)
Specified by:
setAimSn in interface com.liferay.portal.model.ContactModel

getFacebookSn

@JSON
public java.lang.String getFacebookSn()
Specified by:
getFacebookSn in interface com.liferay.portal.model.ContactModel

setFacebookSn

public void setFacebookSn(java.lang.String facebookSn)
Specified by:
setFacebookSn in interface com.liferay.portal.model.ContactModel

getIcqSn

@JSON
public java.lang.String getIcqSn()
Specified by:
getIcqSn in interface com.liferay.portal.model.ContactModel

setIcqSn

public void setIcqSn(java.lang.String icqSn)
Specified by:
setIcqSn in interface com.liferay.portal.model.ContactModel

getJabberSn

@JSON
public java.lang.String getJabberSn()
Specified by:
getJabberSn in interface com.liferay.portal.model.ContactModel

setJabberSn

public void setJabberSn(java.lang.String jabberSn)
Specified by:
setJabberSn in interface com.liferay.portal.model.ContactModel

getMsnSn

@JSON
public java.lang.String getMsnSn()
Specified by:
getMsnSn in interface com.liferay.portal.model.ContactModel

setMsnSn

public void setMsnSn(java.lang.String msnSn)
Specified by:
setMsnSn in interface com.liferay.portal.model.ContactModel

getMySpaceSn

@JSON
public java.lang.String getMySpaceSn()
Specified by:
getMySpaceSn in interface com.liferay.portal.model.ContactModel

setMySpaceSn

public void setMySpaceSn(java.lang.String mySpaceSn)
Specified by:
setMySpaceSn in interface com.liferay.portal.model.ContactModel

getSkypeSn

@JSON
public java.lang.String getSkypeSn()
Specified by:
getSkypeSn in interface com.liferay.portal.model.ContactModel

setSkypeSn

public void setSkypeSn(java.lang.String skypeSn)
Specified by:
setSkypeSn in interface com.liferay.portal.model.ContactModel

getTwitterSn

@JSON
public java.lang.String getTwitterSn()
Specified by:
getTwitterSn in interface com.liferay.portal.model.ContactModel

setTwitterSn

public void setTwitterSn(java.lang.String twitterSn)
Specified by:
setTwitterSn in interface com.liferay.portal.model.ContactModel

getYmSn

@JSON
public java.lang.String getYmSn()
Specified by:
getYmSn in interface com.liferay.portal.model.ContactModel

setYmSn

public void setYmSn(java.lang.String ymSn)
Specified by:
setYmSn in interface com.liferay.portal.model.ContactModel

getEmployeeStatusId

@JSON
public java.lang.String getEmployeeStatusId()
Specified by:
getEmployeeStatusId in interface com.liferay.portal.model.ContactModel

setEmployeeStatusId

public void setEmployeeStatusId(java.lang.String employeeStatusId)
Specified by:
setEmployeeStatusId in interface com.liferay.portal.model.ContactModel

getEmployeeNumber

@JSON
public java.lang.String getEmployeeNumber()
Specified by:
getEmployeeNumber in interface com.liferay.portal.model.ContactModel

setEmployeeNumber

public void setEmployeeNumber(java.lang.String employeeNumber)
Specified by:
setEmployeeNumber in interface com.liferay.portal.model.ContactModel

getJobTitle

@JSON
public java.lang.String getJobTitle()
Specified by:
getJobTitle in interface com.liferay.portal.model.ContactModel

setJobTitle

public void setJobTitle(java.lang.String jobTitle)
Specified by:
setJobTitle in interface com.liferay.portal.model.ContactModel

getJobClass

@JSON
public java.lang.String getJobClass()
Specified by:
getJobClass in interface com.liferay.portal.model.ContactModel

setJobClass

public void setJobClass(java.lang.String jobClass)
Specified by:
setJobClass in interface com.liferay.portal.model.ContactModel

getHoursOfOperation

@JSON
public java.lang.String getHoursOfOperation()
Specified by:
getHoursOfOperation in interface com.liferay.portal.model.ContactModel

setHoursOfOperation

public void setHoursOfOperation(java.lang.String hoursOfOperation)
Specified by:
setHoursOfOperation in interface com.liferay.portal.model.ContactModel

getColumnBitmask

public long getColumnBitmask()

toEscapedModel

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

getExpandoBridge

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

setExpandoBridgeAttributes

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

clone

public java.lang.Object clone()
Specified by:
clone in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Contact>
Specified by:
clone in interface com.liferay.portal.model.ContactModel
Specified by:
clone in class com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Contact>

compareTo

public int compareTo(com.liferay.portal.model.Contact contact)
Specified by:
compareTo in interface com.liferay.portal.model.ContactModel
Specified by:
compareTo in interface java.lang.Comparable<com.liferay.portal.model.Contact>

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface com.liferay.portal.model.ContactModel
Overrides:
hashCode in class java.lang.Object

resetOriginalValues

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

toCacheModel

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

toString

public java.lang.String toString()
Specified by:
toString in interface com.liferay.portal.model.ContactModel
Overrides:
toString in class java.lang.Object

toXmlString

public java.lang.String toXmlString()
Specified by:
toXmlString in interface com.liferay.portal.model.BaseModel<com.liferay.portal.model.Contact>
Specified by:
toXmlString in interface com.liferay.portal.model.ContactModel