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 |
---|---|
Map<String,Function<SocialRelation,Object>> |
getAttributeGetterFunctions() |
Map<String,BiConsumer<SocialRelation,Object>> |
getAttributeSetterBiConsumers() |
long |
getCompanyId()
Returns the company ID of this social relation.
|
long |
getCreateDate()
Returns the create date of this social relation.
|
long |
getCtCollectionId()
Returns the ct collection ID of this social relation.
|
Map<String,Object> |
getModelAttributes() |
long |
getMvccVersion()
Returns the mvcc version of this social relation.
|
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()
Updates this model instance in the database or adds it if it does not yet
exist.
|
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 |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this social relation.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this social relation.
|
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 getCtCollectionId()
getCtCollectionId
in interface CTModel<SocialRelation>
getCtCollectionId
in interface SocialRelationModel
public long getMvccVersion()
getMvccVersion
in interface MVCCModel
getMvccVersion
in interface SocialRelationModel
public long getPrimaryKey()
getPrimaryKey
in interface CTModel<SocialRelation>
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()
PersistedModel
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 setCtCollectionId(long ctCollectionId)
setCtCollectionId
in interface CTModel<SocialRelation>
setCtCollectionId
in interface SocialRelationModel
ctCollectionId
- the ct collection ID of this social relationpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
setMvccVersion
in interface SocialRelationModel
mvccVersion
- the mvcc version of this social relationpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CTModel<SocialRelation>
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 relationpublic Map<String,Function<SocialRelation,Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions
in interface BaseModel<SocialRelation>
public Map<String,BiConsumer<SocialRelation,Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers
in interface BaseModel<SocialRelation>
protected SocialRelationWrapper wrap(SocialRelation socialRelation)
wrap
in class BaseModelWrapper<SocialRelation>