|
Liferay 6.2-ce-ga5 | |||||||||
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
@ProviderType 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)
|
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. As of 6.1.0, replaced by 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(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 ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public 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 SocialRelationModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface SocialRelationModel
primaryKey
- the primary key of this social relationpublic String getUuid()
getUuid
in interface SocialRelationModel
public void setUuid(String uuid)
setUuid
in interface SocialRelationModel
uuid
- the uuid of this social relationpublic long getRelationId()
getRelationId
in interface SocialRelationModel
public void setRelationId(long relationId)
setRelationId
in interface SocialRelationModel
relationId
- the relation ID of this social relationpublic long getCompanyId()
getCompanyId
in interface SocialRelationModel
public void setCompanyId(long companyId)
setCompanyId
in interface SocialRelationModel
companyId
- the company ID of this social relationpublic long getCreateDate()
getCreateDate
in interface SocialRelationModel
public void setCreateDate(long createDate)
setCreateDate
in interface SocialRelationModel
createDate
- the create date of this social relationpublic long getUserId1()
getUserId1
in interface SocialRelationModel
public void setUserId1(long userId1)
setUserId1
in interface SocialRelationModel
userId1
- the user id1 of this social relationpublic long getUserId2()
getUserId2
in interface SocialRelationModel
public void setUserId2(long userId2)
setUserId2
in interface SocialRelationModel
userId2
- the user id2 of this social relationpublic int getType()
getType
in interface SocialRelationModel
public void setType(int type)
setType
in interface SocialRelationModel
type
- the type of this social relationpublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
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
true
if this model instance was retrieved from the
entity cache.
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
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<SocialRelation>
isEscapedModel
in interface SocialRelationModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<SocialRelation>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface SocialRelationModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<SocialRelation>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface SocialRelationModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<SocialRelation>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface SocialRelationModel
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<SocialRelation>
setExpandoBridgeAttributes
in interface SocialRelationModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<SocialRelation>
setExpandoBridgeAttributes
in interface SocialRelationModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<SocialRelation>
setExpandoBridgeAttributes
in interface SocialRelationModel
serviceContext
- the service context to be appliedServiceContext.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 CacheModel<SocialRelation> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<SocialRelation>
toCacheModel
in interface SocialRelationModel
public SocialRelation toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<SocialRelation>
toEscapedModel
in interface SocialRelationModel
AutoEscapeBeanHandler
public SocialRelation toUnescapedModel()
toUnescapedModel
in interface BaseModel<SocialRelation>
toUnescapedModel
in interface SocialRelationModel
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 void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic boolean equals(Object obj)
equals
in class Object
public SocialRelation getWrappedSocialRelation()
getWrappedModel()
public SocialRelation getWrappedModel()
getWrappedModel
in interface ModelWrapper<SocialRelation>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<SocialRelation>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |