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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>
      extended by com.liferay.portlet.social.service.persistence.SocialRelationPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialRelation>, com.liferay.portlet.social.service.persistence.SocialRelationPersistence

public class SocialRelationPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>
implements com.liferay.portlet.social.service.persistence.SocialRelationPersistence

The persistence implementation for the social relation service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
SocialRelationPersistence, SocialRelationUtil
Generated:

Field Summary
static java.lang.String FINDER_CLASS_NAME_ENTITY
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_T
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_TYPE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U1_T
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U1_U2
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U1_U2_T
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U2_T
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_USERID1
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_USERID2
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_UUID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_U1_U2_T
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_T
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TYPE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_T
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_U2
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U2_T
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID1
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID2
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_T
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TYPE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_T
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_U2
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U2_T
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID1
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID2
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
           
protected  com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence socialActivityAchievementPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence socialActivityCounterPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence socialActivityLimitPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivityPersistence socialActivityPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence socialActivitySettingPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialRelationPersistence socialRelationPersistence
           
protected  com.liferay.portlet.social.service.persistence.SocialRequestPersistence socialRequestPersistence
           
protected  com.liferay.portal.service.persistence.UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
SocialRelationPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the social relation persistence.
 void cacheResult(java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations)
          Caches the social relations in the entity cache if it is enabled.
 void cacheResult(com.liferay.portlet.social.model.SocialRelation socialRelation)
          Caches the social relation in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all social relations.
 void clearCache(java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations)
           
 void clearCache(com.liferay.portlet.social.model.SocialRelation socialRelation)
          Clears the cache for the social relation.
