Liferay 6.0.5

com.liferay.portlet.social.service.persistence
Interface SocialRelationPersistence

All Superinterfaces:
BasePersistence<SocialRelation>
All Known Implementing Classes:
SocialRelationPersistenceImpl

public interface SocialRelationPersistence
extends BasePersistence<SocialRelation>

The persistence interface for the social relation service.

Never modify or reference this interface directly. Always use SocialRelationUtil to access the social relation persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface.

Caching information and settings can be found in portal.properties

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

Method Summary
 void cacheResult(List<SocialRelation> socialRelations)
          Caches the social relations in the entity cache if it is enabled.
 void cacheResult(SocialRelation socialRelation)
          Caches the social relation in the entity cache if it is enabled.
 int countAll()
          Counts all the social relations.
 int countByC_T(long companyId, int type)
          Counts all the social relations where companyId = ? and type = ?.
 int countByCompanyId(long companyId)
          Counts all the social relations where companyId = ?.
 int countByType(int type)
          Counts all the social relations where type = ?.
 int countByU1_T(long userId1, int type)
          Counts all the social relations where userId1 = ? and type = ?.
 int countByU1_U2_T(long userId1, long userId2, int type)
          Counts all the social relations where userId1 = ? and userId2 = ? and type = ?.
 int countByU2_T(long userId2, int type)
          Counts all the social relations where userId2 = ? and type = ?.
 int countByUserId1(long userId1)
          Counts all the social relations where userId1 = ?.
 int countByUserId2(long userId2)
          Counts all the social relations where userId2 = ?.
 int countByUuid(String uuid)
          Counts all the social relations where uuid = ?.
 SocialRelation create(long relationId)
          Creates a new social relation with the primary key.
 SocialRelation fetchByPrimaryKey(long relationId)
          Finds the social relation with the primary key or returns null if it could not be found.
 SocialRelation fetchByU1_U2_T(long userId1, long userId2, int type)
          Finds the social relation where userId1 = ? and userId2 = ? and type = ? or returns null if it could not be found.
 SocialRelation fetchByU1_U2_T(long userId1, long userId2, int type, boolean retrieveFromCache)
          Finds the social relation where userId1 = ? and userId2 = ? and type = ? or returns null if it could not be found, optionally using the finder cache.
 List<SocialRelation> findAll()
          Finds all the social relations.
 List<SocialRelation> findAll(int start, int end)
          Finds a range of all the social relations.
 List<SocialRelation> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social relations.
 SocialRelation findByC_T_First(long companyId, int type, OrderByComparator orderByComparator)
          Finds the first social relation in the ordered set where companyId = ? and type = ?.
 SocialRelation findByC_T_Last(long companyId, int type, OrderByComparator orderByComparator)
          Finds the last social relation in the ordered set where companyId = ? and type = ?.
 SocialRelation[] findByC_T_PrevAndNext(long relationId, long companyId, int type, OrderByComparator orderByComparator)
          Finds the social relations before and after the current social relation in the ordered set where companyId = ? and type = ?.
 List<SocialRelation> findByC_T(long companyId, int type)
          Finds all the social relations where companyId = ? and type = ?.
 List<SocialRelation> findByC_T(long companyId, int type, int start, int end)
          Finds a range of all the social relations where companyId = ? and type = ?.
 List<SocialRelation> findByC_T(long companyId, int type, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social relations where companyId = ? and type = ?.
 SocialRelation findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first social relation in the ordered set where companyId = ?.
 SocialRelation findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last social relation in the ordered set where companyId = ?.
 SocialRelation[] findByCompanyId_PrevAndNext(long relationId, long companyId, OrderByComparator orderByComparator)
          Finds the social relations before and after the current social relation in the ordered set where companyId = ?.
 List<SocialRelation> findByCompanyId(long companyId)
          Finds all the social relations where companyId = ?.
 List<SocialRelation> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the social relations where companyId = ?.
 List<SocialRelation> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social relations where companyId = ?.
 SocialRelation findByPrimaryKey(long relationId)
          Finds the social relation with the primary key or throws a NoSuchRelationException if it could not be found.
 SocialRelation findByType_First(int type, OrderByComparator orderByComparator)
          Finds the first social relation in the ordered set where type = ?.
 SocialRelation findByType_Last(int type, OrderByComparator orderByComparator)
          Finds the last social relation in the ordered set where type = ?.
 SocialRelation[] findByType_PrevAndNext(long relationId, int type, OrderByComparator orderByComparator)
          Finds the social relations before and after the current social relation in the ordered set where type = ?.
 List<SocialRelation> findByType(int type)
          Finds all the social relations where type = ?.
 List<SocialRelation> findByType(int type, int start, int end)
          Finds a range of all the social relations where type = ?.
 List<SocialRelation> findByType(int type, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social relations where type = ?.
 SocialRelation findByU1_T_First(long userId1, int type, OrderByComparator orderByComparator)
          Finds the first social relation in the ordered set where userId1 = ? and type = ?.
 SocialRelation findByU1_T_Last(long userId1, int type, OrderByComparator orderByComparator)
          Finds the last social relation in the ordered set where userId1 = ? and type = ?.
 SocialRelation[] findByU1_T_PrevAndNext(long relationId, long userId1, int type, OrderByComparator orderByComparator)
          Finds the social relations before and after the current social relation in the ordered set where userId1 = ? and type = ?.
 List<SocialRelation> findByU1_T(long userId1, int type)
          Finds all the social relations where userId1 = ? and type = ?.
 List<SocialRelation> findByU1_T(long userId1, int type, int start, int end)
          Finds a range of all the social relations where userId1 = ? and type = ?.
 List<SocialRelation> findByU1_T(long userId1, int type, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social relations where userId1 = ? and type = ?.
 SocialRelation findByU1_U2_T(long userId1, long userId2, int type)
          Finds the social relation where userId1 = ? and userId2 = ? and type = ? or throws a NoSuchRelationException if it could not be found.
 SocialRelation findByU2_T_First(long userId2, int type, OrderByComparator orderByComparator)
          Finds the first social relation in the ordered set where userId2 = ? and type = ?.
 SocialRelation findByU2_T_Last(long userId2, int type, OrderByComparator orderByComparator)
          Finds the last social relation in the ordered set where userId2 = ? and type = ?.
 SocialRelation[] findByU2_T_PrevAndNext(long relationId, long userId2, int type, OrderByComparator orderByComparator)
          Finds the social relations before and after the current social relation in the ordered set where userId2 = ? and type = ?.
 List<SocialRelation> findByU2_T(long userId2, int type)
          Finds all the social relations where userId2 = ? and type = ?.
 List<SocialRelation> findByU2_T(long userId2, int type, int start, int end)
          Finds a range of all the social relations where userId2 = ? and type = ?.
 List<SocialRelation> findByU2_T(long userId2, int type, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social relations where userId2 = ? and type = ?.
 SocialRelation findByUserId1_First(long userId1, OrderByComparator orderByComparator)
          Finds the first social relation in the ordered set where userId1 = ?.
 SocialRelation findByUserId1_Last(long userId1, OrderByComparator orderByComparator)
          Finds the last social relation in the ordered set where userId1 = ?.
 SocialRelation[] findByUserId1_PrevAndNext(long relationId, long userId1, OrderByComparator orderByComparator)
          Finds the social relations before and after the current social relation in the ordered set where userId1 = ?.
 List<SocialRelation> findByUserId1(long userId1)
          Finds all the social relations where userId1 = ?.
 List<SocialRelation> findByUserId1(long userId1, int start, int end)
          Finds a range of all the social relations where userId1 = ?.
 List<SocialRelation> findByUserId1(long userId1, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social relations where userId1 = ?.
 SocialRelation findByUserId2_First(long userId2, OrderByComparator orderByComparator)
          Finds the first social relation in the ordered set where userId2 = ?.
 SocialRelation findByUserId2_Last(long userId2, OrderByComparator orderByComparator)
          Finds the last social relation in the ordered set where userId2 = ?.
 SocialRelation[] findByUserId2_PrevAndNext(long relationId, long userId2, OrderByComparator orderByComparator)
          Finds the social relations before and after the current social relation in the ordered set where userId2 = ?.
 List<SocialRelation> findByUserId2(long userId2)
          Finds all the social relations where userId2 = ?.
 List<SocialRelation> findByUserId2(long userId2, int start, int end)
          Finds a range of all the social relations where userId2 = ?.
 List<SocialRelation> findByUserId2(long userId2, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social relations where userId2 = ?.
 SocialRelation findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Finds the first social relation in the ordered set where uuid = ?.
 SocialRelation findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Finds the last social relation in the ordered set where uuid = ?.
 SocialRelation[] findByUuid_PrevAndNext(long relationId, String uuid, OrderByComparator orderByComparator)
          Finds the social relations before and after the current social relation in the ordered set where uuid = ?.
 List<SocialRelation> findByUuid(String uuid)
          Finds all the social relations where uuid = ?.
 List<SocialRelation> findByUuid(String uuid, int start, int end)
          Finds a range of all the social relations where uuid = ?.
 List<SocialRelation> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social relations where uuid = ?.
 SocialRelation remove(long relationId)
          Removes the social relation with the primary key from the database.
 void removeAll()
          Removes all the social relations from the database.
 void removeByC_T(long companyId, int type)
          Removes all the social relations where companyId = ? and type = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the social relations where companyId = ? from the database.
 void removeByType(int type)
          Removes all the social relations where type = ? from the database.
 void removeByU1_T(long userId1, int type)
          Removes all the social relations where userId1 = ? and type = ? from the database.
 void removeByU1_U2_T(long userId1, long userId2, int type)
          Removes the social relation where userId1 = ? and userId2 = ? and type = ? from the database.
 void 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.
 SocialRelation updateImpl(SocialRelation socialRelation, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

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

Parameters:
socialRelation - the social relation to cache

cacheResult

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

Parameters:
socialRelations - the social relations to cache

create

SocialRelation create(long relationId)
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

SocialRelation remove(long relationId)
                      throws SystemException,
                             NoSuchRelationException
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 to remove
Returns:
the social relation that was removed
Throws:
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

SocialRelation updateImpl(SocialRelation socialRelation,
                          boolean merge)
                          throws SystemException
Throws:
SystemException

findByPrimaryKey

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

Parameters:
relationId - the primary key of the social relation to find
Returns:
the social relation
Throws:
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

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

Parameters:
relationId - the primary key of the social relation to find
Returns:
the social relation, or null if a social relation with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUuid

List<SocialRelation> findByUuid(String uuid)
                                throws SystemException
Finds all the social relations where uuid = ?.

Parameters:
uuid - the uuid to search with
Returns:
the matching social relations
Throws:
SystemException - if a system exception occurred

findByUuid

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
uuid - the uuid to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
Returns:
the range of matching social relations
Throws:
SystemException - if a system exception occurred

findByUuid

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
uuid - the uuid to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social relations
Throws:
SystemException - if a system exception occurred

findByUuid_First

SocialRelation findByUuid_First(String uuid,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchRelationException
Finds the first social relation in the ordered set where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByUuid_Last

SocialRelation findByUuid_Last(String uuid,
                               OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchRelationException
Finds the last social relation in the ordered set where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByUuid_PrevAndNext

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
relationId - the primary key of the current social relation
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social relation
Throws:
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred

findByCompanyId

List<SocialRelation> findByCompanyId(long companyId)
                                     throws SystemException
Finds all the social relations where companyId = ?.

Parameters:
companyId - the company id to search with
Returns:
the matching social relations
Throws:
SystemException - if a system exception occurred

findByCompanyId

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
Returns:
the range of matching social relations
Throws:
SystemException - if a system exception occurred

findByCompanyId

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social relations
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

SocialRelation findByCompanyId_First(long companyId,
                                     OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchRelationException
Finds the first social relation in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByCompanyId_Last

SocialRelation findByCompanyId_Last(long companyId,
                                    OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchRelationException
Finds the last social relation in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
relationId - the primary key of the current social relation
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social relation
Throws:
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred

findByUserId1

List<SocialRelation> findByUserId1(long userId1)
                                   throws SystemException
Finds all the social relations where userId1 = ?.

Parameters:
userId1 - the user id1 to search with
Returns:
the matching social relations
Throws:
SystemException - if a system exception occurred

findByUserId1

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId1 - the user id1 to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
Returns:
the range of matching social relations
Throws:
SystemException - if a system exception occurred

findByUserId1

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId1 - the user id1 to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social relations
Throws:
SystemException - if a system exception occurred

findByUserId1_First

SocialRelation findByUserId1_First(long userId1,
                                   OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchRelationException
Finds the first social relation in the ordered set where userId1 = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId1 - the user id1 to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByUserId1_Last

SocialRelation findByUserId1_Last(long userId1,
                                  OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchRelationException
Finds the last social relation in the ordered set where userId1 = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId1 - the user id1 to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByUserId1_PrevAndNext

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
relationId - the primary key of the current social relation
userId1 - the user id1 to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social relation
Throws:
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred

findByUserId2

List<SocialRelation> findByUserId2(long userId2)
                                   throws SystemException
Finds all the social relations where userId2 = ?.

Parameters:
userId2 - the user id2 to search with
Returns:
the matching social relations
Throws:
SystemException - if a system exception occurred

findByUserId2

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId2 - the user id2 to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
Returns:
the range of matching social relations
Throws:
SystemException - if a system exception occurred

findByUserId2

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId2 - the user id2 to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social relations
Throws:
SystemException - if a system exception occurred

findByUserId2_First

SocialRelation findByUserId2_First(long userId2,
                                   OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchRelationException
Finds the first social relation in the ordered set where userId2 = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId2 - the user id2 to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByUserId2_Last

SocialRelation findByUserId2_Last(long userId2,
                                  OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchRelationException
Finds the last social relation in the ordered set where userId2 = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId2 - the user id2 to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByUserId2_PrevAndNext

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
relationId - the primary key of the current social relation
userId2 - the user id2 to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social relation
Throws:
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred

findByType

List<SocialRelation> findByType(int type)
                                throws SystemException
Finds all the social relations where type = ?.

Parameters:
type - the type to search with
Returns:
the matching social relations
Throws:
SystemException - if a system exception occurred

findByType

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
type - the type to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
Returns:
the range of matching social relations
Throws:
SystemException - if a system exception occurred

findByType

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
type - the type to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social relations
Throws:
SystemException - if a system exception occurred

findByType_First

SocialRelation findByType_First(int type,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchRelationException
Finds the first social relation in the ordered set where type = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByType_Last

SocialRelation findByType_Last(int type,
                               OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchRelationException
Finds the last social relation in the ordered set where type = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByType_PrevAndNext

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
relationId - the primary key of the current social relation
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social relation
Throws:
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred

findByC_T

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

Parameters:
companyId - the company id to search with
type - the type to search with
Returns:
the matching social relations
Throws:
SystemException - if a system exception occurred

findByC_T

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
type - the type to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
Returns:
the range of matching social relations
Throws:
SystemException - if a system exception occurred

findByC_T

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
type - the type to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social relations
Throws:
SystemException - if a system exception occurred

findByC_T_First

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByC_T_Last

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByC_T_PrevAndNext

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
relationId - the primary key of the current social relation
companyId - the company id to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social relation
Throws:
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred

findByU1_T

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

Parameters:
userId1 - the user id1 to search with
type - the type to search with
Returns:
the matching social relations
Throws:
SystemException - if a system exception occurred

findByU1_T

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId1 - the user id1 to search with
type - the type to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
Returns:
the range of matching social relations
Throws:
SystemException - if a system exception occurred

findByU1_T

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId1 - the user id1 to search with
type - the type to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social relations
Throws:
SystemException - if a system exception occurred

findByU1_T_First

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId1 - the user id1 to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByU1_T_Last

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId1 - the user id1 to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByU1_T_PrevAndNext

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
relationId - the primary key of the current social relation
userId1 - the user id1 to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social relation
Throws:
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred

findByU2_T

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

Parameters:
userId2 - the user id2 to search with
type - the type to search with
Returns:
the matching social relations
Throws:
SystemException - if a system exception occurred

findByU2_T

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId2 - the user id2 to search with
type - the type to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
Returns:
the range of matching social relations
Throws:
SystemException - if a system exception occurred

findByU2_T

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId2 - the user id2 to search with
type - the type to search with
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social relations
Throws:
SystemException - if a system exception occurred

findByU2_T_First

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId2 - the user id2 to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByU2_T_Last

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId2 - the user id2 to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

findByU2_T_PrevAndNext

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
relationId - the primary key of the current social relation
userId2 - the user id2 to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social relation
Throws:
NoSuchRelationException - if a social relation with the primary key could not be found
SystemException - if a system exception occurred

findByU1_U2_T

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

Parameters:
userId1 - the user id1 to search with
userId2 - the user id2 to search with
type - the type to search with
Returns:
the matching social relation
Throws:
NoSuchRelationException - if a matching social relation could not be found
SystemException - if a system exception occurred

fetchByU1_U2_T

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

Parameters:
userId1 - the user id1 to search with
userId2 - the user id2 to search with
type - the type to search with
Returns:
the matching social relation, or null if a matching social relation could not be found
Throws:
SystemException - if a system exception occurred

fetchByU1_U2_T

SocialRelation fetchByU1_U2_T(long userId1,
                              long userId2,
                              int type,
                              boolean retrieveFromCache)
                              throws SystemException
Finds the social relation where userId1 = ? and userId2 = ? and type = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
userId1 - the user id1 to search with
userId2 - the user id2 to search with
type - the type to search with
Returns:
the matching social relation, or null if a matching social relation could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<SocialRelation> findAll()
                             throws SystemException
Finds all the social relations.

Returns:
the social relations
Throws:
SystemException - if a system exception occurred

findAll

List<SocialRelation> findAll(int start,
                             int end)
                             throws SystemException
Finds a range of all the social relations.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
Returns:
the range of social relations
Throws:
SystemException - if a system exception occurred

findAll

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

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of social relations to return
end - the upper bound of the range of social relations to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of social relations
Throws:
SystemException - if a system exception occurred

removeByUuid

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

Parameters:
uuid - the uuid to search with
Throws:
SystemException - if a system exception occurred

removeByCompanyId

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

Parameters:
companyId - the company id to search with
Throws:
SystemException - if a system exception occurred

removeByUserId1

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

Parameters:
userId1 - the user id1 to search with
Throws:
SystemException - if a system exception occurred

removeByUserId2

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

Parameters:
userId2 - the user id2 to search with
Throws:
SystemException - if a system exception occurred

removeByType

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

Parameters:
type - the type to search with
Throws:
SystemException - if a system exception occurred

removeByC_T

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

Parameters:
companyId - the company id to search with
type - the type to search with
Throws:
SystemException - if a system exception occurred

removeByU1_T

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

Parameters:
userId1 - the user id1 to search with
type - the type to search with
Throws:
SystemException - if a system exception occurred

removeByU2_T

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

Parameters:
userId2 - the user id2 to search with
type - the type to search with
Throws:
SystemException - if a system exception occurred

removeByU1_U2_T

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

Parameters:
userId1 - the user id1 to search with
userId2 - the user id2 to search with
type - the type to search with
Throws:
SystemException - if a system exception occurred
NoSuchRelationException

removeAll

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

Throws:
SystemException - if a system exception occurred

countByUuid

int countByUuid(String uuid)
                throws SystemException
Counts all the social relations where uuid = ?.

Parameters:
uuid - the uuid to search with
Returns:
the number of matching social relations
Throws:
SystemException - if a system exception occurred

countByCompanyId

int countByCompanyId(long companyId)
                     throws SystemException
Counts all the social relations where companyId = ?.

Parameters:
companyId - the company id to search with
Returns:
the number of matching social relations
Throws:
SystemException - if a system exception occurred

countByUserId1

int countByUserId1(long userId1)
                   throws SystemException
Counts all the social relations where userId1 = ?.

Parameters:
userId1 - the user id1 to search with
Returns:
the number of matching social relations
Throws:
SystemException - if a system exception occurred

countByUserId2

int countByUserId2(long userId2)
                   throws SystemException
Counts all the social relations where userId2 = ?.

Parameters:
userId2 - the user id2 to search with
Returns:
the number of matching social relations
Throws:
SystemException - if a system exception occurred

countByType

int countByType(int type)
                throws SystemException
Counts all the social relations where type = ?.

Parameters:
type - the type to search with
Returns:
the number of matching social relations
Throws:
SystemException - if a system exception occurred

countByC_T

int countByC_T(long companyId,
               int type)
               throws SystemException
Counts all the social relations where companyId = ? and type = ?.

Parameters:
companyId - the company id to search with
type - the type to search with
Returns:
the number of matching social relations
Throws:
SystemException - if a system exception occurred

countByU1_T

int countByU1_T(long userId1,
                int type)
                throws SystemException
Counts all the social relations where userId1 = ? and type = ?.

Parameters:
userId1 - the user id1 to search with
type - the type to search with
Returns:
the number of matching social relations
Throws:
SystemException - if a system exception occurred

countByU2_T

int countByU2_T(long userId2,
                int type)
                throws SystemException
Counts all the social relations where userId2 = ? and type = ?.

Parameters:
userId2 - the user id2 to search with
type - the type to search with
Returns:
the number of matching social relations
Throws:
SystemException - if a system exception occurred

countByU1_U2_T

int countByU1_U2_T(long userId1,
                   long userId2,
                   int type)
                   throws SystemException
Counts all the social relations where userId1 = ? and userId2 = ? and type = ?.

Parameters:
userId1 - the user id1 to search with
userId2 - the user id2 to search with
type - the type to search with
Returns:
the number of matching social relations
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Counts all the social relations.

Returns:
the number of social relations
Throws:
SystemException - if a system exception occurred

Liferay 6.0.5