|
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.PhoneWrapper
public class PhoneWrapper
This class is a wrapper for Phone
.
Phone
,
Serialized FormConstructor 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. |
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. |
Phone |
getWrappedModel()
|
Phone |
getWrappedPhone()
Deprecated. Renamed to 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(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. |
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 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 long getPrimaryKey()
getPrimaryKey
in interface PhoneModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface PhoneModel
primaryKey
- the primary key of this phonepublic long getPhoneId()
getPhoneId
in interface PhoneModel
public void setPhoneId(long phoneId)
setPhoneId
in interface PhoneModel
phoneId
- the phone ID of this phonepublic long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface PhoneModel
public void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface PhoneModel
companyId
- the company ID of this phonepublic long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface PhoneModel
public void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface PhoneModel
userId
- the user ID of this phonepublic String getUserUuid() throws SystemException
getUserUuid
in interface AuditedModel
getUserUuid
in interface PhoneModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface PhoneModel
userUuid
- the user uuid of this phonepublic String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface PhoneModel
public void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface PhoneModel
userName
- the user name of this phonepublic Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface PhoneModel
public void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface PhoneModel
createDate
- the create date of this phonepublic Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface PhoneModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface PhoneModel
modifiedDate
- the modified date of this phonepublic String getClassName()
getClassName
in interface AttachedModel
getClassName
in interface PhoneModel
public void setClassName(String className)
setClassName
in interface PhoneModel
public long getClassNameId()
getClassNameId
in interface AttachedModel
getClassNameId
in interface PhoneModel
public void setClassNameId(long classNameId)
setClassNameId
in interface AttachedModel
setClassNameId
in interface PhoneModel
classNameId
- the class name ID of this phonepublic long getClassPK()
getClassPK
in interface AttachedModel
getClassPK
in interface PhoneModel
public void setClassPK(long classPK)
setClassPK
in interface AttachedModel
setClassPK
in interface PhoneModel
classPK
- the class p k of this phonepublic String getNumber()
getNumber
in interface PhoneModel
public void setNumber(String number)
setNumber
in interface PhoneModel
number
- the number of this phonepublic String getExtension()
getExtension
in interface PhoneModel
public void setExtension(String extension)
setExtension
in interface PhoneModel
extension
- the extension of this phonepublic int getTypeId()
getTypeId
in interface PhoneModel
public void setTypeId(int typeId)
setTypeId
in interface PhoneModel
typeId
- the type ID of this phonepublic boolean getPrimary()
getPrimary
in interface PhoneModel
public boolean isPrimary()
true
if this phone is primary.
isPrimary
in interface PhoneModel
true
if this phone is primary; false
otherwisepublic void setPrimary(boolean primary)
setPrimary
in interface PhoneModel
primary
- the primary of this phonepublic 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 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 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 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 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 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 ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<Phone>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface PhoneModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<Phone>
setExpandoBridgeAttributes
in interface PhoneModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<Phone>
clone
in interface PhoneModel
clone
in class Object
public int compareTo(Phone phone)
compareTo
in interface PhoneModel
compareTo
in interface Comparable<Phone>
public int hashCode()
hashCode
in interface PhoneModel
hashCode
in class Object
public 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 Phone toUnescapedModel()
toUnescapedModel
in interface BaseModel<Phone>
toUnescapedModel
in interface PhoneModel
public String toString()
toString
in interface PhoneModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<Phone>
toXmlString
in interface PhoneModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic ListType getType() throws PortalException, SystemException
getType
in interface Phone
PortalException
SystemException
public boolean equals(Object obj)
equals
in class Object
public Phone getWrappedPhone()
getWrappedModel()
public Phone getWrappedModel()
getWrappedModel
in interface ModelWrapper<Phone>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<Phone>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |