Liferay 7.0-ce-b4

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

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

@ProviderType
public class SocialRelationPersistenceImpl
extends BasePersistenceImpl<SocialRelation>
implements SocialRelationPersistence

The persistence implementation for the social relation service.

Caching information and settings can be found in portal.properties

See Also:
SocialRelationPersistence, SocialRelationUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
protected  CompanyProvider companyProvider
           
protected  EntityCache entityCache
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_T
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_TYPE
           
static FinderPath FINDER_PATH_COUNT_BY_U1_T
           
static FinderPath FINDER_PATH_COUNT_BY_U1_U2
           
static FinderPath FINDER_PATH_COUNT_BY_U1_U2_T
           
static FinderPath FINDER_PATH_COUNT_BY_U2_T
           
static FinderPath FINDER_PATH_COUNT_BY_USERID1
           
static FinderPath FINDER_PATH_COUNT_BY_USERID2
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_C
           
static FinderPath FINDER_PATH_FETCH_BY_U1_U2_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TYPE
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_U2
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U2_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID1
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID2
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_T
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TYPE
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_T
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_U2
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U2_T
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID1
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID2
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
           
protected  FinderCache finderCache
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, 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(List<SocialRelation> socialRelations)
          Caches the social relations in the entity cache if it is enabled.
 void cacheResult(SocialRelation socialRelation)
          Caches the social relation in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(SocialRelationModelImpl socialRelationModelImpl, boolean isNew)
           
 void clearCache()
          Clears the cache for all social relations.
 void clearCache(List<SocialRelation> socialRelations)
          Clears the cache for a List instances of this model.
 void clearCache(SocialRelation socialRelation)
          Clears the cache for the social relation.
