1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  import com.liferay.portal.model.UserGroupGroupRole;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="UserGroupGroupRoleUtil.java.html"><b><i>View Source</i></b></a>
26   *
27   * <p>
28   * ServiceBuilder generated this class. Modifications in this class will be
29   * overwritten the next time is generated.
30   * </p>
31   *
32   * @author    Brian Wing Shun Chan
33   * @see       UserGroupGroupRolePersistence
34   * @see       UserGroupGroupRolePersistenceImpl
35   * @generated
36   */
37  public class UserGroupGroupRoleUtil {
38      /**
39       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
40       */
41      public static void clearCache() {
42          getPersistence().clearCache();
43      }
44  
45      /**
46       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
47       */
48      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49          throws SystemException {
50          return getPersistence().findWithDynamicQuery(dynamicQuery);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
57          int start, int end) throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
63       */
64      public static UserGroupGroupRole remove(
65          UserGroupGroupRole userGroupGroupRole) throws SystemException {
66          return getPersistence().remove(userGroupGroupRole);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
71       */
72      public static UserGroupGroupRole update(
73          UserGroupGroupRole userGroupGroupRole, boolean merge)
74          throws SystemException {
75          return getPersistence().update(userGroupGroupRole, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole) {
80          getPersistence().cacheResult(userGroupGroupRole);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portal.model.UserGroupGroupRole> userGroupGroupRoles) {
85          getPersistence().cacheResult(userGroupGroupRoles);
86      }
87  
88      public static com.liferay.portal.model.UserGroupGroupRole create(
89          com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) {
90          return getPersistence().create(userGroupGroupRolePK);
91      }
92  
93      public static com.liferay.portal.model.UserGroupGroupRole remove(
94          com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
95          throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getPersistence().remove(userGroupGroupRolePK);
98      }
99  
100     public static com.liferay.portal.model.UserGroupGroupRole updateImpl(
101         com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(userGroupGroupRole, merge);
105     }
106 
107     public static com.liferay.portal.model.UserGroupGroupRole findByPrimaryKey(
108         com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
109         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
110             com.liferay.portal.kernel.exception.SystemException {
111         return getPersistence().findByPrimaryKey(userGroupGroupRolePK);
112     }
113 
114     public static com.liferay.portal.model.UserGroupGroupRole fetchByPrimaryKey(
115         com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(userGroupGroupRolePK);
118     }
119 
120     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
121         long userGroupId)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByUserGroupId(userGroupId);
124     }
125 
126     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
127         long userGroupId, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByUserGroupId(userGroupId, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
133         long userGroupId, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence()
137                    .findByUserGroupId(userGroupId, start, end, orderByComparator);
138     }
139 
140     public static com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_First(
141         long userGroupId,
142         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
144             com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence()
146                    .findByUserGroupId_First(userGroupId, orderByComparator);
147     }
148 
149     public static com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_Last(
150         long userGroupId,
151         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
153             com.liferay.portal.kernel.exception.SystemException {
154         return getPersistence()
155                    .findByUserGroupId_Last(userGroupId, orderByComparator);
156     }
157 
158     public static com.liferay.portal.model.UserGroupGroupRole[] findByUserGroupId_PrevAndNext(
159         com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
160         long userGroupId,
161         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
163             com.liferay.portal.kernel.exception.SystemException {
164         return getPersistence()
165                    .findByUserGroupId_PrevAndNext(userGroupGroupRolePK,
166             userGroupId, orderByComparator);
167     }
168 
169     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
170         long groupId)
171         throws com.liferay.portal.kernel.exception.SystemException {
172         return getPersistence().findByGroupId(groupId);
173     }
174 
175     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
176         long groupId, int start, int end)
177         throws com.liferay.portal.kernel.exception.SystemException {
178         return getPersistence().findByGroupId(groupId, start, end);
179     }
180 
181     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
182         long groupId, int start, int end,
183         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence()
186                    .findByGroupId(groupId, start, end, orderByComparator);
187     }
188 
189     public static com.liferay.portal.model.UserGroupGroupRole findByGroupId_First(
190         long groupId,
191         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
192         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
193             com.liferay.portal.kernel.exception.SystemException {
194         return getPersistence().findByGroupId_First(groupId, orderByComparator);
195     }
196 
197     public static com.liferay.portal.model.UserGroupGroupRole findByGroupId_Last(
198         long groupId,
199         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
201             com.liferay.portal.kernel.exception.SystemException {
202         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
203     }
204 
205     public static com.liferay.portal.model.UserGroupGroupRole[] findByGroupId_PrevAndNext(
206         com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
207         long groupId,
208         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
210             com.liferay.portal.kernel.exception.SystemException {
211         return getPersistence()
212                    .findByGroupId_PrevAndNext(userGroupGroupRolePK, groupId,
213             orderByComparator);
214     }
215 
216     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
217         long roleId) throws com.liferay.portal.kernel.exception.SystemException {
218         return getPersistence().findByRoleId(roleId);
219     }
220 
221     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
222         long roleId, int start, int end)
223         throws com.liferay.portal.kernel.exception.SystemException {
224         return getPersistence().findByRoleId(roleId, start, end);
225     }
226 
227     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
228         long roleId, int start, int end,
229         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
230         throws com.liferay.portal.kernel.exception.SystemException {
231         return getPersistence()
232                    .findByRoleId(roleId, start, end, orderByComparator);
233     }
234 
235     public static com.liferay.portal.model.UserGroupGroupRole findByRoleId_First(
236         long roleId,
237         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
238         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
239             com.liferay.portal.kernel.exception.SystemException {
240         return getPersistence().findByRoleId_First(roleId, orderByComparator);
241     }
242 
243     public static com.liferay.portal.model.UserGroupGroupRole findByRoleId_Last(
244         long roleId,
245         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
247             com.liferay.portal.kernel.exception.SystemException {
248         return getPersistence().findByRoleId_Last(roleId, orderByComparator);
249     }
250 
251     public static com.liferay.portal.model.UserGroupGroupRole[] findByRoleId_PrevAndNext(
252         com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
253         long roleId,
254         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
256             com.liferay.portal.kernel.exception.SystemException {
257         return getPersistence()
258                    .findByRoleId_PrevAndNext(userGroupGroupRolePK, roleId,
259             orderByComparator);
260     }
261 
262     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
263         long userGroupId, long groupId)
264         throws com.liferay.portal.kernel.exception.SystemException {
265         return getPersistence().findByU_G(userGroupId, groupId);
266     }
267 
268     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
269         long userGroupId, long groupId, int start, int end)
270         throws com.liferay.portal.kernel.exception.SystemException {
271         return getPersistence().findByU_G(userGroupId, groupId, start, end);
272     }
273 
274     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
275         long userGroupId, long groupId, int start, int end,
276         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277         throws com.liferay.portal.kernel.exception.SystemException {
278         return getPersistence()
279                    .findByU_G(userGroupId, groupId, start, end,
280             orderByComparator);
281     }
282 
283     public static com.liferay.portal.model.UserGroupGroupRole findByU_G_First(
284         long userGroupId, long groupId,
285         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
286         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
287             com.liferay.portal.kernel.exception.SystemException {
288         return getPersistence()
289                    .findByU_G_First(userGroupId, groupId, orderByComparator);
290     }
291 
292     public static com.liferay.portal.model.UserGroupGroupRole findByU_G_Last(
293         long userGroupId, long groupId,
294         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
296             com.liferay.portal.kernel.exception.SystemException {
297         return getPersistence()
298                    .findByU_G_Last(userGroupId, groupId, orderByComparator);
299     }
300 
301     public static com.liferay.portal.model.UserGroupGroupRole[] findByU_G_PrevAndNext(
302         com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
303         long userGroupId, long groupId,
304         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
306             com.liferay.portal.kernel.exception.SystemException {
307         return getPersistence()
308                    .findByU_G_PrevAndNext(userGroupGroupRolePK, userGroupId,
309             groupId, orderByComparator);
310     }
311 
312     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
313         long groupId, long roleId)
314         throws com.liferay.portal.kernel.exception.SystemException {
315         return getPersistence().findByG_R(groupId, roleId);
316     }
317 
318     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
319         long groupId, long roleId, int start, int end)
320         throws com.liferay.portal.kernel.exception.SystemException {
321         return getPersistence().findByG_R(groupId, roleId, start, end);
322     }
323 
324     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
325         long groupId, long roleId, int start, int end,
326         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327         throws com.liferay.portal.kernel.exception.SystemException {
328         return getPersistence()
329                    .findByG_R(groupId, roleId, start, end, orderByComparator);
330     }
331 
332     public static com.liferay.portal.model.UserGroupGroupRole findByG_R_First(
333         long groupId, long roleId,
334         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
335         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
336             com.liferay.portal.kernel.exception.SystemException {
337         return getPersistence()
338                    .findByG_R_First(groupId, roleId, orderByComparator);
339     }
340 
341     public static com.liferay.portal.model.UserGroupGroupRole findByG_R_Last(
342         long groupId, long roleId,
343         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
344         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
345             com.liferay.portal.kernel.exception.SystemException {
346         return getPersistence()
347                    .findByG_R_Last(groupId, roleId, orderByComparator);
348     }
349 
350     public static com.liferay.portal.model.UserGroupGroupRole[] findByG_R_PrevAndNext(
351         com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
352         long groupId, long roleId,
353         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
354         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
355             com.liferay.portal.kernel.exception.SystemException {
356         return getPersistence()
357                    .findByG_R_PrevAndNext(userGroupGroupRolePK, groupId,
358             roleId, orderByComparator);
359     }
360 
361     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll()
362         throws com.liferay.portal.kernel.exception.SystemException {
363         return getPersistence().findAll();
364     }
365 
366     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll(
367         int start, int end)
368         throws com.liferay.portal.kernel.exception.SystemException {
369         return getPersistence().findAll(start, end);
370     }
371 
372     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll(
373         int start, int end,
374         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
375         throws com.liferay.portal.kernel.exception.SystemException {
376         return getPersistence().findAll(start, end, orderByComparator);
377     }
378 
379     public static void removeByUserGroupId(long userGroupId)
380         throws com.liferay.portal.kernel.exception.SystemException {
381         getPersistence().removeByUserGroupId(userGroupId);
382     }
383 
384     public static void removeByGroupId(long groupId)
385         throws com.liferay.portal.kernel.exception.SystemException {
386         getPersistence().removeByGroupId(groupId);
387     }
388 
389     public static void removeByRoleId(long roleId)
390         throws com.liferay.portal.kernel.exception.SystemException {
391         getPersistence().removeByRoleId(roleId);
392     }
393 
394     public static void removeByU_G(long userGroupId, long groupId)
395         throws com.liferay.portal.kernel.exception.SystemException {
396         getPersistence().removeByU_G(userGroupId, groupId);
397     }
398 
399     public static void removeByG_R(long groupId, long roleId)
400         throws com.liferay.portal.kernel.exception.SystemException {
401         getPersistence().removeByG_R(groupId, roleId);
402     }
403 
404     public static void removeAll()
405         throws com.liferay.portal.kernel.exception.SystemException {
406         getPersistence().removeAll();
407     }
408 
409     public static int countByUserGroupId(long userGroupId)
410         throws com.liferay.portal.kernel.exception.SystemException {
411         return getPersistence().countByUserGroupId(userGroupId);
412     }
413 
414     public static int countByGroupId(long groupId)
415         throws com.liferay.portal.kernel.exception.SystemException {
416         return getPersistence().countByGroupId(groupId);
417     }
418 
419     public static int countByRoleId(long roleId)
420         throws com.liferay.portal.kernel.exception.SystemException {
421         return getPersistence().countByRoleId(roleId);
422     }
423 
424     public static int countByU_G(long userGroupId, long groupId)
425         throws com.liferay.portal.kernel.exception.SystemException {
426         return getPersistence().countByU_G(userGroupId, groupId);
427     }
428 
429     public static int countByG_R(long groupId, long roleId)
430         throws com.liferay.portal.kernel.exception.SystemException {
431         return getPersistence().countByG_R(groupId, roleId);
432     }
433 
434     public static int countAll()
435         throws com.liferay.portal.kernel.exception.SystemException {
436         return getPersistence().countAll();
437     }
438 
439     public static UserGroupGroupRolePersistence getPersistence() {
440         if (_persistence == null) {
441             _persistence = (UserGroupGroupRolePersistence)PortalBeanLocatorUtil.locate(UserGroupGroupRolePersistence.class.getName());
442         }
443 
444         return _persistence;
445     }
446 
447     public void setPersistence(UserGroupGroupRolePersistence persistence) {
448         _persistence = persistence;
449     }
450 
451     private static UserGroupGroupRolePersistence _persistence;
452 }