|
Liferay 6.1.2-ce-ga3 | |||||||||
| 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)
|
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()
|
SocialRelation |
getWrappedSocialRelation()
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. |
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(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 long getPrimaryKey()
getPrimaryKey in interface SocialRelationModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface SocialRelationModelprimaryKey - the primary key of this social relationpublic String getUuid()
getUuid in interface SocialRelationModelpublic void setUuid(String uuid)
setUuid in interface SocialRelationModeluuid - the uuid of this social relationpublic long getRelationId()
getRelationId in interface SocialRelationModelpublic void setRelationId(long relationId)
setRelationId in interface SocialRelationModelrelationId - the relation ID of this social relationpublic long getCompanyId()
getCompanyId in interface SocialRelationModelpublic void setCompanyId(long companyId)
setCompanyId in interface SocialRelationModelcompanyId - the company ID of this social relationpublic long getCreateDate()
getCreateDate in interface SocialRelationModelpublic void setCreateDate(long createDate)
setCreateDate in interface SocialRelationModelcreateDate - the create date of this social relationpublic long getUserId1()
getUserId1 in interface SocialRelationModelpublic void setUserId1(long userId1)
setUserId1 in interface SocialRelationModeluserId1 - the user id1 of this social relationpublic long getUserId2()
getUserId2 in interface SocialRelationModelpublic void setUserId2(long userId2)
setUserId2 in interface SocialRelationModeluserId2 - the user id2 of this social relationpublic int getType()
getType in interface SocialRelationModelpublic void setType(int type)
setType in interface SocialRelationModeltype - the type of this social relationpublic 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 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()
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 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()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<SocialRelation>isEscapedModel in interface SocialRelationModeltrue if this model instance is escaped;
false otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<SocialRelation>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface SocialRelationModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<SocialRelation>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface SocialRelationModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<SocialRelation>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface SocialRelationModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<SocialRelation>setExpandoBridgeAttributes in interface SocialRelationModelserviceContext - the service contextServiceContext.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 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 SocialRelation toUnescapedModel()
toUnescapedModel in interface BaseModel<SocialRelation>toUnescapedModel in interface SocialRelationModelpublic String toString()
toString in interface SocialRelationModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<SocialRelation>toXmlString in interface SocialRelationModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurredpublic boolean equals(Object obj)
equals in class Objectpublic SocialRelation getWrappedSocialRelation()
getWrappedModel()
public SocialRelation getWrappedModel()
getWrappedModel in interface ModelWrapper<SocialRelation>public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<SocialRelation>
|
Liferay 6.1.2-ce-ga3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||