protected  void clearUniqueFindersCache(SocialRelationModelImpl socialRelationModelImpl)
           
 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_C(String uuid, long companyId)
          Returns the number of social relations where uuid = ? and companyId = ?.
 int countByUuid(String uuid)
          Returns the number of social relations where uuid = ?.
 SocialRelation create(long relationId)
          Creates a new social relation with the primary key.
 void destroy()
           
 SocialRelation fetchByC_T_First(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where companyId = ? and type = ?.
 SocialRelation fetchByC_T_Last(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where companyId = ? and type = ?.
 SocialRelation fetchByCompanyId_First(long companyId, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where companyId = ?.
 SocialRelation fetchByCompanyId_Last(long companyId, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where companyId = ?.
 SocialRelation fetchByPrimaryKey(long relationId)
          Returns the social relation with the primary key or returns null if it could not be found.
 SocialRelation fetchByPrimaryKey(Serializable primaryKey)
          Returns the social relation with the primary key or returns null if it could not be found.
 Map<Serializable,SocialRelation> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 SocialRelation fetchByType_First(int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where type = ?.
 SocialRelation fetchByType_Last(int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where type = ?.
 SocialRelation fetchByU1_T_First(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where userId1 = ? and type = ?.
 SocialRelation fetchByU1_T_Last(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where userId1 = ? and type = ?.
 SocialRelation fetchByU1_U2_First(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.
 SocialRelation fetchByU1_U2_Last(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.
 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.
 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.
 SocialRelation fetchByU2_T_First(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where userId2 = ? and type = ?.
 SocialRelation fetchByU2_T_Last(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where userId2 = ? and type = ?.
 SocialRelation fetchByUserId1_First(long userId1, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where userId1 = ?.
 SocialRelation fetchByUserId1_Last(long userId1, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where userId1 = ?.
 SocialRelation fetchByUserId2_First(long userId2, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where userId2 = ?.
 SocialRelation fetchByUserId2_Last(long userId2, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where userId2 = ?.
 SocialRelation fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where uuid = ? and companyId = ?.
 SocialRelation fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where uuid = ? and companyId = ?.
 SocialRelation fetchByUuid_First(String uuid, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where uuid = ?.
 SocialRelation fetchByUuid_Last(String uuid, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where uuid = ?.
 List<SocialRelation> findAll()
          Returns all the social relations.
 List<SocialRelation> findAll(int start, int end)
          Returns a range of all the social relations.
 List<SocialRelation> findAll(int start, int end, OrderByComparator<SocialRelation> orderByComparator)
          Returns an ordered range of all the social relations.
 List<SocialRelation> findAll(int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social relations.
 SocialRelation findByC_T_First(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where companyId = ? and type = ?.
 SocialRelation findByC_T_Last(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where companyId = ? and type = ?.
 SocialRelation[] findByC_T_PrevAndNext(long relationId, long companyId, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where companyId = ? and type = ?.
 List<SocialRelation> findByC_T(long companyId, int type)
          Returns all the social relations where companyId = ? and type = ?.
 List<SocialRelation> findByC_T(long companyId, int type, int start, int end)
          Returns a range of all the social relations where companyId = ? and type = ?.
 List<SocialRelation> findByC_T(long companyId, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
          Returns an ordered range of all the social relations where companyId = ? and type = ?.
 List<SocialRelation> findByC_T(long companyId, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social relations where companyId = ? and type = ?.
 SocialRelation findByCompanyId_First(long companyId, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where companyId = ?.
 SocialRelation findByCompanyId_Last(long companyId, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where companyId = ?.
 SocialRelation[] findByCompanyId_PrevAndNext(long relationId, long companyId, OrderByComparator<SocialRelation> orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where companyId = ?.
 List<SocialRelation> findByCompanyId(long companyId)
          Returns all the social relations where companyId = ?.
 List<SocialRelation> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the social relations where companyId = ?.
 List<SocialRelation> findByCompanyId(long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
          Returns an ordered range of all the social relations where companyId = ?.
 List<SocialRelation> findByCompanyId(long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social relations where companyId = ?.
 SocialRelation findByPrimaryKey(long relationId)
          Returns the social relation with the primary key or throws a NoSuchRelationException if it could not be found.
 SocialRelation findByPrimaryKey(Serializable primaryKey)
          Returns the social relation with the primary key or throws a NoSuchModelException if it could not be found.
 SocialRelation findByType_First(int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where type = ?.
 SocialRelation findByType_Last(int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where type = ?.
 SocialRelation[] findByType_PrevAndNext(long relationId, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where type = ?.
 List<SocialRelation> findByType(int type)
          Returns all the social relations where type = ?.
 List<SocialRelation> findByType(int type, int start, int end)
          Returns a range of all the social relations where type = ?.
 List<SocialRelation> findByType(int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
          Returns an ordered range of all the social relations where type = ?.
 List<SocialRelation> findByType(int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social relations where type = ?.
 SocialRelation findByU1_T_First(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where userId1 = ? and type = ?.
 SocialRelation findByU1_T_Last(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where userId1 = ? and type = ?.
 SocialRelation[] findByU1_T_PrevAndNext(long relationId, long userId1, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and type = ?.
 List<SocialRelation> findByU1_T(long userId1, int type)
          Returns all the social relations where userId1 = ? and type = ?.
 List<SocialRelation> findByU1_T(long userId1, int type, int start, int end)
          Returns a range of all the social relations where userId1 = ? and type = ?.
 List<SocialRelation> findByU1_T(long userId1, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
          Returns an ordered range of all the social relations where userId1 = ? and type = ?.
 List<SocialRelation> findByU1_T(long userId1, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social relations where userId1 = ? and type = ?.
 SocialRelation findByU1_U2_First(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.
 SocialRelation findByU1_U2_Last(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.
 SocialRelation[] findByU1_U2_PrevAndNext(long relationId, long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and userId2 = ?.
 SocialRelation findByU1_U2_T(long userId1, long userId2, int type)
          Returns the social relation where userId1 = ? and userId2 = ? and type = ? or throws a NoSuchRelationException if it could not be found.
 List<SocialRelation> findByU1_U2(long userId1, long userId2)
          Returns all the social relations where userId1 = ? and userId2 = ?.
 List<SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end)
          Returns a range of all the social relations where userId1 = ? and userId2 = ?.
 List<SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
          Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.
 List<SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.
 SocialRelation findByU2_T_First(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where userId2 = ? and type = ?.
 SocialRelation findByU2_T_Last(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where userId2 = ? and type = ?.
 SocialRelation[] findByU2_T_PrevAndNext(long relationId, long userId2, int type, OrderByComparator<SocialRelation> orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where userId2 = ? and type = ?.
 List<SocialRelation> findByU2_T(long userId2, int type)
          Returns all the social relations where userId2 = ? and type = ?.
 List<SocialRelation> findByU2_T(long userId2, int type, int start, int end)
          Returns a range of all the social relations where userId2 = ? and type = ?.
 List<SocialRelation> findByU2_T(long userId2, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
          Returns an ordered range of all the social relations where userId2 = ? and type = ?.
 List<SocialRelation> findByU2_T(long userId2, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social relations where userId2 = ? and type = ?.
 SocialRelation findByUserId1_First(long userId1, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where userId1 = ?.
 SocialRelation findByUserId1_Last(long userId1, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where userId1 = ?.
 SocialRelation[] findByUserId1_PrevAndNext(long relationId, long userId1, OrderByComparator<SocialRelation> orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where userId1 = ?.
 List<SocialRelation> findByUserId1(long userId1)
          Returns all the social relations where userId1 = ?.
 List<SocialRelation> findByUserId1(long userId1, int start, int end)
          Returns a range of all the social relations where userId1 = ?.
 List<SocialRelation> findByUserId1(long userId1, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
          Returns an ordered range of all the social relations where userId1 = ?.
 List<SocialRelation> findByUserId1(long userId1, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social relations where userId1 = ?.
 SocialRelation findByUserId2_First(long userId2, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where userId2 = ?.
 SocialRelation findByUserId2_Last(long userId2, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where userId2 = ?.
 SocialRelation[] findByUserId2_PrevAndNext(long relationId, long userId2, OrderByComparator<SocialRelation> orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where userId2 = ?.
 List<SocialRelation> findByUserId2(long userId2)
          Returns all the social relations where userId2 = ?.
 List<SocialRelation> findByUserId2(long userId2, int start, int end)
          Returns a range of all the social relations where userId2 = ?.
 List<SocialRelation> findByUserId2(long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
          Returns an ordered range of all the social relations where userId2 = ?.
 List<SocialRelation> findByUserId2(long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social relations where userId2 = ?.
 SocialRelation findByUuid_C_First(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where uuid = ? and companyId = ?.
 SocialRelation findByUuid_C_Last(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where uuid = ? and companyId = ?.
 SocialRelation[] findByUuid_C_PrevAndNext(long relationId, String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where uuid = ? and companyId = ?.
 List<SocialRelation> findByUuid_C(String uuid, long companyId)
          Returns all the social relations where uuid = ? and companyId = ?.
 List<SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the social relations where uuid = ? and companyId = ?.
 List<SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
          Returns an ordered range of all the social relations where uuid = ? and companyId = ?.
 List<SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social relations where uuid = ? and companyId = ?.
 SocialRelation findByUuid_First(String uuid, OrderByComparator<SocialRelation> orderByComparator)
          Returns the first social relation in the ordered set where uuid = ?.
 SocialRelation findByUuid_Last(String uuid, OrderByComparator<SocialRelation> orderByComparator)
          Returns the last social relation in the ordered set where uuid = ?.
 SocialRelation[] findByUuid_PrevAndNext(long relationId, String uuid, OrderByComparator<SocialRelation> orderByComparator)
          Returns the social relations before and after the current social relation in the ordered set where uuid = ?.
 List<SocialRelation> findByUuid(String uuid)
          Returns all the social relations where uuid = ?.
 List<SocialRelation> findByUuid(String uuid, int start, int end)
          Returns a range of all the social relations where uuid = ?.
 List<SocialRelation> findByUuid(String uuid, int start, int end, OrderByComparator<SocialRelation> orderByComparator)
          Returns an ordered range of all the social relations where uuid = ?.
 List<SocialRelation> findByUuid(String uuid, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the social relations where uuid = ?.
 Set<String> getBadColumnNames()
           
protected  SocialRelation getByC_T_PrevAndNext(Session session, SocialRelation socialRelation, long companyId, int type, OrderByComparator<SocialRelation> orderByComparator, boolean previous)
           
protected  SocialRelation getByCompanyId_PrevAndNext(Session session, SocialRelation socialRelation, long companyId, OrderByComparator<SocialRelation> orderByComparator, boolean previous)
           
protected  SocialRelation getByType_PrevAndNext(Session session, SocialRelation socialRelation, int type, OrderByComparator<SocialRelation> orderByComparator, boolean previous)
           
protected  SocialRelation getByU1_T_PrevAndNext(Session session, SocialRelation socialRelation, long userId1, int type, OrderByComparator<SocialRelation> orderByComparator, boolean previous)
           
protected  SocialRelation getByU1_U2_PrevAndNext(Session session, SocialRelation socialRelation, long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator, boolean previous)
           
protected  SocialRelation getByU2_T_PrevAndNext(Session session, SocialRelation socialRelation, long userId2, int type, OrderByComparator<SocialRelation> orderByComparator, boolean previous)
           
protected  SocialRelation getByUserId1_PrevAndNext(Session session, SocialRelation socialRelation, long userId1, OrderByComparator<SocialRelation> orderByComparator, boolean previous)
           
protected  SocialRelation getByUserId2_PrevAndNext(Session session, SocialRelation socialRelation, long userId2, OrderByComparator<SocialRelation> orderByComparator, boolean previous)
           
protected  SocialRelation getByUuid_C_PrevAndNext(Session session, SocialRelation socialRelation, String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator, boolean previous)
           
protected  SocialRelation getByUuid_PrevAndNext(Session session, SocialRelation socialRelation, String uuid, OrderByComparator<SocialRelation> orderByComparator, boolean previous)
           
protected  Map<String,Integer> getTableColumnsMap()
           
 SocialRelation remove(long relationId)
          Removes the social relation with the primary key from the database.
 SocialRelation remove(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.
 SocialRelation 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_C(String uuid, long companyId)
          Removes all the social relations where uuid = ? and companyId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the social relations where uuid = ? from the database.
protected  SocialRelation removeImpl(SocialRelation socialRelation)
          Removes the model instance from the database.
protected  SocialRelation toUnwrappedModel(SocialRelation socialRelation)
           
 SocialRelation updateImpl(SocialRelation socialRelation)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
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, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_COUNT_BY_UUID_C

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID1

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID1

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID1

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID1

FINDER_PATH_COUNT_BY_USERID1

public static final FinderPath FINDER_PATH_COUNT_BY_USERID1

FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID2

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID2

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID2

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID2

FINDER_PATH_COUNT_BY_USERID2

public static final FinderPath FINDER_PATH_COUNT_BY_USERID2

FINDER_PATH_WITH_PAGINATION_FIND_BY_TYPE

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TYPE

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TYPE

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TYPE

FINDER_PATH_COUNT_BY_TYPE

public static final FinderPath FINDER_PATH_COUNT_BY_TYPE

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_T

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_T

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_T

FINDER_PATH_COUNT_BY_C_T

public static final FinderPath FINDER_PATH_COUNT_BY_C_T

FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_U2

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_U2

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_U2

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_U2

FINDER_PATH_COUNT_BY_U1_U2

public static final FinderPath FINDER_PATH_COUNT_BY_U1_U2

FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_T

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U1_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_T

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U1_T

FINDER_PATH_COUNT_BY_U1_T

public static final FinderPath FINDER_PATH_COUNT_BY_U1_T

FINDER_PATH_WITH_PAGINATION_FIND_BY_U2_T

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_U2_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U2_T

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_U2_T

FINDER_PATH_COUNT_BY_U2_T

public static final FinderPath FINDER_PATH_COUNT_BY_U2_T

FINDER_PATH_FETCH_BY_U1_U2_T

public static final FinderPath FINDER_PATH_FETCH_BY_U1_U2_T

FINDER_PATH_COUNT_BY_U1_U2_T

public static final FinderPath FINDER_PATH_COUNT_BY_U1_U2_T

companyProvider

@BeanReference(type=CompanyProviderWrapper.class)
protected CompanyProvider companyProvider

entityCache

protected EntityCache entityCache

finderCache

protected FinderCache finderCache
Constructor Detail

SocialRelationPersistenceImpl

public SocialRelationPersistenceImpl()
Method Detail

findByUuid

public List<SocialRelation> findByUuid(String uuid)
Returns all the social relations where uuid = ?.

Specified by:
findByUuid in interface SocialRelationPersistence
Parameters:
uuid - the uuid
Returns:
the matching social relations

findByUuid

public List<SocialRelation> findByUuid(String uuid,
                                       int start,
                                       int end)
Returns a range of all the social relations where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid in interface 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

findByUuid

public List<SocialRelation> findByUuid(String uuid,
                                       int start,
                                       int end,
                                       OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid in interface 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

findByUuid

public List<SocialRelation> findByUuid(String uuid,
                                       int start,
                                       int end,
                                       OrderByComparator<SocialRelation> orderByComparator,
                                       boolean retrieveFromCache)
Returns an ordered range of all the social relations where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid in interface 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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social relations

findByUuid_First

public SocialRelation findByUuid_First(String uuid,
                                       OrderByComparator<SocialRelation> orderByComparator)
                                throws NoSuchRelationException
Returns the first social relation in the ordered set where uuid = ?.

Specified by:
findByUuid_First in interface SocialRelationPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found

fetchByUuid_First

public SocialRelation fetchByUuid_First(String uuid,
                                        OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where uuid = ?.

Specified by:
fetchByUuid_First in interface SocialRelationPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation, or null if a matching social relation could not be found

findByUuid_Last

public SocialRelation findByUuid_Last(String uuid,
                                      OrderByComparator<SocialRelation> orderByComparator)
                               throws NoSuchRelationException
Returns the last social relation in the ordered set where uuid = ?.

Specified by:
findByUuid_Last in interface SocialRelationPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found

fetchByUuid_Last

public SocialRelation fetchByUuid_Last(String uuid,
                                       OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where uuid = ?.

Specified by:
fetchByUuid_Last in interface SocialRelationPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation, or null if a matching social relation could not be found

findByUuid_PrevAndNext

public SocialRelation[] findByUuid_PrevAndNext(long relationId,
                                               String uuid,
                                               OrderByComparator<SocialRelation> orderByComparator)
                                        throws NoSuchRelationException
Returns the social relations before and after the current social relation in the ordered set where uuid = ?.

Specified by:
findByUuid_PrevAndNext in interface 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:
NoSuchRelationException - if a social relation with the primary key could not be found

getByUuid_PrevAndNext

protected SocialRelation getByUuid_PrevAndNext(Session session,
                                               SocialRelation socialRelation,
                                               String uuid,
                                               OrderByComparator<SocialRelation> orderByComparator,
                                               boolean previous)

removeByUuid

public void removeByUuid(String uuid)
Removes all the social relations where uuid = ? from the database.

Specified by:
removeByUuid in interface SocialRelationPersistence
Parameters:
uuid - the uuid

countByUuid

public int countByUuid(String uuid)
Returns the number of social relations where uuid = ?.

Specified by:
countByUuid in interface SocialRelationPersistence
Parameters:
uuid - the uuid
Returns:
the number of matching social relations

findByUuid_C

public List<SocialRelation> findByUuid_C(String uuid,
                                         long companyId)
Returns all the social relations where uuid = ? and companyId = ?.

Specified by:
findByUuid_C in interface SocialRelationPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching social relations

findByUuid_C

public List<SocialRelation> findByUuid_C(String uuid,
                                         long companyId,
                                         int start,
                                         int end)
Returns a range of all the social relations where uuid = ? and companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid_C in interface SocialRelationPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
Returns:
the range of matching social relations

findByUuid_C

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid_C in interface SocialRelationPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching social relations

findByUuid_C

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid_C in interface SocialRelationPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of social relations
end - the upper bound of the range of social relations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social relations

findByUuid_C_First

public SocialRelation findByUuid_C_First(String uuid,
                                         long companyId,
                                         OrderByComparator<SocialRelation> orderByComparator)
                                  throws NoSuchRelationException
Returns the first social relation in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_First in interface SocialRelationPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found

fetchByUuid_C_First

public SocialRelation fetchByUuid_C_First(String uuid,
                                          long companyId,
                                          OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_First in interface SocialRelationPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation, or null if a matching social relation could not be found

findByUuid_C_Last

public SocialRelation findByUuid_C_Last(String uuid,
                                        long companyId,
                                        OrderByComparator<SocialRelation> orderByComparator)
                                 throws NoSuchRelationException
Returns the last social relation in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_Last in interface SocialRelationPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found

fetchByUuid_C_Last

public SocialRelation fetchByUuid_C_Last(String uuid,
                                         long companyId,
                                         OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_Last in interface SocialRelationPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation, or null if a matching social relation could not be found

findByUuid_C_PrevAndNext

public SocialRelation[] findByUuid_C_PrevAndNext(long relationId,
                                                 String uuid,
                                                 long companyId,
                                                 OrderByComparator<SocialRelation> orderByComparator)
                                          throws NoSuchRelationException
Returns the social relations before and after the current social relation in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_PrevAndNext in interface SocialRelationPersistence
Parameters:
relationId - the primary key of the current social relation
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next social relation
Throws:
NoSuchRelationException - if a social relation with the primary key could not be found

getByUuid_C_PrevAndNext

protected SocialRelation getByUuid_C_PrevAndNext(Session session,
                                                 SocialRelation socialRelation,
                                                 String uuid,
                                                 long companyId,
                                                 OrderByComparator<SocialRelation> orderByComparator,
                                                 boolean previous)

removeByUuid_C

public void removeByUuid_C(String uuid,
                           long companyId)
Removes all the social relations where uuid = ? and companyId = ? from the database.

Specified by:
removeByUuid_C in interface SocialRelationPersistence
Parameters:
uuid - the uuid
companyId - the company ID

countByUuid_C

public int countByUuid_C(String uuid,
                         long companyId)
Returns the number of social relations where uuid = ? and companyId = ?.

Specified by:
countByUuid_C in interface SocialRelationPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching social relations

findByCompanyId

public List<SocialRelation> findByCompanyId(long companyId)
Returns all the social relations where companyId = ?.

Specified by:
findByCompanyId in interface SocialRelationPersistence
Parameters:
companyId - the company ID
Returns:
the matching social relations

findByCompanyId

public List<SocialRelation> findByCompanyId(long companyId,
                                            int start,
                                            int end)
Returns a range of all the social relations where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByCompanyId in interface 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

findByCompanyId

public List<SocialRelation> findByCompanyId(long companyId,
                                            int start,
                                            int end,
                                            OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByCompanyId in interface 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

findByCompanyId

public List<SocialRelation> findByCompanyId(long companyId,
                                            int start,
                                            int end,
                                            OrderByComparator<SocialRelation> orderByComparator,
                                            boolean retrieveFromCache)
Returns an ordered range of all the social relations where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByCompanyId in interface 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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social relations

findByCompanyId_First

public SocialRelation findByCompanyId_First(long companyId,
                                            OrderByComparator<SocialRelation> orderByComparator)
                                     throws NoSuchRelationException
Returns the first social relation in the ordered set where companyId = ?.

Specified by:
findByCompanyId_First in interface SocialRelationPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found

fetchByCompanyId_First

public SocialRelation fetchByCompanyId_First(long companyId,
                                             OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_First in interface SocialRelationPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation, or null if a matching social relation could not be found

findByCompanyId_Last

public SocialRelation findByCompanyId_Last(long companyId,
                                           OrderByComparator<SocialRelation> orderByComparator)
                                    throws NoSuchRelationException
Returns the last social relation in the ordered set where companyId = ?.

Specified by:
findByCompanyId_Last in interface SocialRelationPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found

fetchByCompanyId_Last

public SocialRelation fetchByCompanyId_Last(long companyId,
                                            OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_Last in interface SocialRelationPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation, or null if a matching social relation could not be found

findByCompanyId_PrevAndNext

public SocialRelation[] findByCompanyId_PrevAndNext(long relationId,
                                                    long companyId,
                                                    OrderByComparator<SocialRelation> orderByComparator)
                                             throws NoSuchRelationException
Returns the social relations before and after the current social relation in the ordered set where companyId = ?.

Specified by:
findByCompanyId_PrevAndNext in interface 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:
NoSuchRelationException - if a social relation with the primary key could not be found

getByCompanyId_PrevAndNext

protected SocialRelation getByCompanyId_PrevAndNext(Session session,
                                                    SocialRelation socialRelation,
                                                    long companyId,
                                                    OrderByComparator<SocialRelation> orderByComparator,
                                                    boolean previous)

removeByCompanyId

public void removeByCompanyId(long companyId)
Removes all the social relations where companyId = ? from the database.

Specified by:
removeByCompanyId in interface SocialRelationPersistence
Parameters:
companyId - the company ID

countByCompanyId

public int countByCompanyId(long companyId)
Returns the number of social relations where companyId = ?.

Specified by:
countByCompanyId in interface SocialRelationPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching social relations

findByUserId1

public List<SocialRelation> findByUserId1(long userId1)
Returns all the social relations where userId1 = ?.

Specified by:
findByUserId1 in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
Returns:
the matching social relations

findByUserId1

public List<SocialRelation> findByUserId1(long userId1,
                                          int start,
                                          int end)
Returns a range of all the social relations where userId1 = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUserId1 in interface 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

findByUserId1

public List<SocialRelation> findByUserId1(long userId1,
                                          int start,
                                          int end,
                                          OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId1 = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUserId1 in interface 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

findByUserId1

public List<SocialRelation> findByUserId1(long userId1,
                                          int start,
                                          int end,
                                          OrderByComparator<SocialRelation> orderByComparator,
                                          boolean retrieveFromCache)
Returns an ordered range of all the social relations where userId1 = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUserId1 in interface 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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social relations

findByUserId1_First

public SocialRelation findByUserId1_First(long userId1,
                                          OrderByComparator<SocialRelation> orderByComparator)
                                   throws NoSuchRelationException
Returns the first social relation in the ordered set where userId1 = ?.

Specified by:
findByUserId1_First in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found

fetchByUserId1_First

public SocialRelation fetchByUserId1_First(long userId1,
                                           OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ?.

Specified by:
fetchByUserId1_First in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation, or null if a matching social relation could not be found

findByUserId1_Last

public SocialRelation findByUserId1_Last(long userId1,
                                         OrderByComparator<SocialRelation> orderByComparator)
                                  throws NoSuchRelationException
Returns the last social relation in the ordered set where userId1 = ?.

Specified by:
findByUserId1_Last in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found

fetchByUserId1_Last

public SocialRelation fetchByUserId1_Last(long userId1,
                                          OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ?.

Specified by:
fetchByUserId1_Last in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation, or null if a matching social relation could not be found

findByUserId1_PrevAndNext

public SocialRelation[] findByUserId1_PrevAndNext(long relationId,
                                                  long userId1,
                                                  OrderByComparator<SocialRelation> orderByComparator)
                                           throws NoSuchRelationException
Returns the social relations before and after the current social relation in the ordered set where userId1 = ?.

Specified by:
findByUserId1_PrevAndNext in interface 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:
NoSuchRelationException - if a social relation with the primary key could not be found

getByUserId1_PrevAndNext

protected SocialRelation getByUserId1_PrevAndNext(Session session,
                                                  SocialRelation socialRelation,
                                                  long userId1,
                                                  OrderByComparator<SocialRelation> orderByComparator,
                                                  boolean previous)

removeByUserId1

public void removeByUserId1(long userId1)
Removes all the social relations where userId1 = ? from the database.

Specified by:
removeByUserId1 in interface SocialRelationPersistence
Parameters:
userId1 - the user id1

countByUserId1

public int countByUserId1(long userId1)
Returns the number of social relations where userId1 = ?.

Specified by:
countByUserId1 in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
Returns:
the number of matching social relations

findByUserId2

public List<SocialRelation> findByUserId2(long userId2)
Returns all the social relations where userId2 = ?.

Specified by:
findByUserId2 in interface SocialRelationPersistence
Parameters:
userId2 - the user id2
Returns:
the matching social relations

findByUserId2

public List<SocialRelation> findByUserId2(long userId2,
                                          int start,
                                          int end)
Returns a range of all the social relations where userId2 = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUserId2 in interface 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

findByUserId2

public List<SocialRelation> findByUserId2(long userId2,
                                          int start,
                                          int end,
                                          OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId2 = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUserId2 in interface 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

findByUserId2

public List<SocialRelation> findByUserId2(long userId2,
                                          int start,
                                          int end,
                                          OrderByComparator<SocialRelation> orderByComparator,
                                          boolean retrieveFromCache)
Returns an ordered range of all the social relations where userId2 = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUserId2 in interface 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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social relations

findByUserId2_First

public SocialRelation findByUserId2_First(long userId2,
                                          OrderByComparator<SocialRelation> orderByComparator)
                                   throws NoSuchRelationException
Returns the first social relation in the ordered set where userId2 = ?.

Specified by:
findByUserId2_First in interface SocialRelationPersistence
Parameters:
userId2 - the user id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found

fetchByUserId2_First

public SocialRelation fetchByUserId2_First(long userId2,
                                           OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId2 = ?.

Specified by:
fetchByUserId2_First in interface SocialRelationPersistence
Parameters:
userId2 - the user id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation, or null if a matching social relation could not be found

findByUserId2_Last

public SocialRelation findByUserId2_Last(long userId2,
                                         OrderByComparator<SocialRelation> orderByComparator)
                                  throws NoSuchRelationException
Returns the last social relation in the ordered set where userId2 = ?.

Specified by:
findByUserId2_Last in interface SocialRelationPersistence
Parameters:
userId2 - the user id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found

fetchByUserId2_Last

public SocialRelation fetchByUserId2_Last(long userId2,
                                          OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId2 = ?.

Specified by:
fetchByUserId2_Last in interface SocialRelationPersistence
Parameters:
userId2 - the user id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation, or null if a matching social relation could not be found

findByUserId2_PrevAndNext

public SocialRelation[] findByUserId2_PrevAndNext(long relationId,
                                                  long userId2,
                                                  OrderByComparator<SocialRelation> orderByComparator)
                                           throws NoSuchRelationException
Returns the social relations before and after the current social relation in the ordered set where userId2 = ?.

Specified by:
findByUserId2_PrevAndNext in interface 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:
NoSuchRelationException - if a social relation with the primary key could not be found

getByUserId2_PrevAndNext

protected SocialRelation getByUserId2_PrevAndNext(Session session,
                                                  SocialRelation socialRelation,
                                                  long userId2,
                                                  OrderByComparator<SocialRelation> orderByComparator,
                                                  boolean previous)

removeByUserId2

public void removeByUserId2(long userId2)
Removes all the social relations where userId2 = ? from the database.

Specified by:
removeByUserId2 in interface SocialRelationPersistence
Parameters:
userId2 - the user id2

countByUserId2

public int countByUserId2(long userId2)
Returns the number of social relations where userId2 = ?.

Specified by:
countByUserId2 in interface SocialRelationPersistence
Parameters:
userId2 - the user id2
Returns:
the number of matching social relations

findByType

public List<SocialRelation> findByType(int type)
Returns all the social relations where type = ?.

Specified by:
findByType in interface SocialRelationPersistence
Parameters:
type - the type
Returns:
the matching social relations

findByType

public List<SocialRelation> findByType(int type,
                                       int start,
                                       int end)
Returns a range of all the social relations where type = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByType in interface 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

findByType

public List<SocialRelation> findByType(int type,
                                       int start,
                                       int end,
                                       OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where type = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByType in interface 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

findByType

public List<SocialRelation> findByType(int type,
                                       int start,
                                       int end,
                                       OrderByComparator<SocialRelation> orderByComparator,
                                       boolean retrieveFromCache)
Returns an ordered range of all the social relations where type = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByType in interface 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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social relations

findByType_First

public SocialRelation findByType_First(int type,
                                       OrderByComparator<SocialRelation> orderByComparator)
                                throws NoSuchRelationException
Returns the first social relation in the ordered set where type = ?.

Specified by:
findByType_First in interface SocialRelationPersistence
Parameters:
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found

fetchByType_First

public SocialRelation fetchByType_First(int type,
                                        OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where type = ?.

Specified by:
fetchByType_First in interface SocialRelationPersistence
Parameters:
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation, or null if a matching social relation could not be found

findByType_Last

public SocialRelation findByType_Last(int type,
                                      OrderByComparator<SocialRelation> orderByComparator)
                               throws NoSuchRelationException
Returns the last social relation in the ordered set where type = ?.

Specified by:
findByType_Last in interface SocialRelationPersistence
Parameters:
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found

fetchByType_Last

public SocialRelation fetchByType_Last(int type,
                                       OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where type = ?.

Specified by:
fetchByType_Last in interface SocialRelationPersistence
Parameters:
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching social relation, or null if a matching social relation could not be found

findByType_PrevAndNext

public SocialRelation[] findByType_PrevAndNext(long relationId,
                                               int type,
                                               OrderByComparator<SocialRelation> orderByComparator)
                                        throws NoSuchRelationException
Returns the social relations before and after the current social relation in the ordered set where type = ?.

Specified by:
findByType_PrevAndNext in interface 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:
NoSuchRelationException - if a social relation with the primary key could not be found

getByType_PrevAndNext

protected SocialRelation getByType_PrevAndNext(Session session,
                                               SocialRelation socialRelation,
                                               int type,
                                               OrderByComparator<SocialRelation> orderByComparator,
                                               boolean previous)

removeByType

public void removeByType(int type)
Removes all the social relations where type = ? from the database.

Specified by:
removeByType in interface SocialRelationPersistence
Parameters:
type - the type

countByType

public int countByType(int type)
Returns the number of social relations where type = ?.

Specified by:
countByType in interface SocialRelationPersistence
Parameters:
type - the type
Returns:
the number of matching social relations

findByC_T

public List<SocialRelation> findByC_T(long companyId,
                                      int type)
Returns all the social relations where companyId = ? and type = ?.

Specified by:
findByC_T in interface SocialRelationPersistence
Parameters:
companyId - the company ID
type - the type
Returns:
the matching social relations

findByC_T

public List<SocialRelation> findByC_T(long companyId,
                                      int type,
                                      int start,
                                      int end)
Returns a range of all the social relations where companyId = ? and type = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByC_T in interface 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

findByC_T

public List<SocialRelation> findByC_T(long companyId,
                                      int type,
                                      int start,
                                      int end,
                                      OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where companyId = ? and type = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByC_T in interface 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

findByC_T

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByC_T in interface 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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social relations

findByC_T_First

public SocialRelation findByC_T_First(long companyId,
                                      int type,
                                      OrderByComparator<SocialRelation> orderByComparator)
                               throws NoSuchRelationException
Returns the first social relation in the ordered set where companyId = ? and type = ?.

Specified by:
findByC_T_First in interface 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:
NoSuchRelationException - if a matching social relation could not be found

fetchByC_T_First

public SocialRelation fetchByC_T_First(long companyId,
                                       int type,
                                       OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where companyId = ? and type = ?.

Specified by:
fetchByC_T_First in interface SocialRelationPersistence
Parameters:
companyId - the company ID
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation, or null if a matching social relation could not be found

findByC_T_Last

public SocialRelation findByC_T_Last(long companyId,
                                     int type,
                                     OrderByComparator<SocialRelation> orderByComparator)
                              throws NoSuchRelationException
Returns the last social relation in the ordered set where companyId = ? and type = ?.

Specified by:
findByC_T_Last in interface 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:
NoSuchRelationException - if a matching social relation could not be found

fetchByC_T_Last

public SocialRelation fetchByC_T_Last(long companyId,
                                      int type,
                                      OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where companyId = ? and type = ?.

Specified by:
fetchByC_T_Last in interface 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, or null if a matching social relation could not be found

findByC_T_PrevAndNext

public SocialRelation[] findByC_T_PrevAndNext(long relationId,
                                              long companyId,
                                              int type,
                                              OrderByComparator<SocialRelation> orderByComparator)
                                       throws NoSuchRelationException
Returns the social relations before and after the current social relation in the ordered set where companyId = ? and type = ?.

Specified by:
findByC_T_PrevAndNext in interface 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:
NoSuchRelationException - if a social relation with the primary key could not be found

getByC_T_PrevAndNext

protected SocialRelation getByC_T_PrevAndNext(Session session,
                                              SocialRelation socialRelation,
                                              long companyId,
                                              int type,
                                              OrderByComparator<SocialRelation> orderByComparator,
                                              boolean previous)

removeByC_T

public void removeByC_T(long companyId,
                        int type)
Removes all the social relations where companyId = ? and type = ? from the database.

Specified by:
removeByC_T in interface SocialRelationPersistence
Parameters:
companyId - the company ID
type - the type

countByC_T

public int countByC_T(long companyId,
                      int type)
Returns the number of social relations where companyId = ? and type = ?.

Specified by:
countByC_T in interface SocialRelationPersistence
Parameters:
companyId - the company ID
type - the type
Returns:
the number of matching social relations

findByU1_U2

public List<SocialRelation> findByU1_U2(long userId1,
                                        long userId2)
Returns all the social relations where userId1 = ? and userId2 = ?.

Specified by:
findByU1_U2 in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
Returns:
the matching social relations

findByU1_U2

public List<SocialRelation> findByU1_U2(long userId1,
                                        long userId2,
                                        int start,
                                        int end)
Returns a range of all the social relations where userId1 = ? and userId2 = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU1_U2 in interface 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

findByU1_U2

public List<SocialRelation> findByU1_U2(long userId1,
                                        long userId2,
                                        int start,
                                        int end,
                                        OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU1_U2 in interface 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

findByU1_U2

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU1_U2 in interface 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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social relations

findByU1_U2_First

public SocialRelation findByU1_U2_First(long userId1,
                                        long userId2,
                                        OrderByComparator<SocialRelation> orderByComparator)
                                 throws NoSuchRelationException
Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.

Specified by:
findByU1_U2_First in interface 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:
NoSuchRelationException - if a matching social relation could not be found

fetchByU1_U2_First

public SocialRelation fetchByU1_U2_First(long userId1,
                                         long userId2,
                                         OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.

Specified by:
fetchByU1_U2_First in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation, or null if a matching social relation could not be found

findByU1_U2_Last

public SocialRelation findByU1_U2_Last(long userId1,
                                       long userId2,
                                       OrderByComparator<SocialRelation> orderByComparator)
                                throws NoSuchRelationException
Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.

Specified by:
findByU1_U2_Last in interface 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:
NoSuchRelationException - if a matching social relation could not be found

fetchByU1_U2_Last

public SocialRelation fetchByU1_U2_Last(long userId1,
                                        long userId2,
                                        OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.

Specified by:
fetchByU1_U2_Last in interface 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, or null if a matching social relation could not be found

findByU1_U2_PrevAndNext

public SocialRelation[] findByU1_U2_PrevAndNext(long relationId,
                                                long userId1,
                                                long userId2,
                                                OrderByComparator<SocialRelation> orderByComparator)
                                         throws NoSuchRelationException
Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and userId2 = ?.

Specified by:
findByU1_U2_PrevAndNext in interface 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:
NoSuchRelationException - if a social relation with the primary key could not be found

getByU1_U2_PrevAndNext

protected SocialRelation getByU1_U2_PrevAndNext(Session session,
                                                SocialRelation socialRelation,
                                                long userId1,
                                                long userId2,
                                                OrderByComparator<SocialRelation> orderByComparator,
                                                boolean previous)

removeByU1_U2

public void removeByU1_U2(long userId1,
                          long userId2)
Removes all the social relations where userId1 = ? and userId2 = ? from the database.

Specified by:
removeByU1_U2 in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2

countByU1_U2

public int countByU1_U2(long userId1,
                        long userId2)
Returns the number of social relations where userId1 = ? and userId2 = ?.

Specified by:
countByU1_U2 in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
Returns:
the number of matching social relations

findByU1_T

public List<SocialRelation> findByU1_T(long userId1,
                                       int type)
Returns all the social relations where userId1 = ? and type = ?.

Specified by:
findByU1_T in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
type - the type
Returns:
the matching social relations

findByU1_T

public List<SocialRelation> findByU1_T(long userId1,
                                       int type,
                                       int start,
                                       int end)
Returns a range of all the social relations where userId1 = ? and type = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU1_T in interface 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

findByU1_T

public List<SocialRelation> findByU1_T(long userId1,
                                       int type,
                                       int start,
                                       int end,
                                       OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId1 = ? and type = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU1_T in interface 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

findByU1_T

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU1_T in interface 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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social relations

findByU1_T_First

public SocialRelation findByU1_T_First(long userId1,
                                       int type,
                                       OrderByComparator<SocialRelation> orderByComparator)
                                throws NoSuchRelationException
Returns the first social relation in the ordered set where userId1 = ? and type = ?.

Specified by:
findByU1_T_First in interface 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:
NoSuchRelationException - if a matching social relation could not be found

fetchByU1_T_First

public SocialRelation fetchByU1_T_First(long userId1,
                                        int type,
                                        OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId1 = ? and type = ?.

Specified by:
fetchByU1_T_First in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation, or null if a matching social relation could not be found

findByU1_T_Last

public SocialRelation findByU1_T_Last(long userId1,
                                      int type,
                                      OrderByComparator<SocialRelation> orderByComparator)
                               throws NoSuchRelationException
Returns the last social relation in the ordered set where userId1 = ? and type = ?.

Specified by:
findByU1_T_Last in interface 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:
NoSuchRelationException - if a matching social relation could not be found

fetchByU1_T_Last

public SocialRelation fetchByU1_T_Last(long userId1,
                                       int type,
                                       OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId1 = ? and type = ?.

Specified by:
fetchByU1_T_Last in interface 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, or null if a matching social relation could not be found

findByU1_T_PrevAndNext

public SocialRelation[] findByU1_T_PrevAndNext(long relationId,
                                               long userId1,
                                               int type,
                                               OrderByComparator<SocialRelation> orderByComparator)
                                        throws NoSuchRelationException
Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and type = ?.

Specified by:
findByU1_T_PrevAndNext in interface 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:
NoSuchRelationException - if a social relation with the primary key could not be found

getByU1_T_PrevAndNext

protected SocialRelation getByU1_T_PrevAndNext(Session session,
                                               SocialRelation socialRelation,
                                               long userId1,
                                               int type,
                                               OrderByComparator<SocialRelation> orderByComparator,
                                               boolean previous)

removeByU1_T

public void removeByU1_T(long userId1,
                         int type)
Removes all the social relations where userId1 = ? and type = ? from the database.

Specified by:
removeByU1_T in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
type - the type

countByU1_T

public int countByU1_T(long userId1,
                       int type)
Returns the number of social relations where userId1 = ? and type = ?.

Specified by:
countByU1_T in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
type - the type
Returns:
the number of matching social relations

findByU2_T

public List<SocialRelation> findByU2_T(long userId2,
                                       int type)
Returns all the social relations where userId2 = ? and type = ?.

Specified by:
findByU2_T in interface SocialRelationPersistence
Parameters:
userId2 - the user id2
type - the type
Returns:
the matching social relations

findByU2_T

public List<SocialRelation> findByU2_T(long userId2,
                                       int type,
                                       int start,
                                       int end)
Returns a range of all the social relations where userId2 = ? and type = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU2_T in interface 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

findByU2_T

public List<SocialRelation> findByU2_T(long userId2,
                                       int type,
                                       int start,
                                       int end,
                                       OrderByComparator<SocialRelation> orderByComparator)
Returns an ordered range of all the social relations where userId2 = ? and type = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU2_T in interface 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

findByU2_T

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByU2_T in interface 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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching social relations

findByU2_T_First

public SocialRelation findByU2_T_First(long userId2,
                                       int type,
                                       OrderByComparator<SocialRelation> orderByComparator)
                                throws NoSuchRelationException
Returns the first social relation in the ordered set where userId2 = ? and type = ?.

Specified by:
findByU2_T_First in interface 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:
NoSuchRelationException - if a matching social relation could not be found

fetchByU2_T_First

public SocialRelation fetchByU2_T_First(long userId2,
                                        int type,
                                        OrderByComparator<SocialRelation> orderByComparator)
Returns the first social relation in the ordered set where userId2 = ? and type = ?.

Specified by:
fetchByU2_T_First in interface SocialRelationPersistence
Parameters:
userId2 - the user id2
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching social relation, or null if a matching social relation could not be found

findByU2_T_Last

public SocialRelation findByU2_T_Last(long userId2,
                                      int type,
                                      OrderByComparator<SocialRelation> orderByComparator)
                               throws NoSuchRelationException
Returns the last social relation in the ordered set where userId2 = ? and type = ?.

Specified by:
findByU2_T_Last in interface 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:
NoSuchRelationException - if a matching social relation could not be found

fetchByU2_T_Last

public SocialRelation fetchByU2_T_Last(long userId2,
                                       int type,
                                       OrderByComparator<SocialRelation> orderByComparator)
Returns the last social relation in the ordered set where userId2 = ? and type = ?.

Specified by:
fetchByU2_T_Last in interface 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, or null if a matching social relation could not be found

findByU2_T_PrevAndNext

public SocialRelation[] findByU2_T_PrevAndNext(long relationId,
                                               long userId2,
                                               int type,
                                               OrderByComparator<SocialRelation> orderByComparator)
                                        throws NoSuchRelationException
Returns the social relations before and after the current social relation in the ordered set where userId2 = ? and type = ?.

Specified by:
findByU2_T_PrevAndNext in interface 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:
NoSuchRelationException - if a social relation with the primary key could not be found

getByU2_T_PrevAndNext

protected SocialRelation getByU2_T_PrevAndNext(Session session,
                                               SocialRelation socialRelation,
                                               long userId2,
                                               int type,
                                               OrderByComparator<SocialRelation> orderByComparator,
                                               boolean previous)

removeByU2_T

public void removeByU2_T(long userId2,
                         int type)
Removes all the social relations where userId2 = ? and type = ? from the database.

Specified by:
removeByU2_T in interface SocialRelationPersistence
Parameters:
userId2 - the user id2
type - the type

countByU2_T

public int countByU2_T(long userId2,
                       int type)
Returns the number of social relations where userId2 = ? and type = ?.

Specified by:
countByU2_T in interface SocialRelationPersistence
Parameters:
userId2 - the user id2
type - the type
Returns:
the number of matching social relations

findByU1_U2_T

public SocialRelation findByU1_U2_T(long userId1,
                                    long userId2,
                                    int type)
                             throws NoSuchRelationException
Returns the social relation where userId1 = ? and userId2 = ? and type = ? or throws a NoSuchRelationException if it could not be found.

Specified by:
findByU1_U2_T in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
type - the type
Returns:
the matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found

fetchByU1_U2_T

public SocialRelation fetchByU1_U2_T(long userId1,
                                     long userId2,
                                     int type)
Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByU1_U2_T in interface 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

fetchByU1_U2_T

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

Specified by:
fetchByU1_U2_T in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
type - the type
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching social relation, or null if a matching social relation could not be found

removeByU1_U2_T

public SocialRelation removeByU1_U2_T(long userId1,
                                      long userId2,
                                      int type)
                               throws NoSuchRelationException
Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database.

Specified by:
removeByU1_U2_T in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
type - the type
Returns:
the social relation that was removed
Throws:
NoSuchRelationException

countByU1_U2_T

public int countByU1_U2_T(long userId1,
                          long userId2,
                          int type)
Returns the number of social relations where userId1 = ? and userId2 = ? and type = ?.

Specified by:
countByU1_U2_T in interface SocialRelationPersistence
Parameters:
userId1 - the user id1
userId2 - the user id2
type - the type
Returns:
the number of matching social relations

cacheResult

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

Specified by:
cacheResult in interface SocialRelationPersistence
Parameters:
socialRelation - the social relation

cacheResult

public void cacheResult(List<SocialRelation> socialRelations)
Caches the social relations in the entity cache if it is enabled.

Specified by:
cacheResult in interface 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 BasePersistence<SocialRelation>
Overrides:
clearCache in class BasePersistenceImpl<SocialRelation>

clearCache

public void clearCache(SocialRelation socialRelation)
Clears the cache for the social relation.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialRelation>
Overrides:
clearCache in class BasePersistenceImpl<SocialRelation>
Parameters:
socialRelation - the instance of this model to clear the cache for

clearCache

public void clearCache(List<SocialRelation> socialRelations)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SocialRelation>
Overrides:
clearCache in class BasePersistenceImpl<SocialRelation>
Parameters:
socialRelations - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(SocialRelationModelImpl socialRelationModelImpl,
                                       boolean isNew)

clearUniqueFindersCache

protected void clearUniqueFindersCache(SocialRelationModelImpl socialRelationModelImpl)

create

public 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 SocialRelationPersistence
Parameters:
relationId - the primary key for the new social relation
Returns:
the new social relation

remove

public SocialRelation remove(long relationId)
                      throws NoSuchRelationException
Removes the social relation with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface SocialRelationPersistence
Parameters:
relationId - the primary key of the social relation
Returns:
the social relation that was removed
Throws:
NoSuchRelationException - if a social relation with the primary key could not be found

remove

public SocialRelation remove(Serializable primaryKey)
                      throws NoSuchRelationException
Removes the social relation with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<SocialRelation>
Overrides:
remove in class BasePersistenceImpl<SocialRelation>
Parameters:
primaryKey - the primary key of the social relation
Returns:
the social relation that was removed
Throws:
NoSuchRelationException - if a social relation with the primary key could not be found

removeImpl

protected SocialRelation removeImpl(SocialRelation socialRelation)
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<SocialRelation>
Parameters:
socialRelation - the model instance to remove
Returns:
the model instance that was removed

updateImpl

public SocialRelation updateImpl(SocialRelation socialRelation)
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface SocialRelationPersistence
Overrides:
updateImpl in class BasePersistenceImpl<SocialRelation>
Parameters:
socialRelation - the model instance to update
Returns:
the model instance that was updated

toUnwrappedModel

protected SocialRelation toUnwrappedModel(SocialRelation socialRelation)

findByPrimaryKey

public SocialRelation findByPrimaryKey(Serializable primaryKey)
                                throws NoSuchRelationException
Returns the social relation with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<SocialRelation>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<SocialRelation>
Parameters:
primaryKey - the primary key of the social relation
Returns:
the social relation
Throws:
NoSuchRelationException - if a social relation with the primary key could not be found

findByPrimaryKey

public SocialRelation findByPrimaryKey(long relationId)
                                throws NoSuchRelationException
Returns the social relation with the primary key or throws a NoSuchRelationException if it could not be found.

Specified by:
findByPrimaryKey in interface SocialRelationPersistence
Parameters:
relationId - the primary key of the social relation
Returns:
the social relation
Throws:
NoSuchRelationException - if a social relation with the primary key could not be found

fetchByPrimaryKey

public SocialRelation fetchByPrimaryKey(Serializable primaryKey)
Returns the social relation with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<SocialRelation>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<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

fetchByPrimaryKey

public SocialRelation fetchByPrimaryKey(long relationId)
Returns the social relation with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface 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

fetchByPrimaryKeys

public Map<Serializable,SocialRelation> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<SocialRelation>
Specified by:
fetchByPrimaryKeys in interface SocialRelationPersistence
Overrides:
fetchByPrimaryKeys in class BasePersistenceImpl<SocialRelation>

findAll

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

Specified by:
findAll in interface SocialRelationPersistence
Returns:
the social relations

findAll

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface 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

findAll

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface 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

findAll

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SocialRelationModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface 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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of social relations

removeAll

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

Specified by:
removeAll in interface SocialRelationPersistence

countAll

public int countAll()
Returns the number of social relations.

Specified by:
countAll in interface SocialRelationPersistence
Returns:
the number of social relations

getBadColumnNames

public Set<String> getBadColumnNames()
Specified by:
getBadColumnNames in interface BasePersistence<SocialRelation>
Specified by:
getBadColumnNames in interface SocialRelationPersistence
Overrides:
getBadColumnNames in class BasePersistenceImpl<SocialRelation>

getTableColumnsMap

protected Map<String,Integer> getTableColumnsMap()
Overrides:
getTableColumnsMap in class BasePersistenceImpl<SocialRelation>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the social relation persistence.


destroy

public void destroy()

Liferay 7.0-ce-b4