Package com.liferay.social.kernel.model
Class SocialRelationWrapper
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<SocialRelation>
com.liferay.social.kernel.model.SocialRelationWrapper
- All Implemented Interfaces:
BaseModel<SocialRelation>
,CTModel<SocialRelation>
,ClassedModel
,ModelWrapper<SocialRelation>
,MVCCModel
,PersistedModel
,ShardedModel
,SocialRelation
,SocialRelationModel
,Serializable
,Cloneable
,Comparable<SocialRelation>
public class SocialRelationWrapper
extends BaseModelWrapper<SocialRelation>
implements ModelWrapper<SocialRelation>, SocialRelation
This class is a wrapper for SocialRelation
.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
model
Fields inherited from interface com.liferay.social.kernel.model.SocialRelation
RELATION_ID_ACCESSOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the company ID of this social relation.long
Returns the create date of this social relation.long
Returns the ct collection ID of this social relation.long
Returns the mvcc version of this social relation.long
Returns the primary key of this social relation.long
Returns the relation ID of this social relation.int
getType()
Returns the type of this social relation.long
Returns the user id1 of this social relation.long
Returns the user id2 of this social relation.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
Sets the uuid of this social relation.protected SocialRelationWrapper
wrap
(SocialRelation socialRelation) Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
-
Constructor Details
-
SocialRelationWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributes
in interfaceBaseModel<SocialRelation>
-
setModelAttributes
- Specified by:
setModelAttributes
in interfaceBaseModel<SocialRelation>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValues
in interfaceBaseModel<SocialRelation>
- Specified by:
cloneWithOriginalValues
in interfaceSocialRelationModel
-
getCompanyId
public long getCompanyId()Returns the company ID of this social relation.- Specified by:
getCompanyId
in interfaceShardedModel
- Specified by:
getCompanyId
in interfaceSocialRelationModel
- Returns:
- the company ID of this social relation
-
getCreateDate
public long getCreateDate()Returns the create date of this social relation.- Specified by:
getCreateDate
in interfaceSocialRelationModel
- Returns:
- the create date of this social relation
-
getCtCollectionId
public long getCtCollectionId()Returns the ct collection ID of this social relation.- Specified by:
getCtCollectionId
in interfaceCTModel<SocialRelation>
- Specified by:
getCtCollectionId
in interfaceSocialRelationModel
- Returns:
- the ct collection ID of this social relation
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this social relation.- Specified by:
getMvccVersion
in interfaceMVCCModel
- Specified by:
getMvccVersion
in interfaceSocialRelationModel
- Returns:
- the mvcc version of this social relation
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this social relation.- Specified by:
getPrimaryKey
in interfaceCTModel<SocialRelation>
- Specified by:
getPrimaryKey
in interfaceSocialRelationModel
- Returns:
- the primary key of this social relation
-
getRelationId
public long getRelationId()Returns the relation ID of this social relation.- Specified by:
getRelationId
in interfaceSocialRelationModel
- Returns:
- the relation ID of this social relation
-
getType
public int getType()Returns the type of this social relation.- Specified by:
getType
in interfaceSocialRelationModel
- Returns:
- the type of this social relation
-
getUserId1
public long getUserId1()Returns the user id1 of this social relation.- Specified by:
getUserId1
in interfaceSocialRelationModel
- Returns:
- the user id1 of this social relation
-
getUserId2
public long getUserId2()Returns the user id2 of this social relation.- Specified by:
getUserId2
in interfaceSocialRelationModel
- Returns:
- the user id2 of this social relation
-
getUuid
Returns the uuid of this social relation.- Specified by:
getUuid
in interfaceSocialRelationModel
- Returns:
- the uuid of this social relation
-
persist
public void persist()Description copied from interface:PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.- Specified by:
persist
in interfacePersistedModel
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this social relation.- Specified by:
setCompanyId
in interfaceShardedModel
- Specified by:
setCompanyId
in interfaceSocialRelationModel
- Parameters:
companyId
- the company ID of this social relation
-
setCreateDate
public void setCreateDate(long createDate) Sets the create date of this social relation.- Specified by:
setCreateDate
in interfaceSocialRelationModel
- Parameters:
createDate
- the create date of this social relation
-
setCtCollectionId
public void setCtCollectionId(long ctCollectionId) Sets the ct collection ID of this social relation.- Specified by:
setCtCollectionId
in interfaceCTModel<SocialRelation>
- Specified by:
setCtCollectionId
in interfaceSocialRelationModel
- Parameters:
ctCollectionId
- the ct collection ID of this social relation
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this social relation.- Specified by:
setMvccVersion
in interfaceMVCCModel
- Specified by:
setMvccVersion
in interfaceSocialRelationModel
- Parameters:
mvccVersion
- the mvcc version of this social relation
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this social relation.- Specified by:
setPrimaryKey
in interfaceCTModel<SocialRelation>
- Specified by:
setPrimaryKey
in interfaceSocialRelationModel
- Parameters:
primaryKey
- the primary key of this social relation
-
setRelationId
public void setRelationId(long relationId) Sets the relation ID of this social relation.- Specified by:
setRelationId
in interfaceSocialRelationModel
- Parameters:
relationId
- the relation ID of this social relation
-
setType
public void setType(int type) Sets the type of this social relation.- Specified by:
setType
in interfaceSocialRelationModel
- Parameters:
type
- the type of this social relation
-
setUserId1
public void setUserId1(long userId1) Sets the user id1 of this social relation.- Specified by:
setUserId1
in interfaceSocialRelationModel
- Parameters:
userId1
- the user id1 of this social relation
-
setUserId2
public void setUserId2(long userId2) Sets the user id2 of this social relation.- Specified by:
setUserId2
in interfaceSocialRelationModel
- Parameters:
userId2
- the user id2 of this social relation
-
setUuid
Sets the uuid of this social relation.- Specified by:
setUuid
in interfaceSocialRelationModel
- Parameters:
uuid
- the uuid of this social relation
-
toXmlString
- Specified by:
toXmlString
in interfaceSocialRelationModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctions
in interfaceBaseModel<SocialRelation>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumers
in interfaceBaseModel<SocialRelation>
-
wrap
- Specified by:
wrap
in classBaseModelWrapper<SocialRelation>
-