|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.impl.BaseModelImpl<Phone> com.liferay.portal.model.impl.PhoneModelImpl
@JSON(strict=true) public class PhoneModelImpl
The base model implementation for the Phone service. Represents a row in the "Phone" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface PhoneModel
exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in PhoneImpl
.
PhoneImpl
,
Phone
,
PhoneModel
,
Serialized FormField Summary | |
---|---|
static long |
CLASSNAMEID_COLUMN_BITMASK
|
static long |
CLASSPK_COLUMN_BITMASK
|
static boolean |
COLUMN_BITMASK_ENABLED
|
static long |
COMPANYID_COLUMN_BITMASK
|
static String |
DATA_SOURCE
|
static boolean |
ENTITY_CACHE_ENABLED
|
static boolean |
FINDER_CACHE_ENABLED
|
static long |
LOCK_EXPIRATION_TIME
|
static String |
ORDER_BY_JPQL
|
static String |
ORDER_BY_SQL
|
static long |
PRIMARY_COLUMN_BITMASK
|
static String |
SESSION_FACTORY
|
static Object[][] |
TABLE_COLUMNS
|
static String |
TABLE_NAME
|
static String |
TABLE_SQL_CREATE
|
static String |
TABLE_SQL_DROP
|
static String |
TX_MANAGER
|
static long |
USERID_COLUMN_BITMASK
|
Constructor Summary | |
---|---|
PhoneModelImpl()
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(Phone phone)
|
boolean |
equals(Object obj)
|
String |
getClassName()
Returns the fully qualified class name of this phone. |
long |
getClassNameId()
Returns the class name ID of this phone. |
long |
getClassPK()
Returns the class p k of this phone. |
long |
getColumnBitmask()
|
long |
getCompanyId()
Returns the company ID of this phone. |
Date |
getCreateDate()
Returns the create date of this phone. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
String |
getExtension()
Returns the extension of this phone. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date of this phone. |
String |
getNumber()
Returns the number of this phone. |
long |
getOriginalClassNameId()
|
long |
getOriginalClassPK()
|
long |
getOriginalCompanyId()
|
boolean |
getOriginalPrimary()
|
long |
getOriginalUserId()
|
long |
getPhoneId()
Returns the phone ID of this phone. |
boolean |
getPrimary()
Returns the primary of this phone. |
long |
getPrimaryKey()
Returns the primary key of this phone. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
int |
getTypeId()
Returns the type ID of this phone. |
long |
getUserId()
Returns the user ID of this phone. |
String |
getUserName()
Returns the user name of this phone. |
String |
getUserUuid()
Returns the user uuid of this phone. |
int |
hashCode()
|
boolean |
isPrimary()
Returns true if this phone is primary. |
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setClassName(String className)
|
void |
setClassNameId(long classNameId)
Sets the class name ID of this phone. |
void |
setClassPK(long classPK)
Sets the class p k of this phone. |
void |
setCompanyId(long companyId)
Sets the company ID of this phone. |
void |
setCreateDate(Date createDate)
Sets the create date of this phone. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setExtension(String extension)
Sets the extension of this phone. |
void |
setModelAttributes(Map<String,Object> attributes)
|
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this phone. |
void |
setNumber(String number)
Sets the number of this phone. |
void |
setPhoneId(long phoneId)
Sets the phone ID of this phone. |
void |
setPrimary(boolean primary)
Sets whether this phone is primary. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this phone. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setTypeId(int typeId)
Sets the type ID of this phone. |
void |
setUserId(long userId)
Sets the user ID of this phone. |
void |
setUserName(String userName)
Sets the user name of this phone. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this phone. |
CacheModel<Phone> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
Phone |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
static Phone |
toModel(PhoneSoap soapModel)
Converts the soap model instance into a normal model instance. |
static List<Phone> |
toModels(PhoneSoap[] soapModels)
Converts the soap model instances into normal model instances. |
String |
toString()
|
Phone |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
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.PhoneModel |
---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setNew |
Field Detail |
---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
public static final String ORDER_BY_JPQL
public static final String ORDER_BY_SQL
public static final String DATA_SOURCE
public static final String SESSION_FACTORY
public static final String TX_MANAGER
public static final boolean ENTITY_CACHE_ENABLED
public static final boolean FINDER_CACHE_ENABLED
public static final boolean COLUMN_BITMASK_ENABLED
public static long CLASSNAMEID_COLUMN_BITMASK
public static long CLASSPK_COLUMN_BITMASK
public static long COMPANYID_COLUMN_BITMASK
public static long PRIMARY_COLUMN_BITMASK
public static long USERID_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
Constructor Detail |
---|
public PhoneModelImpl()
Method Detail |
---|
public static Phone toModel(PhoneSoap soapModel)
soapModel
- the soap model instance to convert
public static List<Phone> toModels(PhoneSoap[] soapModels)
soapModels
- the soap model instances to convert
public long getPrimaryKey()
PhoneModel
getPrimaryKey
in interface PhoneModel
public void setPrimaryKey(long primaryKey)
PhoneModel
setPrimaryKey
in interface PhoneModel
primaryKey
- the primary key of this phonepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Phone>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface PhoneModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<Phone>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface PhoneModel
primaryKeyObj
- the primary key of this model instancepublic Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Phone>
getModelAttributes
in class BaseModelImpl<Phone>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Phone>
setModelAttributes
in class BaseModelImpl<Phone>
@JSON public long getPhoneId()
PhoneModel
getPhoneId
in interface PhoneModel
public void setPhoneId(long phoneId)
PhoneModel
setPhoneId
in interface PhoneModel
phoneId
- the phone ID of this phone@JSON public long getCompanyId()
PhoneModel
getCompanyId
in interface AuditedModel
getCompanyId
in interface PhoneModel
public void setCompanyId(long companyId)
PhoneModel
setCompanyId
in interface AuditedModel
setCompanyId
in interface PhoneModel
companyId
- the company ID of this phonepublic long getOriginalCompanyId()
@JSON public long getUserId()
PhoneModel
getUserId
in interface AuditedModel
getUserId
in interface PhoneModel
public void setUserId(long userId)
PhoneModel
setUserId
in interface AuditedModel
setUserId
in interface PhoneModel
userId
- the user ID of this phonepublic String getUserUuid() throws SystemException
PhoneModel
getUserUuid
in interface AuditedModel
getUserUuid
in interface PhoneModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
PhoneModel
setUserUuid
in interface AuditedModel
setUserUuid
in interface PhoneModel
userUuid
- the user uuid of this phonepublic long getOriginalUserId()
@JSON public String getUserName()
PhoneModel
getUserName
in interface AuditedModel
getUserName
in interface PhoneModel
public void setUserName(String userName)
PhoneModel
setUserName
in interface AuditedModel
setUserName
in interface PhoneModel
userName
- the user name of this phone@JSON public Date getCreateDate()
PhoneModel
getCreateDate
in interface AuditedModel
getCreateDate
in interface PhoneModel
public void setCreateDate(Date createDate)
PhoneModel
setCreateDate
in interface AuditedModel
setCreateDate
in interface PhoneModel
createDate
- the create date of this phone@JSON public Date getModifiedDate()
PhoneModel
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface PhoneModel
public void setModifiedDate(Date modifiedDate)
PhoneModel
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface PhoneModel
modifiedDate
- the modified date of this phonepublic String getClassName()
PhoneModel
getClassName
in interface AttachedModel
getClassName
in interface PhoneModel
public void setClassName(String className)
setClassName
in interface PhoneModel
@JSON public long getClassNameId()
PhoneModel
getClassNameId
in interface AttachedModel
getClassNameId
in interface PhoneModel
public void setClassNameId(long classNameId)
PhoneModel
setClassNameId
in interface AttachedModel
setClassNameId
in interface PhoneModel
classNameId
- the class name ID of this phonepublic long getOriginalClassNameId()
@JSON public long getClassPK()
PhoneModel
getClassPK
in interface AttachedModel
getClassPK
in interface PhoneModel
public void setClassPK(long classPK)
PhoneModel
setClassPK
in interface AttachedModel
setClassPK
in interface PhoneModel
classPK
- the class p k of this phonepublic long getOriginalClassPK()
@JSON public String getNumber()
PhoneModel
getNumber
in interface PhoneModel
public void setNumber(String number)
PhoneModel
setNumber
in interface PhoneModel
number
- the number of this phone@JSON public String getExtension()
PhoneModel
getExtension
in interface PhoneModel
public void setExtension(String extension)
PhoneModel
setExtension
in interface PhoneModel
extension
- the extension of this phone@JSON public int getTypeId()
PhoneModel
getTypeId
in interface PhoneModel
public void setTypeId(int typeId)
PhoneModel
setTypeId
in interface PhoneModel
typeId
- the type ID of this phone@JSON public boolean getPrimary()
PhoneModel
getPrimary
in interface PhoneModel
public boolean isPrimary()
PhoneModel
true
if this phone is primary.
isPrimary
in interface PhoneModel
true
if this phone is primary; false
otherwisepublic void setPrimary(boolean primary)
PhoneModel
setPrimary
in interface PhoneModel
primary
- the primary of this phonepublic boolean getOriginalPrimary()
public long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Phone>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface PhoneModel
getExpandoBridge
in class BaseModelImpl<Phone>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Phone>
setExpandoBridgeAttributes
in interface PhoneModel
setExpandoBridgeAttributes
in class BaseModelImpl<Phone>
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public Phone toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<Phone>
toEscapedModel
in interface PhoneModel
toEscapedModel
in class BaseModelImpl<Phone>
AutoEscapeBeanHandler
public Phone toUnescapedModel()
toUnescapedModel
in interface BaseModel<Phone>
toUnescapedModel
in interface PhoneModel
toUnescapedModel
in class BaseModelImpl<Phone>
public Object clone()
BaseModel
clone
in interface BaseModel<Phone>
clone
in interface PhoneModel
clone
in class BaseModelImpl<Phone>
public int compareTo(Phone phone)
compareTo
in interface PhoneModel
compareTo
in interface Comparable<Phone>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in interface PhoneModel
hashCode
in class Object
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Phone>
resetOriginalValues
in class BaseModelImpl<Phone>
public CacheModel<Phone> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<Phone>
toCacheModel
in interface PhoneModel
toCacheModel
in class BaseModelImpl<Phone>
public String toString()
toString
in interface PhoneModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Phone>
toXmlString
in interface PhoneModel
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |