001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.social.model.SocialEquityUser;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the social equity user service. This utility wraps {@link SocialEquityUserPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
029     *
030     * <p>
031     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
032     * </p>
033     *
034     * <p>
035     * Caching information and settings can be found in <code>portal.properties</code>
036     * </p>
037     *
038     * @author Brian Wing Shun Chan
039     * @see SocialEquityUserPersistence
040     * @see SocialEquityUserPersistenceImpl
041     * @generated
042     */
043    public class SocialEquityUserUtil {
044            /**
045             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
046             */
047            public static void clearCache() {
048                    getPersistence().clearCache();
049            }
050    
051            /**
052             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
053             */
054            public static void clearCache(SocialEquityUser socialEquityUser) {
055                    getPersistence().clearCache(socialEquityUser);
056            }
057    
058            /**
059             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
060             */
061            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
062                    throws SystemException {
063                    return getPersistence().countWithDynamicQuery(dynamicQuery);
064            }
065    
066            /**
067             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
068             */
069            public static List<SocialEquityUser> findWithDynamicQuery(
070                    DynamicQuery dynamicQuery) throws SystemException {
071                    return getPersistence().findWithDynamicQuery(dynamicQuery);
072            }
073    
074            /**
075             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
076             */
077            public static List<SocialEquityUser> findWithDynamicQuery(
078                    DynamicQuery dynamicQuery, int start, int end)
079                    throws SystemException {
080                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
081            }
082    
083            /**
084             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
085             */
086            public static List<SocialEquityUser> findWithDynamicQuery(
087                    DynamicQuery dynamicQuery, int start, int end,
088                    OrderByComparator orderByComparator) throws SystemException {
089                    return getPersistence()
090                                       .findWithDynamicQuery(dynamicQuery, start, end,
091                            orderByComparator);
092            }
093    
094            /**
095             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
096             */
097            public static SocialEquityUser remove(SocialEquityUser socialEquityUser)
098                    throws SystemException {
099                    return getPersistence().remove(socialEquityUser);
100            }
101    
102            /**
103             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
104             */
105            public static SocialEquityUser update(SocialEquityUser socialEquityUser,
106                    boolean merge) throws SystemException {
107                    return getPersistence().update(socialEquityUser, merge);
108            }
109    
110            /**
111             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
112             */
113            public static SocialEquityUser update(SocialEquityUser socialEquityUser,
114                    boolean merge, ServiceContext serviceContext) throws SystemException {
115                    return getPersistence().update(socialEquityUser, merge, serviceContext);
116            }
117    
118            /**
119            * Caches the social equity user in the entity cache if it is enabled.
120            *
121            * @param socialEquityUser the social equity user to cache
122            */
123            public static void cacheResult(
124                    com.liferay.portlet.social.model.SocialEquityUser socialEquityUser) {
125                    getPersistence().cacheResult(socialEquityUser);
126            }
127    
128            /**
129            * Caches the social equity users in the entity cache if it is enabled.
130            *
131            * @param socialEquityUsers the social equity users to cache
132            */
133            public static void cacheResult(
134                    java.util.List<com.liferay.portlet.social.model.SocialEquityUser> socialEquityUsers) {
135                    getPersistence().cacheResult(socialEquityUsers);
136            }
137    
138            /**
139            * Creates a new social equity user with the primary key. Does not add the social equity user to the database.
140            *
141            * @param equityUserId the primary key for the new social equity user
142            * @return the new social equity user
143            */
144            public static com.liferay.portlet.social.model.SocialEquityUser create(
145                    long equityUserId) {
146                    return getPersistence().create(equityUserId);
147            }
148    
149            /**
150            * Removes the social equity user with the primary key from the database. Also notifies the appropriate model listeners.
151            *
152            * @param equityUserId the primary key of the social equity user to remove
153            * @return the social equity user that was removed
154            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found
155            * @throws SystemException if a system exception occurred
156            */
157            public static com.liferay.portlet.social.model.SocialEquityUser remove(
158                    long equityUserId)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.social.NoSuchEquityUserException {
161                    return getPersistence().remove(equityUserId);
162            }
163    
164            public static com.liferay.portlet.social.model.SocialEquityUser updateImpl(
165                    com.liferay.portlet.social.model.SocialEquityUser socialEquityUser,
166                    boolean merge)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    return getPersistence().updateImpl(socialEquityUser, merge);
169            }
170    
171            /**
172            * Finds the social equity user with the primary key or throws a {@link com.liferay.portlet.social.NoSuchEquityUserException} if it could not be found.
173            *
174            * @param equityUserId the primary key of the social equity user to find
175            * @return the social equity user
176            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found
177            * @throws SystemException if a system exception occurred
178            */
179            public static com.liferay.portlet.social.model.SocialEquityUser findByPrimaryKey(
180                    long equityUserId)
181                    throws com.liferay.portal.kernel.exception.SystemException,
182                            com.liferay.portlet.social.NoSuchEquityUserException {
183                    return getPersistence().findByPrimaryKey(equityUserId);
184            }
185    
186            /**
187            * Finds the social equity user with the primary key or returns <code>null</code> if it could not be found.
188            *
189            * @param equityUserId the primary key of the social equity user to find
190            * @return the social equity user, or <code>null</code> if a social equity user with the primary key could not be found
191            * @throws SystemException if a system exception occurred
192            */
193            public static com.liferay.portlet.social.model.SocialEquityUser fetchByPrimaryKey(
194                    long equityUserId)
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return getPersistence().fetchByPrimaryKey(equityUserId);
197            }
198    
199            /**
200            * Finds all the social equity users where groupId = &#63;.
201            *
202            * @param groupId the group id to search with
203            * @return the matching social equity users
204            * @throws SystemException if a system exception occurred
205            */
206            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupId(
207                    long groupId)
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return getPersistence().findByGroupId(groupId);
210            }
211    
212            /**
213            * Finds a range of all the social equity users where groupId = &#63;.
214            *
215            * <p>
216            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
217            * </p>
218            *
219            * @param groupId the group id to search with
220            * @param start the lower bound of the range of social equity users to return
221            * @param end the upper bound of the range of social equity users to return (not inclusive)
222            * @return the range of matching social equity users
223            * @throws SystemException if a system exception occurred
224            */
225            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupId(
226                    long groupId, int start, int end)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return getPersistence().findByGroupId(groupId, start, end);
229            }
230    
231            /**
232            * Finds an ordered range of all the social equity users where groupId = &#63;.
233            *
234            * <p>
235            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
236            * </p>
237            *
238            * @param groupId the group id to search with
239            * @param start the lower bound of the range of social equity users to return
240            * @param end the upper bound of the range of social equity users to return (not inclusive)
241            * @param orderByComparator the comparator to order the results by
242            * @return the ordered range of matching social equity users
243            * @throws SystemException if a system exception occurred
244            */
245            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupId(
246                    long groupId, int start, int end,
247                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
248                    throws com.liferay.portal.kernel.exception.SystemException {
249                    return getPersistence()
250                                       .findByGroupId(groupId, start, end, orderByComparator);
251            }
252    
253            /**
254            * Finds the first social equity user in the ordered set where groupId = &#63;.
255            *
256            * <p>
257            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
258            * </p>
259            *
260            * @param groupId the group id to search with
261            * @param orderByComparator the comparator to order the set by
262            * @return the first matching social equity user
263            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
264            * @throws SystemException if a system exception occurred
265            */
266            public static com.liferay.portlet.social.model.SocialEquityUser findByGroupId_First(
267                    long groupId,
268                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
269                    throws com.liferay.portal.kernel.exception.SystemException,
270                            com.liferay.portlet.social.NoSuchEquityUserException {
271                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
272            }
273    
274            /**
275            * Finds the last social equity user in the ordered set where groupId = &#63;.
276            *
277            * <p>
278            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
279            * </p>
280            *
281            * @param groupId the group id to search with
282            * @param orderByComparator the comparator to order the set by
283            * @return the last matching social equity user
284            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
285            * @throws SystemException if a system exception occurred
286            */
287            public static com.liferay.portlet.social.model.SocialEquityUser findByGroupId_Last(
288                    long groupId,
289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290                    throws com.liferay.portal.kernel.exception.SystemException,
291                            com.liferay.portlet.social.NoSuchEquityUserException {
292                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
293            }
294    
295            /**
296            * Finds the social equity users before and after the current social equity user in the ordered set where groupId = &#63;.
297            *
298            * <p>
299            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
300            * </p>
301            *
302            * @param equityUserId the primary key of the current social equity user
303            * @param groupId the group id to search with
304            * @param orderByComparator the comparator to order the set by
305            * @return the previous, current, and next social equity user
306            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found
307            * @throws SystemException if a system exception occurred
308            */
309            public static com.liferay.portlet.social.model.SocialEquityUser[] findByGroupId_PrevAndNext(
310                    long equityUserId, long groupId,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.kernel.exception.SystemException,
313                            com.liferay.portlet.social.NoSuchEquityUserException {
314                    return getPersistence()
315                                       .findByGroupId_PrevAndNext(equityUserId, groupId,
316                            orderByComparator);
317            }
318    
319            /**
320            * Finds all the social equity users where groupId = &#63;.
321            *
322            * @param groupId the group id to search with
323            * @return the matching social equity users
324            * @throws SystemException if a system exception occurred
325            */
326            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupRanked(
327                    long groupId)
328                    throws com.liferay.portal.kernel.exception.SystemException {
329                    return getPersistence().findByGroupRanked(groupId);
330            }
331    
332            /**
333            * Finds a range of all the social equity users where groupId = &#63;.
334            *
335            * <p>
336            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
337            * </p>
338            *
339            * @param groupId the group id to search with
340            * @param start the lower bound of the range of social equity users to return
341            * @param end the upper bound of the range of social equity users to return (not inclusive)
342            * @return the range of matching social equity users
343            * @throws SystemException if a system exception occurred
344            */
345            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupRanked(
346                    long groupId, int start, int end)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    return getPersistence().findByGroupRanked(groupId, start, end);
349            }
350    
351            /**
352            * Finds an ordered range of all the social equity users where groupId = &#63;.
353            *
354            * <p>
355            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
356            * </p>
357            *
358            * @param groupId the group id to search with
359            * @param start the lower bound of the range of social equity users to return
360            * @param end the upper bound of the range of social equity users to return (not inclusive)
361            * @param orderByComparator the comparator to order the results by
362            * @return the ordered range of matching social equity users
363            * @throws SystemException if a system exception occurred
364            */
365            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupRanked(
366                    long groupId, int start, int end,
367                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return getPersistence()
370                                       .findByGroupRanked(groupId, start, end, orderByComparator);
371            }
372    
373            /**
374            * Finds the first social equity user in the ordered set where groupId = &#63;.
375            *
376            * <p>
377            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
378            * </p>
379            *
380            * @param groupId the group id to search with
381            * @param orderByComparator the comparator to order the set by
382            * @return the first matching social equity user
383            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
384            * @throws SystemException if a system exception occurred
385            */
386            public static com.liferay.portlet.social.model.SocialEquityUser findByGroupRanked_First(
387                    long groupId,
388                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
389                    throws com.liferay.portal.kernel.exception.SystemException,
390                            com.liferay.portlet.social.NoSuchEquityUserException {
391                    return getPersistence()
392                                       .findByGroupRanked_First(groupId, orderByComparator);
393            }
394    
395            /**
396            * Finds the last social equity user in the ordered set where groupId = &#63;.
397            *
398            * <p>
399            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
400            * </p>
401            *
402            * @param groupId the group id to search with
403            * @param orderByComparator the comparator to order the set by
404            * @return the last matching social equity user
405            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
406            * @throws SystemException if a system exception occurred
407            */
408            public static com.liferay.portlet.social.model.SocialEquityUser findByGroupRanked_Last(
409                    long groupId,
410                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
411                    throws com.liferay.portal.kernel.exception.SystemException,
412                            com.liferay.portlet.social.NoSuchEquityUserException {
413                    return getPersistence()
414                                       .findByGroupRanked_Last(groupId, orderByComparator);
415            }
416    
417            /**
418            * Finds the social equity users before and after the current social equity user in the ordered set where groupId = &#63;.
419            *
420            * <p>
421            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
422            * </p>
423            *
424            * @param equityUserId the primary key of the current social equity user
425            * @param groupId the group id to search with
426            * @param orderByComparator the comparator to order the set by
427            * @return the previous, current, and next social equity user
428            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found
429            * @throws SystemException if a system exception occurred
430            */
431            public static com.liferay.portlet.social.model.SocialEquityUser[] findByGroupRanked_PrevAndNext(
432                    long equityUserId, long groupId,
433                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
434                    throws com.liferay.portal.kernel.exception.SystemException,
435                            com.liferay.portlet.social.NoSuchEquityUserException {
436                    return getPersistence()
437                                       .findByGroupRanked_PrevAndNext(equityUserId, groupId,
438                            orderByComparator);
439            }
440    
441            /**
442            * Finds all the social equity users where userId = &#63;.
443            *
444            * @param userId the user id to search with
445            * @return the matching social equity users
446            * @throws SystemException if a system exception occurred
447            */
448            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
449                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
450                    return getPersistence().findByUserId(userId);
451            }
452    
453            /**
454            * Finds a range of all the social equity users where userId = &#63;.
455            *
456            * <p>
457            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
458            * </p>
459            *
460            * @param userId the user id to search with
461            * @param start the lower bound of the range of social equity users to return
462            * @param end the upper bound of the range of social equity users to return (not inclusive)
463            * @return the range of matching social equity users
464            * @throws SystemException if a system exception occurred
465            */
466            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
467                    long userId, int start, int end)
468                    throws com.liferay.portal.kernel.exception.SystemException {
469                    return getPersistence().findByUserId(userId, start, end);
470            }
471    
472            /**
473            * Finds an ordered range of all the social equity users where userId = &#63;.
474            *
475            * <p>
476            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
477            * </p>
478            *
479            * @param userId the user id to search with
480            * @param start the lower bound of the range of social equity users to return
481            * @param end the upper bound of the range of social equity users to return (not inclusive)
482            * @param orderByComparator the comparator to order the results by
483            * @return the ordered range of matching social equity users
484            * @throws SystemException if a system exception occurred
485            */
486            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
487                    long userId, int start, int end,
488                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
489                    throws com.liferay.portal.kernel.exception.SystemException {
490                    return getPersistence()
491                                       .findByUserId(userId, start, end, orderByComparator);
492            }
493    
494            /**
495            * Finds the first social equity user in the ordered set where userId = &#63;.
496            *
497            * <p>
498            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
499            * </p>
500            *
501            * @param userId the user id to search with
502            * @param orderByComparator the comparator to order the set by
503            * @return the first matching social equity user
504            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
505            * @throws SystemException if a system exception occurred
506            */
507            public static com.liferay.portlet.social.model.SocialEquityUser findByUserId_First(
508                    long userId,
509                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
510                    throws com.liferay.portal.kernel.exception.SystemException,
511                            com.liferay.portlet.social.NoSuchEquityUserException {
512                    return getPersistence().findByUserId_First(userId, orderByComparator);
513            }
514    
515            /**
516            * Finds the last social equity user in the ordered set where userId = &#63;.
517            *
518            * <p>
519            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
520            * </p>
521            *
522            * @param userId the user id to search with
523            * @param orderByComparator the comparator to order the set by
524            * @return the last matching social equity user
525            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
526            * @throws SystemException if a system exception occurred
527            */
528            public static com.liferay.portlet.social.model.SocialEquityUser findByUserId_Last(
529                    long userId,
530                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
531                    throws com.liferay.portal.kernel.exception.SystemException,
532                            com.liferay.portlet.social.NoSuchEquityUserException {
533                    return getPersistence().findByUserId_Last(userId, orderByComparator);
534            }
535    
536            /**
537            * Finds the social equity users before and after the current social equity user in the ordered set where userId = &#63;.
538            *
539            * <p>
540            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
541            * </p>
542            *
543            * @param equityUserId the primary key of the current social equity user
544            * @param userId the user id to search with
545            * @param orderByComparator the comparator to order the set by
546            * @return the previous, current, and next social equity user
547            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found
548            * @throws SystemException if a system exception occurred
549            */
550            public static com.liferay.portlet.social.model.SocialEquityUser[] findByUserId_PrevAndNext(
551                    long equityUserId, long userId,
552                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
553                    throws com.liferay.portal.kernel.exception.SystemException,
554                            com.liferay.portlet.social.NoSuchEquityUserException {
555                    return getPersistence()
556                                       .findByUserId_PrevAndNext(equityUserId, userId,
557                            orderByComparator);
558            }
559    
560            /**
561            * Finds all the social equity users where rank = &#63;.
562            *
563            * @param rank the rank to search with
564            * @return the matching social equity users
565            * @throws SystemException if a system exception occurred
566            */
567            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByRank(
568                    int rank) throws com.liferay.portal.kernel.exception.SystemException {
569                    return getPersistence().findByRank(rank);
570            }
571    
572            /**
573            * Finds a range of all the social equity users where rank = &#63;.
574            *
575            * <p>
576            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
577            * </p>
578            *
579            * @param rank the rank to search with
580            * @param start the lower bound of the range of social equity users to return
581            * @param end the upper bound of the range of social equity users to return (not inclusive)
582            * @return the range of matching social equity users
583            * @throws SystemException if a system exception occurred
584            */
585            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByRank(
586                    int rank, int start, int end)
587                    throws com.liferay.portal.kernel.exception.SystemException {
588                    return getPersistence().findByRank(rank, start, end);
589            }
590    
591            /**
592            * Finds an ordered range of all the social equity users where rank = &#63;.
593            *
594            * <p>
595            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
596            * </p>
597            *
598            * @param rank the rank to search with
599            * @param start the lower bound of the range of social equity users to return
600            * @param end the upper bound of the range of social equity users to return (not inclusive)
601            * @param orderByComparator the comparator to order the results by
602            * @return the ordered range of matching social equity users
603            * @throws SystemException if a system exception occurred
604            */
605            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByRank(
606                    int rank, int start, int end,
607                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
608                    throws com.liferay.portal.kernel.exception.SystemException {
609                    return getPersistence().findByRank(rank, start, end, orderByComparator);
610            }
611    
612            /**
613            * Finds the first social equity user in the ordered set where rank = &#63;.
614            *
615            * <p>
616            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
617            * </p>
618            *
619            * @param rank the rank to search with
620            * @param orderByComparator the comparator to order the set by
621            * @return the first matching social equity user
622            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
623            * @throws SystemException if a system exception occurred
624            */
625            public static com.liferay.portlet.social.model.SocialEquityUser findByRank_First(
626                    int rank,
627                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
628                    throws com.liferay.portal.kernel.exception.SystemException,
629                            com.liferay.portlet.social.NoSuchEquityUserException {
630                    return getPersistence().findByRank_First(rank, orderByComparator);
631            }
632    
633            /**
634            * Finds the last social equity user in the ordered set where rank = &#63;.
635            *
636            * <p>
637            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
638            * </p>
639            *
640            * @param rank the rank to search with
641            * @param orderByComparator the comparator to order the set by
642            * @return the last matching social equity user
643            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
644            * @throws SystemException if a system exception occurred
645            */
646            public static com.liferay.portlet.social.model.SocialEquityUser findByRank_Last(
647                    int rank,
648                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
649                    throws com.liferay.portal.kernel.exception.SystemException,
650                            com.liferay.portlet.social.NoSuchEquityUserException {
651                    return getPersistence().findByRank_Last(rank, orderByComparator);
652            }
653    
654            /**
655            * Finds the social equity users before and after the current social equity user in the ordered set where rank = &#63;.
656            *
657            * <p>
658            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
659            * </p>
660            *
661            * @param equityUserId the primary key of the current social equity user
662            * @param rank the rank to search with
663            * @param orderByComparator the comparator to order the set by
664            * @return the previous, current, and next social equity user
665            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found
666            * @throws SystemException if a system exception occurred
667            */
668            public static com.liferay.portlet.social.model.SocialEquityUser[] findByRank_PrevAndNext(
669                    long equityUserId, int rank,
670                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
671                    throws com.liferay.portal.kernel.exception.SystemException,
672                            com.liferay.portlet.social.NoSuchEquityUserException {
673                    return getPersistence()
674                                       .findByRank_PrevAndNext(equityUserId, rank, orderByComparator);
675            }
676    
677            /**
678            * Finds the social equity user where groupId = &#63; and userId = &#63; or throws a {@link com.liferay.portlet.social.NoSuchEquityUserException} if it could not be found.
679            *
680            * @param groupId the group id to search with
681            * @param userId the user id to search with
682            * @return the matching social equity user
683            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
684            * @throws SystemException if a system exception occurred
685            */
686            public static com.liferay.portlet.social.model.SocialEquityUser findByG_U(
687                    long groupId, long userId)
688                    throws com.liferay.portal.kernel.exception.SystemException,
689                            com.liferay.portlet.social.NoSuchEquityUserException {
690                    return getPersistence().findByG_U(groupId, userId);
691            }
692    
693            /**
694            * Finds the social equity user where groupId = &#63; and userId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
695            *
696            * @param groupId the group id to search with
697            * @param userId the user id to search with
698            * @return the matching social equity user, or <code>null</code> if a matching social equity user could not be found
699            * @throws SystemException if a system exception occurred
700            */
701            public static com.liferay.portlet.social.model.SocialEquityUser fetchByG_U(
702                    long groupId, long userId)
703                    throws com.liferay.portal.kernel.exception.SystemException {
704                    return getPersistence().fetchByG_U(groupId, userId);
705            }
706    
707            /**
708            * Finds the social equity user where groupId = &#63; and userId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
709            *
710            * @param groupId the group id to search with
711            * @param userId the user id to search with
712            * @return the matching social equity user, or <code>null</code> if a matching social equity user could not be found
713            * @throws SystemException if a system exception occurred
714            */
715            public static com.liferay.portlet.social.model.SocialEquityUser fetchByG_U(
716                    long groupId, long userId, boolean retrieveFromCache)
717                    throws com.liferay.portal.kernel.exception.SystemException {
718                    return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache);
719            }
720    
721            /**
722            * Finds all the social equity users where groupId = &#63; and rank = &#63;.
723            *
724            * @param groupId the group id to search with
725            * @param rank the rank to search with
726            * @return the matching social equity users
727            * @throws SystemException if a system exception occurred
728            */
729            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByG_R(
730                    long groupId, int rank)
731                    throws com.liferay.portal.kernel.exception.SystemException {
732                    return getPersistence().findByG_R(groupId, rank);
733            }
734    
735            /**
736            * Finds a range of all the social equity users where groupId = &#63; and rank = &#63;.
737            *
738            * <p>
739            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
740            * </p>
741            *
742            * @param groupId the group id to search with
743            * @param rank the rank to search with
744            * @param start the lower bound of the range of social equity users to return
745            * @param end the upper bound of the range of social equity users to return (not inclusive)
746            * @return the range of matching social equity users
747            * @throws SystemException if a system exception occurred
748            */
749            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByG_R(
750                    long groupId, int rank, int start, int end)
751                    throws com.liferay.portal.kernel.exception.SystemException {
752                    return getPersistence().findByG_R(groupId, rank, start, end);
753            }
754    
755            /**
756            * Finds an ordered range of all the social equity users where groupId = &#63; and rank = &#63;.
757            *
758            * <p>
759            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
760            * </p>
761            *
762            * @param groupId the group id to search with
763            * @param rank the rank to search with
764            * @param start the lower bound of the range of social equity users to return
765            * @param end the upper bound of the range of social equity users to return (not inclusive)
766            * @param orderByComparator the comparator to order the results by
767            * @return the ordered range of matching social equity users
768            * @throws SystemException if a system exception occurred
769            */
770            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByG_R(
771                    long groupId, int rank, int start, int end,
772                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
773                    throws com.liferay.portal.kernel.exception.SystemException {
774                    return getPersistence()
775                                       .findByG_R(groupId, rank, start, end, orderByComparator);
776            }
777    
778            /**
779            * Finds the first social equity user in the ordered set where groupId = &#63; and rank = &#63;.
780            *
781            * <p>
782            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
783            * </p>
784            *
785            * @param groupId the group id to search with
786            * @param rank the rank to search with
787            * @param orderByComparator the comparator to order the set by
788            * @return the first matching social equity user
789            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
790            * @throws SystemException if a system exception occurred
791            */
792            public static com.liferay.portlet.social.model.SocialEquityUser findByG_R_First(
793                    long groupId, int rank,
794                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
795                    throws com.liferay.portal.kernel.exception.SystemException,
796                            com.liferay.portlet.social.NoSuchEquityUserException {
797                    return getPersistence().findByG_R_First(groupId, rank, orderByComparator);
798            }
799    
800            /**
801            * Finds the last social equity user in the ordered set where groupId = &#63; and rank = &#63;.
802            *
803            * <p>
804            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
805            * </p>
806            *
807            * @param groupId the group id to search with
808            * @param rank the rank to search with
809            * @param orderByComparator the comparator to order the set by
810            * @return the last matching social equity user
811            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
812            * @throws SystemException if a system exception occurred
813            */
814            public static com.liferay.portlet.social.model.SocialEquityUser findByG_R_Last(
815                    long groupId, int rank,
816                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
817                    throws com.liferay.portal.kernel.exception.SystemException,
818                            com.liferay.portlet.social.NoSuchEquityUserException {
819                    return getPersistence().findByG_R_Last(groupId, rank, orderByComparator);
820            }
821    
822            /**
823            * Finds the social equity users before and after the current social equity user in the ordered set where groupId = &#63; and rank = &#63;.
824            *
825            * <p>
826            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
827            * </p>
828            *
829            * @param equityUserId the primary key of the current social equity user
830            * @param groupId the group id to search with
831            * @param rank the rank to search with
832            * @param orderByComparator the comparator to order the set by
833            * @return the previous, current, and next social equity user
834            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found
835            * @throws SystemException if a system exception occurred
836            */
837            public static com.liferay.portlet.social.model.SocialEquityUser[] findByG_R_PrevAndNext(
838                    long equityUserId, long groupId, int rank,
839                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
840                    throws com.liferay.portal.kernel.exception.SystemException,
841                            com.liferay.portlet.social.NoSuchEquityUserException {
842                    return getPersistence()
843                                       .findByG_R_PrevAndNext(equityUserId, groupId, rank,
844                            orderByComparator);
845            }
846    
847            /**
848            * Finds all the social equity users.
849            *
850            * @return the social equity users
851            * @throws SystemException if a system exception occurred
852            */
853            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll()
854                    throws com.liferay.portal.kernel.exception.SystemException {
855                    return getPersistence().findAll();
856            }
857    
858            /**
859            * Finds a range of all the social equity users.
860            *
861            * <p>
862            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
863            * </p>
864            *
865            * @param start the lower bound of the range of social equity users to return
866            * @param end the upper bound of the range of social equity users to return (not inclusive)
867            * @return the range of social equity users
868            * @throws SystemException if a system exception occurred
869            */
870            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll(
871                    int start, int end)
872                    throws com.liferay.portal.kernel.exception.SystemException {
873                    return getPersistence().findAll(start, end);
874            }
875    
876            /**
877            * Finds an ordered range of all the social equity users.
878            *
879            * <p>
880            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
881            * </p>
882            *
883            * @param start the lower bound of the range of social equity users to return
884            * @param end the upper bound of the range of social equity users to return (not inclusive)
885            * @param orderByComparator the comparator to order the results by
886            * @return the ordered range of social equity users
887            * @throws SystemException if a system exception occurred
888            */
889            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll(
890                    int start, int end,
891                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
892                    throws com.liferay.portal.kernel.exception.SystemException {
893                    return getPersistence().findAll(start, end, orderByComparator);
894            }
895    
896            /**
897            * Removes all the social equity users where groupId = &#63; from the database.
898            *
899            * @param groupId the group id to search with
900            * @throws SystemException if a system exception occurred
901            */
902            public static void removeByGroupId(long groupId)
903                    throws com.liferay.portal.kernel.exception.SystemException {
904                    getPersistence().removeByGroupId(groupId);
905            }
906    
907            /**
908            * Removes all the social equity users where groupId = &#63; from the database.
909            *
910            * @param groupId the group id to search with
911            * @throws SystemException if a system exception occurred
912            */
913            public static void removeByGroupRanked(long groupId)
914                    throws com.liferay.portal.kernel.exception.SystemException {
915                    getPersistence().removeByGroupRanked(groupId);
916            }
917    
918            /**
919            * Removes all the social equity users where userId = &#63; from the database.
920            *
921            * @param userId the user id to search with
922            * @throws SystemException if a system exception occurred
923            */
924            public static void removeByUserId(long userId)
925                    throws com.liferay.portal.kernel.exception.SystemException {
926                    getPersistence().removeByUserId(userId);
927            }
928    
929            /**
930            * Removes all the social equity users where rank = &#63; from the database.
931            *
932            * @param rank the rank to search with
933            * @throws SystemException if a system exception occurred
934            */
935            public static void removeByRank(int rank)
936                    throws com.liferay.portal.kernel.exception.SystemException {
937                    getPersistence().removeByRank(rank);
938            }
939    
940            /**
941            * Removes the social equity user where groupId = &#63; and userId = &#63; from the database.
942            *
943            * @param groupId the group id to search with
944            * @param userId the user id to search with
945            * @throws SystemException if a system exception occurred
946            */
947            public static void removeByG_U(long groupId, long userId)
948                    throws com.liferay.portal.kernel.exception.SystemException,
949                            com.liferay.portlet.social.NoSuchEquityUserException {
950                    getPersistence().removeByG_U(groupId, userId);
951            }
952    
953            /**
954            * Removes all the social equity users where groupId = &#63; and rank = &#63; from the database.
955            *
956            * @param groupId the group id to search with
957            * @param rank the rank to search with
958            * @throws SystemException if a system exception occurred
959            */
960            public static void removeByG_R(long groupId, int rank)
961                    throws com.liferay.portal.kernel.exception.SystemException {
962                    getPersistence().removeByG_R(groupId, rank);
963            }
964    
965            /**
966            * Removes all the social equity users from the database.
967            *
968            * @throws SystemException if a system exception occurred
969            */
970            public static void removeAll()
971                    throws com.liferay.portal.kernel.exception.SystemException {
972                    getPersistence().removeAll();
973            }
974    
975            /**
976            * Counts all the social equity users where groupId = &#63;.
977            *
978            * @param groupId the group id to search with
979            * @return the number of matching social equity users
980            * @throws SystemException if a system exception occurred
981            */
982            public static int countByGroupId(long groupId)
983                    throws com.liferay.portal.kernel.exception.SystemException {
984                    return getPersistence().countByGroupId(groupId);
985            }
986    
987            /**
988            * Counts all the social equity users where groupId = &#63;.
989            *
990            * @param groupId the group id to search with
991            * @return the number of matching social equity users
992            * @throws SystemException if a system exception occurred
993            */
994            public static int countByGroupRanked(long groupId)
995                    throws com.liferay.portal.kernel.exception.SystemException {
996                    return getPersistence().countByGroupRanked(groupId);
997            }
998    
999            /**
1000            * Counts all the social equity users where userId = &#63;.
1001            *
1002            * @param userId the user id to search with
1003            * @return the number of matching social equity users
1004            * @throws SystemException if a system exception occurred
1005            */
1006            public static int countByUserId(long userId)
1007                    throws com.liferay.portal.kernel.exception.SystemException {
1008                    return getPersistence().countByUserId(userId);
1009            }
1010    
1011            /**
1012            * Counts all the social equity users where rank = &#63;.
1013            *
1014            * @param rank the rank to search with
1015            * @return the number of matching social equity users
1016            * @throws SystemException if a system exception occurred
1017            */
1018            public static int countByRank(int rank)
1019                    throws com.liferay.portal.kernel.exception.SystemException {
1020                    return getPersistence().countByRank(rank);
1021            }
1022    
1023            /**
1024            * Counts all the social equity users where groupId = &#63; and userId = &#63;.
1025            *
1026            * @param groupId the group id to search with
1027            * @param userId the user id to search with
1028            * @return the number of matching social equity users
1029            * @throws SystemException if a system exception occurred
1030            */
1031            public static int countByG_U(long groupId, long userId)
1032                    throws com.liferay.portal.kernel.exception.SystemException {
1033                    return getPersistence().countByG_U(groupId, userId);
1034            }
1035    
1036            /**
1037            * Counts all the social equity users where groupId = &#63; and rank = &#63;.
1038            *
1039            * @param groupId the group id to search with
1040            * @param rank the rank to search with
1041            * @return the number of matching social equity users
1042            * @throws SystemException if a system exception occurred
1043            */
1044            public static int countByG_R(long groupId, int rank)
1045                    throws com.liferay.portal.kernel.exception.SystemException {
1046                    return getPersistence().countByG_R(groupId, rank);
1047            }
1048    
1049            /**
1050            * Counts all the social equity users.
1051            *
1052            * @return the number of social equity users
1053            * @throws SystemException if a system exception occurred
1054            */
1055            public static int countAll()
1056                    throws com.liferay.portal.kernel.exception.SystemException {
1057                    return getPersistence().countAll();
1058            }
1059    
1060            public static SocialEquityUserPersistence getPersistence() {
1061                    if (_persistence == null) {
1062                            _persistence = (SocialEquityUserPersistence)PortalBeanLocatorUtil.locate(SocialEquityUserPersistence.class.getName());
1063                    }
1064    
1065                    return _persistence;
1066            }
1067    
1068            public void setPersistence(SocialEquityUserPersistence persistence) {
1069                    _persistence = persistence;
1070            }
1071    
1072            private static SocialEquityUserPersistence _persistence;
1073    }