|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.social.model.SocialRelationWrapper
@ProviderType public class SocialRelationWrapper
This class is a wrapper for SocialRelation.
SocialRelation,
Serialized Form| Field Summary |
|---|
| Fields inherited from interface com.liferay.portlet.social.model.SocialRelation |
|---|
RELATION_ID_ACCESSOR |
| Constructor Summary | |
|---|---|
SocialRelationWrapper(SocialRelation socialRelation)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(SocialRelation socialRelation)
|
boolean |
equals(Object obj)
|
long |
getCompanyId()
Returns the company ID of this social relation. |
long |
getCreateDate()
Returns the create date of this social relation. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
long |
getPrimaryKey()
Returns the primary key of this social relation. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
long |
getRelationId()
Returns the relation ID of this social relation. |
int |
getType()
Returns the type of this social relation. |
long |
getUserId1()
Returns the user id1 of this social relation. |
long |
getUserId2()
Returns the user id2 of this social relation. |
String |
getUuid()
Returns the uuid of this social relation. |
SocialRelation |
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. |
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 |
setCompanyId(long companyId)
Sets the company ID of this social relation. |
void |
setCreateDate(long createDate)
Sets the create date of this social relation. |
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 |
setModelAttributes(Map<String,Object> attributes)
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this social relation. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
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. |
CacheModel<SocialRelation> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
SocialRelation |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
SocialRelation |
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 SocialRelationWrapper(SocialRelation socialRelation)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<SocialRelation>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<SocialRelation>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 long getCompanyId()
getCompanyId in interface ShardedModelgetCompanyId in interface SocialRelationModelpublic long getCreateDate()
getCreateDate in interface SocialRelationModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<SocialRelation>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface SocialRelationModelpublic long getPrimaryKey()
getPrimaryKey in interface SocialRelationModelpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<SocialRelation>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface SocialRelationModelpublic long getRelationId()
getRelationId in interface SocialRelationModelpublic int getType()
getType in interface SocialRelationModelpublic long getUserId1()
getUserId1 in interface SocialRelationModelpublic long getUserId2()
getUserId2 in interface SocialRelationModelpublic String getUuid()
getUuid in interface SocialRelationModelpublic int hashCode()
hashCode in interface SocialRelationModelhashCode in class Objectpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<SocialRelation>isCachedModel in interface SocialRelationModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<SocialRelation>isEscapedModel in interface SocialRelationModeltrue if this model instance is escaped;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<SocialRelation>isNew in interface SocialRelationModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void persist()
PersistedModel
persist in interface PersistedModelpublic void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<SocialRelation>setCachedModel in interface SocialRelationModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setCompanyId(long companyId)
setCompanyId in interface ShardedModelsetCompanyId in interface SocialRelationModelcompanyId - the company ID of this social relationpublic void setCreateDate(long createDate)
setCreateDate in interface SocialRelationModelcreateDate - the create date of this social relationpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<SocialRelation>setExpandoBridgeAttributes in interface SocialRelationModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<SocialRelation>setExpandoBridgeAttributes in interface SocialRelationModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<SocialRelation>setExpandoBridgeAttributes in interface SocialRelationModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public 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 void setPrimaryKey(long primaryKey)
setPrimaryKey in interface SocialRelationModelprimaryKey - the primary key of this social relationpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<SocialRelation>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface SocialRelationModelprimaryKeyObj - the primary key of this model instancepublic void setRelationId(long relationId)
setRelationId in interface SocialRelationModelrelationId - the relation ID of this social relationpublic void setType(int type)
setType in interface SocialRelationModeltype - the type of this social relationpublic void setUserId1(long userId1)
setUserId1 in interface SocialRelationModeluserId1 - the user id1 of this social relationpublic void setUserId2(long userId2)
setUserId2 in interface SocialRelationModeluserId2 - the user id2 of this social relationpublic void setUuid(String uuid)
setUuid in interface SocialRelationModeluuid - the uuid of this social relationpublic CacheModel<SocialRelation> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<SocialRelation>toCacheModel in interface SocialRelationModelpublic SocialRelation toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<SocialRelation>toEscapedModel in interface SocialRelationModelAutoEscapeBeanHandlerpublic String toString()
toString in interface SocialRelationModeltoString in class Objectpublic SocialRelation toUnescapedModel()
toUnescapedModel in interface BaseModel<SocialRelation>toUnescapedModel in interface SocialRelationModelpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<SocialRelation>toXmlString in interface SocialRelationModelpublic boolean equals(Object obj)
equals in class Objectpublic SocialRelation getWrappedModel()
getWrappedModel in interface ModelWrapper<SocialRelation>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.
isEntityCacheEnabled in interface BaseModel<SocialRelation>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.
isFinderCacheEnabled in interface BaseModel<SocialRelation>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<SocialRelation>
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||