Package com.liferay.social.kernel.model
Interface SocialRelationModel
- All Superinterfaces:
BaseModel<SocialRelation>,ClassedModel,Cloneable,Comparable<SocialRelation>,CTModel<SocialRelation>,MVCCModel,Serializable,ShardedModel
- All Known Subinterfaces:
SocialRelation
- All Known Implementing Classes:
SocialRelationWrapper
@ProviderType
public interface SocialRelationModel
extends BaseModel<SocialRelation>, CTModel<SocialRelation>, MVCCModel, ShardedModel
The base model interface for the SocialRelation service. Represents a row in the "SocialRelation" database table, with each column mapped to a property of this class.
This interface and its corresponding implementation com.liferay.portlet.social.model.impl.SocialRelationModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in com.liferay.portlet.social.model.impl.SocialRelationImpl.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
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.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.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.default StringMethods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModelMethods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassNameMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getPrimaryKey
long getPrimaryKey()Returns the primary key of this social relation.- Specified by:
getPrimaryKeyin interfaceCTModel<SocialRelation>- Returns:
- the primary key of this social relation
-
setPrimaryKey
void setPrimaryKey(long primaryKey) Sets the primary key of this social relation.- Specified by:
setPrimaryKeyin interfaceCTModel<SocialRelation>- Parameters:
primaryKey- the primary key of this social relation
-
getMvccVersion
long getMvccVersion()Returns the mvcc version of this social relation.- Specified by:
getMvccVersionin interfaceMVCCModel- Returns:
- the mvcc version of this social relation
-
setMvccVersion
void setMvccVersion(long mvccVersion) Sets the mvcc version of this social relation.- Specified by:
setMvccVersionin interfaceMVCCModel- Parameters:
mvccVersion- the mvcc version of this social relation
-
getCtCollectionId
long getCtCollectionId()Returns the ct collection ID of this social relation.- Specified by:
getCtCollectionIdin interfaceCTModel<SocialRelation>- Returns:
- the ct collection ID of this social relation
-
setCtCollectionId
void setCtCollectionId(long ctCollectionId) Sets the ct collection ID of this social relation.- Specified by:
setCtCollectionIdin interfaceCTModel<SocialRelation>- Parameters:
ctCollectionId- the ct collection ID of this social relation
-
getUuid
Returns the uuid of this social relation.- Returns:
- the uuid of this social relation
-
setUuid
Sets the uuid of this social relation.- Parameters:
uuid- the uuid of this social relation
-
getRelationId
long getRelationId()Returns the relation ID of this social relation.- Returns:
- the relation ID of this social relation
-
setRelationId
void setRelationId(long relationId) Sets the relation ID of this social relation.- Parameters:
relationId- the relation ID of this social relation
-
getCompanyId
long getCompanyId()Returns the company ID of this social relation.- Specified by:
getCompanyIdin interfaceShardedModel- Returns:
- the company ID of this social relation
-
setCompanyId
void setCompanyId(long companyId) Sets the company ID of this social relation.- Specified by:
setCompanyIdin interfaceShardedModel- Parameters:
companyId- the company ID of this social relation
-
getCreateDate
long getCreateDate()Returns the create date of this social relation.- Returns:
- the create date of this social relation
-
setCreateDate
void setCreateDate(long createDate) Sets the create date of this social relation.- Parameters:
createDate- the create date of this social relation
-
getUserId1
long getUserId1()Returns the user id1 of this social relation.- Returns:
- the user id1 of this social relation
-
setUserId1
void setUserId1(long userId1) Sets the user id1 of this social relation.- Parameters:
userId1- the user id1 of this social relation
-
getUserId2
long getUserId2()Returns the user id2 of this social relation.- Returns:
- the user id2 of this social relation
-
setUserId2
void setUserId2(long userId2) Sets the user id2 of this social relation.- Parameters:
userId2- the user id2 of this social relation
-
getType
int getType()Returns the type of this social relation.- Returns:
- the type of this social relation
-
setType
void setType(int type) Sets the type of this social relation.- Parameters:
type- the type of this social relation
-
cloneWithOriginalValues
SocialRelation cloneWithOriginalValues()- Specified by:
cloneWithOriginalValuesin interfaceBaseModel<SocialRelation>
-
toXmlString
-