001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.social.model.SocialEquityUser;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       SocialEquityUserPersistence
030     * @see       SocialEquityUserPersistenceImpl
031     * @generated
032     */
033    public class SocialEquityUserUtil {
034            /**
035             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
036             */
037            public static void clearCache() {
038                    getPersistence().clearCache();
039            }
040    
041            /**
042             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
043             */
044            public static void clearCache(SocialEquityUser socialEquityUser) {
045                    getPersistence().clearCache(socialEquityUser);
046            }
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
050             */
051            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052                    throws SystemException {
053                    return getPersistence().countWithDynamicQuery(dynamicQuery);
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
058             */
059            public static List<SocialEquityUser> findWithDynamicQuery(
060                    DynamicQuery dynamicQuery) throws SystemException {
061                    return getPersistence().findWithDynamicQuery(dynamicQuery);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
066             */
067            public static List<SocialEquityUser> findWithDynamicQuery(
068                    DynamicQuery dynamicQuery, int start, int end)
069                    throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
075             */
076            public static List<SocialEquityUser> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end,
078                    OrderByComparator orderByComparator) throws SystemException {
079                    return getPersistence()
080                                       .findWithDynamicQuery(dynamicQuery, start, end,
081                            orderByComparator);
082            }
083    
084            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static SocialEquityUser remove(SocialEquityUser socialEquityUser)
088                    throws SystemException {
089                    return getPersistence().remove(socialEquityUser);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static SocialEquityUser update(SocialEquityUser socialEquityUser,
096                    boolean merge) throws SystemException {
097                    return getPersistence().update(socialEquityUser, merge);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
102             */
103            public static SocialEquityUser update(SocialEquityUser socialEquityUser,
104                    boolean merge, ServiceContext serviceContext) throws SystemException {
105                    return getPersistence().update(socialEquityUser, merge, serviceContext);
106            }
107    
108            public static void cacheResult(
109                    com.liferay.portlet.social.model.SocialEquityUser socialEquityUser) {
110                    getPersistence().cacheResult(socialEquityUser);
111            }
112    
113            public static void cacheResult(
114                    java.util.List<com.liferay.portlet.social.model.SocialEquityUser> socialEquityUsers) {
115                    getPersistence().cacheResult(socialEquityUsers);
116            }
117    
118            public static com.liferay.portlet.social.model.SocialEquityUser create(
119                    long equityUserId) {
120                    return getPersistence().create(equityUserId);
121            }
122    
123            public static com.liferay.portlet.social.model.SocialEquityUser remove(
124                    long equityUserId)
125                    throws com.liferay.portal.kernel.exception.SystemException,
126                            com.liferay.portlet.social.NoSuchEquityUserException {
127                    return getPersistence().remove(equityUserId);
128            }
129    
130            public static com.liferay.portlet.social.model.SocialEquityUser updateImpl(
131                    com.liferay.portlet.social.model.SocialEquityUser socialEquityUser,
132                    boolean merge)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return getPersistence().updateImpl(socialEquityUser, merge);
135            }
136    
137            public static com.liferay.portlet.social.model.SocialEquityUser findByPrimaryKey(
138                    long equityUserId)
139                    throws com.liferay.portal.kernel.exception.SystemException,
140                            com.liferay.portlet.social.NoSuchEquityUserException {
141                    return getPersistence().findByPrimaryKey(equityUserId);
142            }
143    
144            public static com.liferay.portlet.social.model.SocialEquityUser fetchByPrimaryKey(
145                    long equityUserId)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return getPersistence().fetchByPrimaryKey(equityUserId);
148            }
149    
150            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupId(
151                    long groupId)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return getPersistence().findByGroupId(groupId);
154            }
155    
156            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupId(
157                    long groupId, int start, int end)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return getPersistence().findByGroupId(groupId, start, end);
160            }
161    
162            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupId(
163                    long groupId, int start, int end,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence()
167                                       .findByGroupId(groupId, start, end, orderByComparator);
168            }
169    
170            public static com.liferay.portlet.social.model.SocialEquityUser findByGroupId_First(
171                    long groupId,
172                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173                    throws com.liferay.portal.kernel.exception.SystemException,
174                            com.liferay.portlet.social.NoSuchEquityUserException {
175                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
176            }
177    
178            public static com.liferay.portlet.social.model.SocialEquityUser findByGroupId_Last(
179                    long groupId,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.kernel.exception.SystemException,
182                            com.liferay.portlet.social.NoSuchEquityUserException {
183                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
184            }
185    
186            public static com.liferay.portlet.social.model.SocialEquityUser[] findByGroupId_PrevAndNext(
187                    long equityUserId, long groupId,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.social.NoSuchEquityUserException {
191                    return getPersistence()
192                                       .findByGroupId_PrevAndNext(equityUserId, groupId,
193                            orderByComparator);
194            }
195    
196            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupRanked(
197                    long groupId)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return getPersistence().findByGroupRanked(groupId);
200            }
201    
202            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupRanked(
203                    long groupId, int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getPersistence().findByGroupRanked(groupId, start, end);
206            }
207    
208            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupRanked(
209                    long groupId, int start, int end,
210                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence()
213                                       .findByGroupRanked(groupId, start, end, orderByComparator);
214            }
215    
216            public static com.liferay.portlet.social.model.SocialEquityUser findByGroupRanked_First(
217                    long groupId,
218                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219                    throws com.liferay.portal.kernel.exception.SystemException,
220                            com.liferay.portlet.social.NoSuchEquityUserException {
221                    return getPersistence()
222                                       .findByGroupRanked_First(groupId, orderByComparator);
223            }
224    
225            public static com.liferay.portlet.social.model.SocialEquityUser findByGroupRanked_Last(
226                    long groupId,
227                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228                    throws com.liferay.portal.kernel.exception.SystemException,
229                            com.liferay.portlet.social.NoSuchEquityUserException {
230                    return getPersistence()
231                                       .findByGroupRanked_Last(groupId, orderByComparator);
232            }
233    
234            public static com.liferay.portlet.social.model.SocialEquityUser[] findByGroupRanked_PrevAndNext(
235                    long equityUserId, long groupId,
236                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
237                    throws com.liferay.portal.kernel.exception.SystemException,
238                            com.liferay.portlet.social.NoSuchEquityUserException {
239                    return getPersistence()
240                                       .findByGroupRanked_PrevAndNext(equityUserId, groupId,
241                            orderByComparator);
242            }
243    
244            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
245                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
246                    return getPersistence().findByUserId(userId);
247            }
248    
249            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
250                    long userId, int start, int end)
251                    throws com.liferay.portal.kernel.exception.SystemException {
252                    return getPersistence().findByUserId(userId, start, end);
253            }
254    
255            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
256                    long userId, int start, int end,
257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    return getPersistence()
260                                       .findByUserId(userId, start, end, orderByComparator);
261            }
262    
263            public static com.liferay.portlet.social.model.SocialEquityUser findByUserId_First(
264                    long userId,
265                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266                    throws com.liferay.portal.kernel.exception.SystemException,
267                            com.liferay.portlet.social.NoSuchEquityUserException {
268                    return getPersistence().findByUserId_First(userId, orderByComparator);
269            }
270    
271            public static com.liferay.portlet.social.model.SocialEquityUser findByUserId_Last(
272                    long userId,
273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274                    throws com.liferay.portal.kernel.exception.SystemException,
275                            com.liferay.portlet.social.NoSuchEquityUserException {
276                    return getPersistence().findByUserId_Last(userId, orderByComparator);
277            }
278    
279            public static com.liferay.portlet.social.model.SocialEquityUser[] findByUserId_PrevAndNext(
280                    long equityUserId, long userId,
281                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282                    throws com.liferay.portal.kernel.exception.SystemException,
283                            com.liferay.portlet.social.NoSuchEquityUserException {
284                    return getPersistence()
285                                       .findByUserId_PrevAndNext(equityUserId, userId,
286                            orderByComparator);
287            }
288    
289            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByRank(
290                    int rank) throws com.liferay.portal.kernel.exception.SystemException {
291                    return getPersistence().findByRank(rank);
292            }
293    
294            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByRank(
295                    int rank, int start, int end)
296                    throws com.liferay.portal.kernel.exception.SystemException {
297                    return getPersistence().findByRank(rank, start, end);
298            }
299    
300            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByRank(
301                    int rank, int start, int end,
302                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
303                    throws com.liferay.portal.kernel.exception.SystemException {
304                    return getPersistence().findByRank(rank, start, end, orderByComparator);
305            }
306    
307            public static com.liferay.portlet.social.model.SocialEquityUser findByRank_First(
308                    int rank,
309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310                    throws com.liferay.portal.kernel.exception.SystemException,
311                            com.liferay.portlet.social.NoSuchEquityUserException {
312                    return getPersistence().findByRank_First(rank, orderByComparator);
313            }
314    
315            public static com.liferay.portlet.social.model.SocialEquityUser findByRank_Last(
316                    int rank,
317                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318                    throws com.liferay.portal.kernel.exception.SystemException,
319                            com.liferay.portlet.social.NoSuchEquityUserException {
320                    return getPersistence().findByRank_Last(rank, orderByComparator);
321            }
322    
323            public static com.liferay.portlet.social.model.SocialEquityUser[] findByRank_PrevAndNext(
324                    long equityUserId, int rank,
325                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
326                    throws com.liferay.portal.kernel.exception.SystemException,
327                            com.liferay.portlet.social.NoSuchEquityUserException {
328                    return getPersistence()
329                                       .findByRank_PrevAndNext(equityUserId, rank, orderByComparator);
330            }
331    
332            public static com.liferay.portlet.social.model.SocialEquityUser findByG_U(
333                    long groupId, long userId)
334                    throws com.liferay.portal.kernel.exception.SystemException,
335                            com.liferay.portlet.social.NoSuchEquityUserException {
336                    return getPersistence().findByG_U(groupId, userId);
337            }
338    
339            public static com.liferay.portlet.social.model.SocialEquityUser fetchByG_U(
340                    long groupId, long userId)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return getPersistence().fetchByG_U(groupId, userId);
343            }
344    
345            public static com.liferay.portlet.social.model.SocialEquityUser fetchByG_U(
346                    long groupId, long userId, boolean retrieveFromCache)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache);
349            }
350    
351            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByG_R(
352                    long groupId, int rank)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return getPersistence().findByG_R(groupId, rank);
355            }
356    
357            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByG_R(
358                    long groupId, int rank, int start, int end)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return getPersistence().findByG_R(groupId, rank, start, end);
361            }
362    
363            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByG_R(
364                    long groupId, int rank, int start, int end,
365                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return getPersistence()
368                                       .findByG_R(groupId, rank, start, end, orderByComparator);
369            }
370    
371            public static com.liferay.portlet.social.model.SocialEquityUser findByG_R_First(
372                    long groupId, int rank,
373                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
374                    throws com.liferay.portal.kernel.exception.SystemException,
375                            com.liferay.portlet.social.NoSuchEquityUserException {
376                    return getPersistence().findByG_R_First(groupId, rank, orderByComparator);
377            }
378    
379            public static com.liferay.portlet.social.model.SocialEquityUser findByG_R_Last(
380                    long groupId, int rank,
381                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
382                    throws com.liferay.portal.kernel.exception.SystemException,
383                            com.liferay.portlet.social.NoSuchEquityUserException {
384                    return getPersistence().findByG_R_Last(groupId, rank, orderByComparator);
385            }
386    
387            public static com.liferay.portlet.social.model.SocialEquityUser[] findByG_R_PrevAndNext(
388                    long equityUserId, long groupId, int rank,
389                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
390                    throws com.liferay.portal.kernel.exception.SystemException,
391                            com.liferay.portlet.social.NoSuchEquityUserException {
392                    return getPersistence()
393                                       .findByG_R_PrevAndNext(equityUserId, groupId, rank,
394                            orderByComparator);
395            }
396    
397            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll()
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return getPersistence().findAll();
400            }
401    
402            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll(
403                    int start, int end)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return getPersistence().findAll(start, end);
406            }
407    
408            public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll(
409                    int start, int end,
410                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    return getPersistence().findAll(start, end, orderByComparator);
413            }
414    
415            public static void removeByGroupId(long groupId)
416                    throws com.liferay.portal.kernel.exception.SystemException {
417                    getPersistence().removeByGroupId(groupId);
418            }
419    
420            public static void removeByGroupRanked(long groupId)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    getPersistence().removeByGroupRanked(groupId);
423            }
424    
425            public static void removeByUserId(long userId)
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    getPersistence().removeByUserId(userId);
428            }
429    
430            public static void removeByRank(int rank)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    getPersistence().removeByRank(rank);
433            }
434    
435            public static void removeByG_U(long groupId, long userId)
436                    throws com.liferay.portal.kernel.exception.SystemException,
437                            com.liferay.portlet.social.NoSuchEquityUserException {
438                    getPersistence().removeByG_U(groupId, userId);
439            }
440    
441            public static void removeByG_R(long groupId, int rank)
442                    throws com.liferay.portal.kernel.exception.SystemException {
443                    getPersistence().removeByG_R(groupId, rank);
444            }
445    
446            public static void removeAll()
447                    throws com.liferay.portal.kernel.exception.SystemException {
448                    getPersistence().removeAll();
449            }
450    
451            public static int countByGroupId(long groupId)
452                    throws com.liferay.portal.kernel.exception.SystemException {
453                    return getPersistence().countByGroupId(groupId);
454            }
455    
456            public static int countByGroupRanked(long groupId)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    return getPersistence().countByGroupRanked(groupId);
459            }
460    
461            public static int countByUserId(long userId)
462                    throws com.liferay.portal.kernel.exception.SystemException {
463                    return getPersistence().countByUserId(userId);
464            }
465    
466            public static int countByRank(int rank)
467                    throws com.liferay.portal.kernel.exception.SystemException {
468                    return getPersistence().countByRank(rank);
469            }
470    
471            public static int countByG_U(long groupId, long userId)
472                    throws com.liferay.portal.kernel.exception.SystemException {
473                    return getPersistence().countByG_U(groupId, userId);
474            }
475    
476            public static int countByG_R(long groupId, int rank)
477                    throws com.liferay.portal.kernel.exception.SystemException {
478                    return getPersistence().countByG_R(groupId, rank);
479            }
480    
481            public static int countAll()
482                    throws com.liferay.portal.kernel.exception.SystemException {
483                    return getPersistence().countAll();
484            }
485    
486            public static SocialEquityUserPersistence getPersistence() {
487                    if (_persistence == null) {
488                            _persistence = (SocialEquityUserPersistence)PortalBeanLocatorUtil.locate(SocialEquityUserPersistence.class.getName());
489                    }
490    
491                    return _persistence;
492            }
493    
494            public void setPersistence(SocialEquityUserPersistence persistence) {
495                    _persistence = persistence;
496            }
497    
498            private static SocialEquityUserPersistence _persistence;
499    }