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.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.social.model.SocialEquityUser;
020    
021    /**
022     * The persistence interface for the social equity user service.
023     *
024     * <p>
025     * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see SocialEquityUserPersistenceImpl
030     * @see SocialEquityUserUtil
031     * @generated
032     */
033    public interface SocialEquityUserPersistence extends BasePersistence<SocialEquityUser> {
034            /**
035            * Caches the social equity user in the entity cache if it is enabled.
036            *
037            * @param socialEquityUser the social equity user to cache
038            */
039            public void cacheResult(
040                    com.liferay.portlet.social.model.SocialEquityUser socialEquityUser);
041    
042            /**
043            * Caches the social equity users in the entity cache if it is enabled.
044            *
045            * @param socialEquityUsers the social equity users to cache
046            */
047            public void cacheResult(
048                    java.util.List<com.liferay.portlet.social.model.SocialEquityUser> socialEquityUsers);
049    
050            /**
051            * Creates a new social equity user with the primary key.
052            *
053            * @param equityUserId the primary key for the new social equity user
054            * @return the new social equity user
055            */
056            public com.liferay.portlet.social.model.SocialEquityUser create(
057                    long equityUserId);
058    
059            /**
060            * Removes the social equity user with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param equityUserId the primary key of the social equity user to remove
063            * @return the social equity user that was removed
064            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.social.model.SocialEquityUser remove(
068                    long equityUserId)
069                    throws com.liferay.portal.kernel.exception.SystemException,
070                            com.liferay.portlet.social.NoSuchEquityUserException;
071    
072            public com.liferay.portlet.social.model.SocialEquityUser updateImpl(
073                    com.liferay.portlet.social.model.SocialEquityUser socialEquityUser,
074                    boolean merge)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            /**
078            * Finds the social equity user with the primary key or throws a {@link com.liferay.portlet.social.NoSuchEquityUserException} if it could not be found.
079            *
080            * @param equityUserId the primary key of the social equity user to find
081            * @return the social equity user
082            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found
083            * @throws SystemException if a system exception occurred
084            */
085            public com.liferay.portlet.social.model.SocialEquityUser findByPrimaryKey(
086                    long equityUserId)
087                    throws com.liferay.portal.kernel.exception.SystemException,
088                            com.liferay.portlet.social.NoSuchEquityUserException;
089    
090            /**
091            * Finds the social equity user with the primary key or returns <code>null</code> if it could not be found.
092            *
093            * @param equityUserId the primary key of the social equity user to find
094            * @return the social equity user, or <code>null</code> if a social equity user with the primary key could not be found
095            * @throws SystemException if a system exception occurred
096            */
097            public com.liferay.portlet.social.model.SocialEquityUser fetchByPrimaryKey(
098                    long equityUserId)
099                    throws com.liferay.portal.kernel.exception.SystemException;
100    
101            /**
102            * Finds all the social equity users where groupId = &#63;.
103            *
104            * @param groupId the group id to search with
105            * @return the matching social equity users
106            * @throws SystemException if a system exception occurred
107            */
108            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupId(
109                    long groupId)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            /**
113            * Finds a range of all the social equity users where groupId = &#63;.
114            *
115            * <p>
116            * 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.
117            * </p>
118            *
119            * @param groupId the group id to search with
120            * @param start the lower bound of the range of social equity users to return
121            * @param end the upper bound of the range of social equity users to return (not inclusive)
122            * @return the range of matching social equity users
123            * @throws SystemException if a system exception occurred
124            */
125            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupId(
126                    long groupId, int start, int end)
127                    throws com.liferay.portal.kernel.exception.SystemException;
128    
129            /**
130            * Finds an ordered range of all the social equity users where groupId = &#63;.
131            *
132            * <p>
133            * 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.
134            * </p>
135            *
136            * @param groupId the group id to search with
137            * @param start the lower bound of the range of social equity users to return
138            * @param end the upper bound of the range of social equity users to return (not inclusive)
139            * @param orderByComparator the comparator to order the results by
140            * @return the ordered range of matching social equity users
141            * @throws SystemException if a system exception occurred
142            */
143            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupId(
144                    long groupId, int start, int end,
145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            /**
149            * Finds the first social equity user in the ordered set where groupId = &#63;.
150            *
151            * <p>
152            * 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.
153            * </p>
154            *
155            * @param groupId the group id to search with
156            * @param orderByComparator the comparator to order the set by
157            * @return the first matching social equity user
158            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.social.model.SocialEquityUser findByGroupId_First(
162                    long groupId,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException,
165                            com.liferay.portlet.social.NoSuchEquityUserException;
166    
167            /**
168            * Finds the last social equity user in the ordered set where groupId = &#63;.
169            *
170            * <p>
171            * 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.
172            * </p>
173            *
174            * @param groupId the group id to search with
175            * @param orderByComparator the comparator to order the set by
176            * @return the last matching social equity user
177            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
178            * @throws SystemException if a system exception occurred
179            */
180            public com.liferay.portlet.social.model.SocialEquityUser findByGroupId_Last(
181                    long groupId,
182                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183                    throws com.liferay.portal.kernel.exception.SystemException,
184                            com.liferay.portlet.social.NoSuchEquityUserException;
185    
186            /**
187            * Finds the social equity users before and after the current social equity user in the ordered set where groupId = &#63;.
188            *
189            * <p>
190            * 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.
191            * </p>
192            *
193            * @param equityUserId the primary key of the current social equity user
194            * @param groupId the group id to search with
195            * @param orderByComparator the comparator to order the set by
196            * @return the previous, current, and next social equity user
197            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            public com.liferay.portlet.social.model.SocialEquityUser[] findByGroupId_PrevAndNext(
201                    long equityUserId, long groupId,
202                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203                    throws com.liferay.portal.kernel.exception.SystemException,
204                            com.liferay.portlet.social.NoSuchEquityUserException;
205    
206            /**
207            * Finds all the social equity users where groupId = &#63;.
208            *
209            * @param groupId the group id to search with
210            * @return the matching social equity users
211            * @throws SystemException if a system exception occurred
212            */
213            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupRanked(
214                    long groupId)
215                    throws com.liferay.portal.kernel.exception.SystemException;
216    
217            /**
218            * Finds a range of all the social equity users where groupId = &#63;.
219            *
220            * <p>
221            * 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.
222            * </p>
223            *
224            * @param groupId the group id to search with
225            * @param start the lower bound of the range of social equity users to return
226            * @param end the upper bound of the range of social equity users to return (not inclusive)
227            * @return the range of matching social equity users
228            * @throws SystemException if a system exception occurred
229            */
230            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupRanked(
231                    long groupId, int start, int end)
232                    throws com.liferay.portal.kernel.exception.SystemException;
233    
234            /**
235            * Finds 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 to search with
242            * @param start the lower bound of the range of social equity users to return
243            * @param end the upper bound of the range of social equity users to return (not inclusive)
244            * @param orderByComparator the comparator to order the results by
245            * @return the ordered range of matching social equity users
246            * @throws SystemException if a system exception occurred
247            */
248            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupRanked(
249                    long groupId, int start, int end,
250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251                    throws com.liferay.portal.kernel.exception.SystemException;
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 com.liferay.portlet.social.model.SocialEquityUser findByGroupRanked_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    
272            /**
273            * Finds the last social equity user in the ordered set where groupId = &#63;.
274            *
275            * <p>
276            * 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.
277            * </p>
278            *
279            * @param groupId the group id to search with
280            * @param orderByComparator the comparator to order the set by
281            * @return the last matching social equity user
282            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
283            * @throws SystemException if a system exception occurred
284            */
285            public com.liferay.portlet.social.model.SocialEquityUser findByGroupRanked_Last(
286                    long groupId,
287                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
288                    throws com.liferay.portal.kernel.exception.SystemException,
289                            com.liferay.portlet.social.NoSuchEquityUserException;
290    
291            /**
292            * Finds the social equity users before and after the current social equity user in the ordered set where groupId = &#63;.
293            *
294            * <p>
295            * 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.
296            * </p>
297            *
298            * @param equityUserId the primary key of the current social equity user
299            * @param groupId the group id to search with
300            * @param orderByComparator the comparator to order the set by
301            * @return the previous, current, and next social equity user
302            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found
303            * @throws SystemException if a system exception occurred
304            */
305            public com.liferay.portlet.social.model.SocialEquityUser[] findByGroupRanked_PrevAndNext(
306                    long equityUserId, long groupId,
307                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
308                    throws com.liferay.portal.kernel.exception.SystemException,
309                            com.liferay.portlet.social.NoSuchEquityUserException;
310    
311            /**
312            * Finds all the social equity users where userId = &#63;.
313            *
314            * @param userId the user id to search with
315            * @return the matching social equity users
316            * @throws SystemException if a system exception occurred
317            */
318            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
319                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
320    
321            /**
322            * Finds a range of all the social equity users where userId = &#63;.
323            *
324            * <p>
325            * 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.
326            * </p>
327            *
328            * @param userId the user id to search with
329            * @param start the lower bound of the range of social equity users to return
330            * @param end the upper bound of the range of social equity users to return (not inclusive)
331            * @return the range of matching social equity users
332            * @throws SystemException if a system exception occurred
333            */
334            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
335                    long userId, int start, int end)
336                    throws com.liferay.portal.kernel.exception.SystemException;
337    
338            /**
339            * Finds an ordered range of all the social equity users where userId = &#63;.
340            *
341            * <p>
342            * 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.
343            * </p>
344            *
345            * @param userId the user id to search with
346            * @param start the lower bound of the range of social equity users to return
347            * @param end the upper bound of the range of social equity users to return (not inclusive)
348            * @param orderByComparator the comparator to order the results by
349            * @return the ordered range of matching social equity users
350            * @throws SystemException if a system exception occurred
351            */
352            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
353                    long userId, int start, int end,
354                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
355                    throws com.liferay.portal.kernel.exception.SystemException;
356    
357            /**
358            * Finds the first social equity user in the ordered set where userId = &#63;.
359            *
360            * <p>
361            * 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.
362            * </p>
363            *
364            * @param userId the user id to search with
365            * @param orderByComparator the comparator to order the set by
366            * @return the first matching social equity user
367            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
368            * @throws SystemException if a system exception occurred
369            */
370            public com.liferay.portlet.social.model.SocialEquityUser findByUserId_First(
371                    long userId,
372                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
373                    throws com.liferay.portal.kernel.exception.SystemException,
374                            com.liferay.portlet.social.NoSuchEquityUserException;
375    
376            /**
377            * Finds the last social equity user in the ordered set where userId = &#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 userId the user id to search with
384            * @param orderByComparator the comparator to order the set by
385            * @return the last 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 com.liferay.portlet.social.model.SocialEquityUser findByUserId_Last(
390                    long userId,
391                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
392                    throws com.liferay.portal.kernel.exception.SystemException,
393                            com.liferay.portlet.social.NoSuchEquityUserException;
394    
395            /**
396            * Finds the social equity users before and after the current social equity user in the ordered set where userId = &#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 equityUserId the primary key of the current social equity user
403            * @param userId the user id to search with
404            * @param orderByComparator the comparator to order the set by
405            * @return the previous, current, and next social equity user
406            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found
407            * @throws SystemException if a system exception occurred
408            */
409            public com.liferay.portlet.social.model.SocialEquityUser[] findByUserId_PrevAndNext(
410                    long equityUserId, long userId,
411                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
412                    throws com.liferay.portal.kernel.exception.SystemException,
413                            com.liferay.portlet.social.NoSuchEquityUserException;
414    
415            /**
416            * Finds all the social equity users where rank = &#63;.
417            *
418            * @param rank the rank to search with
419            * @return the matching social equity users
420            * @throws SystemException if a system exception occurred
421            */
422            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByRank(
423                    int rank) throws com.liferay.portal.kernel.exception.SystemException;
424    
425            /**
426            * Finds a range of all the social equity users where rank = &#63;.
427            *
428            * <p>
429            * 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.
430            * </p>
431            *
432            * @param rank the rank to search with
433            * @param start the lower bound of the range of social equity users to return
434            * @param end the upper bound of the range of social equity users to return (not inclusive)
435            * @return the range of matching social equity users
436            * @throws SystemException if a system exception occurred
437            */
438            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByRank(
439                    int rank, int start, int end)
440                    throws com.liferay.portal.kernel.exception.SystemException;
441    
442            /**
443            * Finds an ordered range of all the social equity users where rank = &#63;.
444            *
445            * <p>
446            * 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.
447            * </p>
448            *
449            * @param rank the rank to search with
450            * @param start the lower bound of the range of social equity users to return
451            * @param end the upper bound of the range of social equity users to return (not inclusive)
452            * @param orderByComparator the comparator to order the results by
453            * @return the ordered range of matching social equity users
454            * @throws SystemException if a system exception occurred
455            */
456            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByRank(
457                    int rank, int start, int end,
458                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
459                    throws com.liferay.portal.kernel.exception.SystemException;
460    
461            /**
462            * Finds the first social equity user in the ordered set where rank = &#63;.
463            *
464            * <p>
465            * 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.
466            * </p>
467            *
468            * @param rank the rank to search with
469            * @param orderByComparator the comparator to order the set by
470            * @return the first matching social equity user
471            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
472            * @throws SystemException if a system exception occurred
473            */
474            public com.liferay.portlet.social.model.SocialEquityUser findByRank_First(
475                    int rank,
476                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
477                    throws com.liferay.portal.kernel.exception.SystemException,
478                            com.liferay.portlet.social.NoSuchEquityUserException;
479    
480            /**
481            * Finds the last social equity user in the ordered set where rank = &#63;.
482            *
483            * <p>
484            * 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.
485            * </p>
486            *
487            * @param rank the rank to search with
488            * @param orderByComparator the comparator to order the set by
489            * @return the last matching social equity user
490            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
491            * @throws SystemException if a system exception occurred
492            */
493            public com.liferay.portlet.social.model.SocialEquityUser findByRank_Last(
494                    int rank,
495                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
496                    throws com.liferay.portal.kernel.exception.SystemException,
497                            com.liferay.portlet.social.NoSuchEquityUserException;
498    
499            /**
500            * Finds the social equity users before and after the current social equity user in the ordered set where rank = &#63;.
501            *
502            * <p>
503            * 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.
504            * </p>
505            *
506            * @param equityUserId the primary key of the current social equity user
507            * @param rank the rank to search with
508            * @param orderByComparator the comparator to order the set by
509            * @return the previous, current, and next social equity user
510            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found
511            * @throws SystemException if a system exception occurred
512            */
513            public com.liferay.portlet.social.model.SocialEquityUser[] findByRank_PrevAndNext(
514                    long equityUserId, int rank,
515                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
516                    throws com.liferay.portal.kernel.exception.SystemException,
517                            com.liferay.portlet.social.NoSuchEquityUserException;
518    
519            /**
520            * 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.
521            *
522            * @param groupId the group id to search with
523            * @param userId the user id to search with
524            * @return the 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 com.liferay.portlet.social.model.SocialEquityUser findByG_U(
529                    long groupId, long userId)
530                    throws com.liferay.portal.kernel.exception.SystemException,
531                            com.liferay.portlet.social.NoSuchEquityUserException;
532    
533            /**
534            * 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.
535            *
536            * @param groupId the group id to search with
537            * @param userId the user id to search with
538            * @return the matching social equity user, or <code>null</code> if a matching social equity user could not be found
539            * @throws SystemException if a system exception occurred
540            */
541            public com.liferay.portlet.social.model.SocialEquityUser fetchByG_U(
542                    long groupId, long userId)
543                    throws com.liferay.portal.kernel.exception.SystemException;
544    
545            /**
546            * 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.
547            *
548            * @param groupId the group id to search with
549            * @param userId the user id to search with
550            * @return the matching social equity user, or <code>null</code> if a matching social equity user could not be found
551            * @throws SystemException if a system exception occurred
552            */
553            public com.liferay.portlet.social.model.SocialEquityUser fetchByG_U(
554                    long groupId, long userId, boolean retrieveFromCache)
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * Finds all the social equity users where groupId = &#63; and rank = &#63;.
559            *
560            * @param groupId the group id to search with
561            * @param rank the rank to search with
562            * @return the matching social equity users
563            * @throws SystemException if a system exception occurred
564            */
565            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByG_R(
566                    long groupId, int rank)
567                    throws com.liferay.portal.kernel.exception.SystemException;
568    
569            /**
570            * Finds a range of all the social equity users where groupId = &#63; and rank = &#63;.
571            *
572            * <p>
573            * 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.
574            * </p>
575            *
576            * @param groupId the group id to search with
577            * @param rank the rank to search with
578            * @param start the lower bound of the range of social equity users to return
579            * @param end the upper bound of the range of social equity users to return (not inclusive)
580            * @return the range of matching social equity users
581            * @throws SystemException if a system exception occurred
582            */
583            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByG_R(
584                    long groupId, int rank, int start, int end)
585                    throws com.liferay.portal.kernel.exception.SystemException;
586    
587            /**
588            * Finds an ordered range of all the social equity users where groupId = &#63; and rank = &#63;.
589            *
590            * <p>
591            * 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.
592            * </p>
593            *
594            * @param groupId the group id to search with
595            * @param rank the rank to search with
596            * @param start the lower bound of the range of social equity users to return
597            * @param end the upper bound of the range of social equity users to return (not inclusive)
598            * @param orderByComparator the comparator to order the results by
599            * @return the ordered range of matching social equity users
600            * @throws SystemException if a system exception occurred
601            */
602            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByG_R(
603                    long groupId, int rank, int start, int end,
604                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
605                    throws com.liferay.portal.kernel.exception.SystemException;
606    
607            /**
608            * Finds the first social equity user in the ordered set where groupId = &#63; and rank = &#63;.
609            *
610            * <p>
611            * 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.
612            * </p>
613            *
614            * @param groupId the group id to search with
615            * @param rank the rank to search with
616            * @param orderByComparator the comparator to order the set by
617            * @return the first matching social equity user
618            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
619            * @throws SystemException if a system exception occurred
620            */
621            public com.liferay.portlet.social.model.SocialEquityUser findByG_R_First(
622                    long groupId, int rank,
623                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
624                    throws com.liferay.portal.kernel.exception.SystemException,
625                            com.liferay.portlet.social.NoSuchEquityUserException;
626    
627            /**
628            * Finds the last social equity user in the ordered set where groupId = &#63; and rank = &#63;.
629            *
630            * <p>
631            * 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.
632            * </p>
633            *
634            * @param groupId the group id to search with
635            * @param rank the rank to search with
636            * @param orderByComparator the comparator to order the set by
637            * @return the last matching social equity user
638            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a matching social equity user could not be found
639            * @throws SystemException if a system exception occurred
640            */
641            public com.liferay.portlet.social.model.SocialEquityUser findByG_R_Last(
642                    long groupId, int rank,
643                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
644                    throws com.liferay.portal.kernel.exception.SystemException,
645                            com.liferay.portlet.social.NoSuchEquityUserException;
646    
647            /**
648            * Finds the social equity users before and after the current social equity user in the ordered set where groupId = &#63; and rank = &#63;.
649            *
650            * <p>
651            * 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.
652            * </p>
653            *
654            * @param equityUserId the primary key of the current social equity user
655            * @param groupId the group id to search with
656            * @param rank the rank to search with
657            * @param orderByComparator the comparator to order the set by
658            * @return the previous, current, and next social equity user
659            * @throws com.liferay.portlet.social.NoSuchEquityUserException if a social equity user with the primary key could not be found
660            * @throws SystemException if a system exception occurred
661            */
662            public com.liferay.portlet.social.model.SocialEquityUser[] findByG_R_PrevAndNext(
663                    long equityUserId, long groupId, int rank,
664                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
665                    throws com.liferay.portal.kernel.exception.SystemException,
666                            com.liferay.portlet.social.NoSuchEquityUserException;
667    
668            /**
669            * Finds all the social equity users.
670            *
671            * @return the social equity users
672            * @throws SystemException if a system exception occurred
673            */
674            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll()
675                    throws com.liferay.portal.kernel.exception.SystemException;
676    
677            /**
678            * Finds a range of all the social equity users.
679            *
680            * <p>
681            * 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.
682            * </p>
683            *
684            * @param start the lower bound of the range of social equity users to return
685            * @param end the upper bound of the range of social equity users to return (not inclusive)
686            * @return the range of social equity users
687            * @throws SystemException if a system exception occurred
688            */
689            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll(
690                    int start, int end)
691                    throws com.liferay.portal.kernel.exception.SystemException;
692    
693            /**
694            * Finds an ordered range of all the social equity users.
695            *
696            * <p>
697            * 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.
698            * </p>
699            *
700            * @param start the lower bound of the range of social equity users to return
701            * @param end the upper bound of the range of social equity users to return (not inclusive)
702            * @param orderByComparator the comparator to order the results by
703            * @return the ordered range of social equity users
704            * @throws SystemException if a system exception occurred
705            */
706            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll(
707                    int start, int end,
708                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
709                    throws com.liferay.portal.kernel.exception.SystemException;
710    
711            /**
712            * Removes all the social equity users where groupId = &#63; from the database.
713            *
714            * @param groupId the group id to search with
715            * @throws SystemException if a system exception occurred
716            */
717            public void removeByGroupId(long groupId)
718                    throws com.liferay.portal.kernel.exception.SystemException;
719    
720            /**
721            * Removes all the social equity users where groupId = &#63; from the database.
722            *
723            * @param groupId the group id to search with
724            * @throws SystemException if a system exception occurred
725            */
726            public void removeByGroupRanked(long groupId)
727                    throws com.liferay.portal.kernel.exception.SystemException;
728    
729            /**
730            * Removes all the social equity users where userId = &#63; from the database.
731            *
732            * @param userId the user id to search with
733            * @throws SystemException if a system exception occurred
734            */
735            public void removeByUserId(long userId)
736                    throws com.liferay.portal.kernel.exception.SystemException;
737    
738            /**
739            * Removes all the social equity users where rank = &#63; from the database.
740            *
741            * @param rank the rank to search with
742            * @throws SystemException if a system exception occurred
743            */
744            public void removeByRank(int rank)
745                    throws com.liferay.portal.kernel.exception.SystemException;
746    
747            /**
748            * Removes the social equity user where groupId = &#63; and userId = &#63; from the database.
749            *
750            * @param groupId the group id to search with
751            * @param userId the user id to search with
752            * @throws SystemException if a system exception occurred
753            */
754            public void removeByG_U(long groupId, long userId)
755                    throws com.liferay.portal.kernel.exception.SystemException,
756                            com.liferay.portlet.social.NoSuchEquityUserException;
757    
758            /**
759            * Removes all the social equity users where groupId = &#63; and rank = &#63; from the database.
760            *
761            * @param groupId the group id to search with
762            * @param rank the rank to search with
763            * @throws SystemException if a system exception occurred
764            */
765            public void removeByG_R(long groupId, int rank)
766                    throws com.liferay.portal.kernel.exception.SystemException;
767    
768            /**
769            * Removes all the social equity users from the database.
770            *
771            * @throws SystemException if a system exception occurred
772            */
773            public void removeAll()
774                    throws com.liferay.portal.kernel.exception.SystemException;
775    
776            /**
777            * Counts all the social equity users where groupId = &#63;.
778            *
779            * @param groupId the group id to search with
780            * @return the number of matching social equity users
781            * @throws SystemException if a system exception occurred
782            */
783            public int countByGroupId(long groupId)
784                    throws com.liferay.portal.kernel.exception.SystemException;
785    
786            /**
787            * Counts all the social equity users where groupId = &#63;.
788            *
789            * @param groupId the group id to search with
790            * @return the number of matching social equity users
791            * @throws SystemException if a system exception occurred
792            */
793            public int countByGroupRanked(long groupId)
794                    throws com.liferay.portal.kernel.exception.SystemException;
795    
796            /**
797            * Counts all the social equity users where userId = &#63;.
798            *
799            * @param userId the user id to search with
800            * @return the number of matching social equity users
801            * @throws SystemException if a system exception occurred
802            */
803            public int countByUserId(long userId)
804                    throws com.liferay.portal.kernel.exception.SystemException;
805    
806            /**
807            * Counts all the social equity users where rank = &#63;.
808            *
809            * @param rank the rank to search with
810            * @return the number of matching social equity users
811            * @throws SystemException if a system exception occurred
812            */
813            public int countByRank(int rank)
814                    throws com.liferay.portal.kernel.exception.SystemException;
815    
816            /**
817            * Counts all the social equity users where groupId = &#63; and userId = &#63;.
818            *
819            * @param groupId the group id to search with
820            * @param userId the user id to search with
821            * @return the number of matching social equity users
822            * @throws SystemException if a system exception occurred
823            */
824            public int countByG_U(long groupId, long userId)
825                    throws com.liferay.portal.kernel.exception.SystemException;
826    
827            /**
828            * Counts all the social equity users where groupId = &#63; and rank = &#63;.
829            *
830            * @param groupId the group id to search with
831            * @param rank the rank to search with
832            * @return the number of matching social equity users
833            * @throws SystemException if a system exception occurred
834            */
835            public int countByG_R(long groupId, int rank)
836                    throws com.liferay.portal.kernel.exception.SystemException;
837    
838            /**
839            * Counts all the social equity users.
840            *
841            * @return the number of social equity users
842            * @throws SystemException if a system exception occurred
843            */
844            public int countAll()
845                    throws com.liferay.portal.kernel.exception.SystemException;
846    }