Liferay 6.0.5

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

All Superinterfaces:
BasePersistence<SocialEquityUser>
All Known Implementing Classes:
SocialEquityUserPersistenceImpl

public interface SocialEquityUserPersistence
extends BasePersistence<SocialEquityUser>

The persistence interface for the social equity user service.

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

Caching information and settings can be found in portal.properties

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

Method Summary
 void cacheResult(List<SocialEquityUser> socialEquityUsers)
          Caches the social equity users in the entity cache if it is enabled.
 void cacheResult(SocialEquityUser socialEquityUser)
          Caches the social equity user in the entity cache if it is enabled.
 int countAll()
          Counts all the social equity users.
 int countByG_R(long groupId, int rank)
          Counts all the social equity users where groupId = ? and rank = ?.
 int countByG_U(long groupId, long userId)
          Counts all the social equity users where groupId = ? and userId = ?.
 int countByGroupId(long groupId)
          Counts all the social equity users where groupId = ?.
 int countByGroupRanked(long groupId)
          Counts all the social equity users where groupId = ?.
 int countByRank(int rank)
          Counts all the social equity users where rank = ?.
 int countByUserId(long userId)
          Counts all the social equity users where userId = ?.
 SocialEquityUser create(long equityUserId)
          Creates a new social equity user with the primary key.
 SocialEquityUser fetchByG_U(long groupId, long userId)
          Finds the social equity user where groupId = ? and userId = ? or returns null if it could not be found.
 SocialEquityUser fetchByG_U(long groupId, long userId, boolean retrieveFromCache)
          Finds the social equity user where groupId = ? and userId = ? or returns null if it could not be found, optionally using the finder cache.
 SocialEquityUser fetchByPrimaryKey(long equityUserId)
          Finds the social equity user with the primary key or returns null if it could not be found.
 List<SocialEquityUser> findAll()
          Finds all the social equity users.
 List<SocialEquityUser> findAll(int start, int end)
          Finds a range of all the social equity users.
 List<SocialEquityUser> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social equity users.
 SocialEquityUser findByG_R_First(long groupId, int rank, OrderByComparator orderByComparator)
          Finds the first social equity user in the ordered set where groupId = ? and rank = ?.
 SocialEquityUser findByG_R_Last(long groupId, int rank, OrderByComparator orderByComparator)
          Finds the last social equity user in the ordered set where groupId = ? and rank = ?.
 SocialEquityUser[] findByG_R_PrevAndNext(long equityUserId, long groupId, int rank, OrderByComparator orderByComparator)
          Finds the social equity users before and after the current social equity user in the ordered set where groupId = ? and rank = ?.
 List<SocialEquityUser> findByG_R(long groupId, int rank)
          Finds all the social equity users where groupId = ? and rank = ?.
 List<SocialEquityUser> findByG_R(long groupId, int rank, int start, int end)
          Finds a range of all the social equity users where groupId = ? and rank = ?.
 List<SocialEquityUser> findByG_R(long groupId, int rank, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social equity users where groupId = ? and rank = ?.
 SocialEquityUser findByG_U(long groupId, long userId)
          Finds the social equity user where groupId = ? and userId = ? or throws a NoSuchEquityUserException if it could not be found.
 SocialEquityUser findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first social equity user in the ordered set where groupId = ?.
 SocialEquityUser findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last social equity user in the ordered set where groupId = ?.
 SocialEquityUser[] findByGroupId_PrevAndNext(long equityUserId, long groupId, OrderByComparator orderByComparator)
          Finds the social equity users before and after the current social equity user in the ordered set where groupId = ?.
 List<SocialEquityUser> findByGroupId(long groupId)
          Finds all the social equity users where groupId = ?.
 List<SocialEquityUser> findByGroupId(long groupId, int start, int end)
          Finds a range of all the social equity users where groupId = ?.
 List<SocialEquityUser> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social equity users where groupId = ?.
 SocialEquityUser findByGroupRanked_First(long groupId, OrderByComparator orderByComparator)
          Finds the first social equity user in the ordered set where groupId = ?.
 SocialEquityUser findByGroupRanked_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last social equity user in the ordered set where groupId = ?.
 SocialEquityUser[] findByGroupRanked_PrevAndNext(long equityUserId, long groupId, OrderByComparator orderByComparator)
          Finds the social equity users before and after the current social equity user in the ordered set where groupId = ?.
 List<SocialEquityUser> findByGroupRanked(long groupId)
          Finds all the social equity users where groupId = ?.
 List<SocialEquityUser> findByGroupRanked(long groupId, int start, int end)
          Finds a range of all the social equity users where groupId = ?.
 List<SocialEquityUser> findByGroupRanked(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social equity users where groupId = ?.
 SocialEquityUser findByPrimaryKey(long equityUserId)
          Finds the social equity user with the primary key or throws a NoSuchEquityUserException if it could not be found.
 SocialEquityUser findByRank_First(int rank, OrderByComparator orderByComparator)
          Finds the first social equity user in the ordered set where rank = ?.
 SocialEquityUser findByRank_Last(int rank, OrderByComparator orderByComparator)
          Finds the last social equity user in the ordered set where rank = ?.
 SocialEquityUser[] findByRank_PrevAndNext(long equityUserId, int rank, OrderByComparator orderByComparator)
          Finds the social equity users before and after the current social equity user in the ordered set where rank = ?.
 List<SocialEquityUser> findByRank(int rank)
          Finds all the social equity users where rank = ?.
 List<SocialEquityUser> findByRank(int rank, int start, int end)
          Finds a range of all the social equity users where rank = ?.
 List<SocialEquityUser> findByRank(int rank, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social equity users where rank = ?.
 SocialEquityUser findByUserId_First(long userId, OrderByComparator orderByComparator)
          Finds the first social equity user in the ordered set where userId = ?.
 SocialEquityUser findByUserId_Last(long userId, OrderByComparator orderByComparator)
          Finds the last social equity user in the ordered set where userId = ?.
 SocialEquityUser[] findByUserId_PrevAndNext(long equityUserId, long userId, OrderByComparator orderByComparator)
          Finds the social equity users before and after the current social equity user in the ordered set where userId = ?.
 List<SocialEquityUser> findByUserId(long userId)
          Finds all the social equity users where userId = ?.
 List<SocialEquityUser> findByUserId(long userId, int start, int end)
          Finds a range of all the social equity users where userId = ?.
 List<SocialEquityUser> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the social equity users where userId = ?.
 SocialEquityUser remove(long equityUserId)
          Removes the social equity user with the primary key from the database.
 void removeAll()
          Removes all the social equity users from the database.
 void removeByG_R(long groupId, int rank)
          Removes all the social equity users where groupId = ? and rank = ? from the database.
 void removeByG_U(long groupId, long userId)
          Removes the social equity user where groupId = ? and userId = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the social equity users where groupId = ? from the database.
 void removeByGroupRanked(long groupId)
          Removes all the social equity users where groupId = ? from the database.
 void removeByRank(int rank)
          Removes all the social equity users where rank = ? from the database.
 void removeByUserId(long userId)
          Removes all the social equity users where userId = ? from the database.
 SocialEquityUser updateImpl(SocialEquityUser socialEquityUser, 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(SocialEquityUser socialEquityUser)
Caches the social equity user in the entity cache if it is enabled.

Parameters:
socialEquityUser - the social equity user to cache

cacheResult

void cacheResult(List<SocialEquityUser> socialEquityUsers)
Caches the social equity users in the entity cache if it is enabled.

Parameters:
socialEquityUsers - the social equity users to cache

create

SocialEquityUser create(long equityUserId)
Creates a new social equity user with the primary key. Does not add the social equity user to the database.

Parameters:
equityUserId - the primary key for the new social equity user
Returns:
the new social equity user

remove

SocialEquityUser remove(long equityUserId)
                        throws SystemException,
                               NoSuchEquityUserException
Removes the social equity user with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
equityUserId - the primary key of the social equity user to remove
Returns:
the social equity user that was removed
Throws:
NoSuchEquityUserException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

SocialEquityUser updateImpl(SocialEquityUser socialEquityUser,
                            boolean merge)
                            throws SystemException
Throws:
SystemException

findByPrimaryKey

SocialEquityUser findByPrimaryKey(long equityUserId)
                                  throws SystemException,
                                         NoSuchEquityUserException
Finds the social equity user with the primary key or throws a NoSuchEquityUserException if it could not be found.

Parameters:
equityUserId - the primary key of the social equity user to find
Returns:
the social equity user
Throws:
NoSuchEquityUserException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

SocialEquityUser fetchByPrimaryKey(long equityUserId)
                                   throws SystemException
Finds the social equity user with the primary key or returns null if it could not be found.

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

findByGroupId

List<SocialEquityUser> findByGroupId(long groupId)
                                     throws SystemException
Finds all the social equity users where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching social equity users
Throws:
SystemException - if a system exception occurred

findByGroupId

List<SocialEquityUser> findByGroupId(long groupId,
                                     int start,
                                     int end)
                                     throws SystemException
Finds a range of all the social equity users where groupId = ?.

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:
groupId - the group id to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
Returns:
the range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByGroupId

List<SocialEquityUser> findByGroupId(long groupId,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                                     throws SystemException
Finds an ordered range of all the social equity users where groupId = ?.

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:
groupId - the group id to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByGroupId_First

SocialEquityUser findByGroupId_First(long groupId,
                                     OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchEquityUserException
Finds the first social equity user in the ordered set where groupId = ?.

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:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByGroupId_Last

SocialEquityUser findByGroupId_Last(long groupId,
                                    OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchEquityUserException
Finds the last social equity user in the ordered set where groupId = ?.

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:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

SocialEquityUser[] findByGroupId_PrevAndNext(long equityUserId,
                                             long groupId,
                                             OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchEquityUserException
Finds the social equity users before and after the current social equity user in the ordered set where groupId = ?.

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:
equityUserId - the primary key of the current social equity user
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social equity user
Throws:
NoSuchEquityUserException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

findByGroupRanked

List<SocialEquityUser> findByGroupRanked(long groupId)
                                         throws SystemException
Finds all the social equity users where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching social equity users
Throws:
SystemException - if a system exception occurred

findByGroupRanked

List<SocialEquityUser> findByGroupRanked(long groupId,
                                         int start,
                                         int end)
                                         throws SystemException
Finds a range of all the social equity users where groupId = ?.

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:
groupId - the group id to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
Returns:
the range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByGroupRanked

List<SocialEquityUser> findByGroupRanked(long groupId,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                         throws SystemException
Finds an ordered range of all the social equity users where groupId = ?.

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:
groupId - the group id to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByGroupRanked_First

SocialEquityUser findByGroupRanked_First(long groupId,
                                         OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchEquityUserException
Finds the first social equity user in the ordered set where groupId = ?.

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:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByGroupRanked_Last

SocialEquityUser findByGroupRanked_Last(long groupId,
                                        OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchEquityUserException
Finds the last social equity user in the ordered set where groupId = ?.

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:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByGroupRanked_PrevAndNext

SocialEquityUser[] findByGroupRanked_PrevAndNext(long equityUserId,
                                                 long groupId,
                                                 OrderByComparator orderByComparator)
                                                 throws SystemException,
                                                        NoSuchEquityUserException
Finds the social equity users before and after the current social equity user in the ordered set where groupId = ?.

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:
equityUserId - the primary key of the current social equity user
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social equity user
Throws:
NoSuchEquityUserException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

findByUserId

List<SocialEquityUser> findByUserId(long userId)
                                    throws SystemException
Finds all the social equity users where userId = ?.

Parameters:
userId - the user id to search with
Returns:
the matching social equity users
Throws:
SystemException - if a system exception occurred

findByUserId

List<SocialEquityUser> findByUserId(long userId,
                                    int start,
                                    int end)
                                    throws SystemException
Finds a range of all the social equity users where userId = ?.

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:
userId - the user id to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
Returns:
the range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByUserId

List<SocialEquityUser> findByUserId(long userId,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
Finds an ordered range of all the social equity users where userId = ?.

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:
userId - the user id to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByUserId_First

SocialEquityUser findByUserId_First(long userId,
                                    OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchEquityUserException
Finds the first social equity user in the ordered set where userId = ?.

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:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByUserId_Last

SocialEquityUser findByUserId_Last(long userId,
                                   OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchEquityUserException
Finds the last social equity user in the ordered set where userId = ?.

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:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByUserId_PrevAndNext

SocialEquityUser[] findByUserId_PrevAndNext(long equityUserId,
                                            long userId,
                                            OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchEquityUserException
Finds the social equity users before and after the current social equity user in the ordered set where userId = ?.

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:
equityUserId - the primary key of the current social equity user
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social equity user
Throws:
NoSuchEquityUserException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

findByRank

List<SocialEquityUser> findByRank(int rank)
                                  throws SystemException
Finds all the social equity users where rank = ?.

Parameters:
rank - the rank to search with
Returns:
the matching social equity users
Throws:
SystemException - if a system exception occurred

findByRank

List<SocialEquityUser> findByRank(int rank,
                                  int start,
                                  int end)
                                  throws SystemException
Finds a range of all the social equity users where rank = ?.

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:
rank - the rank to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
Returns:
the range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByRank

List<SocialEquityUser> findByRank(int rank,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Finds an ordered range of all the social equity users where rank = ?.

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:
rank - the rank to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByRank_First

SocialEquityUser findByRank_First(int rank,
                                  OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchEquityUserException
Finds the first social equity user in the ordered set where rank = ?.

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:
rank - the rank to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByRank_Last

SocialEquityUser findByRank_Last(int rank,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchEquityUserException
Finds the last social equity user in the ordered set where rank = ?.

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:
rank - the rank to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByRank_PrevAndNext

SocialEquityUser[] findByRank_PrevAndNext(long equityUserId,
                                          int rank,
                                          OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchEquityUserException
Finds the social equity users before and after the current social equity user in the ordered set where rank = ?.

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:
equityUserId - the primary key of the current social equity user
rank - the rank to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social equity user
Throws:
NoSuchEquityUserException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

findByG_U

SocialEquityUser findByG_U(long groupId,
                           long userId)
                           throws SystemException,
                                  NoSuchEquityUserException
Finds the social equity user where groupId = ? and userId = ? or throws a NoSuchEquityUserException if it could not be found.

Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

fetchByG_U

SocialEquityUser fetchByG_U(long groupId,
                            long userId)
                            throws SystemException
Finds the social equity user where groupId = ? and userId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the matching social equity user, or null if a matching social equity user could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_U

SocialEquityUser fetchByG_U(long groupId,
                            long userId,
                            boolean retrieveFromCache)
                            throws SystemException
Finds the social equity user where groupId = ? and userId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the matching social equity user, or null if a matching social equity user could not be found
Throws:
SystemException - if a system exception occurred

findByG_R

List<SocialEquityUser> findByG_R(long groupId,
                                 int rank)
                                 throws SystemException
Finds all the social equity users where groupId = ? and rank = ?.

Parameters:
groupId - the group id to search with
rank - the rank to search with
Returns:
the matching social equity users
Throws:
SystemException - if a system exception occurred

findByG_R

List<SocialEquityUser> findByG_R(long groupId,
                                 int rank,
                                 int start,
                                 int end)
                                 throws SystemException
Finds a range of all the social equity users where groupId = ? and rank = ?.

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:
groupId - the group id to search with
rank - the rank to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
Returns:
the range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByG_R

List<SocialEquityUser> findByG_R(long groupId,
                                 int rank,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Finds an ordered range of all the social equity users where groupId = ? and rank = ?.

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:
groupId - the group id to search with
rank - the rank to search with
start - the lower bound of the range of social equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching social equity users
Throws:
SystemException - if a system exception occurred

findByG_R_First

SocialEquityUser findByG_R_First(long groupId,
                                 int rank,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchEquityUserException
Finds the first social equity user in the ordered set where groupId = ? and rank = ?.

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:
groupId - the group id to search with
rank - the rank to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByG_R_Last

SocialEquityUser findByG_R_Last(long groupId,
                                int rank,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchEquityUserException
Finds the last social equity user in the ordered set where groupId = ? and rank = ?.

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:
groupId - the group id to search with
rank - the rank to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching social equity user
Throws:
NoSuchEquityUserException - if a matching social equity user could not be found
SystemException - if a system exception occurred

findByG_R_PrevAndNext

SocialEquityUser[] findByG_R_PrevAndNext(long equityUserId,
                                         long groupId,
                                         int rank,
                                         OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchEquityUserException
Finds the social equity users before and after the current social equity user in the ordered set where groupId = ? and rank = ?.

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:
equityUserId - the primary key of the current social equity user
groupId - the group id to search with
rank - the rank to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next social equity user
Throws:
NoSuchEquityUserException - if a social equity user with the primary key could not be found
SystemException - if a system exception occurred

findAll

List<SocialEquityUser> findAll()
                               throws SystemException
Finds all the social equity users.

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

findAll

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

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 equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
Returns:
the range of social equity users
Throws:
SystemException - if a system exception occurred

findAll

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

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 equity users to return
end - the upper bound of the range of social equity users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of social equity users
Throws:
SystemException - if a system exception occurred

removeByGroupId

void removeByGroupId(long groupId)
                     throws SystemException
Removes all the social equity users where groupId = ? from the database.

Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByGroupRanked

void removeByGroupRanked(long groupId)
                         throws SystemException
Removes all the social equity users where groupId = ? from the database.

Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByUserId

void removeByUserId(long userId)
                    throws SystemException
Removes all the social equity users where userId = ? from the database.

Parameters:
userId - the user id to search with
Throws:
SystemException - if a system exception occurred

removeByRank

void removeByRank(int rank)
                  throws SystemException
Removes all the social equity users where rank = ? from the database.

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

removeByG_U

void removeByG_U(long groupId,
                 long userId)
                 throws SystemException,
                        NoSuchEquityUserException
Removes the social equity user where groupId = ? and userId = ? from the database.

Parameters:
groupId - the group id to search with
userId - the user id to search with
Throws:
SystemException - if a system exception occurred
NoSuchEquityUserException

removeByG_R

void removeByG_R(long groupId,
                 int rank)
                 throws SystemException
Removes all the social equity users where groupId = ? and rank = ? from the database.

Parameters:
groupId - the group id to search with
rank - the rank to search with
Throws:
SystemException - if a system exception occurred

removeAll

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

Throws:
SystemException - if a system exception occurred

countByGroupId

int countByGroupId(long groupId)
                   throws SystemException
Counts all the social equity users where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching social equity users
Throws:
SystemException - if a system exception occurred

countByGroupRanked

int countByGroupRanked(long groupId)
                       throws SystemException
Counts all the social equity users where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching social equity users
Throws:
SystemException - if a system exception occurred

countByUserId

int countByUserId(long userId)
                  throws SystemException
Counts all the social equity users where userId = ?.

Parameters:
userId - the user id to search with
Returns:
the number of matching social equity users
Throws:
SystemException - if a system exception occurred

countByRank

int countByRank(int rank)
                throws SystemException
Counts all the social equity users where rank = ?.

Parameters:
rank - the rank to search with
Returns:
the number of matching social equity users
Throws:
SystemException - if a system exception occurred

countByG_U

int countByG_U(long groupId,
               long userId)
               throws SystemException
Counts all the social equity users where groupId = ? and userId = ?.

Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the number of matching social equity users
Throws:
SystemException - if a system exception occurred

countByG_R

int countByG_R(long groupId,
               int rank)
               throws SystemException
Counts all the social equity users where groupId = ? and rank = ?.

Parameters:
groupId - the group id to search with
rank - the rank to search with
Returns:
the number of matching social equity users
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Counts all the social equity users.

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

Liferay 6.0.5