com.liferay.portlet.social.service.persistence
Class SocialRelationUtil

java.lang.Object
  extended by com.liferay.portlet.social.service.persistence.SocialRelationUtil

public class SocialRelationUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
SocialRelationUtil()
           
 
Method Summary
static int countAll()
           
static int countByC_T(long companyId, int type)
           
static int countByCompanyId(long companyId)
           
static int countByType(int type)
           
static int countByU1_T(long userId1, int type)
           
static int countByU1_U2_T(long userId1, long userId2, int type)
           
static int countByU2_T(long userId2, int type)
           
static int countByUserId1(long userId1)
           
static int countByUserId2(long userId2)
           
static int countByUuid(java.lang.String uuid)
           
static SocialRelation create(long relationId)
           
static SocialRelation fetchByPrimaryKey(long relationId)
           
static SocialRelation fetchByU1_U2_T(long userId1, long userId2, int type)
           
static java.util.List<SocialRelation> findAll()
           
static java.util.List<SocialRelation> findAll(int start, int end)
           
static java.util.List<SocialRelation> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation[] findByC_T_PrevAndNext(long relationId, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<SocialRelation> findByC_T(long companyId, int type)
           
static java.util.List<SocialRelation> findByC_T(long companyId, int type, int start, int end)
           
static java.util.List<SocialRelation> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation[] findByCompanyId_PrevAndNext(long relationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<SocialRelation> findByCompanyId(long companyId)
           
static java.util.List<SocialRelation> findByCompanyId(long companyId, int start, int end)
           
static java.util.List<SocialRelation> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByPrimaryKey(long relationId)
           
static SocialRelation findByType_First(int type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByType_Last(int type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation[] findByType_PrevAndNext(long relationId, int type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<SocialRelation> findByType(int type)
           
static java.util.List<SocialRelation> findByType(int type, int start, int end)
           
static java.util.List<SocialRelation> findByType(int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByU1_T_First(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByU1_T_Last(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation[] findByU1_T_PrevAndNext(long relationId, long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<SocialRelation> findByU1_T(long userId1, int type)
           
static java.util.List<SocialRelation> findByU1_T(long userId1, int type, int start, int end)
           
static java.util.List<SocialRelation> findByU1_T(long userId1, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByU1_U2_T(long userId1, long userId2, int type)
           
static SocialRelation findByU2_T_First(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByU2_T_Last(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation[] findByU2_T_PrevAndNext(long relationId, long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<SocialRelation> findByU2_T(long userId2, int type)
           
static java.util.List<SocialRelation> findByU2_T(long userId2, int type, int start, int end)
           
static java.util.List<SocialRelation> findByU2_T(long userId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByUserId1_First(long userId1, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByUserId1_Last(long userId1, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation[] findByUserId1_PrevAndNext(long relationId, long userId1, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<SocialRelation> findByUserId1(long userId1)
           
static java.util.List<SocialRelation> findByUserId1(long userId1, int start, int end)
           
static java.util.List<SocialRelation> findByUserId1(long userId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByUserId2_First(long userId2, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByUserId2_Last(long userId2, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation[] findByUserId2_PrevAndNext(long relationId, long userId2, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<SocialRelation> findByUserId2(long userId2)
           
static java.util.List<SocialRelation> findByUserId2(long userId2, int start, int end)
           
static java.util.List<SocialRelation> findByUserId2(long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SocialRelation[] findByUuid_PrevAndNext(long relationId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<SocialRelation> findByUuid(java.lang.String uuid)
           
static java.util.List<SocialRelation> findByUuid(java.lang.String uuid, int start, int end)
           
static java.util.List<SocialRelation> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static SocialRelationPersistence getPersistence()
           
static SocialRelation remove(long relationId)
           
static SocialRelation remove(SocialRelation socialRelation)
           
static void removeAll()
           
static void removeByC_T(long companyId, int type)
           
static void removeByCompanyId(long companyId)
           
static void removeByType(int type)
           
static void removeByU1_T(long userId1, int type)
           
static void removeByU1_U2_T(long userId1, long userId2, int type)
           
static void removeByU2_T(long userId2, int type)
           
static void removeByUserId1(long userId1)
           
static void removeByUserId2(long userId2)
           
static void removeByUuid(java.lang.String uuid)
           
 void setPersistence(SocialRelationPersistence persistence)
           
static SocialRelation update(SocialRelation socialRelation)
          Deprecated. Use update(SocialRelation socialRelation, boolean merge).
static SocialRelation update(SocialRelation socialRelation, boolean merge)
          Add, update, or merge, the entity.
static SocialRelation updateImpl(SocialRelation socialRelation, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocialRelationUtil

public SocialRelationUtil()
Method Detail

create

public static SocialRelation create(long relationId)

remove

public static SocialRelation remove(long relationId)
                             throws com.liferay.portal.SystemException,
                                    NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

remove

public static SocialRelation remove(SocialRelation socialRelation)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static SocialRelation update(SocialRelation socialRelation)
                             throws com.liferay.portal.SystemException
Deprecated. Use update(SocialRelation socialRelation, boolean merge).

Throws:
com.liferay.portal.SystemException

update

public static SocialRelation update(SocialRelation socialRelation,
                                    boolean merge)
                             throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
socialRelation - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when socialRelation is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

public static SocialRelation updateImpl(SocialRelation socialRelation,
                                        boolean merge)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static SocialRelation findByPrimaryKey(long relationId)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

fetchByPrimaryKey

public static SocialRelation fetchByPrimaryKey(long relationId)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

public static java.util.List<SocialRelation> findByUuid(java.lang.String uuid)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

public static java.util.List<SocialRelation> findByUuid(java.lang.String uuid,
                                                        int start,
                                                        int end)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

public static java.util.List<SocialRelation> findByUuid(java.lang.String uuid,
                                                        int start,
                                                        int end,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid_First

public static SocialRelation findByUuid_First(java.lang.String uuid,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByUuid_Last

public static SocialRelation findByUuid_Last(java.lang.String uuid,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByUuid_PrevAndNext

public static SocialRelation[] findByUuid_PrevAndNext(long relationId,
                                                      java.lang.String uuid,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws com.liferay.portal.SystemException,
                                                      NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByCompanyId

public static java.util.List<SocialRelation> findByCompanyId(long companyId)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

public static java.util.List<SocialRelation> findByCompanyId(long companyId,
                                                             int start,
                                                             int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

public static java.util.List<SocialRelation> findByCompanyId(long companyId,
                                                             int start,
                                                             int end,
                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId_First

public static SocialRelation findByCompanyId_First(long companyId,
                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                            throws com.liferay.portal.SystemException,
                                                   NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByCompanyId_Last

public static SocialRelation findByCompanyId_Last(long companyId,
                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException,
                                                  NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByCompanyId_PrevAndNext

public static SocialRelation[] findByCompanyId_PrevAndNext(long relationId,
                                                           long companyId,
                                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                                    throws com.liferay.portal.SystemException,
                                                           NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByUserId1

public static java.util.List<SocialRelation> findByUserId1(long userId1)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId1

public static java.util.List<SocialRelation> findByUserId1(long userId1,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId1

public static java.util.List<SocialRelation> findByUserId1(long userId1,
                                                           int start,
                                                           int end,
                                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId1_First

public static SocialRelation findByUserId1_First(long userId1,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException,
                                                 NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByUserId1_Last

public static SocialRelation findByUserId1_Last(long userId1,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByUserId1_PrevAndNext

public static SocialRelation[] findByUserId1_PrevAndNext(long relationId,
                                                         long userId1,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                  throws com.liferay.portal.SystemException,
                                                         NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByUserId2

public static java.util.List<SocialRelation> findByUserId2(long userId2)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId2

public static java.util.List<SocialRelation> findByUserId2(long userId2,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId2

public static java.util.List<SocialRelation> findByUserId2(long userId2,
                                                           int start,
                                                           int end,
                                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId2_First

public static SocialRelation findByUserId2_First(long userId2,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException,
                                                 NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByUserId2_Last

public static SocialRelation findByUserId2_Last(long userId2,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByUserId2_PrevAndNext

public static SocialRelation[] findByUserId2_PrevAndNext(long relationId,
                                                         long userId2,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                  throws com.liferay.portal.SystemException,
                                                         NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByType

public static java.util.List<SocialRelation> findByType(int type)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByType

public static java.util.List<SocialRelation> findByType(int type,
                                                        int start,
                                                        int end)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByType

public static java.util.List<SocialRelation> findByType(int type,
                                                        int start,
                                                        int end,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByType_First

public static SocialRelation findByType_First(int type,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByType_Last

public static SocialRelation findByType_Last(int type,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByType_PrevAndNext

public static SocialRelation[] findByType_PrevAndNext(long relationId,
                                                      int type,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws com.liferay.portal.SystemException,
                                                      NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByC_T

public static java.util.List<SocialRelation> findByC_T(long companyId,
                                                       int type)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_T

public static java.util.List<SocialRelation> findByC_T(long companyId,
                                                       int type,
                                                       int start,
                                                       int end)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_T

public static java.util.List<SocialRelation> findByC_T(long companyId,
                                                       int type,
                                                       int start,
                                                       int end,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_T_First

public static SocialRelation findByC_T_First(long companyId,
                                             int type,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByC_T_Last

public static SocialRelation findByC_T_Last(long companyId,
                                            int type,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByC_T_PrevAndNext

public static SocialRelation[] findByC_T_PrevAndNext(long relationId,
                                                     long companyId,
                                                     int type,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException,
                                                     NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByU1_T

public static java.util.List<SocialRelation> findByU1_T(long userId1,
                                                        int type)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU1_T

public static java.util.List<SocialRelation> findByU1_T(long userId1,
                                                        int type,
                                                        int start,
                                                        int end)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU1_T

public static java.util.List<SocialRelation> findByU1_T(long userId1,
                                                        int type,
                                                        int start,
                                                        int end,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU1_T_First

public static SocialRelation findByU1_T_First(long userId1,
                                              int type,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByU1_T_Last

public static SocialRelation findByU1_T_Last(long userId1,
                                             int type,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByU1_T_PrevAndNext

public static SocialRelation[] findByU1_T_PrevAndNext(long relationId,
                                                      long userId1,
                                                      int type,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws com.liferay.portal.SystemException,
                                                      NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByU2_T

public static java.util.List<SocialRelation> findByU2_T(long userId2,
                                                        int type)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU2_T

public static java.util.List<SocialRelation> findByU2_T(long userId2,
                                                        int type,
                                                        int start,
                                                        int end)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU2_T

public static java.util.List<SocialRelation> findByU2_T(long userId2,
                                                        int type,
                                                        int start,
                                                        int end,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU2_T_First

public static SocialRelation findByU2_T_First(long userId2,
                                              int type,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException,
                                              NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByU2_T_Last

public static SocialRelation findByU2_T_Last(long userId2,
                                             int type,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByU2_T_PrevAndNext

public static SocialRelation[] findByU2_T_PrevAndNext(long relationId,
                                                      long userId2,
                                                      int type,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws com.liferay.portal.SystemException,
                                                      NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

findByU1_U2_T

public static SocialRelation findByU1_U2_T(long userId1,
                                           long userId2,
                                           int type)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

fetchByU1_U2_T

public static SocialRelation fetchByU1_U2_T(long userId1,
                                            long userId2,
                                            int type)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<SocialRelation> findAll()
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<SocialRelation> findAll(int start,
                                                     int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<SocialRelation> findAll(int start,
                                                     int end,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUuid

public static void removeByUuid(java.lang.String uuid)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByCompanyId

public static void removeByCompanyId(long companyId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUserId1

public static void removeByUserId1(long userId1)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUserId2

public static void removeByUserId2(long userId2)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByType

public static void removeByType(int type)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByC_T

public static void removeByC_T(long companyId,
                               int type)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByU1_T

public static void removeByU1_T(long userId1,
                                int type)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByU2_T

public static void removeByU2_T(long userId2,
                                int type)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByU1_U2_T

public static void removeByU1_U2_T(long userId1,
                                   long userId2,
                                   int type)
                            throws com.liferay.portal.SystemException,
                                   NoSuchRelationException
Throws:
com.liferay.portal.SystemException
NoSuchRelationException

removeAll

public static void removeAll()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUuid

public static int countByUuid(java.lang.String uuid)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByCompanyId

public static int countByCompanyId(long companyId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUserId1

public static int countByUserId1(long userId1)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUserId2

public static int countByUserId2(long userId2)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByType

public static int countByType(int type)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_T

public static int countByC_T(long companyId,
                             int type)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByU1_T

public static int countByU1_T(long userId1,
                              int type)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByU2_T

public static int countByU2_T(long userId2,
                              int type)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByU1_U2_T

public static int countByU1_U2_T(long userId1,
                                 long userId2,
                                 int type)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public static int countAll()
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPersistence

public static SocialRelationPersistence getPersistence()

setPersistence

public void setPersistence(SocialRelationPersistence persistence)