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 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
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
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.default String
Methods 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, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getPrimaryKey
long getPrimaryKey()Returns the primary key of this social relation.- Specified by:
getPrimaryKey
in 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:
setPrimaryKey
in interfaceCTModel<SocialRelation>
- Parameters:
primaryKey
- the primary key of this social relation
-
getMvccVersion
long getMvccVersion()Returns the mvcc version of this social relation.- Specified by:
getMvccVersion
in interfaceMVCCModel
- Returns:
- the mvcc version of this social relation
-
setMvccVersion
void setMvccVersion(long mvccVersion) Sets the mvcc version of this social relation.- Specified by:
setMvccVersion
in interfaceMVCCModel
- Parameters:
mvccVersion
- the mvcc version of this social relation
-
getCtCollectionId
long getCtCollectionId()Returns the ct collection ID of this social relation.- Specified by:
getCtCollectionId
in 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:
setCtCollectionId
in 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:
getCompanyId
in interfaceShardedModel
- Returns:
- the company ID of this social relation
-
setCompanyId
void setCompanyId(long companyId) Sets the company ID of this social relation.- Specified by:
setCompanyId
in 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:
cloneWithOriginalValues
in interfaceBaseModel<SocialRelation>
-
toXmlString
-