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 Details

    • getPrimaryKey

      long getPrimaryKey()
      Returns the primary key of this social relation.
      Specified by:
      getPrimaryKey in interface CTModel<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 interface CTModel<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 interface MVCCModel
      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 interface MVCCModel
      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 interface CTModel<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 interface CTModel<SocialRelation>
      Parameters:
      ctCollectionId - the ct collection ID of this social relation
    • getUuid

      @AutoEscape String getUuid()
      Returns the uuid of this social relation.
      Returns:
      the uuid of this social relation
    • setUuid

      void setUuid(String uuid)
      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 interface ShardedModel
      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 interface ShardedModel
      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 interface BaseModel<SocialRelation>
    • toXmlString

      default String toXmlString()