Class SocialRelationPersistenceImpl

Object
com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation,com.liferay.social.kernel.exception.NoSuchRelationException>
com.liferay.portlet.social.service.persistence.impl.SocialRelationPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>, com.liferay.social.kernel.service.persistence.SocialRelationPersistence

public class SocialRelationPersistenceImpl extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation,com.liferay.social.kernel.exception.NoSuchRelationException> implements com.liferay.social.kernel.service.persistence.SocialRelationPersistence
The persistence implementation for the social relation service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
{$generated.description}
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     

    Fields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl

    CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initializes the social relation persistence.
    int
    countByC_T(long companyId, int type)
    Returns the number of social relations where companyId = ? and type = ?.
    int
    countByCompanyId(long companyId)
    Returns the number of social relations where companyId = ?.
    int
    countByType(int type)
    Returns the number of social relations where type = ?.
    int
    countByU1_T(long userId1, int type)
    Returns the number of social relations where userId1 = ? and type = ?.
    int
    countByU1_U2(long userId1, long userId2)
    Returns the number of social relations where userId1 = ? and userId2 = ?.
    int
    countByU1_U2_T(long userId1, long userId2, int type)
    Returns the number of social relations where userId1 = ? and userId2 = ? and type = ?.
    int
    countByU2_T(long userId2, int type)
    Returns the number of social relations where userId2 = ? and type = ?.
    int
    countByUserId1(long userId1)
    Returns the number of social relations where userId1 = ?.
    int
    countByUserId2(long userId2)
    Returns the number of social relations where userId2 = ?.
    int
    Returns the number of social relations where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of social relations where uuid = ? and companyId = ?.
    com.liferay.social.kernel.model.SocialRelation
    create(long relationId)
    Creates a new social relation with the primary key.
    void
     
    com.liferay.social.kernel.model.SocialRelation
    fetchByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where companyId = ? and type = ?.
    com.liferay.social.kernel.model.SocialRelation
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where companyId = ?.
    com.liferay.social.kernel.model.SocialRelation
    fetchByPrimaryKey(long relationId)
    Returns the social relation with the primary key or returns null if it could not be found.
    com.liferay.social.kernel.model.SocialRelation
    fetchByType_First(int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where type = ?.
    com.liferay.social.kernel.model.SocialRelation
    fetchByU1_T_First(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where userId1 = ? and type = ?.
    com.liferay.social.kernel.model.SocialRelation
    fetchByU1_U2_First(long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.
    com.liferay.social.kernel.model.SocialRelation
    fetchByU1_U2_T(long userId1, long userId2, int type, boolean useFinderCache)
    Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returns null if it could not be found, optionally using the finder cache.
    com.liferay.social.kernel.model.SocialRelation
    fetchByU2_T_First(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where userId2 = ? and type = ?.
    com.liferay.social.kernel.model.SocialRelation
    fetchByUserId1_First(long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where userId1 = ?.
    com.liferay.social.kernel.model.SocialRelation
    fetchByUserId2_First(long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where userId2 = ?.
    com.liferay.social.kernel.model.SocialRelation
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where uuid = ? and companyId = ?.
    com.liferay.social.kernel.model.SocialRelation
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where uuid = ?.
    List<com.liferay.social.kernel.model.SocialRelation>
    findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social relations where companyId = ? and type = ?.
    com.liferay.social.kernel.model.SocialRelation
    findByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where companyId = ? and type = ?.
    List<com.liferay.social.kernel.model.SocialRelation>
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social relations where companyId = ?.
    com.liferay.social.kernel.model.SocialRelation
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where companyId = ?.
    com.liferay.social.kernel.model.SocialRelation
    findByPrimaryKey(long relationId)
    Returns the social relation with the primary key or throws a NoSuchRelationException if it could not be found.
    List<com.liferay.social.kernel.model.SocialRelation>
    findByType(int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social relations where type = ?.
    com.liferay.social.kernel.model.SocialRelation
    findByType_First(int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where type = ?.
    List<com.liferay.social.kernel.model.SocialRelation>
    findByU1_T(long userId1, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social relations where userId1 = ? and type = ?.
    com.liferay.social.kernel.model.SocialRelation
    findByU1_T_First(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where userId1 = ? and type = ?.
    List<com.liferay.social.kernel.model.SocialRelation>
    findByU1_U2(long userId1, long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.
    com.liferay.social.kernel.model.SocialRelation
    findByU1_U2_First(long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.
    com.liferay.social.kernel.model.SocialRelation
    findByU1_U2_T(long userId1, long userId2, int type)
    Returns the social relation where userId1 = ? and userId2 = ? and type = ? or throws a NoSuchRelationException if it could not be found.
    List<com.liferay.social.kernel.model.SocialRelation>
    findByU2_T(long userId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social relations where userId2 = ? and type = ?.
    com.liferay.social.kernel.model.SocialRelation
    findByU2_T_First(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where userId2 = ? and type = ?.
    List<com.liferay.social.kernel.model.SocialRelation>
    findByUserId1(long userId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social relations where userId1 = ?.
    com.liferay.social.kernel.model.SocialRelation
    findByUserId1_First(long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where userId1 = ?.
    List<com.liferay.social.kernel.model.SocialRelation>
    findByUserId2(long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social relations where userId2 = ?.
    com.liferay.social.kernel.model.SocialRelation
    findByUserId2_First(long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where userId2 = ?.
    List<com.liferay.social.kernel.model.SocialRelation>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social relations where uuid = ?.
    List<com.liferay.social.kernel.model.SocialRelation>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the social relations where uuid = ? and companyId = ?.
    com.liferay.social.kernel.model.SocialRelation
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where uuid = ? and companyId = ?.
    com.liferay.social.kernel.model.SocialRelation
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
    Returns the first social relation in the ordered set where uuid = ?.
     
    getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
     
    protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelper
     
    protected com.liferay.portal.kernel.dao.orm.EntityCache
     
    protected com.liferay.portal.kernel.dao.orm.FinderCache
     
     
    protected String
     
    protected String
     
     
     
     
    com.liferay.social.kernel.model.SocialRelation
    remove(long relationId)
    Removes the social relation with the primary key from the database.
    void
    removeByC_T(long companyId, int type)
    Removes all the social relations where companyId = ? and type = ? from the database.
    void
    removeByCompanyId(long companyId)
    Removes all the social relations where companyId = ? from the database.
    void
    removeByType(int type)
    Removes all the social relations where type = ? from the database.
    void
    removeByU1_T(long userId1, int type)
    Removes all the social relations where userId1 = ? and type = ? from the database.
    void
    removeByU1_U2(long userId1, long userId2)
    Removes all the social relations where userId1 = ? and userId2 = ? from the database.
    com.liferay.social.kernel.model.SocialRelation
    removeByU1_U2_T(long userId1, long userId2, int type)
    Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database.
    void
    removeByU2_T(long userId2, int type)
    Removes all the social relations where userId2 = ? and type = ? from the database.
    void
    removeByUserId1(long userId1)
    Removes all the social relations where userId1 = ? from the database.
    void
    removeByUserId2(long userId2)
    Removes all the social relations where userId2 = ? from the database.
    void
    Removes all the social relations where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the social relations where uuid = ? and companyId = ? from the database.
    protected com.liferay.social.kernel.model.SocialRelation
    removeImpl(com.liferay.social.kernel.model.SocialRelation socialRelation)
     
    com.liferay.social.kernel.model.SocialRelation
    updateImpl(com.liferay.social.kernel.model.SocialRelation socialRelation)
     

    Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl

    appendOrderByComparator, appendOrderByComparator, cacheResult, cacheResult, cacheUniqueFindersResult, clearCache, clearCache, clearCache, clearCache, closeSession, convertCaseFunction, convertDateFunction, convertNullFunction, countAll, countWithDynamicQuery, countWithDynamicQuery, createUniqueFinderPath, dslQuery, dslQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDefaultOrderBySQL, getDefaultOrderBySQLInlineDistinct, getDialect, getEntityAlias, getEntityAliasPrefix, getFilterPKColumnName, getListeners, getModelClass, getModelImplClass, getNoSuchEntityWithKeyPrefix, getPKColumnName, getPKFieldName, isPermissionsInMemoryFilterEnabled, newNoSuchModelException, openNewSession, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, update

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update

    Methods inherited from interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence

    fetchByU1_U2_T, findByC_T, findByC_T, findByC_T, findByCompanyId, findByCompanyId, findByCompanyId, findByType, findByType, findByType, findByU1_T, findByU1_T, findByU1_T, findByU1_U2, findByU1_U2, findByU1_U2, findByU2_T, findByU2_T, findByU2_T, findByUserId1, findByUserId1, findByUserId1, findByUserId2, findByUserId2, findByUserId2, findByUuid, findByUuid, findByUuid, findByUuid_C, findByUuid_C, findByUuid_C
  • Field Details

    • FINDER_CLASS_NAME_ENTITY

      public static final String FINDER_CLASS_NAME_ENTITY
    • FINDER_CLASS_NAME_LIST_WITH_PAGINATION

      public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
    • FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

      public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
  • Constructor Details

    • SocialRelationPersistenceImpl

      public SocialRelationPersistenceImpl()
  • Method Details

    • findByUuid

      public List<com.liferay.social.kernel.model.SocialRelation> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social relations where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.

      Specified by:
      findByUuid in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      uuid - the uuid
      start - the lower bound of the range of social relations
      end - the upper bound of the range of social relations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social relations
    • findByUuid_First

      public com.liferay.social.kernel.model.SocialRelation findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException
      Returns the first social relation in the ordered set where uuid = ?.
      Specified by:
      findByUuid_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation
      Throws:
      com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be found
    • fetchByUuid_First

      public com.liferay.social.kernel.model.SocialRelation fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where uuid = ?.
      Specified by:
      fetchByUuid_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation, or null if a matching social relation could not be found
    • removeByUuid

      public void removeByUuid(String uuid)
      Removes all the social relations where uuid = ? from the database.
      Specified by:
      removeByUuid in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      uuid - the uuid
    • countByUuid

      public int countByUuid(String uuid)
      Returns the number of social relations where uuid = ?.
      Specified by:
      countByUuid in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching social relations
    • findByUuid_C

      public List<com.liferay.social.kernel.model.SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social relations where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.

      Specified by:
      findByUuid_C in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of social relations
      end - the upper bound of the range of social relations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social relations
    • findByUuid_C_First

      public com.liferay.social.kernel.model.SocialRelation findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException
      Returns the first social relation in the ordered set where uuid = ? and companyId = ?.
      Specified by:
      findByUuid_C_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation
      Throws:
      com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be found
    • fetchByUuid_C_First

      public com.liferay.social.kernel.model.SocialRelation fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where uuid = ? and companyId = ?.
      Specified by:
      fetchByUuid_C_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation, or null if a matching social relation could not be found
    • removeByUuid_C

      public void removeByUuid_C(String uuid, long companyId)
      Removes all the social relations where uuid = ? and companyId = ? from the database.
      Specified by:
      removeByUuid_C in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public int countByUuid_C(String uuid, long companyId)
      Returns the number of social relations where uuid = ? and companyId = ?.
      Specified by:
      countByUuid_C in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching social relations
    • findByCompanyId

      public List<com.liferay.social.kernel.model.SocialRelation> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social relations where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.

      Specified by:
      findByCompanyId in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      companyId - the company ID
      start - the lower bound of the range of social relations
      end - the upper bound of the range of social relations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social relations
    • findByCompanyId_First

      public com.liferay.social.kernel.model.SocialRelation findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException
      Returns the first social relation in the ordered set where companyId = ?.
      Specified by:
      findByCompanyId_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation
      Throws:
      com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be found
    • fetchByCompanyId_First

      public com.liferay.social.kernel.model.SocialRelation fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where companyId = ?.
      Specified by:
      fetchByCompanyId_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation, or null if a matching social relation could not be found
    • removeByCompanyId

      public void removeByCompanyId(long companyId)
      Removes all the social relations where companyId = ? from the database.
      Specified by:
      removeByCompanyId in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      companyId - the company ID
    • countByCompanyId

      public int countByCompanyId(long companyId)
      Returns the number of social relations where companyId = ?.
      Specified by:
      countByCompanyId in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching social relations
    • findByUserId1

      public List<com.liferay.social.kernel.model.SocialRelation> findByUserId1(long userId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social relations where userId1 = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.

      Specified by:
      findByUserId1 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      start - the lower bound of the range of social relations
      end - the upper bound of the range of social relations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social relations
    • findByUserId1_First

      public com.liferay.social.kernel.model.SocialRelation findByUserId1_First(long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException
      Returns the first social relation in the ordered set where userId1 = ?.
      Specified by:
      findByUserId1_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation
      Throws:
      com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be found
    • fetchByUserId1_First

      public com.liferay.social.kernel.model.SocialRelation fetchByUserId1_First(long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where userId1 = ?.
      Specified by:
      fetchByUserId1_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation, or null if a matching social relation could not be found
    • removeByUserId1

      public void removeByUserId1(long userId1)
      Removes all the social relations where userId1 = ? from the database.
      Specified by:
      removeByUserId1 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
    • countByUserId1

      public int countByUserId1(long userId1)
      Returns the number of social relations where userId1 = ?.
      Specified by:
      countByUserId1 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      Returns:
      the number of matching social relations
    • findByUserId2

      public List<com.liferay.social.kernel.model.SocialRelation> findByUserId2(long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social relations where userId2 = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.

      Specified by:
      findByUserId2 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId2 - the user id2
      start - the lower bound of the range of social relations
      end - the upper bound of the range of social relations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social relations
    • findByUserId2_First

      public com.liferay.social.kernel.model.SocialRelation findByUserId2_First(long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException
      Returns the first social relation in the ordered set where userId2 = ?.
      Specified by:
      findByUserId2_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId2 - the user id2
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation
      Throws:
      com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be found
    • fetchByUserId2_First

      public com.liferay.social.kernel.model.SocialRelation fetchByUserId2_First(long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where userId2 = ?.
      Specified by:
      fetchByUserId2_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId2 - the user id2
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation, or null if a matching social relation could not be found
    • removeByUserId2

      public void removeByUserId2(long userId2)
      Removes all the social relations where userId2 = ? from the database.
      Specified by:
      removeByUserId2 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId2 - the user id2
    • countByUserId2

      public int countByUserId2(long userId2)
      Returns the number of social relations where userId2 = ?.
      Specified by:
      countByUserId2 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId2 - the user id2
      Returns:
      the number of matching social relations
    • findByType

      public List<com.liferay.social.kernel.model.SocialRelation> findByType(int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social relations where type = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.

      Specified by:
      findByType in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      type - the type
      start - the lower bound of the range of social relations
      end - the upper bound of the range of social relations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social relations
    • findByType_First

      public com.liferay.social.kernel.model.SocialRelation findByType_First(int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException
      Returns the first social relation in the ordered set where type = ?.
      Specified by:
      findByType_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation
      Throws:
      com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be found
    • fetchByType_First

      public com.liferay.social.kernel.model.SocialRelation fetchByType_First(int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where type = ?.
      Specified by:
      fetchByType_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation, or null if a matching social relation could not be found
    • removeByType

      public void removeByType(int type)
      Removes all the social relations where type = ? from the database.
      Specified by:
      removeByType in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      type - the type
    • countByType

      public int countByType(int type)
      Returns the number of social relations where type = ?.
      Specified by:
      countByType in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      type - the type
      Returns:
      the number of matching social relations
    • findByC_T

      public List<com.liferay.social.kernel.model.SocialRelation> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social relations where companyId = ? and type = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.

      Specified by:
      findByC_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      companyId - the company ID
      type - the type
      start - the lower bound of the range of social relations
      end - the upper bound of the range of social relations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social relations
    • findByC_T_First

      public com.liferay.social.kernel.model.SocialRelation findByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException
      Returns the first social relation in the ordered set where companyId = ? and type = ?.
      Specified by:
      findByC_T_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      companyId - the company ID
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation
      Throws:
      com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be found
    • fetchByC_T_First

      public com.liferay.social.kernel.model.SocialRelation fetchByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where companyId = ? and type = ?.
      Specified by:
      fetchByC_T_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      companyId - the company ID
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation, or null if a matching social relation could not be found
    • removeByC_T

      public void removeByC_T(long companyId, int type)
      Removes all the social relations where companyId = ? and type = ? from the database.
      Specified by:
      removeByC_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      companyId - the company ID
      type - the type
    • countByC_T

      public int countByC_T(long companyId, int type)
      Returns the number of social relations where companyId = ? and type = ?.
      Specified by:
      countByC_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      companyId - the company ID
      type - the type
      Returns:
      the number of matching social relations
    • findByU1_U2

      public List<com.liferay.social.kernel.model.SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.

      Specified by:
      findByU1_U2 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      start - the lower bound of the range of social relations
      end - the upper bound of the range of social relations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social relations
    • findByU1_U2_First

      public com.liferay.social.kernel.model.SocialRelation findByU1_U2_First(long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException
      Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.
      Specified by:
      findByU1_U2_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation
      Throws:
      com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be found
    • fetchByU1_U2_First

      public com.liferay.social.kernel.model.SocialRelation fetchByU1_U2_First(long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.
      Specified by:
      fetchByU1_U2_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation, or null if a matching social relation could not be found
    • removeByU1_U2

      public void removeByU1_U2(long userId1, long userId2)
      Removes all the social relations where userId1 = ? and userId2 = ? from the database.
      Specified by:
      removeByU1_U2 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
    • countByU1_U2

      public int countByU1_U2(long userId1, long userId2)
      Returns the number of social relations where userId1 = ? and userId2 = ?.
      Specified by:
      countByU1_U2 in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      Returns:
      the number of matching social relations
    • findByU1_T

      public List<com.liferay.social.kernel.model.SocialRelation> findByU1_T(long userId1, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social relations where userId1 = ? and type = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.

      Specified by:
      findByU1_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      type - the type
      start - the lower bound of the range of social relations
      end - the upper bound of the range of social relations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social relations
    • findByU1_T_First

      public com.liferay.social.kernel.model.SocialRelation findByU1_T_First(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException
      Returns the first social relation in the ordered set where userId1 = ? and type = ?.
      Specified by:
      findByU1_T_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation
      Throws:
      com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be found
    • fetchByU1_T_First

      public com.liferay.social.kernel.model.SocialRelation fetchByU1_T_First(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where userId1 = ? and type = ?.
      Specified by:
      fetchByU1_T_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation, or null if a matching social relation could not be found
    • removeByU1_T

      public void removeByU1_T(long userId1, int type)
      Removes all the social relations where userId1 = ? and type = ? from the database.
      Specified by:
      removeByU1_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      type - the type
    • countByU1_T

      public int countByU1_T(long userId1, int type)
      Returns the number of social relations where userId1 = ? and type = ?.
      Specified by:
      countByU1_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      type - the type
      Returns:
      the number of matching social relations
    • findByU2_T

      public List<com.liferay.social.kernel.model.SocialRelation> findByU2_T(long userId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social relations where userId2 = ? and type = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SocialRelationModelImpl.

      Specified by:
      findByU2_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId2 - the user id2
      type - the type
      start - the lower bound of the range of social relations
      end - the upper bound of the range of social relations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching social relations
    • findByU2_T_First

      public com.liferay.social.kernel.model.SocialRelation findByU2_T_First(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException
      Returns the first social relation in the ordered set where userId2 = ? and type = ?.
      Specified by:
      findByU2_T_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId2 - the user id2
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation
      Throws:
      com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be found
    • fetchByU2_T_First

      public com.liferay.social.kernel.model.SocialRelation fetchByU2_T_First(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where userId2 = ? and type = ?.
      Specified by:
      fetchByU2_T_First in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId2 - the user id2
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation, or null if a matching social relation could not be found
    • removeByU2_T

      public void removeByU2_T(long userId2, int type)
      Removes all the social relations where userId2 = ? and type = ? from the database.
      Specified by:
      removeByU2_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId2 - the user id2
      type - the type
    • countByU2_T

      public int countByU2_T(long userId2, int type)
      Returns the number of social relations where userId2 = ? and type = ?.
      Specified by:
      countByU2_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId2 - the user id2
      type - the type
      Returns:
      the number of matching social relations
    • findByU1_U2_T

      public com.liferay.social.kernel.model.SocialRelation findByU1_U2_T(long userId1, long userId2, int type) throws com.liferay.social.kernel.exception.NoSuchRelationException
      Returns the social relation where userId1 = ? and userId2 = ? and type = ? or throws a NoSuchRelationException if it could not be found.
      Specified by:
      findByU1_U2_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      type - the type
      Returns:
      the matching social relation
      Throws:
      com.liferay.social.kernel.exception.NoSuchRelationException - if a matching social relation could not be found
    • fetchByU1_U2_T

      public com.liferay.social.kernel.model.SocialRelation fetchByU1_U2_T(long userId1, long userId2, int type, boolean useFinderCache)
      Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returns null if it could not be found, optionally using the finder cache.
      Specified by:
      fetchByU1_U2_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      type - the type
      useFinderCache - whether to use the finder cache
      Returns:
      the matching social relation, or null if a matching social relation could not be found
    • removeByU1_U2_T

      public com.liferay.social.kernel.model.SocialRelation removeByU1_U2_T(long userId1, long userId2, int type) throws com.liferay.social.kernel.exception.NoSuchRelationException
      Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database.
      Specified by:
      removeByU1_U2_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      type - the type
      Returns:
      the social relation that was removed
      Throws:
      com.liferay.social.kernel.exception.NoSuchRelationException
    • countByU1_U2_T

      public int countByU1_U2_T(long userId1, long userId2, int type)
      Returns the number of social relations where userId1 = ? and userId2 = ? and type = ?.
      Specified by:
      countByU1_U2_T in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      type - the type
      Returns:
      the number of matching social relations
    • create

      public com.liferay.social.kernel.model.SocialRelation create(long relationId)
      Creates a new social relation with the primary key. Does not add the social relation to the database.
      Specified by:
      create in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      relationId - the primary key for the new social relation
      Returns:
      the new social relation
    • remove

      public com.liferay.social.kernel.model.SocialRelation remove(long relationId) throws com.liferay.social.kernel.exception.NoSuchRelationException
      Removes the social relation with the primary key from the database. Also notifies the appropriate model listeners.
      Specified by:
      remove in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      relationId - the primary key of the social relation
      Returns:
      the social relation that was removed
      Throws:
      com.liferay.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be found
    • removeImpl

      protected com.liferay.social.kernel.model.SocialRelation removeImpl(com.liferay.social.kernel.model.SocialRelation socialRelation)
      Overrides:
      removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation,com.liferay.social.kernel.exception.NoSuchRelationException>
    • updateImpl

      public com.liferay.social.kernel.model.SocialRelation updateImpl(com.liferay.social.kernel.model.SocialRelation socialRelation)
      Specified by:
      updateImpl in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Overrides:
      updateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation,com.liferay.social.kernel.exception.NoSuchRelationException>
    • findByPrimaryKey

      public com.liferay.social.kernel.model.SocialRelation findByPrimaryKey(long relationId) throws com.liferay.social.kernel.exception.NoSuchRelationException
      Returns the social relation with the primary key or throws a NoSuchRelationException if it could not be found.
      Specified by:
      findByPrimaryKey in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      relationId - the primary key of the social relation
      Returns:
      the social relation
      Throws:
      com.liferay.social.kernel.exception.NoSuchRelationException - if a social relation with the primary key could not be found
    • getCTPersistenceHelper

      protected com.liferay.portal.kernel.service.persistence.change.tracking.helper.CTPersistenceHelper getCTPersistenceHelper()
      Overrides:
      getCTPersistenceHelper in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation,com.liferay.social.kernel.exception.NoSuchRelationException>
    • fetchByPrimaryKey

      public com.liferay.social.kernel.model.SocialRelation fetchByPrimaryKey(long relationId)
      Returns the social relation with the primary key or returns null if it could not be found.
      Specified by:
      fetchByPrimaryKey in interface com.liferay.social.kernel.service.persistence.SocialRelationPersistence
      Parameters:
      relationId - the primary key of the social relation
      Returns:
      the social relation, or null if a social relation with the primary key could not be found
    • getBadColumnNames

      public Set<String> getBadColumnNames()
      Specified by:
      getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>
      Overrides:
      getBadColumnNames in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation,com.liferay.social.kernel.exception.NoSuchRelationException>
    • getEntityCache

      protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()
      Overrides:
      getEntityCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation,com.liferay.social.kernel.exception.NoSuchRelationException>
    • getPKDBName

      protected String getPKDBName()
      Overrides:
      getPKDBName in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation,com.liferay.social.kernel.exception.NoSuchRelationException>
    • getSelectSQL

      protected String getSelectSQL()
      Overrides:
      getSelectSQL in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation,com.liferay.social.kernel.exception.NoSuchRelationException>
    • getCTColumnNames

      public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
      Specified by:
      getCTColumnNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>
    • getMappingTableNames

      public List<String> getMappingTableNames()
      Specified by:
      getMappingTableNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>
    • getTableColumnsMap

      public Map<String,Integer> getTableColumnsMap()
      Specified by:
      getTableColumnsMap in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>
      Overrides:
      getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation,com.liferay.social.kernel.exception.NoSuchRelationException>
    • getTableName

      public String getTableName()
      Specified by:
      getTableName in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>
      Overrides:
      getTableName in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation,com.liferay.social.kernel.exception.NoSuchRelationException>
    • getUniqueIndexColumnNames

      public List<String[]> getUniqueIndexColumnNames()
      Specified by:
      getUniqueIndexColumnNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>
    • afterPropertiesSet

      public void afterPropertiesSet()
      Initializes the social relation persistence.
    • destroy

      public void destroy()
    • getFinderCache

      protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()
      Overrides:
      getFinderCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation,com.liferay.social.kernel.exception.NoSuchRelationException>