Class SocialRelationPersistenceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory,com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>,com.liferay.social.kernel.service.persistence.SocialRelationPersistence
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Field Summary
FieldsFields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes the social relation persistence.voidcacheResult(com.liferay.social.kernel.model.SocialRelation socialRelation) Caches the social relation in the entity cache if it is enabled.voidcacheResult(List<com.liferay.social.kernel.model.SocialRelation> socialRelations) Caches the social relations in the entity cache if it is enabled.protected voidcacheUniqueFindersCache(SocialRelationModelImpl socialRelationModelImpl) voidClears the cache for all social relations.voidclearCache(com.liferay.social.kernel.model.SocialRelation socialRelation) Clears the cache for the social relation.voidclearCache(List<com.liferay.social.kernel.model.SocialRelation> socialRelations) voidclearCache(Set<Serializable> primaryKeys) intcountAll()Returns the number of social relations.intcountByC_T(long companyId, int type) Returns the number of social relations where companyId = ? and type = ?.intcountByCompanyId(long companyId) Returns the number of social relations where companyId = ?.intcountByType(int type) Returns the number of social relations where type = ?.intcountByU1_T(long userId1, int type) Returns the number of social relations where userId1 = ? and type = ?.intcountByU1_U2(long userId1, long userId2) Returns the number of social relations where userId1 = ? and userId2 = ?.intcountByU1_U2_T(long userId1, long userId2, int type) Returns the number of social relations where userId1 = ? and userId2 = ? and type = ?.intcountByU2_T(long userId2, int type) Returns the number of social relations where userId2 = ? and type = ?.intcountByUserId1(long userId1) Returns the number of social relations where userId1 = ?.intcountByUserId2(long userId2) Returns the number of social relations where userId2 = ?.intcountByUuid(String uuid) Returns the number of social relations where uuid = ?.intcountByUuid_C(String uuid, long companyId) Returns the number of social relations where uuid = ? and companyId = ?.com.liferay.social.kernel.model.SocialRelationcreate(long relationId) Creates a new social relation with the primary key.voiddestroy()com.liferay.social.kernel.model.SocialRelationfetchByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where companyId = ? and type = ?.com.liferay.social.kernel.model.SocialRelationfetchByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where companyId = ? and type = ?.com.liferay.social.kernel.model.SocialRelationfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where companyId = ?.com.liferay.social.kernel.model.SocialRelationfetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where companyId = ?.com.liferay.social.kernel.model.SocialRelationfetchByPrimaryKey(long relationId) Returns the social relation with the primary key or returnsnullif it could not be found.com.liferay.social.kernel.model.SocialRelationfetchByPrimaryKey(Serializable primaryKey) Returns the social relation with the primary key or returnsnullif it could not be found.Map<Serializable,com.liferay.social.kernel.model.SocialRelation> fetchByPrimaryKeys(Set<Serializable> primaryKeys) com.liferay.social.kernel.model.SocialRelationfetchByType_First(int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where type = ?.com.liferay.social.kernel.model.SocialRelationfetchByType_Last(int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where type = ?.com.liferay.social.kernel.model.SocialRelationfetchByU1_T_First(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ? and type = ?.com.liferay.social.kernel.model.SocialRelationfetchByU1_T_Last(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ? and type = ?.com.liferay.social.kernel.model.SocialRelationfetchByU1_U2_First(long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.com.liferay.social.kernel.model.SocialRelationfetchByU1_U2_Last(long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.com.liferay.social.kernel.model.SocialRelationfetchByU1_U2_T(long userId1, long userId2, int type) Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returnsnullif it could not be found.com.liferay.social.kernel.model.SocialRelationfetchByU1_U2_T(long userId1, long userId2, int type, boolean useFinderCache) Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.social.kernel.model.SocialRelationfetchByU2_T_First(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId2 = ? and type = ?.com.liferay.social.kernel.model.SocialRelationfetchByU2_T_Last(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId2 = ? and type = ?.com.liferay.social.kernel.model.SocialRelationfetchByUserId1_First(long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ?.com.liferay.social.kernel.model.SocialRelationfetchByUserId1_Last(long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ?.com.liferay.social.kernel.model.SocialRelationfetchByUserId2_First(long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId2 = ?.com.liferay.social.kernel.model.SocialRelationfetchByUserId2_Last(long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId2 = ?.com.liferay.social.kernel.model.SocialRelationfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where uuid = ? and companyId = ?.com.liferay.social.kernel.model.SocialRelationfetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where uuid = ? and companyId = ?.com.liferay.social.kernel.model.SocialRelationfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where uuid = ?.com.liferay.social.kernel.model.SocialRelationfetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where uuid = ?.List<com.liferay.social.kernel.model.SocialRelation>findAll()Returns all the social relations.List<com.liferay.social.kernel.model.SocialRelation>findAll(int start, int end) Returns a range of all the social relations.List<com.liferay.social.kernel.model.SocialRelation>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations.List<com.liferay.social.kernel.model.SocialRelation>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations.List<com.liferay.social.kernel.model.SocialRelation>findByC_T(long companyId, int type) Returns all the social relations where companyId = ? and type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByC_T(long companyId, int type, int start, int end) Returns a range of all the social relations where companyId = ? and type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where companyId = ? and type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where companyId = ? and type = ?.com.liferay.social.kernel.model.SocialRelationfindByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where companyId = ? and type = ?.com.liferay.social.kernel.model.SocialRelationfindByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where companyId = ? and type = ?.com.liferay.social.kernel.model.SocialRelation[]findByC_T_PrevAndNext(long relationId, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where companyId = ? and type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByCompanyId(long companyId) Returns all the social relations where companyId = ?.List<com.liferay.social.kernel.model.SocialRelation>findByCompanyId(long companyId, int start, int end) Returns a range of all the social relations where companyId = ?.List<com.liferay.social.kernel.model.SocialRelation>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where companyId = ?.List<com.liferay.social.kernel.model.SocialRelation>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where companyId = ?.com.liferay.social.kernel.model.SocialRelationfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where companyId = ?.com.liferay.social.kernel.model.SocialRelationfindByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where companyId = ?.com.liferay.social.kernel.model.SocialRelation[]findByCompanyId_PrevAndNext(long relationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where companyId = ?.com.liferay.social.kernel.model.SocialRelationfindByPrimaryKey(long relationId) Returns the social relation with the primary key or throws aNoSuchRelationExceptionif it could not be found.com.liferay.social.kernel.model.SocialRelationfindByPrimaryKey(Serializable primaryKey) Returns the social relation with the primary key or throws acom.liferay.portal.kernel.exception.NoSuchModelExceptionif it could not be found.List<com.liferay.social.kernel.model.SocialRelation>findByType(int type) Returns all the social relations where type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByType(int type, int start, int end) Returns a range of all the social relations where type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByType(int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByType(int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where type = ?.com.liferay.social.kernel.model.SocialRelationfindByType_First(int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where type = ?.com.liferay.social.kernel.model.SocialRelationfindByType_Last(int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where type = ?.com.liferay.social.kernel.model.SocialRelation[]findByType_PrevAndNext(long relationId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByU1_T(long userId1, int type) Returns all the social relations where userId1 = ? and type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByU1_T(long userId1, int type, int start, int end) Returns a range of all the social relations where userId1 = ? and type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByU1_T(long userId1, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId1 = ? and type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByU1_T(long userId1, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId1 = ? and type = ?.com.liferay.social.kernel.model.SocialRelationfindByU1_T_First(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ? and type = ?.com.liferay.social.kernel.model.SocialRelationfindByU1_T_Last(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ? and type = ?.com.liferay.social.kernel.model.SocialRelation[]findByU1_T_PrevAndNext(long relationId, long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByU1_U2(long userId1, long userId2) Returns all the social relations where userId1 = ? and userId2 = ?.List<com.liferay.social.kernel.model.SocialRelation>findByU1_U2(long userId1, long userId2, int start, int end) Returns a range of all the social relations where userId1 = ? and userId2 = ?.List<com.liferay.social.kernel.model.SocialRelation>findByU1_U2(long userId1, long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.List<com.liferay.social.kernel.model.SocialRelation>findByU1_U2(long userId1, long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.com.liferay.social.kernel.model.SocialRelationfindByU1_U2_First(long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.com.liferay.social.kernel.model.SocialRelationfindByU1_U2_Last(long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.com.liferay.social.kernel.model.SocialRelation[]findByU1_U2_PrevAndNext(long relationId, long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and userId2 = ?.com.liferay.social.kernel.model.SocialRelationfindByU1_U2_T(long userId1, long userId2, int type) Returns the social relation where userId1 = ? and userId2 = ? and type = ? or throws aNoSuchRelationExceptionif it could not be found.List<com.liferay.social.kernel.model.SocialRelation>findByU2_T(long userId2, int type) Returns all the social relations where userId2 = ? and type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByU2_T(long userId2, int type, int start, int end) Returns a range of all the social relations where userId2 = ? and type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByU2_T(long userId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId2 = ? and type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByU2_T(long userId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId2 = ? and type = ?.com.liferay.social.kernel.model.SocialRelationfindByU2_T_First(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId2 = ? and type = ?.com.liferay.social.kernel.model.SocialRelationfindByU2_T_Last(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId2 = ? and type = ?.com.liferay.social.kernel.model.SocialRelation[]findByU2_T_PrevAndNext(long relationId, long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where userId2 = ? and type = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUserId1(long userId1) Returns all the social relations where userId1 = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUserId1(long userId1, int start, int end) Returns a range of all the social relations where userId1 = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUserId1(long userId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId1 = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUserId1(long userId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId1 = ?.com.liferay.social.kernel.model.SocialRelationfindByUserId1_First(long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ?.com.liferay.social.kernel.model.SocialRelationfindByUserId1_Last(long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ?.com.liferay.social.kernel.model.SocialRelation[]findByUserId1_PrevAndNext(long relationId, long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where userId1 = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUserId2(long userId2) Returns all the social relations where userId2 = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUserId2(long userId2, int start, int end) Returns a range of all the social relations where userId2 = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUserId2(long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId2 = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUserId2(long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId2 = ?.com.liferay.social.kernel.model.SocialRelationfindByUserId2_First(long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId2 = ?.com.liferay.social.kernel.model.SocialRelationfindByUserId2_Last(long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId2 = ?.com.liferay.social.kernel.model.SocialRelation[]findByUserId2_PrevAndNext(long relationId, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where userId2 = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUuid(String uuid) Returns all the social relations where uuid = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUuid(String uuid, int start, int end) Returns a range of all the social relations where uuid = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where uuid = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where uuid = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUuid_C(String uuid, long companyId) Returns all the social relations where uuid = ? and companyId = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the social relations where uuid = ? and companyId = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where uuid = ? and companyId = ?.List<com.liferay.social.kernel.model.SocialRelation>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where uuid = ? and companyId = ?.com.liferay.social.kernel.model.SocialRelationfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where uuid = ? and companyId = ?.com.liferay.social.kernel.model.SocialRelationfindByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where uuid = ? and companyId = ?.com.liferay.social.kernel.model.SocialRelation[]findByUuid_C_PrevAndNext(long relationId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where uuid = ? and companyId = ?.com.liferay.social.kernel.model.SocialRelationfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where uuid = ?.com.liferay.social.kernel.model.SocialRelationfindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where uuid = ?.com.liferay.social.kernel.model.SocialRelation[]findByUuid_PrevAndNext(long relationId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where uuid = ?.protected com.liferay.social.kernel.model.SocialRelationgetByC_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) protected com.liferay.social.kernel.model.SocialRelationgetByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) protected com.liferay.social.kernel.model.SocialRelationgetByType_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) protected com.liferay.social.kernel.model.SocialRelationgetByU1_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) protected com.liferay.social.kernel.model.SocialRelationgetByU1_U2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) protected com.liferay.social.kernel.model.SocialRelationgetByU2_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) protected com.liferay.social.kernel.model.SocialRelationgetByUserId1_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) protected com.liferay.social.kernel.model.SocialRelationgetByUserId2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) protected com.liferay.social.kernel.model.SocialRelationgetByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) protected com.liferay.social.kernel.model.SocialRelationgetByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) protected com.liferay.portal.kernel.dao.orm.EntityCacheprotected com.liferay.portal.kernel.dao.orm.FinderCacheprotected Stringprotected Stringcom.liferay.social.kernel.model.SocialRelationremove(long relationId) Removes the social relation with the primary key from the database.com.liferay.social.kernel.model.SocialRelationremove(Serializable primaryKey) Removes the social relation with the primary key from the database.voidRemoves all the social relations from the database.voidremoveByC_T(long companyId, int type) Removes all the social relations where companyId = ? and type = ? from the database.voidremoveByCompanyId(long companyId) Removes all the social relations where companyId = ? from the database.voidremoveByType(int type) Removes all the social relations where type = ? from the database.voidremoveByU1_T(long userId1, int type) Removes all the social relations where userId1 = ? and type = ? from the database.voidremoveByU1_U2(long userId1, long userId2) Removes all the social relations where userId1 = ? and userId2 = ? from the database.com.liferay.social.kernel.model.SocialRelationremoveByU1_U2_T(long userId1, long userId2, int type) Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database.voidremoveByU2_T(long userId2, int type) Removes all the social relations where userId2 = ? and type = ? from the database.voidremoveByUserId1(long userId1) Removes all the social relations where userId1 = ? from the database.voidremoveByUserId2(long userId2) Removes all the social relations where userId2 = ? from the database.voidremoveByUuid(String uuid) Removes all the social relations where uuid = ? from the database.voidremoveByUuid_C(String uuid, long companyId) Removes all the social relations where uuid = ? and companyId = ? from the database.protected com.liferay.social.kernel.model.SocialRelationremoveImpl(com.liferay.social.kernel.model.SocialRelation socialRelation) com.liferay.social.kernel.model.SocialRelationupdateImpl(com.liferay.social.kernel.model.SocialRelation socialRelation) Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Field Details
-
FINDER_CLASS_NAME_ENTITY
-
FINDER_CLASS_NAME_LIST_WITH_PAGINATION
-
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
-
-
Constructor Details
-
SocialRelationPersistenceImpl
public SocialRelationPersistenceImpl()
-
-
Method Details
-
findByUuid
Returns all the social relations where uuid = ?.- Specified by:
findByUuidin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuid- Returns:
- the matching social relations
-
findByUuid
public List<com.liferay.social.kernel.model.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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByUuidin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidstart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)- Returns:
- the range of matching social relations
-
findByUuid
public List<com.liferay.social.kernel.model.SocialRelation> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByUuidin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidstart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching social relations
-
findByUuid
public List<com.liferay.social.kernel.model.SocialRelation> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByUuidin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidstart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social relations
-
findByUuid_First
public com.liferay.social.kernel.model.SocialRelation findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the first social relation in the ordered set where uuid = ?.- Specified by:
findByUuid_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByUuid_First
public com.liferay.social.kernel.model.SocialRelation fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where uuid = ?.- Specified by:
fetchByUuid_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation, or
nullif a matching social relation could not be found
-
findByUuid_Last
public com.liferay.social.kernel.model.SocialRelation findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the last social relation in the ordered set where uuid = ?.- Specified by:
findByUuid_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByUuid_Last
public com.liferay.social.kernel.model.SocialRelation fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where uuid = ?.- Specified by:
fetchByUuid_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation, or
nullif a matching social relation could not be found
-
findByUuid_PrevAndNext
public com.liferay.social.kernel.model.SocialRelation[] findByUuid_PrevAndNext(long relationId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where uuid = ?.- Specified by:
findByUuid_PrevAndNextin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
relationId- the primary key of the current social relationuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a social relation with the primary key could not be found
-
getByUuid_PrevAndNext
protected com.liferay.social.kernel.model.SocialRelation getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) -
removeByUuid
Removes all the social relations where uuid = ? from the database.- Specified by:
removeByUuidin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of social relations where uuid = ?.- Specified by:
countByUuidin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuid- Returns:
- the number of matching social relations
-
findByUuid_C
public List<com.liferay.social.kernel.model.SocialRelation> findByUuid_C(String uuid, long companyId) Returns all the social relations where uuid = ? and companyId = ?.- Specified by:
findByUuid_Cin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching social relations
-
findByUuid_C
public List<com.liferay.social.kernel.model.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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByUuid_Cin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)- Returns:
- the range of matching social relations
-
findByUuid_C
public List<com.liferay.social.kernel.model.SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByUuid_Cin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching social relations
-
findByUuid_C
public List<com.liferay.social.kernel.model.SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByUuid_Cin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social relations
-
findByUuid_C_First
public com.liferay.social.kernel.model.SocialRelation findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the first social relation in the ordered set where uuid = ? and companyId = ?.- Specified by:
findByUuid_C_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByUuid_C_First
public com.liferay.social.kernel.model.SocialRelation fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where uuid = ? and companyId = ?.- Specified by:
fetchByUuid_C_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation, or
nullif a matching social relation could not be found
-
findByUuid_C_Last
public com.liferay.social.kernel.model.SocialRelation findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the last social relation in the ordered set where uuid = ? and companyId = ?.- Specified by:
findByUuid_C_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByUuid_C_Last
public com.liferay.social.kernel.model.SocialRelation fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where uuid = ? and companyId = ?.- Specified by:
fetchByUuid_C_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation, or
nullif a matching social relation could not be found
-
findByUuid_C_PrevAndNext
public com.liferay.social.kernel.model.SocialRelation[] findByUuid_C_PrevAndNext(long relationId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where uuid = ? and companyId = ?.- Specified by:
findByUuid_C_PrevAndNextin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
relationId- the primary key of the current social relationuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a social relation with the primary key could not be found
-
getByUuid_C_PrevAndNext
protected com.liferay.social.kernel.model.SocialRelation getByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) -
removeByUuid_C
Removes all the social relations where uuid = ? and companyId = ? from the database.- Specified by:
removeByUuid_Cin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of social relations where uuid = ? and companyId = ?.- Specified by:
countByUuid_Cin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching social relations
-
findByCompanyId
Returns all the social relations where companyId = ?.- Specified by:
findByCompanyIdin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company ID- Returns:
- the matching social relations
-
findByCompanyId
public List<com.liferay.social.kernel.model.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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByCompanyIdin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDstart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)- Returns:
- the range of matching social relations
-
findByCompanyId
public List<com.liferay.social.kernel.model.SocialRelation> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByCompanyIdin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDstart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching social relations
-
findByCompanyId
public List<com.liferay.social.kernel.model.SocialRelation> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByCompanyIdin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDstart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social relations
-
findByCompanyId_First
public com.liferay.social.kernel.model.SocialRelation findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the first social relation in the ordered set where companyId = ?.- Specified by:
findByCompanyId_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByCompanyId_First
public com.liferay.social.kernel.model.SocialRelation fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where companyId = ?.- Specified by:
fetchByCompanyId_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation, or
nullif a matching social relation could not be found
-
findByCompanyId_Last
public com.liferay.social.kernel.model.SocialRelation findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the last social relation in the ordered set where companyId = ?.- Specified by:
findByCompanyId_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByCompanyId_Last
public com.liferay.social.kernel.model.SocialRelation fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where companyId = ?.- Specified by:
fetchByCompanyId_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation, or
nullif a matching social relation could not be found
-
findByCompanyId_PrevAndNext
public com.liferay.social.kernel.model.SocialRelation[] findByCompanyId_PrevAndNext(long relationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where companyId = ?.- Specified by:
findByCompanyId_PrevAndNextin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
relationId- the primary key of the current social relationcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a social relation with the primary key could not be found
-
getByCompanyId_PrevAndNext
protected com.liferay.social.kernel.model.SocialRelation getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) -
removeByCompanyId
public void removeByCompanyId(long companyId) Removes all the social relations where companyId = ? from the database.- Specified by:
removeByCompanyIdin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company ID
-
countByCompanyId
public int countByCompanyId(long companyId) Returns the number of social relations where companyId = ?.- Specified by:
countByCompanyIdin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company ID- Returns:
- the number of matching social relations
-
findByUserId1
Returns all the social relations where userId1 = ?.- Specified by:
findByUserId1in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1- Returns:
- the matching social relations
-
findByUserId1
public List<com.liferay.social.kernel.model.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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByUserId1in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1start- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)- Returns:
- the range of matching social relations
-
findByUserId1
public List<com.liferay.social.kernel.model.SocialRelation> findByUserId1(long userId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId1 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByUserId1in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1start- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching social relations
-
findByUserId1
public List<com.liferay.social.kernel.model.SocialRelation> findByUserId1(long userId1, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId1 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByUserId1in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1start- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social relations
-
findByUserId1_First
public com.liferay.social.kernel.model.SocialRelation findByUserId1_First(long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the first social relation in the ordered set where userId1 = ?.- Specified by:
findByUserId1_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1orderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByUserId1_First
public com.liferay.social.kernel.model.SocialRelation fetchByUserId1_First(long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ?.- Specified by:
fetchByUserId1_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1orderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation, or
nullif a matching social relation could not be found
-
findByUserId1_Last
public com.liferay.social.kernel.model.SocialRelation findByUserId1_Last(long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the last social relation in the ordered set where userId1 = ?.- Specified by:
findByUserId1_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1orderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByUserId1_Last
public com.liferay.social.kernel.model.SocialRelation fetchByUserId1_Last(long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ?.- Specified by:
fetchByUserId1_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1orderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation, or
nullif a matching social relation could not be found
-
findByUserId1_PrevAndNext
public com.liferay.social.kernel.model.SocialRelation[] findByUserId1_PrevAndNext(long relationId, long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where userId1 = ?.- Specified by:
findByUserId1_PrevAndNextin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
relationId- the primary key of the current social relationuserId1- the user id1orderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a social relation with the primary key could not be found
-
getByUserId1_PrevAndNext
protected com.liferay.social.kernel.model.SocialRelation getByUserId1_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, long userId1, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) -
removeByUserId1
public void removeByUserId1(long userId1) Removes all the social relations where userId1 = ? from the database.- Specified by:
removeByUserId1in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1
-
countByUserId1
public int countByUserId1(long userId1) Returns the number of social relations where userId1 = ?.- Specified by:
countByUserId1in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1- Returns:
- the number of matching social relations
-
findByUserId2
Returns all the social relations where userId2 = ?.- Specified by:
findByUserId2in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2- Returns:
- the matching social relations
-
findByUserId2
public List<com.liferay.social.kernel.model.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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByUserId2in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2start- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)- Returns:
- the range of matching social relations
-
findByUserId2
public List<com.liferay.social.kernel.model.SocialRelation> findByUserId2(long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId2 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByUserId2in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2start- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching social relations
-
findByUserId2
public List<com.liferay.social.kernel.model.SocialRelation> findByUserId2(long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId2 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByUserId2in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2start- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social relations
-
findByUserId2_First
public com.liferay.social.kernel.model.SocialRelation findByUserId2_First(long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the first social relation in the ordered set where userId2 = ?.- Specified by:
findByUserId2_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2orderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByUserId2_First
public com.liferay.social.kernel.model.SocialRelation fetchByUserId2_First(long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId2 = ?.- Specified by:
fetchByUserId2_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2orderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation, or
nullif a matching social relation could not be found
-
findByUserId2_Last
public com.liferay.social.kernel.model.SocialRelation findByUserId2_Last(long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the last social relation in the ordered set where userId2 = ?.- Specified by:
findByUserId2_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2orderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByUserId2_Last
public com.liferay.social.kernel.model.SocialRelation fetchByUserId2_Last(long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId2 = ?.- Specified by:
fetchByUserId2_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2orderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation, or
nullif a matching social relation could not be found
-
findByUserId2_PrevAndNext
public com.liferay.social.kernel.model.SocialRelation[] findByUserId2_PrevAndNext(long relationId, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where userId2 = ?.- Specified by:
findByUserId2_PrevAndNextin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
relationId- the primary key of the current social relationuserId2- the user id2orderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a social relation with the primary key could not be found
-
getByUserId2_PrevAndNext
protected com.liferay.social.kernel.model.SocialRelation getByUserId2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) -
removeByUserId2
public void removeByUserId2(long userId2) Removes all the social relations where userId2 = ? from the database.- Specified by:
removeByUserId2in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2
-
countByUserId2
public int countByUserId2(long userId2) Returns the number of social relations where userId2 = ?.- Specified by:
countByUserId2in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2- Returns:
- the number of matching social relations
-
findByType
Returns all the social relations where type = ?.- Specified by:
findByTypein interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
type- the type- Returns:
- the matching social relations
-
findByType
public List<com.liferay.social.kernel.model.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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByTypein interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
type- the typestart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)- Returns:
- the range of matching social relations
-
findByType
public List<com.liferay.social.kernel.model.SocialRelation> findByType(int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where type = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByTypein interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
type- the typestart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching social relations
-
findByType
public List<com.liferay.social.kernel.model.SocialRelation> findByType(int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where type = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByTypein interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
type- the typestart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social relations
-
findByType_First
public com.liferay.social.kernel.model.SocialRelation findByType_First(int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the first social relation in the ordered set where type = ?.- Specified by:
findByType_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
type- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByType_First
public com.liferay.social.kernel.model.SocialRelation fetchByType_First(int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where type = ?.- Specified by:
fetchByType_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
type- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation, or
nullif a matching social relation could not be found
-
findByType_Last
public com.liferay.social.kernel.model.SocialRelation findByType_Last(int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the last social relation in the ordered set where type = ?.- Specified by:
findByType_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
type- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByType_Last
public com.liferay.social.kernel.model.SocialRelation fetchByType_Last(int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where type = ?.- Specified by:
fetchByType_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
type- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation, or
nullif a matching social relation could not be found
-
findByType_PrevAndNext
public com.liferay.social.kernel.model.SocialRelation[] findByType_PrevAndNext(long relationId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where type = ?.- Specified by:
findByType_PrevAndNextin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
relationId- the primary key of the current social relationtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a social relation with the primary key could not be found
-
getByType_PrevAndNext
protected com.liferay.social.kernel.model.SocialRelation getByType_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean previous) -
removeByType
public void removeByType(int type) Removes all the social relations where type = ? from the database.- Specified by:
removeByTypein interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
type- the type
-
countByType
public int countByType(int type) Returns the number of social relations where type = ?.- Specified by:
countByTypein interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
type- the type- Returns:
- the number of matching social relations
-
findByC_T
Returns all the social relations where companyId = ? and type = ?.- Specified by:
findByC_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDtype- the type- Returns:
- the matching social relations
-
findByC_T
public List<com.liferay.social.kernel.model.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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByC_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDtype- the typestart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)- Returns:
- the range of matching social relations
-
findByC_T
public List<com.liferay.social.kernel.model.SocialRelation> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where companyId = ? and type = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByC_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDtype- the typestart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching social relations
-
findByC_T
public List<com.liferay.social.kernel.model.SocialRelation> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where companyId = ? and type = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByC_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDtype- the typestart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social relations
-
findByC_T_First
public com.liferay.social.kernel.model.SocialRelation findByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the first social relation in the ordered set where companyId = ? and type = ?.- Specified by:
findByC_T_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByC_T_First
public com.liferay.social.kernel.model.SocialRelation fetchByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where companyId = ? and type = ?.- Specified by:
fetchByC_T_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation, or
nullif a matching social relation could not be found
-
findByC_T_Last
public com.liferay.social.kernel.model.SocialRelation findByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the last social relation in the ordered set where companyId = ? and type = ?.- Specified by:
findByC_T_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByC_T_Last
public com.liferay.social.kernel.model.SocialRelation fetchByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where companyId = ? and type = ?.- Specified by:
fetchByC_T_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation, or
nullif a matching social relation could not be found
-
findByC_T_PrevAndNext
public com.liferay.social.kernel.model.SocialRelation[] findByC_T_PrevAndNext(long relationId, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where companyId = ? and type = ?.- Specified by:
findByC_T_PrevAndNextin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
relationId- the primary key of the current social relationcompanyId- the company IDtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a social relation with the primary key could not be found
-
getByC_T_PrevAndNext
protected com.liferay.social.kernel.model.SocialRelation getByC_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.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_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDtype- 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_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
companyId- the company IDtype- the type- Returns:
- the number of matching social relations
-
findByU1_U2
Returns all the social relations where userId1 = ? and userId2 = ?.- Specified by:
findByU1_U2in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1userId2- the user id2- Returns:
- the matching social relations
-
findByU1_U2
public List<com.liferay.social.kernel.model.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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByU1_U2in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1userId2- the user id2start- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)- Returns:
- the range of matching social relations
-
findByU1_U2
public List<com.liferay.social.kernel.model.SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByU1_U2in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1userId2- the user id2start- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching social relations
-
findByU1_U2
public List<com.liferay.social.kernel.model.SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByU1_U2in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1userId2- the user id2start- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social relations
-
findByU1_U2_First
public com.liferay.social.kernel.model.SocialRelation findByU1_U2_First(long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.- Specified by:
findByU1_U2_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1userId2- the user id2orderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByU1_U2_First
public com.liferay.social.kernel.model.SocialRelation fetchByU1_U2_First(long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.- Specified by:
fetchByU1_U2_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1userId2- the user id2orderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation, or
nullif a matching social relation could not be found
-
findByU1_U2_Last
public com.liferay.social.kernel.model.SocialRelation findByU1_U2_Last(long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.- Specified by:
findByU1_U2_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1userId2- the user id2orderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByU1_U2_Last
public com.liferay.social.kernel.model.SocialRelation fetchByU1_U2_Last(long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.- Specified by:
fetchByU1_U2_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1userId2- the user id2orderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation, or
nullif a matching social relation could not be found
-
findByU1_U2_PrevAndNext
public com.liferay.social.kernel.model.SocialRelation[] findByU1_U2_PrevAndNext(long relationId, long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and userId2 = ?.- Specified by:
findByU1_U2_PrevAndNextin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
relationId- the primary key of the current social relationuserId1- the user id1userId2- the user id2orderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a social relation with the primary key could not be found
-
getByU1_U2_PrevAndNext
protected com.liferay.social.kernel.model.SocialRelation getByU1_U2_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, long userId1, long userId2, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.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_U2in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1userId2- 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_U2in interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1userId2- the user id2- Returns:
- the number of matching social relations
-
findByU1_T
Returns all the social relations where userId1 = ? and type = ?.- Specified by:
findByU1_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1type- the type- Returns:
- the matching social relations
-
findByU1_T
public List<com.liferay.social.kernel.model.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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByU1_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1type- the typestart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)- Returns:
- the range of matching social relations
-
findByU1_T
public List<com.liferay.social.kernel.model.SocialRelation> findByU1_T(long userId1, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId1 = ? and type = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByU1_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1type- the typestart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching social relations
-
findByU1_T
public List<com.liferay.social.kernel.model.SocialRelation> findByU1_T(long userId1, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId1 = ? and type = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByU1_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1type- the typestart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social relations
-
findByU1_T_First
public com.liferay.social.kernel.model.SocialRelation findByU1_T_First(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the first social relation in the ordered set where userId1 = ? and type = ?.- Specified by:
findByU1_T_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1type- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByU1_T_First
public com.liferay.social.kernel.model.SocialRelation fetchByU1_T_First(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ? and type = ?.- Specified by:
fetchByU1_T_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1type- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation, or
nullif a matching social relation could not be found
-
findByU1_T_Last
public com.liferay.social.kernel.model.SocialRelation findByU1_T_Last(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the last social relation in the ordered set where userId1 = ? and type = ?.- Specified by:
findByU1_T_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1type- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByU1_T_Last
public com.liferay.social.kernel.model.SocialRelation fetchByU1_T_Last(long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ? and type = ?.- Specified by:
fetchByU1_T_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1type- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation, or
nullif a matching social relation could not be found
-
findByU1_T_PrevAndNext
public com.liferay.social.kernel.model.SocialRelation[] findByU1_T_PrevAndNext(long relationId, long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and type = ?.- Specified by:
findByU1_T_PrevAndNextin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
relationId- the primary key of the current social relationuserId1- the user id1type- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a social relation with the primary key could not be found
-
getByU1_T_PrevAndNext
protected com.liferay.social.kernel.model.SocialRelation getByU1_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, long userId1, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.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_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1type- 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_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1type- the type- Returns:
- the number of matching social relations
-
findByU2_T
Returns all the social relations where userId2 = ? and type = ?.- Specified by:
findByU2_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2type- the type- Returns:
- the matching social relations
-
findByU2_T
public List<com.liferay.social.kernel.model.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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByU2_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2type- the typestart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)- Returns:
- the range of matching social relations
-
findByU2_T
public List<com.liferay.social.kernel.model.SocialRelation> findByU2_T(long userId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId2 = ? and type = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByU2_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2type- the typestart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching social relations
-
findByU2_T
public List<com.liferay.social.kernel.model.SocialRelation> findByU2_T(long userId2, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId2 = ? and type = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findByU2_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2type- the typestart- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching social relations
-
findByU2_T_First
public com.liferay.social.kernel.model.SocialRelation findByU2_T_First(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the first social relation in the ordered set where userId2 = ? and type = ?.- Specified by:
findByU2_T_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2type- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByU2_T_First
public com.liferay.social.kernel.model.SocialRelation fetchByU2_T_First(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId2 = ? and type = ?.- Specified by:
fetchByU2_T_Firstin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2type- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching social relation, or
nullif a matching social relation could not be found
-
findByU2_T_Last
public com.liferay.social.kernel.model.SocialRelation findByU2_T_Last(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the last social relation in the ordered set where userId2 = ? and type = ?.- Specified by:
findByU2_T_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2type- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByU2_T_Last
public com.liferay.social.kernel.model.SocialRelation fetchByU2_T_Last(long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId2 = ? and type = ?.- Specified by:
fetchByU2_T_Lastin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2type- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching social relation, or
nullif a matching social relation could not be found
-
findByU2_T_PrevAndNext
public com.liferay.social.kernel.model.SocialRelation[] findByU2_T_PrevAndNext(long relationId, long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where userId2 = ? and type = ?.- Specified by:
findByU2_T_PrevAndNextin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
relationId- the primary key of the current social relationuserId2- the user id2type- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a social relation with the primary key could not be found
-
getByU2_T_PrevAndNext
protected com.liferay.social.kernel.model.SocialRelation getByU2_T_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.social.kernel.model.SocialRelation socialRelation, long userId2, int type, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.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_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2type- 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_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId2- the user id2type- the type- Returns:
- the number of matching social relations
-
findByU1_U2_T
public com.liferay.social.kernel.model.SocialRelation findByU1_U2_T(long userId1, long userId2, int type) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the social relation where userId1 = ? and userId2 = ? and type = ? or throws aNoSuchRelationExceptionif it could not be found.- Specified by:
findByU1_U2_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1userId2- the user id2type- the type- Returns:
- the matching social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a matching social relation could not be found
-
fetchByU1_U2_T
public com.liferay.social.kernel.model.SocialRelation fetchByU1_U2_T(long userId1, long userId2, int type) Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returnsnullif it could not be found. Uses the finder cache.- Specified by:
fetchByU1_U2_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1userId2- the user id2type- the type- Returns:
- the matching social relation, or
nullif a matching social relation could not be found
-
fetchByU1_U2_T
public com.liferay.social.kernel.model.SocialRelation fetchByU1_U2_T(long userId1, long userId2, int type, boolean useFinderCache) Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByU1_U2_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1userId2- the user id2type- the typeuseFinderCache- whether to use the finder cache- Returns:
- the matching social relation, or
nullif a matching social relation could not be found
-
removeByU1_U2_T
public com.liferay.social.kernel.model.SocialRelation removeByU1_U2_T(long userId1, long userId2, int type) throws com.liferay.social.kernel.exception.NoSuchRelationException Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database.- Specified by:
removeByU1_U2_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1userId2- the user id2type- the type- Returns:
- the social relation that was removed
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException
-
countByU1_U2_T
public int countByU1_U2_T(long userId1, long userId2, int type) Returns the number of social relations where userId1 = ? and userId2 = ? and type = ?.- Specified by:
countByU1_U2_Tin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
userId1- the user id1userId2- the user id2type- the type- Returns:
- the number of matching social relations
-
cacheResult
public void cacheResult(com.liferay.social.kernel.model.SocialRelation socialRelation) Caches the social relation in the entity cache if it is enabled.- Specified by:
cacheResultin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Overrides:
cacheResultin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>- Parameters:
socialRelation- the social relation
-
cacheResult
Caches the social relations in the entity cache if it is enabled.- Specified by:
cacheResultin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
socialRelations- the social relations
-
clearCache
public void clearCache()Clears the cache for all social relations.The
EntityCacheandFinderCacheare both cleared by this method.- Specified by:
clearCachein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>- Overrides:
clearCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>
-
clearCache
public void clearCache(com.liferay.social.kernel.model.SocialRelation socialRelation) Clears the cache for the social relation.The
EntityCacheandFinderCacheare both cleared by this method.- Specified by:
clearCachein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>- Overrides:
clearCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>
-
clearCache
- Specified by:
clearCachein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>- Overrides:
clearCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>
-
clearCache
- Specified by:
clearCachein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>
-
cacheUniqueFindersCache
-
create
public com.liferay.social.kernel.model.SocialRelation create(long relationId) Creates a new social relation with the primary key. Does not add the social relation to the database.- Specified by:
createin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
relationId- the primary key for the new social relation- Returns:
- the new social relation
-
remove
public com.liferay.social.kernel.model.SocialRelation remove(long relationId) throws com.liferay.social.kernel.exception.NoSuchRelationException Removes the social relation with the primary key from the database. Also notifies the appropriate model listeners.- Specified by:
removein interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
relationId- the primary key of the social relation- Returns:
- the social relation that was removed
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a social relation with the primary key could not be found
-
remove
public com.liferay.social.kernel.model.SocialRelation remove(Serializable primaryKey) throws com.liferay.social.kernel.exception.NoSuchRelationException Removes the social relation with the primary key from the database. Also notifies the appropriate model listeners.- Specified by:
removein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>- Overrides:
removein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>- Parameters:
primaryKey- the primary key of the social relation- Returns:
- the social relation that was removed
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a social relation with the primary key could not be found
-
removeImpl
protected com.liferay.social.kernel.model.SocialRelation removeImpl(com.liferay.social.kernel.model.SocialRelation socialRelation) - Overrides:
removeImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>
-
updateImpl
public com.liferay.social.kernel.model.SocialRelation updateImpl(com.liferay.social.kernel.model.SocialRelation socialRelation) - Specified by:
updateImplin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Overrides:
updateImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>
-
findByPrimaryKey
public com.liferay.social.kernel.model.SocialRelation findByPrimaryKey(Serializable primaryKey) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the social relation with the primary key or throws acom.liferay.portal.kernel.exception.NoSuchModelExceptionif it could not be found.- Specified by:
findByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>- Overrides:
findByPrimaryKeyin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>- Parameters:
primaryKey- the primary key of the social relation- Returns:
- the social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a social relation with the primary key could not be found
-
findByPrimaryKey
public com.liferay.social.kernel.model.SocialRelation findByPrimaryKey(long relationId) throws com.liferay.social.kernel.exception.NoSuchRelationException Returns the social relation with the primary key or throws aNoSuchRelationExceptionif it could not be found.- Specified by:
findByPrimaryKeyin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
relationId- the primary key of the social relation- Returns:
- the social relation
- Throws:
com.liferay.social.kernel.exception.NoSuchRelationException- if a social relation with the primary key could not be found
-
fetchByPrimaryKey
Returns the social relation with the primary key or returnsnullif it could not be found.- Specified by:
fetchByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>- Overrides:
fetchByPrimaryKeyin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>- Parameters:
primaryKey- the primary key of the social relation- Returns:
- the social relation, or
nullif a social relation with the primary key could not be found
-
fetchByPrimaryKey
public com.liferay.social.kernel.model.SocialRelation fetchByPrimaryKey(long relationId) Returns the social relation with the primary key or returnsnullif it could not be found.- Specified by:
fetchByPrimaryKeyin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
relationId- the primary key of the social relation- Returns:
- the social relation, or
nullif a social relation with the primary key could not be found
-
fetchByPrimaryKeys
public Map<Serializable,com.liferay.social.kernel.model.SocialRelation> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - Specified by:
fetchByPrimaryKeysin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>- Overrides:
fetchByPrimaryKeysin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>
-
findAll
Returns all the social relations.- Specified by:
findAllin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Returns:
- the social relations
-
findAll
Returns a range of all the social relations.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findAllin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
start- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)- Returns:
- the range of social relations
-
findAll
public List<com.liferay.social.kernel.model.SocialRelation> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator) Returns an ordered range of all the social relations.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findAllin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
start- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of social relations
-
findAll
public List<com.liferay.social.kernel.model.SocialRelation> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.social.kernel.model.SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl.- Specified by:
findAllin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Parameters:
start- the lower bound of the range of social relationsend- the upper bound of the range of social relations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of social relations
-
removeAll
public void removeAll()Removes all the social relations from the database.- Specified by:
removeAllin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence
-
countAll
public int countAll()Returns the number of social relations.- Specified by:
countAllin interfacecom.liferay.social.kernel.service.persistence.SocialRelationPersistence- Returns:
- the number of social relations
-
getBadColumnNames
- Specified by:
getBadColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.social.kernel.model.SocialRelation>- Overrides:
getBadColumnNamesin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>
-
getEntityCache
protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()- Overrides:
getEntityCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>
-
getPKDBName
- Overrides:
getPKDBNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>
-
getSelectSQL
- Overrides:
getSelectSQLin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>
-
getCTColumnNames
public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) - Specified by:
getCTColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>
-
getMappingTableNames
- Specified by:
getMappingTableNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>
-
getTableColumnsMap
- Specified by:
getTableColumnsMapin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>- Overrides:
getTableColumnsMapin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>
-
getTableName
- Specified by:
getTableNamein interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>
-
getUniqueIndexColumnNames
- Specified by:
getUniqueIndexColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.social.kernel.model.SocialRelation>
-
afterPropertiesSet
public void afterPropertiesSet()Initializes the social relation persistence. -
destroy
public void destroy() -
getFinderCache
protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()- Overrides:
getFinderCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.social.kernel.model.SocialRelation>
-