|
Liferay 6.2.0-ce-b2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.PhoneWrapper
public class PhoneWrapper
This class is a wrapper for Phone.
Phone,
Serialized Form| Constructor Summary | |
|---|---|
PhoneWrapper(Phone phone)
|
|
| 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 |
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 |
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. |
StagedModelType |
getStagedModelType()
|
ListType |
getType()
|
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. |
String |
getUuid()
Returns the uuid of this phone. |
Phone |
getWrappedModel()
|
Phone |
getWrappedPhone()
Deprecated. As of 6.1.0, replaced by getWrappedModel() |
int |
hashCode()
|
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isNew()
Returns true if this model instance does not yet exist in
the database. |
boolean |
isPrimary()
Returns true if this phone is primary. |
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 |
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 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(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 |
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 |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
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. |
void |
setUuid(String uuid)
Sets the 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. |
String |
toString()
|
Phone |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PhoneWrapper(Phone phone)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<Phone>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<Phone>public long getPrimaryKey()
getPrimaryKey in interface PhoneModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface PhoneModelprimaryKey - the primary key of this phonepublic String getUuid()
getUuid in interface PhoneModelgetUuid in interface StagedModelpublic void setUuid(String uuid)
setUuid in interface PhoneModelsetUuid in interface StagedModeluuid - the uuid of this phonepublic long getPhoneId()
getPhoneId in interface PhoneModelpublic void setPhoneId(long phoneId)
setPhoneId in interface PhoneModelphoneId - the phone ID of this phonepublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface PhoneModelgetCompanyId in interface StagedModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface PhoneModelsetCompanyId in interface StagedModelcompanyId - the company ID of this phonepublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface PhoneModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface PhoneModeluserId - the user ID of this phone
public String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface PhoneModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface PhoneModeluserUuid - the user uuid of this phonepublic String getUserName()
getUserName in interface AuditedModelgetUserName in interface PhoneModelpublic void setUserName(String userName)
setUserName in interface AuditedModelsetUserName in interface PhoneModeluserName - the user name of this phonepublic Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface PhoneModelgetCreateDate in interface StagedModelpublic void setCreateDate(Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface PhoneModelsetCreateDate in interface StagedModelcreateDate - the create date of this phonepublic Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface PhoneModelgetModifiedDate in interface StagedModelpublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface PhoneModelsetModifiedDate in interface StagedModelmodifiedDate - the modified date of this phonepublic String getClassName()
getClassName in interface PhoneModelgetClassName in interface TypedModelpublic void setClassName(String className)
setClassName in interface PhoneModelpublic long getClassNameId()
getClassNameId in interface PhoneModelgetClassNameId in interface TypedModelpublic void setClassNameId(long classNameId)
setClassNameId in interface PhoneModelsetClassNameId in interface TypedModelclassNameId - the class name ID of this phonepublic long getClassPK()
getClassPK in interface AttachedModelgetClassPK in interface PhoneModelpublic void setClassPK(long classPK)
setClassPK in interface AttachedModelsetClassPK in interface PhoneModelclassPK - the class p k of this phonepublic String getNumber()
getNumber in interface PhoneModelpublic void setNumber(String number)
setNumber in interface PhoneModelnumber - the number of this phonepublic String getExtension()
getExtension in interface PhoneModelpublic void setExtension(String extension)
setExtension in interface PhoneModelextension - the extension of this phonepublic int getTypeId()
getTypeId in interface PhoneModelpublic void setTypeId(int typeId)
setTypeId in interface PhoneModeltypeId - the type ID of this phonepublic boolean getPrimary()
getPrimary in interface PhoneModelpublic boolean isPrimary()
true if this phone is primary.
isPrimary in interface PhoneModeltrue if this phone is primary; false otherwisepublic void setPrimary(boolean primary)
setPrimary in interface PhoneModelprimary - the primary of this phonepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<Phone>isNew in interface PhoneModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<Phone>setNew in interface PhoneModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<Phone>isCachedModel in interface PhoneModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<Phone>setCachedModel in interface PhoneModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<Phone>isEscapedModel in interface PhoneModeltrue if this model instance is escaped;
false otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Phone>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface PhoneModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<Phone>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface PhoneModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Phone>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface PhoneModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<Phone>setExpandoBridgeAttributes in interface PhoneModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<Phone>setExpandoBridgeAttributes in interface PhoneModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Phone>setExpandoBridgeAttributes in interface PhoneModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<Phone>clone in interface PhoneModelclone in interface StagedModelclone in class Objectpublic int compareTo(Phone phone)
compareTo in interface PhoneModelcompareTo in interface Comparable<Phone>public int hashCode()
hashCode in interface PhoneModelhashCode in class Objectpublic CacheModel<Phone> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<Phone>toCacheModel in interface PhoneModelpublic Phone toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<Phone>toEscapedModel in interface PhoneModelAutoEscapeBeanHandlerpublic Phone toUnescapedModel()
toUnescapedModel in interface BaseModel<Phone>toUnescapedModel in interface PhoneModelpublic String toString()
toString in interface PhoneModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Phone>toXmlString in interface PhoneModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurred
public ListType getType()
throws PortalException,
SystemException
getType in interface PhonePortalException
SystemExceptionpublic boolean equals(Object obj)
equals in class Objectpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic Phone getWrappedPhone()
getWrappedModel()
public Phone getWrappedModel()
getWrappedModel in interface ModelWrapper<Phone>public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<Phone>
|
Liferay 6.2.0-ce-b2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||