|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.social.model.SocialRelationWrapper
public class SocialRelationWrapper
This class is a wrapper for SocialRelation
.
SocialRelation
,
Serialized FormConstructor 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 SocialRelationModel
public void setPrimaryKey(long pk)
SocialRelationModel
setPrimaryKey
in interface SocialRelationModel
pk
- the primary key of this social relationpublic String getUuid()
SocialRelationModel
getUuid
in interface SocialRelationModel
public void setUuid(String uuid)
SocialRelationModel
setUuid
in interface SocialRelationModel
uuid
- the uuid of this social relationpublic long getRelationId()
SocialRelationModel
getRelationId
in interface SocialRelationModel
public void setRelationId(long relationId)
SocialRelationModel
setRelationId
in interface SocialRelationModel
relationId
- the relation id of this social relationpublic long getCompanyId()
SocialRelationModel
getCompanyId
in interface SocialRelationModel
public void setCompanyId(long companyId)
SocialRelationModel
setCompanyId
in interface SocialRelationModel
companyId
- the company id of this social relationpublic long getCreateDate()
SocialRelationModel
getCreateDate
in interface SocialRelationModel
public void setCreateDate(long createDate)
SocialRelationModel
setCreateDate
in interface SocialRelationModel
createDate
- the create date of this social relationpublic long getUserId1()
SocialRelationModel
getUserId1
in interface SocialRelationModel
public void setUserId1(long userId1)
SocialRelationModel
setUserId1
in interface SocialRelationModel
userId1
- the user id1 of this social relationpublic long getUserId2()
SocialRelationModel
getUserId2
in interface SocialRelationModel
public void setUserId2(long userId2)
SocialRelationModel
setUserId2
in interface SocialRelationModel
userId2
- the user id2 of this social relationpublic int getType()
SocialRelationModel
getType
in interface SocialRelationModel
public void setType(int type)
SocialRelationModel
setType
in interface SocialRelationModel
type
- the type of this social relationpublic SocialRelation toEscapedModel()
SocialRelationModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface SocialRelationModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<SocialRelation>
isNew
in interface SocialRelationModel
true
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 SocialRelationModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<SocialRelation>
isCachedModel
in interface SocialRelationModel
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<SocialRelation>
setCachedModel
in interface SocialRelationModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<SocialRelation>
isEscapedModel
in interface SocialRelationModel
true
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 SocialRelationModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<SocialRelation>
getPrimaryKeyObj
in interface SocialRelationModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<SocialRelation>
getExpandoBridge
in interface SocialRelationModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<SocialRelation>
setExpandoBridgeAttributes
in interface SocialRelationModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<SocialRelation>
clone
in interface SocialRelationModel
clone
in class Object
public int compareTo(SocialRelation socialRelation)
compareTo
in interface SocialRelationModel
compareTo
in interface Comparable<SocialRelation>
public int hashCode()
hashCode
in interface SocialRelationModel
hashCode
in class Object
public String toString()
toString
in interface SocialRelationModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<SocialRelation>
toXmlString
in interface SocialRelationModel
public SocialRelation getWrappedSocialRelation()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |