|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.social.model.SocialRelationWrapper
public class SocialRelationWrapper
This class is a wrapper for SocialRelation.
SocialRelation,
Serialized Form| Constructor Summary | |
|---|---|
SocialRelationWrapper(SocialRelation socialRelation)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(SocialRelation socialRelation)
|
long |
getCompanyId()
Gets the company id of this social relation. |
long |
getCreateDate()
Gets the create date of this social relation. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
long |
getPrimaryKey()
Gets the primary key of this social relation. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
long |
getRelationId()
Gets the relation id of this social relation. |
int |
getType()
Gets the type of this social relation. |
long |
getUserId1()
Gets the user id1 of this social relation. |
long |
getUserId2()
Gets the user id2 of this social relation. |
String |
getUuid()
Gets the uuid of this social relation. |
SocialRelation |
getWrappedSocialRelation()
|
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setCompanyId(long companyId)
Sets the company id of this social relation. |
void |
setCreateDate(long createDate)
Sets the create date of this social relation. |
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long pk)
Sets the primary key of this social relation |
void |
setRelationId(long relationId)
Sets the relation id of this social relation. |
void |
setType(int type)
Sets the type of this social relation. |
void |
setUserId1(long userId1)
Sets the user id1 of this social relation. |
void |
setUserId2(long userId2)
Sets the user id2 of this social relation. |
void |
setUuid(String uuid)
Sets the uuid of this social relation. |
SocialRelation |
toEscapedModel()
Gets a copy of this social relation as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SocialRelationWrapper(SocialRelation socialRelation)
| Method Detail |
|---|
public long getPrimaryKey()
SocialRelationModel
getPrimaryKey in interface SocialRelationModelpublic void setPrimaryKey(long pk)
SocialRelationModel
setPrimaryKey in interface SocialRelationModelpk - the primary key of this social relationpublic String getUuid()
SocialRelationModel
getUuid in interface SocialRelationModelpublic void setUuid(String uuid)
SocialRelationModel
setUuid in interface SocialRelationModeluuid - the uuid of this social relationpublic long getRelationId()
SocialRelationModel
getRelationId in interface SocialRelationModelpublic void setRelationId(long relationId)
SocialRelationModel
setRelationId in interface SocialRelationModelrelationId - the relation id of this social relationpublic long getCompanyId()
SocialRelationModel
getCompanyId in interface SocialRelationModelpublic void setCompanyId(long companyId)
SocialRelationModel
setCompanyId in interface SocialRelationModelcompanyId - the company id of this social relationpublic long getCreateDate()
SocialRelationModel
getCreateDate in interface SocialRelationModelpublic void setCreateDate(long createDate)
SocialRelationModel
setCreateDate in interface SocialRelationModelcreateDate - the create date of this social relationpublic long getUserId1()
SocialRelationModel
getUserId1 in interface SocialRelationModelpublic void setUserId1(long userId1)
SocialRelationModel
setUserId1 in interface SocialRelationModeluserId1 - the user id1 of this social relationpublic long getUserId2()
SocialRelationModel
getUserId2 in interface SocialRelationModelpublic void setUserId2(long userId2)
SocialRelationModel
setUserId2 in interface SocialRelationModeluserId2 - the user id2 of this social relationpublic int getType()
SocialRelationModel
getType in interface SocialRelationModelpublic void setType(int type)
SocialRelationModel
setType in interface SocialRelationModeltype - the type of this social relationpublic SocialRelation toEscapedModel()
SocialRelationModelAutoEscapeBeanHandler.
toEscapedModel in interface SocialRelationModelAutoEscapeBeanHandlerpublic boolean isNew()
BaseModel
isNew in interface BaseModel<SocialRelation>isNew in interface SocialRelationModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<SocialRelation>setNew in interface SocialRelationModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel in interface BaseModel<SocialRelation>isCachedModel in interface SocialRelationModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<SocialRelation>setCachedModel in interface SocialRelationModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModel
isEscapedModel in interface BaseModel<SocialRelation>isEscapedModel in interface SocialRelationModeltrue if this model instance is escaped;
false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel method. For example,
UserModel.toEscapedModel().
setEscapedModel in interface BaseModel<SocialRelation>setEscapedModel in interface SocialRelationModelescapedModel - whether this model instance is escapedAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<SocialRelation>getPrimaryKeyObj in interface SocialRelationModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<SocialRelation>getExpandoBridge in interface SocialRelationModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<SocialRelation>setExpandoBridgeAttributes in interface SocialRelationModelserviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<SocialRelation>clone in interface SocialRelationModelclone in class Objectpublic int compareTo(SocialRelation socialRelation)
compareTo in interface SocialRelationModelcompareTo in interface Comparable<SocialRelation>public int hashCode()
hashCode in interface SocialRelationModelhashCode in class Objectpublic String toString()
toString in interface SocialRelationModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<SocialRelation>toXmlString in interface SocialRelationModelpublic SocialRelation getWrappedSocialRelation()
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||