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