@ProviderType public class PhoneWrapper extends Object implements Phone, ModelWrapper<Phone>
This class is a wrapper for Phone
.
Phone
,
Serialized FormPHONE_ID_ACCESSOR
Constructor and Description |
---|
PhoneWrapper(Phone phone) |
Modifier and Type | Method and Description |
---|---|
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 pk 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.
|
long |
getMvccVersion()
Returns the mvcc version 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() |
long |
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() |
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 |
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 pk 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 |
setMvccVersion(long mvccVersion)
Sets the mvcc version 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(long 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.
|
public PhoneWrapper(Phone phone)
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<Phone>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<Phone>
public Object clone()
BaseModel
clone
in interface BaseModel<Phone>
clone
in interface PhoneModel
clone
in interface StagedModel
clone
in class Object
public int compareTo(Phone phone)
compareTo
in interface PhoneModel
compareTo
in interface Comparable<Phone>
public String getClassName()
getClassName
in interface PhoneModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface PhoneModel
getClassNameId
in interface TypedModel
public long getClassPK()
getClassPK
in interface AttachedModel
getClassPK
in interface PhoneModel
public long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface PhoneModel
getCompanyId
in interface ShardedModel
getCompanyId
in interface StagedModel
public Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface PhoneModel
getCreateDate
in interface StagedModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Phone>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface PhoneModel
public String getExtension()
getExtension
in interface PhoneModel
public Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface PhoneModel
getModifiedDate
in interface StagedModel
public long getMvccVersion()
getMvccVersion
in interface MVCCModel
getMvccVersion
in interface PhoneModel
public String getNumber()
getNumber
in interface PhoneModel
public long getPhoneId()
getPhoneId
in interface PhoneModel
public boolean getPrimary()
getPrimary
in interface PhoneModel
public long getPrimaryKey()
getPrimaryKey
in interface PhoneModel
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<Phone>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface PhoneModel
public ListType getType() throws PortalException
getType
in interface Phone
PortalException
public long getTypeId()
getTypeId
in interface PhoneModel
public long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface PhoneModel
public String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface PhoneModel
public String getUserUuid()
getUserUuid
in interface AuditedModel
getUserUuid
in interface PhoneModel
public String getUuid()
getUuid
in interface PhoneModel
getUuid
in interface StagedModel
public int hashCode()
hashCode
in interface PhoneModel
hashCode
in class Object
public boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.isCachedModel
in interface BaseModel<Phone>
isCachedModel
in interface PhoneModel
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<Phone>
isEscapedModel
in interface PhoneModel
true
if this model instance is escaped;
false
otherwisepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.isNew
in interface BaseModel<Phone>
isNew
in interface PhoneModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic boolean isPrimary()
true
if this phone is primary.isPrimary
in interface PhoneModel
true
if this phone is primary; false
otherwisepublic void persist()
PersistedModel
persist
in interface PersistedModel
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<Phone>
setCachedModel
in interface PhoneModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public void setClassName(String className)
setClassName
in interface PhoneModel
public void setClassNameId(long classNameId)
setClassNameId
in interface PhoneModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this phonepublic void setClassPK(long classPK)
setClassPK
in interface AttachedModel
setClassPK
in interface PhoneModel
classPK
- the class pk of this phonepublic void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface PhoneModel
setCompanyId
in interface ShardedModel
setCompanyId
in interface StagedModel
companyId
- the company ID of this phonepublic void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface PhoneModel
setCreateDate
in interface StagedModel
createDate
- the create date of this phonepublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<Phone>
setExpandoBridgeAttributes
in interface PhoneModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<Phone>
setExpandoBridgeAttributes
in interface PhoneModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Phone>
setExpandoBridgeAttributes
in interface PhoneModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes()
public void setExtension(String extension)
setExtension
in interface PhoneModel
extension
- the extension of this phonepublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface PhoneModel
setModifiedDate
in interface StagedModel
modifiedDate
- the modified date of this phonepublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface PhoneModel
mvccVersion
- the mvcc version of this phonepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<Phone>
setNew
in interface PhoneModel
n
- whether this model instance does not yet exist in the databasepublic void setNumber(String number)
setNumber
in interface PhoneModel
number
- the number of this phonepublic void setPhoneId(long phoneId)
setPhoneId
in interface PhoneModel
phoneId
- the phone ID of this phonepublic void setPrimary(boolean primary)
setPrimary
in interface PhoneModel
primary
- the primary of this phonepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface PhoneModel
primaryKey
- the primary key of this phonepublic 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 void setTypeId(long typeId)
setTypeId
in interface PhoneModel
typeId
- the type ID of this phonepublic void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface PhoneModel
userId
- the user ID of this phonepublic void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface PhoneModel
userName
- the user name of this phonepublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface PhoneModel
userUuid
- the user uuid of this phonepublic void setUuid(String uuid)
setUuid
in interface PhoneModel
setUuid
in interface StagedModel
uuid
- the uuid of this phonepublic CacheModel<Phone> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<Phone>
toCacheModel
in interface PhoneModel
public Phone toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.toEscapedModel
in interface BaseModel<Phone>
toEscapedModel
in interface PhoneModel
AutoEscapeBeanHandler
public String toString()
toString
in interface PhoneModel
toString
in class Object
public Phone toUnescapedModel()
toUnescapedModel
in interface BaseModel<Phone>
toUnescapedModel
in interface PhoneModel
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Phone>
toXmlString
in interface PhoneModel
public boolean equals(Object obj)
equals
in class Object
public StagedModelType getStagedModelType()
getStagedModelType
in interface StagedModel
public Phone getWrappedModel()
getWrappedModel
in interface ModelWrapper<Phone>
public boolean isEntityCacheEnabled()
BaseModel
true
if this model's entity cache is enabled.isEntityCacheEnabled
in interface BaseModel<Phone>
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<Phone>
true
if this model's finder cache is enabled;
false
otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Phone>