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