Interface SocialRelationPersistence
- All Superinterfaces:
BasePersistence<SocialRelation>
,CTPersistence<SocialRelation>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(SocialRelation socialRelation) Caches the social relation in the entity cache if it is enabled.void
cacheResult
(List<SocialRelation> socialRelations) Caches the social relations in the entity cache if it is enabled.int
countAll()
Returns the number of social relations.int
countByC_T
(long companyId, int type) Returns the number of social relations where companyId = ? and type = ?.int
countByCompanyId
(long companyId) Returns the number of social relations where companyId = ?.int
countByType
(int type) Returns the number of social relations where type = ?.int
countByU1_T
(long userId1, int type) Returns the number of social relations where userId1 = ? and type = ?.int
countByU1_U2
(long userId1, long userId2) Returns the number of social relations where userId1 = ? and userId2 = ?.int
countByU1_U2_T
(long userId1, long userId2, int type) Returns the number of social relations where userId1 = ? and userId2 = ? and type = ?.int
countByU2_T
(long userId2, int type) Returns the number of social relations where userId2 = ? and type = ?.int
countByUserId1
(long userId1) Returns the number of social relations where userId1 = ?.int
countByUserId2
(long userId2) Returns the number of social relations where userId2 = ?.int
countByUuid
(String uuid) Returns the number of social relations where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of social relations where uuid = ? and companyId = ?.create
(long relationId) Creates a new social relation with the primary key.fetchByC_T_First
(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where companyId = ? and type = ?.fetchByC_T_Last
(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where companyId = ? and type = ?.fetchByCompanyId_First
(long companyId, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where companyId = ?.fetchByCompanyId_Last
(long companyId, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where companyId = ?.fetchByPrimaryKey
(long relationId) Returns the social relation with the primary key or returnsnull
if it could not be found.fetchByType_First
(int type, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where type = ?.fetchByType_Last
(int type, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where type = ?.fetchByU1_T_First
(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ? and type = ?.fetchByU1_T_Last
(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ? and type = ?.fetchByU1_U2_First
(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.fetchByU1_U2_Last
(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.fetchByU1_U2_T
(long userId1, long userId2, int type) Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returnsnull
if it could not be found.fetchByU1_U2_T
(long userId1, long userId2, int type, boolean useFinderCache) Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByU2_T_First
(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId2 = ? and type = ?.fetchByU2_T_Last
(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId2 = ? and type = ?.fetchByUserId1_First
(long userId1, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ?.fetchByUserId1_Last
(long userId1, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ?.fetchByUserId2_First
(long userId2, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId2 = ?.fetchByUserId2_Last
(long userId2, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId2 = ?.fetchByUuid_C_First
(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where uuid = ? and companyId = ?.fetchByUuid_C_Last
(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where uuid = ? and companyId = ?.fetchByUuid_First
(String uuid, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where uuid = ?.fetchByUuid_Last
(String uuid, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where uuid = ?.findAll()
Returns all the social relations.findAll
(int start, int end) Returns a range of all the social relations.findAll
(int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations.findAll
(int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations.findByC_T
(long companyId, int type) Returns all the social relations where companyId = ? and type = ?.findByC_T
(long companyId, int type, int start, int end) Returns a range of all the social relations where companyId = ? and type = ?.findByC_T
(long companyId, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where companyId = ? and type = ?.findByC_T
(long companyId, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where companyId = ? and type = ?.findByC_T_First
(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where companyId = ? and type = ?.findByC_T_Last
(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where companyId = ? and type = ?.findByC_T_PrevAndNext
(long relationId, long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where companyId = ? and type = ?.findByCompanyId
(long companyId) Returns all the social relations where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the social relations where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where companyId = ?.findByCompanyId_First
(long companyId, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where companyId = ?.findByCompanyId_Last
(long companyId, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where companyId = ?.findByCompanyId_PrevAndNext
(long relationId, long companyId, OrderByComparator<SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where companyId = ?.findByPrimaryKey
(long relationId) Returns the social relation with the primary key or throws aNoSuchRelationException
if it could not be found.findByType
(int type) Returns all the social relations where type = ?.findByType
(int type, int start, int end) Returns a range of all the social relations where type = ?.findByType
(int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where type = ?.findByType
(int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where type = ?.findByType_First
(int type, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where type = ?.findByType_Last
(int type, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where type = ?.findByType_PrevAndNext
(long relationId, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where type = ?.findByU1_T
(long userId1, int type) Returns all the social relations where userId1 = ? and type = ?.findByU1_T
(long userId1, int type, int start, int end) Returns a range of all the social relations where userId1 = ? and type = ?.findByU1_T
(long userId1, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId1 = ? and type = ?.findByU1_T
(long userId1, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId1 = ? and type = ?.findByU1_T_First
(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ? and type = ?.findByU1_T_Last
(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ? and type = ?.findByU1_T_PrevAndNext
(long relationId, long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and type = ?.findByU1_U2
(long userId1, long userId2) Returns all the social relations where userId1 = ? and userId2 = ?.findByU1_U2
(long userId1, long userId2, int start, int end) Returns a range of all the social relations where userId1 = ? and userId2 = ?.findByU1_U2
(long userId1, long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.findByU1_U2
(long userId1, long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.findByU1_U2_First
(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.findByU1_U2_Last
(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.findByU1_U2_PrevAndNext
(long relationId, long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and userId2 = ?.findByU1_U2_T
(long userId1, long userId2, int type) Returns the social relation where userId1 = ? and userId2 = ? and type = ? or throws aNoSuchRelationException
if it could not be found.findByU2_T
(long userId2, int type) Returns all the social relations where userId2 = ? and type = ?.findByU2_T
(long userId2, int type, int start, int end) Returns a range of all the social relations where userId2 = ? and type = ?.findByU2_T
(long userId2, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId2 = ? and type = ?.findByU2_T
(long userId2, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId2 = ? and type = ?.findByU2_T_First
(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId2 = ? and type = ?.findByU2_T_Last
(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId2 = ? and type = ?.findByU2_T_PrevAndNext
(long relationId, long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where userId2 = ? and type = ?.findByUserId1
(long userId1) Returns all the social relations where userId1 = ?.findByUserId1
(long userId1, int start, int end) Returns a range of all the social relations where userId1 = ?.findByUserId1
(long userId1, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId1 = ?.findByUserId1
(long userId1, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId1 = ?.findByUserId1_First
(long userId1, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ?.findByUserId1_Last
(long userId1, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ?.findByUserId1_PrevAndNext
(long relationId, long userId1, OrderByComparator<SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where userId1 = ?.findByUserId2
(long userId2) Returns all the social relations where userId2 = ?.findByUserId2
(long userId2, int start, int end) Returns a range of all the social relations where userId2 = ?.findByUserId2
(long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId2 = ?.findByUserId2
(long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId2 = ?.findByUserId2_First
(long userId2, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId2 = ?.findByUserId2_Last
(long userId2, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId2 = ?.findByUserId2_PrevAndNext
(long relationId, long userId2, OrderByComparator<SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where userId2 = ?.findByUuid
(String uuid) Returns all the social relations where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the social relations where uuid = ?.findByUuid
(String uuid, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where uuid = ?.findByUuid
(String uuid, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where uuid = ?.findByUuid_C
(String uuid, long companyId) Returns all the social relations where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the social relations where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where uuid = ? and companyId = ?.findByUuid_C_First
(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where uuid = ? and companyId = ?.findByUuid_C_Last
(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where uuid = ? and companyId = ?.findByUuid_C_PrevAndNext
(long relationId, String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where uuid = ? and companyId = ?.findByUuid_First
(String uuid, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where uuid = ?.findByUuid_Last
(String uuid, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where uuid = ?.findByUuid_PrevAndNext
(long relationId, String uuid, OrderByComparator<SocialRelation> orderByComparator) Returns the social relations before and after the current social relation in the ordered set where uuid = ?.remove
(long relationId) Removes the social relation with the primary key from the database.void
Removes all the social relations from the database.void
removeByC_T
(long companyId, int type) Removes all the social relations where companyId = ? and type = ? from the database.void
removeByCompanyId
(long companyId) Removes all the social relations where companyId = ? from the database.void
removeByType
(int type) Removes all the social relations where type = ? from the database.void
removeByU1_T
(long userId1, int type) Removes all the social relations where userId1 = ? and type = ? from the database.void
removeByU1_U2
(long userId1, long userId2) Removes all the social relations where userId1 = ? and userId2 = ? from the database.removeByU1_U2_T
(long userId1, long userId2, int type) Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database.void
removeByU2_T
(long userId2, int type) Removes all the social relations where userId2 = ? and type = ? from the database.void
removeByUserId1
(long userId1) Removes all the social relations where userId1 = ? from the database.void
removeByUserId2
(long userId2) Removes all the social relations where userId2 = ? from the database.void
removeByUuid
(String uuid) Removes all the social relations where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the social relations where uuid = ? and companyId = ? from the database.updateImpl
(SocialRelation socialRelation) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByUuid
Returns all the social relations where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching social relations
-
findByUuid
Returns a range of all the social relations where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByUuid(String uuid, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByUuid(String uuid, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
SocialRelation findByUuid_First(String uuid, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the first social relation in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByUuid_First
Returns the first social relation in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation, or
null
if a matching social relation could not be found
-
findByUuid_Last
SocialRelation findByUuid_Last(String uuid, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the last social relation in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByUuid_Last
Returns the last social relation in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation, or
null
if a matching social relation could not be found
-
findByUuid_PrevAndNext
SocialRelation[] findByUuid_PrevAndNext(long relationId, String uuid, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where uuid = ?.- Parameters:
relationId
- the primary key of the current social relationuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social relation
- Throws:
NoSuchRelationException
- if a social relation with the primary key could not be found
-
removeByUuid
Removes all the social relations where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of social relations where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching social relations
-
findByUuid_C
Returns all the social relations where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching social relations
-
findByUuid_C
Returns a range of all the social relations where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
SocialRelation findByUuid_C_First(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the first social relation in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByUuid_C_First
SocialRelation fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation, or
null
if a matching social relation could not be found
-
findByUuid_C_Last
SocialRelation findByUuid_C_Last(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the last social relation in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByUuid_C_Last
SocialRelation fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation, or
null
if a matching social relation could not be found
-
findByUuid_C_PrevAndNext
SocialRelation[] findByUuid_C_PrevAndNext(long relationId, String uuid, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where uuid = ? and companyId = ?.- Parameters:
relationId
- the primary key of the current social relationuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social relation
- Throws:
NoSuchRelationException
- if a social relation with the primary key could not be found
-
removeByUuid_C
Removes all the social relations where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of social relations where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching social relations
-
findByCompanyId
Returns all the social relations where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching social relations
-
findByCompanyId
Returns a range of all the social relations where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByCompanyId(long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByCompanyId(long companyId, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
SocialRelation findByCompanyId_First(long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the first social relation in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByCompanyId_First
SocialRelation fetchByCompanyId_First(long companyId, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation, or
null
if a matching social relation could not be found
-
findByCompanyId_Last
SocialRelation findByCompanyId_Last(long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the last social relation in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByCompanyId_Last
SocialRelation fetchByCompanyId_Last(long companyId, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation, or
null
if a matching social relation could not be found
-
findByCompanyId_PrevAndNext
SocialRelation[] findByCompanyId_PrevAndNext(long relationId, long companyId, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where companyId = ?.- Parameters:
relationId
- the primary key of the current social relationcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social relation
- Throws:
NoSuchRelationException
- if a social relation with the primary key could not be found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the social relations where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of social relations where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching social relations
-
findByUserId1
Returns all the social relations where userId1 = ?.- Parameters:
userId1
- the user id1- Returns:
- the matching social relations
-
findByUserId1
Returns a range of all the social relations where userId1 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByUserId1(long userId1, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId1 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByUserId1(long userId1, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId1 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
SocialRelation findByUserId1_First(long userId1, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the first social relation in the ordered set where userId1 = ?.- Parameters:
userId1
- the user id1orderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByUserId1_First
SocialRelation fetchByUserId1_First(long userId1, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ?.- Parameters:
userId1
- the user id1orderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation, or
null
if a matching social relation could not be found
-
findByUserId1_Last
SocialRelation findByUserId1_Last(long userId1, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the last social relation in the ordered set where userId1 = ?.- Parameters:
userId1
- the user id1orderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByUserId1_Last
SocialRelation fetchByUserId1_Last(long userId1, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ?.- Parameters:
userId1
- the user id1orderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation, or
null
if a matching social relation could not be found
-
findByUserId1_PrevAndNext
SocialRelation[] findByUserId1_PrevAndNext(long relationId, long userId1, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where userId1 = ?.- Parameters:
relationId
- the primary key of the current social relationuserId1
- the user id1orderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social relation
- Throws:
NoSuchRelationException
- if a social relation with the primary key could not be found
-
removeByUserId1
void removeByUserId1(long userId1) Removes all the social relations where userId1 = ? from the database.- Parameters:
userId1
- the user id1
-
countByUserId1
int countByUserId1(long userId1) Returns the number of social relations where userId1 = ?.- Parameters:
userId1
- the user id1- Returns:
- the number of matching social relations
-
findByUserId2
Returns all the social relations where userId2 = ?.- Parameters:
userId2
- the user id2- Returns:
- the matching social relations
-
findByUserId2
Returns a range of all the social relations where userId2 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByUserId2(long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId2 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByUserId2(long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId2 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
SocialRelation findByUserId2_First(long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the first social relation in the ordered set where userId2 = ?.- Parameters:
userId2
- the user id2orderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByUserId2_First
SocialRelation fetchByUserId2_First(long userId2, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId2 = ?.- Parameters:
userId2
- the user id2orderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation, or
null
if a matching social relation could not be found
-
findByUserId2_Last
SocialRelation findByUserId2_Last(long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the last social relation in the ordered set where userId2 = ?.- Parameters:
userId2
- the user id2orderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByUserId2_Last
SocialRelation fetchByUserId2_Last(long userId2, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId2 = ?.- Parameters:
userId2
- the user id2orderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation, or
null
if a matching social relation could not be found
-
findByUserId2_PrevAndNext
SocialRelation[] findByUserId2_PrevAndNext(long relationId, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where userId2 = ?.- Parameters:
relationId
- the primary key of the current social relationuserId2
- the user id2orderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social relation
- Throws:
NoSuchRelationException
- if a social relation with the primary key could not be found
-
removeByUserId2
void removeByUserId2(long userId2) Removes all the social relations where userId2 = ? from the database.- Parameters:
userId2
- the user id2
-
countByUserId2
int countByUserId2(long userId2) Returns the number of social relations where userId2 = ?.- Parameters:
userId2
- the user id2- Returns:
- the number of matching social relations
-
findByType
Returns all the social relations where type = ?.- Parameters:
type
- the type- Returns:
- the matching social relations
-
findByType
Returns a range of all the social relations where type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByType(int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByType(int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
SocialRelation findByType_First(int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the first social relation in the ordered set where type = ?.- Parameters:
type
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByType_First
Returns the first social relation in the ordered set where type = ?.- Parameters:
type
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation, or
null
if a matching social relation could not be found
-
findByType_Last
SocialRelation findByType_Last(int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the last social relation in the ordered set where type = ?.- Parameters:
type
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByType_Last
Returns the last social relation in the ordered set where type = ?.- Parameters:
type
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation, or
null
if a matching social relation could not be found
-
findByType_PrevAndNext
SocialRelation[] findByType_PrevAndNext(long relationId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where type = ?.- Parameters:
relationId
- the primary key of the current social relationtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social relation
- Throws:
NoSuchRelationException
- if a social relation with the primary key could not be found
-
removeByType
void removeByType(int type) Removes all the social relations where type = ? from the database.- Parameters:
type
- the type
-
countByType
int countByType(int type) Returns the number of social relations where type = ?.- Parameters:
type
- the type- Returns:
- the number of matching social relations
-
findByC_T
Returns all the social relations where companyId = ? and type = ?.- Parameters:
companyId
- the company IDtype
- the type- Returns:
- the matching social relations
-
findByC_T
Returns a range of all the social relations where companyId = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByC_T(long companyId, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where companyId = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByC_T(long companyId, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where companyId = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
SocialRelation findByC_T_First(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the first social relation in the ordered set where companyId = ? and type = ?.- Parameters:
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByC_T_First
SocialRelation fetchByC_T_First(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where companyId = ? and type = ?.- Parameters:
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation, or
null
if a matching social relation could not be found
-
findByC_T_Last
SocialRelation findByC_T_Last(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the last social relation in the ordered set where companyId = ? and type = ?.- Parameters:
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByC_T_Last
SocialRelation fetchByC_T_Last(long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where companyId = ? and type = ?.- Parameters:
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation, or
null
if a matching social relation could not be found
-
findByC_T_PrevAndNext
SocialRelation[] findByC_T_PrevAndNext(long relationId, long companyId, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where companyId = ? and type = ?.- Parameters:
relationId
- the primary key of the current social relationcompanyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social relation
- Throws:
NoSuchRelationException
- if a social relation with the primary key could not be found
-
removeByC_T
void removeByC_T(long companyId, int type) Removes all the social relations where companyId = ? and type = ? from the database.- Parameters:
companyId
- the company IDtype
- the type
-
countByC_T
int countByC_T(long companyId, int type) Returns the number of social relations where companyId = ? and type = ?.- 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 = ?.- Parameters:
userId1
- the user id1userId2
- the user id2- Returns:
- the matching social relations
-
findByU1_U2
Returns a range of all the social relations where userId1 = ? and userId2 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByU1_U2(long userId1, long userId2, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId1 = ? and userId2 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
SocialRelation findByU1_U2_First(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.- Parameters:
userId1
- the user id1userId2
- the user id2orderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByU1_U2_First
SocialRelation fetchByU1_U2_First(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ? and userId2 = ?.- Parameters:
userId1
- the user id1userId2
- the user id2orderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation, or
null
if a matching social relation could not be found
-
findByU1_U2_Last
SocialRelation findByU1_U2_Last(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.- Parameters:
userId1
- the user id1userId2
- the user id2orderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByU1_U2_Last
SocialRelation fetchByU1_U2_Last(long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ? and userId2 = ?.- Parameters:
userId1
- the user id1userId2
- the user id2orderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation, or
null
if a matching social relation could not be found
-
findByU1_U2_PrevAndNext
SocialRelation[] findByU1_U2_PrevAndNext(long relationId, long userId1, long userId2, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and userId2 = ?.- Parameters:
relationId
- the primary key of the current social relationuserId1
- the user id1userId2
- the user id2orderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social relation
- Throws:
NoSuchRelationException
- if a social relation with the primary key could not be found
-
removeByU1_U2
void removeByU1_U2(long userId1, long userId2) Removes all the social relations where userId1 = ? and userId2 = ? from the database.- Parameters:
userId1
- the user id1userId2
- the user id2
-
countByU1_U2
int countByU1_U2(long userId1, long userId2) Returns the number of social relations where userId1 = ? and userId2 = ?.- 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 = ?.- Parameters:
userId1
- the user id1type
- the type- Returns:
- the matching social relations
-
findByU1_T
Returns a range of all the social relations where userId1 = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByU1_T(long userId1, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId1 = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByU1_T(long userId1, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId1 = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
SocialRelation findByU1_T_First(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the first social relation in the ordered set where userId1 = ? and type = ?.- Parameters:
userId1
- the user id1type
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByU1_T_First
SocialRelation fetchByU1_T_First(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId1 = ? and type = ?.- Parameters:
userId1
- the user id1type
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation, or
null
if a matching social relation could not be found
-
findByU1_T_Last
SocialRelation findByU1_T_Last(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the last social relation in the ordered set where userId1 = ? and type = ?.- Parameters:
userId1
- the user id1type
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByU1_T_Last
SocialRelation fetchByU1_T_Last(long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId1 = ? and type = ?.- Parameters:
userId1
- the user id1type
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation, or
null
if a matching social relation could not be found
-
findByU1_T_PrevAndNext
SocialRelation[] findByU1_T_PrevAndNext(long relationId, long userId1, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where userId1 = ? and type = ?.- Parameters:
relationId
- the primary key of the current social relationuserId1
- the user id1type
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social relation
- Throws:
NoSuchRelationException
- if a social relation with the primary key could not be found
-
removeByU1_T
void removeByU1_T(long userId1, int type) Removes all the social relations where userId1 = ? and type = ? from the database.- Parameters:
userId1
- the user id1type
- the type
-
countByU1_T
int countByU1_T(long userId1, int type) Returns the number of social relations where userId1 = ? and type = ?.- 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 = ?.- Parameters:
userId2
- the user id2type
- the type- Returns:
- the matching social relations
-
findByU2_T
Returns a range of all the social relations where userId2 = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByU2_T(long userId2, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations where userId2 = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findByU2_T(long userId2, int type, int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations where userId2 = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
SocialRelation findByU2_T_First(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the first social relation in the ordered set where userId2 = ? and type = ?.- Parameters:
userId2
- the user id2type
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByU2_T_First
SocialRelation fetchByU2_T_First(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the first social relation in the ordered set where userId2 = ? and type = ?.- Parameters:
userId2
- the user id2type
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching social relation, or
null
if a matching social relation could not be found
-
findByU2_T_Last
SocialRelation findByU2_T_Last(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the last social relation in the ordered set where userId2 = ? and type = ?.- Parameters:
userId2
- the user id2type
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByU2_T_Last
SocialRelation fetchByU2_T_Last(long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) Returns the last social relation in the ordered set where userId2 = ? and type = ?.- Parameters:
userId2
- the user id2type
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching social relation, or
null
if a matching social relation could not be found
-
findByU2_T_PrevAndNext
SocialRelation[] findByU2_T_PrevAndNext(long relationId, long userId2, int type, OrderByComparator<SocialRelation> orderByComparator) throws NoSuchRelationException Returns the social relations before and after the current social relation in the ordered set where userId2 = ? and type = ?.- Parameters:
relationId
- the primary key of the current social relationuserId2
- the user id2type
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next social relation
- Throws:
NoSuchRelationException
- if a social relation with the primary key could not be found
-
removeByU2_T
void removeByU2_T(long userId2, int type) Removes all the social relations where userId2 = ? and type = ? from the database.- Parameters:
userId2
- the user id2type
- the type
-
countByU2_T
int countByU2_T(long userId2, int type) Returns the number of social relations where userId2 = ? and type = ?.- Parameters:
userId2
- the user id2type
- the type- Returns:
- the number of matching social relations
-
findByU1_U2_T
Returns the social relation where userId1 = ? and userId2 = ? and type = ? or throws aNoSuchRelationException
if it could not be found.- Parameters:
userId1
- the user id1userId2
- the user id2type
- the type- Returns:
- the matching social relation
- Throws:
NoSuchRelationException
- if a matching social relation could not be found
-
fetchByU1_U2_T
Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
userId1
- the user id1userId2
- the user id2type
- the type- Returns:
- the matching social relation, or
null
if a matching social relation could not be found
-
fetchByU1_U2_T
Returns the social relation where userId1 = ? and userId2 = ? and type = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
userId1
- the user id1userId2
- the user id2type
- the typeuseFinderCache
- whether to use the finder cache- Returns:
- the matching social relation, or
null
if a matching social relation could not be found
-
removeByU1_U2_T
Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database.- Parameters:
userId1
- the user id1userId2
- the user id2type
- the type- Returns:
- the social relation that was removed
- Throws:
NoSuchRelationException
-
countByU1_U2_T
int countByU1_U2_T(long userId1, long userId2, int type) Returns the number of social relations where userId1 = ? and userId2 = ? and type = ?.- Parameters:
userId1
- the user id1userId2
- the user id2type
- the type- Returns:
- the number of matching social relations
-
cacheResult
Caches the social relation in the entity cache if it is enabled.- Parameters:
socialRelation
- the social relation
-
cacheResult
Caches the social relations in the entity cache if it is enabled.- Parameters:
socialRelations
- the social relations
-
create
Creates a new social relation with the primary key. Does not add the social relation to the database.- Parameters:
relationId
- the primary key for the new social relation- Returns:
- the new social relation
-
remove
Removes the social relation with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
relationId
- the primary key of the social relation- Returns:
- the social relation that was removed
- Throws:
NoSuchRelationException
- if a social relation with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the social relation with the primary key or throws aNoSuchRelationException
if it could not be found.- Parameters:
relationId
- the primary key of the social relation- Returns:
- the social relation
- Throws:
NoSuchRelationException
- if a social relation with the primary key could not be found
-
fetchByPrimaryKey
Returns the social relation with the primary key or returnsnull
if it could not be found.- Parameters:
relationId
- the primary key of the social relation- Returns:
- the social relation, or
null
if a social relation with the primary key could not be found
-
findAll
List<SocialRelation> findAll()Returns all the social relations.- Returns:
- the social relations
-
findAll
Returns a range of all the social relations.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findAll(int start, int end, OrderByComparator<SocialRelation> orderByComparator) Returns an ordered range of all the social relations.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
List<SocialRelation> findAll(int start, int end, OrderByComparator<SocialRelation> orderByComparator, boolean useFinderCache) Returns an ordered range of all the social relations.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromSocialRelationModelImpl
.- 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
void removeAll()Removes all the social relations from the database. -
countAll
int countAll()Returns the number of social relations.- Returns:
- the number of social relations
-