Class SocialRelationUtil

Object
com.liferay.social.kernel.service.persistence.SocialRelationUtil

public class SocialRelationUtil extends Object
The persistence utility for the social relation service. This utility wraps com.liferay.portlet.social.service.persistence.impl.SocialRelationPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • SocialRelationUtil

      public SocialRelationUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
    • clearCache

      public static void clearCache(SocialRelation socialRelation)
      See Also:
    • countWithDynamicQuery

      public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • fetchByPrimaryKeys

      public static Map<Serializable,SocialRelation> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
    • findWithDynamicQuery

      public static List<SocialRelation> findWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • findWithDynamicQuery

      public static List<SocialRelation> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
      See Also:
    • findWithDynamicQuery

      public static List<SocialRelation> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
      See Also:
    • update

      public static SocialRelation update(SocialRelation socialRelation)
      See Also:
    • update

      public static SocialRelation update(SocialRelation socialRelation, ServiceContext serviceContext)
      See Also:
    • findByUuid

      public static List<SocialRelation> findByUuid(String uuid)
      Returns all the social relations where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching social relations
    • findByUuid

      public static List<SocialRelation> findByUuid(String uuid, int start, int end)
      Returns a 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 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.

      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)
      Returns:
      the range of matching social relations
    • findByUuid

      public static List<SocialRelation> findByUuid(String uuid, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
      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 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.

      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)
      Returns:
      the ordered range of matching social relations
    • findByUuid

      public static List<SocialRelation> findByUuid(String uuid, int start, int end, OrderByComparator<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 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.

      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 static SocialRelation findByUuid_First(String uuid, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the first social relation in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByUuid_First

      public static SocialRelation fetchByUuid_First(String uuid, OrderByComparator<SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where uuid = ?.
      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
    • findByUuid_Last

      public static SocialRelation findByUuid_Last(String uuid, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the last social relation in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByUuid_Last

      public static SocialRelation fetchByUuid_Last(String uuid, OrderByComparator<SocialRelation> orderByComparator)
      Returns the last social relation in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation, or null if a matching social relation could not be found
    • findByUuid_PrevAndNext

      public static SocialRelation[] findByUuid_PrevAndNext(long relationId, String uuid, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the social relations before and after the current social relation in the ordered set where uuid = ?.
      Parameters:
      relationId - the primary key of the current social relation
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next social relation
      Throws:
      NoSuchRelationException - if a social relation with the primary key could not be found
      NoSuchRelationException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the social relations where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of social relations where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching social relations
    • findByUuid_C

      public static List<SocialRelation> findByUuid_C(String uuid, long companyId)
      Returns all the social relations where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching social relations
    • findByUuid_C

      public static List<SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a 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 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.

      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)
      Returns:
      the range of matching social relations
    • findByUuid_C

      public static List<SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
      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 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.

      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)
      Returns:
      the ordered range of matching social relations
    • findByUuid_C

      public static List<SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<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 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.

      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 static SocialRelation findByUuid_C_First(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the first social relation in the ordered set where uuid = ? and companyId = ?.
      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:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByUuid_C_First

      public static SocialRelation fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where uuid = ? and companyId = ?.
      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
    • findByUuid_C_Last

      public static SocialRelation findByUuid_C_Last(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the last social relation in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByUuid_C_Last

      public static SocialRelation fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator)
      Returns the last social relation in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation, or null if a matching social relation could not be found
    • findByUuid_C_PrevAndNext

      public static SocialRelation[] findByUuid_C_PrevAndNext(long relationId, String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the social relations before and after the current social relation in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      relationId - the primary key of the current social relation
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next social relation
      Throws:
      NoSuchRelationException - if a social relation with the primary key could not be found
      NoSuchRelationException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the social relations where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of social relations where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching social relations
    • findByCompanyId

      public static List<SocialRelation> findByCompanyId(long companyId)
      Returns all the social relations where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching social relations
    • findByCompanyId

      public static List<SocialRelation> findByCompanyId(long companyId, int start, int end)
      Returns a 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 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.

      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)
      Returns:
      the range of matching social relations
    • findByCompanyId

      public static List<SocialRelation> findByCompanyId(long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
      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 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.

      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)
      Returns:
      the ordered range of matching social relations
    • findByCompanyId

      public static List<SocialRelation> findByCompanyId(long companyId, int start, int end, OrderByComparator<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 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.

      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 static SocialRelation findByCompanyId_First(long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the first social relation in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByCompanyId_First

      public static SocialRelation fetchByCompanyId_First(long companyId, OrderByComparator<SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where companyId = ?.
      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
    • findByCompanyId_Last

      public static SocialRelation findByCompanyId_Last(long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the last social relation in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByCompanyId_Last

      public static SocialRelation fetchByCompanyId_Last(long companyId, OrderByComparator<SocialRelation> orderByComparator)
      Returns the last social relation in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation, or null if a matching social relation could not be found
    • findByCompanyId_PrevAndNext

      public static SocialRelation[] findByCompanyId_PrevAndNext(long relationId, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the social relations before and after the current social relation in the ordered set where companyId = ?.
      Parameters:
      relationId - the primary key of the current social relation
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next social relation
      Throws:
      NoSuchRelationException - if a social relation with the primary key could not be found
      NoSuchRelationException
    • removeByCompanyId

      public static void removeByCompanyId(long companyId)
      Removes all the social relations where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      public static int countByCompanyId(long companyId)
      Returns the number of social relations where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching social relations
    • findByUserId1

      public static List<SocialRelation> findByUserId1(long userId1)
      Returns all the social relations where userId1 = ?.
      Parameters:
      userId1 - the user id1
      Returns:
      the matching social relations
    • findByUserId1

      public static List<SocialRelation> findByUserId1(long userId1, int start, int end)
      Returns a 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 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.

      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)
      Returns:
      the range of matching social relations
    • findByUserId1

      public static List<SocialRelation> findByUserId1(long userId1, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
      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 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.

      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)
      Returns:
      the ordered range of matching social relations
    • findByUserId1

      public static List<SocialRelation> findByUserId1(long userId1, int start, int end, OrderByComparator<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 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.

      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 static SocialRelation findByUserId1_First(long userId1, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the first social relation in the ordered set where userId1 = ?.
      Parameters:
      userId1 - the user id1
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByUserId1_First

      public static SocialRelation fetchByUserId1_First(long userId1, OrderByComparator<SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where userId1 = ?.
      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
    • findByUserId1_Last

      public static SocialRelation findByUserId1_Last(long userId1, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the last social relation in the ordered set where userId1 = ?.
      Parameters:
      userId1 - the user id1
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByUserId1_Last

      public static SocialRelation fetchByUserId1_Last(long userId1, OrderByComparator<SocialRelation> orderByComparator)
      Returns the last social relation in the ordered set where userId1 = ?.
      Parameters:
      userId1 - the user id1
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation, or null if a matching social relation could not be found
    • findByUserId1_PrevAndNext

      public static SocialRelation[] findByUserId1_PrevAndNext(long relationId, long userId1, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the social relations before and after the current social relation in the ordered set where userId1 = ?.
      Parameters:
      relationId - the primary key of the current social relation
      userId1 - the user id1
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next social relation
      Throws:
      NoSuchRelationException - if a social relation with the primary key could not be found
      NoSuchRelationException
    • removeByUserId1

      public static void removeByUserId1(long userId1)
      Removes all the social relations where userId1 = ? from the database.
      Parameters:
      userId1 - the user id1
    • countByUserId1

      public static int countByUserId1(long userId1)
      Returns the number of social relations where userId1 = ?.
      Parameters:
      userId1 - the user id1
      Returns:
      the number of matching social relations
    • findByUserId2

      public static List<SocialRelation> findByUserId2(long userId2)
      Returns all the social relations where userId2 = ?.
      Parameters:
      userId2 - the user id2
      Returns:
      the matching social relations
    • findByUserId2

      public static List<SocialRelation> findByUserId2(long userId2, int start, int end)
      Returns a 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 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.

      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)
      Returns:
      the range of matching social relations
    • findByUserId2

      public static List<SocialRelation> findByUserId2(long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
      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 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.

      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)
      Returns:
      the ordered range of matching social relations
    • findByUserId2

      public static List<SocialRelation> findByUserId2(long userId2, int start, int end, OrderByComparator<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 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.

      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 static SocialRelation findByUserId2_First(long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the first social relation in the ordered set where userId2 = ?.
      Parameters:
      userId2 - the user id2
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByUserId2_First

      public static SocialRelation fetchByUserId2_First(long userId2, OrderByComparator<SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where userId2 = ?.
      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
    • findByUserId2_Last

      public static SocialRelation findByUserId2_Last(long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the last social relation in the ordered set where userId2 = ?.
      Parameters:
      userId2 - the user id2
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByUserId2_Last

      public static SocialRelation fetchByUserId2_Last(long userId2, OrderByComparator<SocialRelation> orderByComparator)
      Returns the last social relation in the ordered set where userId2 = ?.
      Parameters:
      userId2 - the user id2
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation, or null if a matching social relation could not be found
    • findByUserId2_PrevAndNext

      public static SocialRelation[] findByUserId2_PrevAndNext(long relationId, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the social relations before and after the current social relation in the ordered set where userId2 = ?.
      Parameters:
      relationId - the primary key of the current social relation
      userId2 - the user id2
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next social relation
      Throws:
      NoSuchRelationException - if a social relation with the primary key could not be found
      NoSuchRelationException
    • removeByUserId2

      public static void removeByUserId2(long userId2)
      Removes all the social relations where userId2 = ? from the database.
      Parameters:
      userId2 - the user id2
    • countByUserId2

      public static int countByUserId2(long userId2)
      Returns the number of social relations where userId2 = ?.
      Parameters:
      userId2 - the user id2
      Returns:
      the number of matching social relations
    • findByType

      public static List<SocialRelation> findByType(int type)
      Returns all the social relations where type = ?.
      Parameters:
      type - the type
      Returns:
      the matching social relations
    • findByType

      public static List<SocialRelation> findByType(int type, int start, int end)
      Returns a 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 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.

      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)
      Returns:
      the range of matching social relations
    • findByType

      public static List<SocialRelation> findByType(int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
      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 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.

      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)
      Returns:
      the ordered range of matching social relations
    • findByType

      public static List<SocialRelation> findByType(int type, int start, int end, OrderByComparator<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 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.

      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 static SocialRelation findByType_First(int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the first social relation in the ordered set where type = ?.
      Parameters:
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByType_First

      public static SocialRelation fetchByType_First(int type, OrderByComparator<SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where type = ?.
      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
    • findByType_Last

      public static SocialRelation findByType_Last(int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the last social relation in the ordered set where type = ?.
      Parameters:
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByType_Last

      public static SocialRelation fetchByType_Last(int type, OrderByComparator<SocialRelation> orderByComparator)
      Returns the last social relation in the ordered set where type = ?.
      Parameters:
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation, or null if a matching social relation could not be found
    • findByType_PrevAndNext

      public static SocialRelation[] findByType_PrevAndNext(long relationId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the social relations before and after the current social relation in the ordered set where type = ?.
      Parameters:
      relationId - the primary key of the current social relation
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next social relation
      Throws:
      NoSuchRelationException - if a social relation with the primary key could not be found
      NoSuchRelationException
    • removeByType

      public static void removeByType(int type)
      Removes all the social relations where type = ? from the database.
      Parameters:
      type - the type
    • countByType

      public static int countByType(int type)
      Returns the number of social relations where type = ?.
      Parameters:
      type - the type
      Returns:
      the number of matching social relations
    • findByC_T

      public static List<SocialRelation> findByC_T(long companyId, int type)
      Returns all the social relations where companyId = ? and type = ?.
      Parameters:
      companyId - the company ID
      type - the type
      Returns:
      the matching social relations
    • findByC_T

      public static List<SocialRelation> findByC_T(long companyId, int type, int start, int end)
      Returns a 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 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.

      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)
      Returns:
      the range of matching social relations
    • findByC_T

      public static List<SocialRelation> findByC_T(long companyId, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
      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 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.

      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)
      Returns:
      the ordered range of matching social relations
    • findByC_T

      public static List<SocialRelation> findByC_T(long companyId, int type, int start, int end, OrderByComparator<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 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.

      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 static SocialRelation findByC_T_First(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the first social relation in the ordered set where companyId = ? and type = ?.
      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:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByC_T_First

      public static SocialRelation fetchByC_T_First(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where companyId = ? and type = ?.
      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
    • findByC_T_Last

      public static SocialRelation findByC_T_Last(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the last social relation in the ordered set where companyId = ? and type = ?.
      Parameters:
      companyId - the company ID
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByC_T_Last

      public static SocialRelation fetchByC_T_Last(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator)
      Returns the last social relation in the ordered set where companyId = ? and type = ?.
      Parameters:
      companyId - the company ID
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation, or null if a matching social relation could not be found
    • findByC_T_PrevAndNext

      public static SocialRelation[] findByC_T_PrevAndNext(long relationId, long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the social relations before and after the current social relation in the ordered set where companyId = ? and type = ?.
      Parameters:
      relationId - the primary key of the current social relation
      companyId - the company ID
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next social relation
      Throws:
      NoSuchRelationException - if a social relation with the primary key could not be found
      NoSuchRelationException
    • removeByC_T

      public static void removeByC_T(long companyId, int type)
      Removes all the social relations where companyId = ? and type = ? from the database.
      Parameters:
      companyId - the company ID
      type - the type
    • countByC_T

      public static int countByC_T(long companyId, int type)
      Returns the number of social relations where companyId = ? and type = ?.
      Parameters:
      companyId - the company ID
      type - the type
      Returns:
      the number of matching social relations
    • findByU1_U2

      public static List<SocialRelation> findByU1_U2(long userId1, long userId2)
      Returns all the social relations where userId1 = ? and userId2 = ?.
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      Returns:
      the matching social relations
    • findByU1_U2

      public static List<SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end)
      Returns a 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 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.

      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)
      Returns:
      the range of matching social relations
    • findByU1_U2

      public static List<SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
      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 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.

      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)
      Returns:
      the ordered range of matching social relations
    • findByU1_U2

      public static List<SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end, OrderByComparator<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 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.

      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 static SocialRelation findByU1_U2_First(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.
      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:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByU1_U2_First

      public static SocialRelation fetchByU1_U2_First(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.
      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
    • findByU1_U2_Last

      public static SocialRelation findByU1_U2_Last(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByU1_U2_Last

      public static SocialRelation fetchByU1_U2_Last(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator)
      Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation, or null if a matching social relation could not be found
    • findByU1_U2_PrevAndNext

      public static SocialRelation[] findByU1_U2_PrevAndNext(long relationId, long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and userId2 = ?.
      Parameters:
      relationId - the primary key of the current social relation
      userId1 - the user id1
      userId2 - the user id2
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next social relation
      Throws:
      NoSuchRelationException - if a social relation with the primary key could not be found
      NoSuchRelationException
    • removeByU1_U2

      public static void removeByU1_U2(long userId1, long userId2)
      Removes all the social relations where userId1 = ? and userId2 = ? from the database.
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
    • countByU1_U2

      public static int countByU1_U2(long userId1, long userId2)
      Returns the number of social relations where userId1 = ? and userId2 = ?.
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      Returns:
      the number of matching social relations
    • findByU1_T

      public static List<SocialRelation> findByU1_T(long userId1, int type)
      Returns all the social relations where userId1 = ? and type = ?.
      Parameters:
      userId1 - the user id1
      type - the type
      Returns:
      the matching social relations
    • findByU1_T

      public static List<SocialRelation> findByU1_T(long userId1, int type, int start, int end)
      Returns a 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 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.

      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)
      Returns:
      the range of matching social relations
    • findByU1_T

      public static List<SocialRelation> findByU1_T(long userId1, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
      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 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.

      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)
      Returns:
      the ordered range of matching social relations
    • findByU1_T

      public static List<SocialRelation> findByU1_T(long userId1, int type, int start, int end, OrderByComparator<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 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.

      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 static SocialRelation findByU1_T_First(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the first social relation in the ordered set where userId1 = ? and type = ?.
      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:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByU1_T_First

      public static SocialRelation fetchByU1_T_First(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where userId1 = ? and type = ?.
      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
    • findByU1_T_Last

      public static SocialRelation findByU1_T_Last(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the last social relation in the ordered set where userId1 = ? and type = ?.
      Parameters:
      userId1 - the user id1
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByU1_T_Last

      public static SocialRelation fetchByU1_T_Last(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator)
      Returns the last social relation in the ordered set where userId1 = ? and type = ?.
      Parameters:
      userId1 - the user id1
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation, or null if a matching social relation could not be found
    • findByU1_T_PrevAndNext

      public static SocialRelation[] findByU1_T_PrevAndNext(long relationId, long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and type = ?.
      Parameters:
      relationId - the primary key of the current social relation
      userId1 - the user id1
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next social relation
      Throws:
      NoSuchRelationException - if a social relation with the primary key could not be found
      NoSuchRelationException
    • removeByU1_T

      public static void removeByU1_T(long userId1, int type)
      Removes all the social relations where userId1 = ? and type = ? from the database.
      Parameters:
      userId1 - the user id1
      type - the type
    • countByU1_T

      public static int countByU1_T(long userId1, int type)
      Returns the number of social relations where userId1 = ? and type = ?.
      Parameters:
      userId1 - the user id1
      type - the type
      Returns:
      the number of matching social relations
    • findByU2_T

      public static List<SocialRelation> findByU2_T(long userId2, int type)
      Returns all the social relations where userId2 = ? and type = ?.
      Parameters:
      userId2 - the user id2
      type - the type
      Returns:
      the matching social relations
    • findByU2_T

      public static List<SocialRelation> findByU2_T(long userId2, int type, int start, int end)
      Returns a 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 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.

      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)
      Returns:
      the range of matching social relations
    • findByU2_T

      public static List<SocialRelation> findByU2_T(long userId2, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
      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 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.

      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)
      Returns:
      the ordered range of matching social relations
    • findByU2_T

      public static List<SocialRelation> findByU2_T(long userId2, int type, int start, int end, OrderByComparator<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 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.

      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 static SocialRelation findByU2_T_First(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the first social relation in the ordered set where userId2 = ? and type = ?.
      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:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByU2_T_First

      public static SocialRelation fetchByU2_T_First(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator)
      Returns the first social relation in the ordered set where userId2 = ? and type = ?.
      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
    • findByU2_T_Last

      public static SocialRelation findByU2_T_Last(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the last social relation in the ordered set where userId2 = ? and type = ?.
      Parameters:
      userId2 - the user id2
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByU2_T_Last

      public static SocialRelation fetchByU2_T_Last(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator)
      Returns the last social relation in the ordered set where userId2 = ? and type = ?.
      Parameters:
      userId2 - the user id2
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching social relation, or null if a matching social relation could not be found
    • findByU2_T_PrevAndNext

      public static SocialRelation[] findByU2_T_PrevAndNext(long relationId, long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException
      Returns the social relations before and after the current social relation in the ordered set where userId2 = ? and type = ?.
      Parameters:
      relationId - the primary key of the current social relation
      userId2 - the user id2
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next social relation
      Throws:
      NoSuchRelationException - if a social relation with the primary key could not be found
      NoSuchRelationException
    • removeByU2_T

      public static void removeByU2_T(long userId2, int type)
      Removes all the social relations where userId2 = ? and type = ? from the database.
      Parameters:
      userId2 - the user id2
      type - the type
    • countByU2_T

      public static int countByU2_T(long userId2, int type)
      Returns the number of social relations where userId2 = ? and type = ?.
      Parameters:
      userId2 - the user id2
      type - the type
      Returns:
      the number of matching social relations
    • findByU1_U2_T

      public static SocialRelation findByU1_U2_T(long userId1, long userId2, int type) throws NoSuchRelationException
      Returns the social relation where userId1 = ? and userId2 = ? and type = ? or throws a NoSuchRelationException if it could not be found.
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      type - the type
      Returns:
      the matching social relation
      Throws:
      NoSuchRelationException - if a matching social relation could not be found
      NoSuchRelationException
    • fetchByU1_U2_T

      public static SocialRelation fetchByU1_U2_T(long userId1, long userId2, int type)
      Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      type - the type
      Returns:
      the matching social relation, or null if a matching social relation could not be found
    • fetchByU1_U2_T

      public static 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.
      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 static SocialRelation removeByU1_U2_T(long userId1, long userId2, int type) throws NoSuchRelationException
      Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database.
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      type - the type
      Returns:
      the social relation that was removed
      Throws:
      NoSuchRelationException
    • countByU1_U2_T

      public static int countByU1_U2_T(long userId1, long userId2, int type)
      Returns the number of social relations where userId1 = ? and userId2 = ? and type = ?.
      Parameters:
      userId1 - the user id1
      userId2 - the user id2
      type - the type
      Returns:
      the number of matching social relations
    • cacheResult

      public static void cacheResult(SocialRelation socialRelation)
      Caches the social relation in the entity cache if it is enabled.
      Parameters:
      socialRelation - the social relation
    • cacheResult

      public static void cacheResult(List<SocialRelation> socialRelations)
      Caches the social relations in the entity cache if it is enabled.
      Parameters:
      socialRelations - the social relations
    • create

      public static SocialRelation create(long relationId)
      Creates a new social relation with the primary key. Does not add the social relation to the database.
      Parameters:
      relationId - the primary key for the new social relation
      Returns:
      the new social relation
    • remove

      public static SocialRelation remove(long relationId) throws NoSuchRelationException
      Removes the social relation with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      relationId - the primary key of the social relation
      Returns:
      the social relation that was removed
      Throws:
      NoSuchRelationException - if a social relation with the primary key could not be found
      NoSuchRelationException
    • updateImpl

      public static SocialRelation updateImpl(SocialRelation socialRelation)
    • findByPrimaryKey

      public static SocialRelation findByPrimaryKey(long relationId) throws NoSuchRelationException
      Returns the social relation with the primary key or throws a NoSuchRelationException if it could not be found.
      Parameters:
      relationId - the primary key of the social relation
      Returns:
      the social relation
      Throws:
      NoSuchRelationException - if a social relation with the primary key could not be found
      NoSuchRelationException
    • fetchByPrimaryKey

      public static SocialRelation fetchByPrimaryKey(long relationId)
      Returns the social relation with the primary key or returns null if it could not be found.
      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
    • findAll

      public static List<SocialRelation> findAll()
      Returns all the social relations.
      Returns:
      the social relations
    • findAll

      public static List<SocialRelation> findAll(int start, int end)
      Returns a range of all the social relations.

      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 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.

      Parameters:
      start - the lower bound of the range of social relations
      end - the upper bound of the range of social relations (not inclusive)
      Returns:
      the range of social relations
    • findAll

      public static List<SocialRelation> findAll(int start, int end, OrderByComparator<SocialRelation> orderByComparator)
      Returns an ordered range of all the social relations.

      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 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.

      Parameters:
      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)
      Returns:
      the ordered range of social relations
    • findAll

      public static List<SocialRelation> findAll(int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the social relations.

      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 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.

      Parameters:
      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 social relations
    • removeAll

      public static void removeAll()
      Removes all the social relations from the database.
    • countAll

      public static int countAll()
      Returns the number of social relations.
      Returns:
      the number of social relations
    • getPersistence

      public static SocialRelationPersistence getPersistence()
    • setPersistence

      public static void setPersistence(SocialRelationPersistence persistence)