protected  void clearUniqueFindersCache(com.liferay.portlet.social.model.SocialRelation socialRelation)
           
 int countAll()
          Returns the number of social relations.
 int countByC_T(long companyId, int type)
          Returns the number of social relations where companyId = ? and type = ?.
 int countByCompanyId(long companyId)
          Returns the number of social relations where companyId = ?.
 int countByType(int type)
          Returns the number of social relations where type = ?.
 int countByU1_T(long userId1, int type)
          Returns the number of social relations where userId1 = ? and type = ?.
 int countByU1_U2_T(long userId1, long userId2, int type)
          Returns the number of social relations where userId1 = ? and userId2 = ? and type = ?.
 int countByU1_U2(long userId1, long userId2)
          Returns the number of social relations where userId1 = ? and userId2 = ?.
 int countByU2_T(long userId2, int type)
          Returns the number of social relations where userId2 = ? and type = ?.
 int countByUserId1(long userId1)
          Returns the number of social relations where userId1 = ?.
 int countByUserId2(long userId2)
          Returns the number of social relations where userId2 = ?.
 int countByUuid(java.lang.String uuid)
          Returns the number of social relations where uuid = ?.
 com.liferay.portlet.social.model.SocialRelation create(long relationId)
          Creates a new social relation with the primary key.
 void destroy()
           
 com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(long relationId)
          Returns the social relation with the primary key or returns null if it could not be found.
 com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(java.io.Serializable primaryKey)
          Returns the social relation with the primary key or returns null if it could not be found.
 com.liferay.portlet.social.model.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.
 com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(long userId1, long userId2, int type, boolean retrieveFromCache)
          Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returns null if it could not be found, optionally using the finder cache.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll()
          Returns all the social relations.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(int start, int end)
          Returns a range of all the social relations.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social relations.
 com.liferay.portlet.social.model.SocialRelation findByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social relation in the ordered set where companyId = ? and type = ?.
 com.liferay.portlet.social.model.SocialRelation findByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social relation in the ordered set where companyId = ? and type = ?.
 com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext(long relationId, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where companyId = ? and type = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(long companyId, int type)
          Returns all the social relations where companyId = ? and type = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(long companyId, int type, int start, int end)
          Returns a range of all the social relations where companyId = ? and type = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social relations where companyId = ? and type = ?.
 com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social relation in the ordered set where companyId = ?.
 com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social relation in the ordered set where companyId = ?.
 com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(long relationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where companyId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(long companyId)
          Returns all the social relations where companyId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the social relations where companyId = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social relations where companyId = ?.
 com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(long relationId)
          Returns the social relation with the primary key or throws a NoSuchRelationException if it could not be found.
 com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(java.io.Serializable primaryKey)
          Returns the social relation with the primary key or throws a NoSuchModelException if it could not be found.
 com.liferay.portlet.social.model.SocialRelation findByType_First(int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social relation in the ordered set where type = ?.
 com.liferay.portlet.social.model.SocialRelation findByType_Last(int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social relation in the ordered set where type = ?.
 com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext(long relationId, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where type = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(int type)
          Returns all the social relations where type = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(int type, int start, int end)
          Returns a range of all the social relations where type = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social relations where type = ?.
 com.liferay.portlet.social.model.SocialRelation findByU1_T_First(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social relation in the ordered set where userId1 = ? and type = ?.
 com.liferay.portlet.social.model.SocialRelation findByU1_T_Last(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social relation in the ordered set where userId1 = ? and type = ?.
 com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext(long relationId, long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and type = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(long userId1, int type)
          Returns all the social relations where userId1 = ? and type = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(long userId1, int type, int start, int end)
          Returns a range of all the social relations where userId1 = ? and type = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(long userId1, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social relations where userId1 = ? and type = ?.
 com.liferay.portlet.social.model.SocialRelation findByU1_U2_First(long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.
 com.liferay.portlet.social.model.SocialRelation findByU1_U2_Last(long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.
 com.liferay.portlet.social.model.SocialRelation[] findByU1_U2_PrevAndNext(long relationId, long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and userId2 = ?.
 com.liferay.portlet.social.model.SocialRelation findByU1_U2_T(long userId1, long userId2, int type)
          Returns the social relation where userId1 = ? and userId2 = ? and type = ? or throws a NoSuchRelationException if it could not be found.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_U2(long userId1, long userId2)
          Returns all the social relations where userId1 = ? and userId2 = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end)
          Returns a range of all the social relations where userId1 = ? and userId2 = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.
 com.liferay.portlet.social.model.SocialRelation findByU2_T_First(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social relation in the ordered set where userId2 = ? and type = ?.
 com.liferay.portlet.social.model.SocialRelation findByU2_T_Last(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social relation in the ordered set where userId2 = ? and type = ?.
 com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext(long relationId, long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where userId2 = ? and type = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(long userId2, int type)
          Returns all the social relations where userId2 = ? and type = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(long userId2, int type, int start, int end)
          Returns a range of all the social relations where userId2 = ? and type = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(long userId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social relations where userId2 = ? and type = ?.
 com.liferay.portlet.social.model.SocialRelation findByUserId1_First(long userId1, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social relation in the ordered set where userId1 = ?.
 com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(long userId1, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social relation in the ordered set where userId1 = ?.
 com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(long relationId, long userId1, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where userId1 = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(long userId1)
          Returns all the social relations where userId1 = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(long userId1, int start, int end)
          Returns a range of all the social relations where userId1 = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(long userId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social relations where userId1 = ?.
 com.liferay.portlet.social.model.SocialRelation findByUserId2_First(long userId2, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social relation in the ordered set where userId2 = ?.
 com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(long userId2, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social relation in the ordered set where userId2 = ?.
 com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(long relationId, long userId2, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where userId2 = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(long userId2)
          Returns all the social relations where userId2 = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(long userId2, int start, int end)
          Returns a range of all the social relations where userId2 = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social relations where userId2 = ?.
 com.liferay.portlet.social.model.SocialRelation findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first social relation in the ordered set where uuid = ?.
 com.liferay.portlet.social.model.SocialRelation findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last social relation in the ordered set where uuid = ?.
 com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext(long relationId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where uuid = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(java.lang.String uuid)
          Returns all the social relations where uuid = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(java.lang.String uuid, int start, int end)
          Returns a range of all the social relations where uuid = ?.
 java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the social relations where uuid = ?.
protected  com.liferay.portlet.social.model.SocialRelation getByC_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialRelation socialRelation, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialRelation getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialRelation socialRelation, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialRelation getByType_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialRelation socialRelation, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialRelation getByU1_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialRelation socialRelation, long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialRelation getByU1_U2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialRelation socialRelation, long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialRelation getByU2_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialRelation socialRelation, long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialRelation getByUserId1_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialRelation socialRelation, long userId1, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialRelation getByUserId2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialRelation socialRelation, long userId2, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.social.model.SocialRelation getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.social.model.SocialRelation socialRelation, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 com.liferay.portlet.social.model.SocialRelation remove(long relationId)
          Removes the social relation with the primary key from the database.
 com.liferay.portlet.social.model.SocialRelation remove(java.io.Serializable primaryKey)
          Removes the social relation with the primary key from the database.
 void removeAll()
          Removes all the social relations from the database.
 void removeByC_T(long companyId, int type)
          Removes all the social relations where companyId = ? and type = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the social relations where companyId = ? from the database.
 void removeByType(int type)
          Removes all the social relations where type = ? from the database.
 void removeByU1_T(long userId1, int type)
          Removes all the social relations where userId1 = ? and type = ? from the database.
 void removeByU1_U2_T(long userId1, long userId2, int type)
          Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database.
 void removeByU1_U2(long userId1, long userId2)
          Removes all the social relations where userId1 = ? and userId2 = ? from the database.
 void removeByU2_T(long userId2, int type)
          Removes all the social relations where userId2 = ? and type = ? from the database.
 void removeByUserId1(long userId1)
          Removes all the social relations where userId1 = ? from the database.
 void removeByUserId2(long userId2)
          Removes all the social relations where userId2 = ? from the database.
 void removeByUuid(java.lang.String uuid)
          Removes all the social relations where uuid = ? from the database.
protected  com.liferay.portlet.social.model.SocialRelation removeImpl(com.liferay.portlet.social.model.SocialRelation socialRelation)
           
protected  com.liferay.portlet.social.model.SocialRelation toUnwrappedModel(com.liferay.portlet.social.model.SocialRelation socialRelation)
           
 com.liferay.portlet.social.model.SocialRelation updateImpl(com.liferay.portlet.social.model.SocialRelation socialRelation, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final java.lang.String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID1

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID1

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID1

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID1

FINDER_PATH_COUNT_BY_USERID1

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_USERID1

FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID2

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID2

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID2

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID2

FINDER_PATH_COUNT_BY_USERID2

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_USERID2

FINDER_PATH_WITH_PAGINATION_FIND_BY_TYPE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TYPE

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TYPE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TYPE

FINDER_PATH_COUNT_BY_TYPE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_TYPE

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_T

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_T

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_T

FINDER_PATH_COUNT_BY_C_T

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_T

FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_U2

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_U2

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_U2

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_U2

FINDER_PATH_COUNT_BY_U1_U2

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U1_U2

FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_T

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_T

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_T

FINDER_PATH_COUNT_BY_U1_T

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U1_T

FINDER_PATH_WITH_PAGINATION_FIND_BY_U2_T

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U2_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U2_T

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U2_T

FINDER_PATH_COUNT_BY_U2_T

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U2_T

FINDER_PATH_FETCH_BY_U1_U2_T

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_U1_U2_T

FINDER_PATH_COUNT_BY_U1_U2_T

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_U1_U2_T

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL

socialActivityPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivityPersistence socialActivityPersistence

socialActivityAchievementPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence socialActivityAchievementPersistence

socialActivityCounterPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence socialActivityCounterPersistence

socialActivityLimitPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence socialActivityLimitPersistence

socialActivitySettingPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence socialActivitySettingPersistence

socialRelationPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialRelationPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialRelationPersistence socialRelationPersistence

socialRequestPersistence

@BeanReference(type=com.liferay.portlet.social.service.persistence.SocialRequestPersistence.class)
protected com.liferay.portlet.social.service.persistence.SocialRequestPersistence socialRequestPersistence

resourcePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePersistence.class)
protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class)
protected com.liferay.portal.service.persistence.UserPersistence userPersistence
Constructor Detail

SocialRelationPersistenceImpl

public SocialRelationPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(com.liferay.portlet.social.model.SocialRelation socialRelation)
Caches the social relation in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
socialRelation - the social relation

cacheResult

public void cacheResult(java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations)
Caches the social relations in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
socialRelations - the social relations

clearCache

public void clearCache()
Clears the cache for all social relations.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialRelation>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>

clearCache

public void clearCache(com.liferay.portlet.social.model.SocialRelation socialRelation)
Clears the cache for the social relation.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialRelation>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>

clearCache

public void clearCache(java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations)
Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialRelation>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>

clearUniqueFindersCache

protected void clearUniqueFindersCache(com.liferay.portlet.social.model.SocialRelation socialRelation)

create

public com.liferay.portlet.social.model.SocialRelation create(long relationId)
Creates a new social relation with the primary key. Does not add the social relation to the database.

Specified by:
create in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
relationId - the primary key for the new social relation
Returns:
the new social relation

remove

public com.liferay.portlet.social.model.SocialRelation remove(long relationId)
                                                       throws com.liferay.portlet.social.NoSuchRelationException,
                                                              com.liferay.portal.kernel.exception.SystemException
Removes the social relation with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
relationId - the primary key of the social relation
Returns:
the social relation that was removed
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

remove

public com.liferay.portlet.social.model.SocialRelation remove(java.io.Serializable primaryKey)
                                                       throws com.liferay.portlet.social.NoSuchRelationException,
                                                              com.liferay.portal.kernel.exception.SystemException
Removes the social relation with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialRelation>
Overrides:
remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>
Parameters:
primaryKey - the primary key of the social relation
Returns:
the social relation that was removed
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeImpl

protected com.liferay.portlet.social.model.SocialRelation removeImpl(com.liferay.portlet.social.model.SocialRelation socialRelation)
                                                              throws com.liferay.portal.kernel.exception.SystemException
Overrides:
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>
Throws:
com.liferay.portal.kernel.exception.SystemException

updateImpl

public com.liferay.portlet.social.model.SocialRelation updateImpl(com.liferay.portlet.social.model.SocialRelation socialRelation,
                                                                  boolean merge)
                                                           throws com.liferay.portal.kernel.exception.SystemException
Specified by:
updateImpl in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Overrides:
updateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>
Throws:
com.liferay.portal.kernel.exception.SystemException

toUnwrappedModel

protected com.liferay.portlet.social.model.SocialRelation toUnwrappedModel(com.liferay.portlet.social.model.SocialRelation socialRelation)

findByPrimaryKey

public com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(java.io.Serializable primaryKey)
                                                                 throws com.liferay.portal.NoSuchModelException,
                                                                        com.liferay.portal.kernel.exception.SystemException
Returns the social relation with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialRelation>
Overrides:
findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>
Parameters:
primaryKey - the primary key of the social relation
Returns:
the social relation
Throws:
com.liferay.portal.NoSuchModelException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByPrimaryKey

public com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(long relationId)
                                                                 throws com.liferay.portlet.social.NoSuchRelationException,
                                                                        com.liferay.portal.kernel.exception.SystemException
Returns the social relation with the primary key or throws a NoSuchRelationException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
relationId - the primary key of the social relation
Returns:
the social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(java.io.Serializable primaryKey)
                                                                  throws com.liferay.portal.kernel.exception.SystemException
Returns the social relation with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.social.model.SocialRelation>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.social.model.SocialRelation>
Parameters:
primaryKey - 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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(long relationId)
                                                                  throws com.liferay.portal.kernel.exception.SystemException
Returns the social relation with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
relationId - the primary key of the social relation
Returns:
the social relation, or null if a social relation with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUuid

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(java.lang.String uuid)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns all the social relations where uuid = ?.

Specified by:
findByUuid in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
uuid - the uuid
Returns:
the matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUuid

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(java.lang.String uuid,
                                                                                  int start,
                                                                                  int end)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByUuid in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
Returns:
the range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUuid

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(java.lang.String uuid,
                                                                                  int start,
                                                                                  int end,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByUuid in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUuid_First

public com.liferay.portlet.social.model.SocialRelation findByUuid_First(java.lang.String uuid,
                                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                 throws com.liferay.portlet.social.NoSuchRelationException,
                                                                        com.liferay.portal.kernel.exception.SystemException
Returns the first social relation in the ordered set 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.

Specified by:
findByUuid_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUuid_Last

public com.liferay.portlet.social.model.SocialRelation findByUuid_Last(java.lang.String uuid,
                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                throws com.liferay.portlet.social.NoSuchRelationException,
                                                                       com.liferay.portal.kernel.exception.SystemException
Returns the last social relation in the ordered set 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.

Specified by:
findByUuid_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUuid_PrevAndNext

public com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext(long relationId,
                                                                                java.lang.String uuid,
                                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                         throws com.liferay.portlet.social.NoSuchRelationException,
                                                                                com.liferay.portal.kernel.exception.SystemException
Returns the social relations before and after the current social relation in the ordered set 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.

Specified by:
findByUuid_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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:
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByUuid_PrevAndNext

protected com.liferay.portlet.social.model.SocialRelation getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                com.liferay.portlet.social.model.SocialRelation socialRelation,
                                                                                java.lang.String uuid,
                                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                boolean previous)

findByCompanyId

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(long companyId)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns all the social relations where companyId = ?.

Specified by:
findByCompanyId in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
companyId - the company ID
Returns:
the matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(long companyId,
                                                                                       int start,
                                                                                       int end)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByCompanyId in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
Returns:
the range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(long companyId,
                                                                                       int start,
                                                                                       int end,
                                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByCompanyId in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_First

public com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(long companyId,
                                                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                      throws com.liferay.portlet.social.NoSuchRelationException,
                                                                             com.liferay.portal.kernel.exception.SystemException
Returns the first social relation in the ordered set 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.

Specified by:
findByCompanyId_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_Last

public com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(long companyId,
                                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                     throws com.liferay.portlet.social.NoSuchRelationException,
                                                                            com.liferay.portal.kernel.exception.SystemException
Returns the last social relation in the ordered set 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.

Specified by:
findByCompanyId_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(long relationId,
                                                                                     long companyId,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                              throws com.liferay.portlet.social.NoSuchRelationException,
                                                                                     com.liferay.portal.kernel.exception.SystemException
Returns the social relations before and after the current social relation in the ordered set 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.

Specified by:
findByCompanyId_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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:
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByCompanyId_PrevAndNext

protected com.liferay.portlet.social.model.SocialRelation getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                     com.liferay.portlet.social.model.SocialRelation socialRelation,
                                                                                     long companyId,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                     boolean previous)

findByUserId1

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(long userId1)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns all the social relations where userId1 = ?.

Specified by:
findByUserId1 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
Returns:
the matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUserId1

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(long userId1,
                                                                                     int start,
                                                                                     int end)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByUserId1 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
Returns:
the range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUserId1

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(long userId1,
                                                                                     int start,
                                                                                     int end,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByUserId1 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUserId1_First

public com.liferay.portlet.social.model.SocialRelation findByUserId1_First(long userId1,
                                                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                    throws com.liferay.portlet.social.NoSuchRelationException,
                                                                           com.liferay.portal.kernel.exception.SystemException
Returns the first social relation in the ordered set 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.

Specified by:
findByUserId1_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUserId1_Last

public com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(long userId1,
                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                   throws com.liferay.portlet.social.NoSuchRelationException,
                                                                          com.liferay.portal.kernel.exception.SystemException
Returns the last social relation in the ordered set 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.

Specified by:
findByUserId1_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUserId1_PrevAndNext

public com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(long relationId,
                                                                                   long userId1,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                            throws com.liferay.portlet.social.NoSuchRelationException,
                                                                                   com.liferay.portal.kernel.exception.SystemException
Returns the social relations before and after the current social relation in the ordered set 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.

Specified by:
findByUserId1_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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:
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByUserId1_PrevAndNext

protected com.liferay.portlet.social.model.SocialRelation getByUserId1_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                   com.liferay.portlet.social.model.SocialRelation socialRelation,
                                                                                   long userId1,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                   boolean previous)

findByUserId2

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(long userId2)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns all the social relations where userId2 = ?.

Specified by:
findByUserId2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId2 - the user id2
Returns:
the matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUserId2

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(long userId2,
                                                                                     int start,
                                                                                     int end)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByUserId2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId2 - the user id2
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
Returns:
the range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUserId2

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(long userId2,
                                                                                     int start,
                                                                                     int end,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByUserId2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId2 - the user id2
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUserId2_First

public com.liferay.portlet.social.model.SocialRelation findByUserId2_First(long userId2,
                                                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                    throws com.liferay.portlet.social.NoSuchRelationException,
                                                                           com.liferay.portal.kernel.exception.SystemException
Returns the first social relation in the ordered set 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.

Specified by:
findByUserId2_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId2 - the user id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUserId2_Last

public com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(long userId2,
                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                   throws com.liferay.portlet.social.NoSuchRelationException,
                                                                          com.liferay.portal.kernel.exception.SystemException
Returns the last social relation in the ordered set 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.

Specified by:
findByUserId2_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId2 - the user id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByUserId2_PrevAndNext

public com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(long relationId,
                                                                                   long userId2,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                            throws com.liferay.portlet.social.NoSuchRelationException,
                                                                                   com.liferay.portal.kernel.exception.SystemException
Returns the social relations before and after the current social relation in the ordered set 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.

Specified by:
findByUserId2_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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:
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByUserId2_PrevAndNext

protected com.liferay.portlet.social.model.SocialRelation getByUserId2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                   com.liferay.portlet.social.model.SocialRelation socialRelation,
                                                                                   long userId2,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                   boolean previous)

findByType

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(int type)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns all the social relations where type = ?.

Specified by:
findByType in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
type - the type
Returns:
the matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByType

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(int type,
                                                                                  int start,
                                                                                  int end)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByType in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
type - the type
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
Returns:
the range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByType

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(int type,
                                                                                  int start,
                                                                                  int end,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByType in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
type - the type
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByType_First

public com.liferay.portlet.social.model.SocialRelation findByType_First(int type,
                                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                 throws com.liferay.portlet.social.NoSuchRelationException,
                                                                        com.liferay.portal.kernel.exception.SystemException
Returns the first social relation in the ordered set 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.

Specified by:
findByType_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByType_Last

public com.liferay.portlet.social.model.SocialRelation findByType_Last(int type,
                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                throws com.liferay.portlet.social.NoSuchRelationException,
                                                                       com.liferay.portal.kernel.exception.SystemException
Returns the last social relation in the ordered set 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.

Specified by:
findByType_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByType_PrevAndNext

public com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext(long relationId,
                                                                                int type,
                                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                         throws com.liferay.portlet.social.NoSuchRelationException,
                                                                                com.liferay.portal.kernel.exception.SystemException
Returns the social relations before and after the current social relation in the ordered set 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.

Specified by:
findByType_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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:
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByType_PrevAndNext

protected com.liferay.portlet.social.model.SocialRelation getByType_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                com.liferay.portlet.social.model.SocialRelation socialRelation,
                                                                                int type,
                                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                boolean previous)

findByC_T

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(long companyId,
                                                                                 int type)
                                                                          throws com.liferay.portal.kernel.exception.SystemException
Returns all the social relations where companyId = ? and type = ?.

Specified by:
findByC_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
companyId - the company ID
type - the type
Returns:
the matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_T

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(long companyId,
                                                                                 int type,
                                                                                 int start,
                                                                                 int end)
                                                                          throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByC_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
companyId - the company ID
type - the type
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
Returns:
the range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_T

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(long companyId,
                                                                                 int type,
                                                                                 int start,
                                                                                 int end,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                          throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByC_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
companyId - the company ID
type - the type
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_T_First

public com.liferay.portlet.social.model.SocialRelation findByC_T_First(long companyId,
                                                                       int type,
                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                throws com.liferay.portlet.social.NoSuchRelationException,
                                                                       com.liferay.portal.kernel.exception.SystemException
Returns the first social relation in the ordered set 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.

Specified by:
findByC_T_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
companyId - the company ID
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_T_Last

public com.liferay.portlet.social.model.SocialRelation findByC_T_Last(long companyId,
                                                                      int type,
                                                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                               throws com.liferay.portlet.social.NoSuchRelationException,
                                                                      com.liferay.portal.kernel.exception.SystemException
Returns the last social relation in the ordered set 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.

Specified by:
findByC_T_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_T_PrevAndNext

public com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext(long relationId,
                                                                               long companyId,
                                                                               int type,
                                                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                        throws com.liferay.portlet.social.NoSuchRelationException,
                                                                               com.liferay.portal.kernel.exception.SystemException
Returns the social relations before and after the current social relation in the ordered set 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.

Specified by:
findByC_T_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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:
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByC_T_PrevAndNext

protected com.liferay.portlet.social.model.SocialRelation getByC_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                               com.liferay.portlet.social.model.SocialRelation socialRelation,
                                                                               long companyId,
                                                                               int type,
                                                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                               boolean previous)

findByU1_U2

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_U2(long userId1,
                                                                                   long userId2)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns all the social relations where userId1 = ? and userId2 = ?.

Specified by:
findByU1_U2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
Returns:
the matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByU1_U2

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_U2(long userId1,
                                                                                   long userId2,
                                                                                   int start,
                                                                                   int end)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByU1_U2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
Returns:
the range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByU1_U2

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_U2(long userId1,
                                                                                   long userId2,
                                                                                   int start,
                                                                                   int end,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByU1_U2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByU1_U2_First

public com.liferay.portlet.social.model.SocialRelation findByU1_U2_First(long userId1,
                                                                         long userId2,
                                                                         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                  throws com.liferay.portlet.social.NoSuchRelationException,
                                                                         com.liferay.portal.kernel.exception.SystemException
Returns the first social relation in the ordered set 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.

Specified by:
findByU1_U2_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByU1_U2_Last

public com.liferay.portlet.social.model.SocialRelation findByU1_U2_Last(long userId1,
                                                                        long userId2,
                                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                 throws com.liferay.portlet.social.NoSuchRelationException,
                                                                        com.liferay.portal.kernel.exception.SystemException
Returns the last social relation in the ordered set 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.

Specified by:
findByU1_U2_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByU1_U2_PrevAndNext

public com.liferay.portlet.social.model.SocialRelation[] findByU1_U2_PrevAndNext(long relationId,
                                                                                 long userId1,
                                                                                 long userId2,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                          throws com.liferay.portlet.social.NoSuchRelationException,
                                                                                 com.liferay.portal.kernel.exception.SystemException
Returns the social relations before and after the current social relation in the ordered set 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.

Specified by:
findByU1_U2_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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:
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByU1_U2_PrevAndNext

protected com.liferay.portlet.social.model.SocialRelation getByU1_U2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                 com.liferay.portlet.social.model.SocialRelation socialRelation,
                                                                                 long userId1,
                                                                                 long userId2,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                 boolean previous)

findByU1_T

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(long userId1,
                                                                                  int type)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns all the social relations where userId1 = ? and type = ?.

Specified by:
findByU1_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
type - the type
Returns:
the matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByU1_T

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(long userId1,
                                                                                  int type,
                                                                                  int start,
                                                                                  int end)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByU1_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
type - the type
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
Returns:
the range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByU1_T

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(long userId1,
                                                                                  int type,
                                                                                  int start,
                                                                                  int end,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByU1_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
type - the type
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByU1_T_First

public com.liferay.portlet.social.model.SocialRelation findByU1_T_First(long userId1,
                                                                        int type,
                                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                 throws com.liferay.portlet.social.NoSuchRelationException,
                                                                        com.liferay.portal.kernel.exception.SystemException
Returns the first social relation in the ordered set 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.

Specified by:
findByU1_T_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByU1_T_Last

public com.liferay.portlet.social.model.SocialRelation findByU1_T_Last(long userId1,
                                                                       int type,
                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                throws com.liferay.portlet.social.NoSuchRelationException,
                                                                       com.liferay.portal.kernel.exception.SystemException
Returns the last social relation in the ordered set 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.

Specified by:
findByU1_T_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByU1_T_PrevAndNext

public com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext(long relationId,
                                                                                long userId1,
                                                                                int type,
                                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                         throws com.liferay.portlet.social.NoSuchRelationException,
                                                                                com.liferay.portal.kernel.exception.SystemException
Returns the social relations before and after the current social relation in the ordered set 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.

Specified by:
findByU1_T_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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:
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByU1_T_PrevAndNext

protected com.liferay.portlet.social.model.SocialRelation getByU1_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                com.liferay.portlet.social.model.SocialRelation socialRelation,
                                                                                long userId1,
                                                                                int type,
                                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                boolean previous)

findByU2_T

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(long userId2,
                                                                                  int type)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns all the social relations where userId2 = ? and type = ?.

Specified by:
findByU2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId2 - the user id2
type - the type
Returns:
the matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByU2_T

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(long userId2,
                                                                                  int type,
                                                                                  int start,
                                                                                  int end)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByU2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId2 - the user id2
type - the type
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
Returns:
the range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByU2_T

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(long userId2,
                                                                                  int type,
                                                                                  int start,
                                                                                  int end,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findByU2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId2 - the user id2
type - the type
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByU2_T_First

public com.liferay.portlet.social.model.SocialRelation findByU2_T_First(long userId2,
                                                                        int type,
                                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                 throws com.liferay.portlet.social.NoSuchRelationException,
                                                                        com.liferay.portal.kernel.exception.SystemException
Returns the first social relation in the ordered set 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.

Specified by:
findByU2_T_First in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId2 - the user id2
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByU2_T_Last

public com.liferay.portlet.social.model.SocialRelation findByU2_T_Last(long userId2,
                                                                       int type,
                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                throws com.liferay.portlet.social.NoSuchRelationException,
                                                                       com.liferay.portal.kernel.exception.SystemException
Returns the last social relation in the ordered set 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.

Specified by:
findByU2_T_Last in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByU2_T_PrevAndNext

public com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext(long relationId,
                                                                                long userId2,
                                                                                int type,
                                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                         throws com.liferay.portlet.social.NoSuchRelationException,
                                                                                com.liferay.portal.kernel.exception.SystemException
Returns the social relations before and after the current social relation in the ordered set 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.

Specified by:
findByU2_T_PrevAndNext in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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:
com.liferay.portlet.social.NoSuchRelationException - if a social relation with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByU2_T_PrevAndNext

protected com.liferay.portlet.social.model.SocialRelation getByU2_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                com.liferay.portlet.social.model.SocialRelation socialRelation,
                                                                                long userId2,
                                                                                int type,
                                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                boolean previous)

findByU1_U2_T

public com.liferay.portlet.social.model.SocialRelation findByU1_U2_T(long userId1,
                                                                     long userId2,
                                                                     int type)
                                                              throws com.liferay.portlet.social.NoSuchRelationException,
                                                                     com.liferay.portal.kernel.exception.SystemException
Returns the social relation where userId1 = ? and userId2 = ? and type = ? or throws a NoSuchRelationException if it could not be found.

Specified by:
findByU1_U2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
type - the type
Returns:
the matching social relation
Throws:
com.liferay.portlet.social.NoSuchRelationException - if a matching social relation could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByU1_U2_T

public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(long userId1,
                                                                      long userId2,
                                                                      int type)
                                                               throws com.liferay.portal.kernel.exception.SystemException
Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByU1_U2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByU1_U2_T

public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(long userId1,
                                                                      long userId2,
                                                                      int type,
                                                                      boolean retrieveFromCache)
                                                               throws com.liferay.portal.kernel.exception.SystemException
Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByU1_U2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
type - the type
retrieveFromCache - whether to use the finder cache
Returns:
the matching social relation, or null if a matching social relation could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll()
                                                                        throws com.liferay.portal.kernel.exception.SystemException
Returns all the social relations.

Specified by:
findAll in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Returns:
the social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(int start,
                                                                               int end)
                                                                        throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findAll in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(int start,
                                                                               int end,
                                                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                        throws com.liferay.portal.kernel.exception.SystemException
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.

Specified by:
findAll in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
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
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByUuid

public void removeByUuid(java.lang.String uuid)
                  throws com.liferay.portal.kernel.exception.SystemException
Removes all the social relations where uuid = ? from the database.

Specified by:
removeByUuid in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
uuid - the uuid
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByCompanyId

public void removeByCompanyId(long companyId)
                       throws com.liferay.portal.kernel.exception.SystemException
Removes all the social relations where companyId = ? from the database.

Specified by:
removeByCompanyId in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
companyId - the company ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByUserId1

public void removeByUserId1(long userId1)
                     throws com.liferay.portal.kernel.exception.SystemException
Removes all the social relations where userId1 = ? from the database.

Specified by:
removeByUserId1 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByUserId2

public void removeByUserId2(long userId2)
                     throws com.liferay.portal.kernel.exception.SystemException
Removes all the social relations where userId2 = ? from the database.

Specified by:
removeByUserId2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId2 - the user id2
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByType

public void removeByType(int type)
                  throws com.liferay.portal.kernel.exception.SystemException
Removes all the social relations where type = ? from the database.

Specified by:
removeByType in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
type - the type
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByC_T

public void removeByC_T(long companyId,
                        int type)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes all the social relations where companyId = ? and type = ? from the database.

Specified by:
removeByC_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
companyId - the company ID
type - the type
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByU1_U2

public void removeByU1_U2(long userId1,
                          long userId2)
                   throws com.liferay.portal.kernel.exception.SystemException
Removes all the social relations where userId1 = ? and userId2 = ? from the database.

Specified by:
removeByU1_U2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByU1_T

public void removeByU1_T(long userId1,
                         int type)
                  throws com.liferay.portal.kernel.exception.SystemException
Removes all the social relations where userId1 = ? and type = ? from the database.

Specified by:
removeByU1_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
type - the type
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByU2_T

public void removeByU2_T(long userId2,
                         int type)
                  throws com.liferay.portal.kernel.exception.SystemException
Removes all the social relations where userId2 = ? and type = ? from the database.

Specified by:
removeByU2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId2 - the user id2
type - the type
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByU1_U2_T

public void removeByU1_U2_T(long userId1,
                            long userId2,
                            int type)
                     throws com.liferay.portlet.social.NoSuchRelationException,
                            com.liferay.portal.kernel.exception.SystemException
Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database.

Specified by:
removeByU1_U2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
type - the type
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.social.NoSuchRelationException

removeAll

public void removeAll()
               throws com.liferay.portal.kernel.exception.SystemException
Removes all the social relations from the database.

Specified by:
removeAll in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByUuid

public int countByUuid(java.lang.String uuid)
                throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social relations where uuid = ?.

Specified by:
countByUuid in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
uuid - the uuid
Returns:
the number of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByCompanyId

public int countByCompanyId(long companyId)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social relations where companyId = ?.

Specified by:
countByCompanyId in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByUserId1

public int countByUserId1(long userId1)
                   throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social relations where userId1 = ?.

Specified by:
countByUserId1 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
Returns:
the number of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByUserId2

public int countByUserId2(long userId2)
                   throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social relations where userId2 = ?.

Specified by:
countByUserId2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId2 - the user id2
Returns:
the number of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByType

public int countByType(int type)
                throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social relations where type = ?.

Specified by:
countByType in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
type - the type
Returns:
the number of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_T

public int countByC_T(long companyId,
                      int type)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social relations where companyId = ? and type = ?.

Specified by:
countByC_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
companyId - the company ID
type - the type
Returns:
the number of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByU1_U2

public int countByU1_U2(long userId1,
                        long userId2)
                 throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social relations where userId1 = ? and userId2 = ?.

Specified by:
countByU1_U2 in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
Returns:
the number of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByU1_T

public int countByU1_T(long userId1,
                       int type)
                throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social relations where userId1 = ? and type = ?.

Specified by:
countByU1_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
type - the type
Returns:
the number of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByU2_T

public int countByU2_T(long userId2,
                       int type)
                throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social relations where userId2 = ? and type = ?.

Specified by:
countByU2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId2 - the user id2
type - the type
Returns:
the number of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByU1_U2_T

public int countByU1_U2_T(long userId1,
                          long userId2,
                          int type)
                   throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social relations where userId1 = ? and userId2 = ? and type = ?.

Specified by:
countByU1_U2_T in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
type - the type
Returns:
the number of matching social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countAll

public int countAll()
             throws com.liferay.portal.kernel.exception.SystemException
Returns the number of social relations.

Specified by:
countAll in interface com.liferay.portlet.social.service.persistence.SocialRelationPersistence
Returns:
the number of social relations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the social relation persistence.


destroy

public void destroy()