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
modelFields inherited from interface com.liferay.social.kernel.model.SocialRelation
RELATION_ID_ACCESSOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the company ID of this social relation.longReturns the create date of this social relation.longReturns the ct collection ID of this social relation.longReturns the mvcc version of this social relation.longReturns the primary key of this social relation.longReturns the relation ID of this social relation.intgetType()Returns the type of this social relation.longReturns the user id1 of this social relation.longReturns the user id2 of this social relation.getUuid()Returns the uuid of this social relation.voidpersist()Updates this model instance in the database or adds it if it does not yet exist.voidsetCompanyId(long companyId) Sets the company ID of this social relation.voidsetCreateDate(long createDate) Sets the create date of this social relation.voidsetCtCollectionId(long ctCollectionId) Sets the ct collection ID of this social relation.voidsetModelAttributes(Map<String, Object> attributes) voidsetMvccVersion(long mvccVersion) Sets the mvcc version of this social relation.voidsetPrimaryKey(long primaryKey) Sets the primary key of this social relation.voidsetRelationId(long relationId) Sets the relation ID of this social relation.voidsetType(int type) Sets the type of this social relation.voidsetUserId1(long userId1) Sets the user id1 of this social relation.voidsetUserId2(long userId2) Sets the user id2 of this social relation.voidSets the uuid of this social relation.protected SocialRelationWrapperwrap(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, toUnescapedModelMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, toUnescapedModelMethods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassNameMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
-
Constructor Details
-
SocialRelationWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributesin interfaceBaseModel<SocialRelation>
-
setModelAttributes
- Specified by:
setModelAttributesin interfaceBaseModel<SocialRelation>
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValuesin interfaceBaseModel<SocialRelation>- Specified by:
cloneWithOriginalValuesin interfaceSocialRelationModel
-
getCompanyId
public long getCompanyId()Returns the company ID of this social relation.- Specified by:
getCompanyIdin interfaceShardedModel- Specified by:
getCompanyIdin interfaceSocialRelationModel- Returns:
- the company ID of this social relation
-
getCreateDate
public long getCreateDate()Returns the create date of this social relation.- Specified by:
getCreateDatein interfaceSocialRelationModel- Returns:
- the create date of this social relation
-
getCtCollectionId
public long getCtCollectionId()Returns the ct collection ID of this social relation.- Specified by:
getCtCollectionIdin interfaceCTModel<SocialRelation>- Specified by:
getCtCollectionIdin interfaceSocialRelationModel- Returns:
- the ct collection ID of this social relation
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this social relation.- Specified by:
getMvccVersionin interfaceMVCCModel- Specified by:
getMvccVersionin interfaceSocialRelationModel- Returns:
- the mvcc version of this social relation
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this social relation.- Specified by:
getPrimaryKeyin interfaceCTModel<SocialRelation>- Specified by:
getPrimaryKeyin interfaceSocialRelationModel- Returns:
- the primary key of this social relation
-
getRelationId
public long getRelationId()Returns the relation ID of this social relation.- Specified by:
getRelationIdin interfaceSocialRelationModel- Returns:
- the relation ID of this social relation
-
getType
public int getType()Returns the type of this social relation.- Specified by:
getTypein interfaceSocialRelationModel- Returns:
- the type of this social relation
-
getUserId1
public long getUserId1()Returns the user id1 of this social relation.- Specified by:
getUserId1in interfaceSocialRelationModel- Returns:
- the user id1 of this social relation
-
getUserId2
public long getUserId2()Returns the user id2 of this social relation.- Specified by:
getUserId2in interfaceSocialRelationModel- Returns:
- the user id2 of this social relation
-
getUuid
Returns the uuid of this social relation.- Specified by:
getUuidin interfaceSocialRelationModel- Returns:
- the uuid of this social relation
-
persist
public void persist()Description copied from interface:PersistedModelUpdates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.- Specified by:
persistin interfacePersistedModel
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this social relation.- Specified by:
setCompanyIdin interfaceShardedModel- Specified by:
setCompanyIdin 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:
setCreateDatein 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:
setCtCollectionIdin interfaceCTModel<SocialRelation>- Specified by:
setCtCollectionIdin 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:
setMvccVersionin interfaceMVCCModel- Specified by:
setMvccVersionin 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:
setPrimaryKeyin interfaceCTModel<SocialRelation>- Specified by:
setPrimaryKeyin 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:
setRelationIdin 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:
setTypein 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:
setUserId1in 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:
setUserId2in interfaceSocialRelationModel- Parameters:
userId2- the user id2 of this social relation
-
setUuid
Sets the uuid of this social relation.- Specified by:
setUuidin interfaceSocialRelationModel- Parameters:
uuid- the uuid of this social relation
-
toXmlString
- Specified by:
toXmlStringin interfaceSocialRelationModel
-
getAttributeGetterFunctions
- Specified by:
getAttributeGetterFunctionsin interfaceBaseModel<SocialRelation>
-
getAttributeSetterBiConsumers
- Specified by:
getAttributeSetterBiConsumersin interfaceBaseModel<SocialRelation>
-
wrap
- Specified by:
wrapin classBaseModelWrapper<SocialRelation>
-