public class SocialRelationWrapper extends BaseModelWrapper<SocialRelation> implements ModelWrapper<SocialRelation>, SocialRelation
This class is a wrapper for SocialRelation
.
SocialRelation
,
Serialized Formmodel
RELATION_ID_ACCESSOR
Constructor and Description |
---|
SocialRelationWrapper(SocialRelation socialRelation) |
Modifier and Type | Method and Description |
---|---|
long |
getCompanyId()
Returns the company ID of this social relation.
|
long |
getCreateDate()
Returns the create date of this social relation.
|
Map<String,Object> |
getModelAttributes() |
long |
getPrimaryKey()
Returns the primary key of this social relation.
|
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.
|
void |
persist()
NOTE FOR DEVELOPERS:
Never modify or reference this class directly.
|
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 |
setModelAttributes(Map<String,Object> attributes) |
void |
setPrimaryKey(long primaryKey)
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.
|
protected SocialRelationWrapper |
wrap(SocialRelation socialRelation) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
getWrappedModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
getModelClass, getModelClassName
public SocialRelationWrapper(SocialRelation socialRelation)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<SocialRelation>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<SocialRelation>
public long getCompanyId()
getCompanyId
in interface ShardedModel
getCompanyId
in interface SocialRelationModel
public long getCreateDate()
getCreateDate
in interface SocialRelationModel
public long getPrimaryKey()
getPrimaryKey
in interface SocialRelationModel
public long getRelationId()
getRelationId
in interface SocialRelationModel
public int getType()
getType
in interface SocialRelationModel
public long getUserId1()
getUserId1
in interface SocialRelationModel
public long getUserId2()
getUserId2
in interface SocialRelationModel
public String getUuid()
getUuid
in interface SocialRelationModel
public void persist()
SocialRelation
interface instead.persist
in interface PersistedModel
public void setCompanyId(long companyId)
setCompanyId
in interface ShardedModel
setCompanyId
in interface SocialRelationModel
companyId
- the company ID of this social relationpublic void setCreateDate(long createDate)
setCreateDate
in interface SocialRelationModel
createDate
- the create date of this social relationpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface SocialRelationModel
primaryKey
- the primary key of this social relationpublic void setRelationId(long relationId)
setRelationId
in interface SocialRelationModel
relationId
- the relation ID of this social relationpublic void setType(int type)
setType
in interface SocialRelationModel
type
- the type of this social relationpublic void setUserId1(long userId1)
setUserId1
in interface SocialRelationModel
userId1
- the user id1 of this social relationpublic void setUserId2(long userId2)
setUserId2
in interface SocialRelationModel
userId2
- the user id2 of this social relationpublic void setUuid(String uuid)
setUuid
in interface SocialRelationModel
uuid
- the uuid of this social relationprotected SocialRelationWrapper wrap(SocialRelation socialRelation)
wrap
in class BaseModelWrapper<SocialRelation>