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 obc)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByUserGroupId(userGroupId, start, end, obc);
137     }
138 
139     public static com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_First(
140         long userGroupId, com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
142             com.liferay.portal.kernel.exception.SystemException {
143         return getPersistence().findByUserGroupId_First(userGroupId, obc);
144     }
145 
146     public static com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_Last(
147         long userGroupId, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
149             com.liferay.portal.kernel.exception.SystemException {
150         return getPersistence().findByUserGroupId_Last(userGroupId, obc);
151     }
152 
153     public static com.liferay.portal.model.UserGroupGroupRole[] findByUserGroupId_PrevAndNext(
154         com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
155         long userGroupId, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
157             com.liferay.portal.kernel.exception.SystemException {
158         return getPersistence()
159                    .findByUserGroupId_PrevAndNext(userGroupGroupRolePK,
160             userGroupId, obc);
161     }
162 
163     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
164         long groupId)
165         throws com.liferay.portal.kernel.exception.SystemException {
166         return getPersistence().findByGroupId(groupId);
167     }
168 
169     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
170         long groupId, int start, int end)
171         throws com.liferay.portal.kernel.exception.SystemException {
172         return getPersistence().findByGroupId(groupId, start, end);
173     }
174 
175     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
176         long groupId, int start, int end,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence().findByGroupId(groupId, start, end, obc);
180     }
181 
182     public static com.liferay.portal.model.UserGroupGroupRole findByGroupId_First(
183         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
185             com.liferay.portal.kernel.exception.SystemException {
186         return getPersistence().findByGroupId_First(groupId, obc);
187     }
188 
189     public static com.liferay.portal.model.UserGroupGroupRole findByGroupId_Last(
190         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
192             com.liferay.portal.kernel.exception.SystemException {
193         return getPersistence().findByGroupId_Last(groupId, obc);
194     }
195 
196     public static com.liferay.portal.model.UserGroupGroupRole[] findByGroupId_PrevAndNext(
197         com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
198         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
199         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
200             com.liferay.portal.kernel.exception.SystemException {
201         return getPersistence()
202                    .findByGroupId_PrevAndNext(userGroupGroupRolePK, groupId, obc);
203     }
204 
205     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
206         long roleId) throws com.liferay.portal.kernel.exception.SystemException {
207         return getPersistence().findByRoleId(roleId);
208     }
209 
210     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
211         long roleId, int start, int end)
212         throws com.liferay.portal.kernel.exception.SystemException {
213         return getPersistence().findByRoleId(roleId, start, end);
214     }
215 
216     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
217         long roleId, int start, int end,
218         com.liferay.portal.kernel.util.OrderByComparator obc)
219         throws com.liferay.portal.kernel.exception.SystemException {
220         return getPersistence().findByRoleId(roleId, start, end, obc);
221     }
222 
223     public static com.liferay.portal.model.UserGroupGroupRole findByRoleId_First(
224         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
225         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
226             com.liferay.portal.kernel.exception.SystemException {
227         return getPersistence().findByRoleId_First(roleId, obc);
228     }
229 
230     public static com.liferay.portal.model.UserGroupGroupRole findByRoleId_Last(
231         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
233             com.liferay.portal.kernel.exception.SystemException {
234         return getPersistence().findByRoleId_Last(roleId, obc);
235     }
236 
237     public static com.liferay.portal.model.UserGroupGroupRole[] findByRoleId_PrevAndNext(
238         com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
239         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
240         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
241             com.liferay.portal.kernel.exception.SystemException {
242         return getPersistence()
243                    .findByRoleId_PrevAndNext(userGroupGroupRolePK, roleId, obc);
244     }
245 
246     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
247         long userGroupId, long groupId)
248         throws com.liferay.portal.kernel.exception.SystemException {
249         return getPersistence().findByU_G(userGroupId, groupId);
250     }
251 
252     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
253         long userGroupId, long groupId, int start, int end)
254         throws com.liferay.portal.kernel.exception.SystemException {
255         return getPersistence().findByU_G(userGroupId, groupId, start, end);
256     }
257 
258     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
259         long userGroupId, long groupId, int start, int end,
260         com.liferay.portal.kernel.util.OrderByComparator obc)
261         throws com.liferay.portal.kernel.exception.SystemException {
262         return getPersistence().findByU_G(userGroupId, groupId, start, end, obc);
263     }
264 
265     public static com.liferay.portal.model.UserGroupGroupRole findByU_G_First(
266         long userGroupId, long groupId,
267         com.liferay.portal.kernel.util.OrderByComparator obc)
268         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
269             com.liferay.portal.kernel.exception.SystemException {
270         return getPersistence().findByU_G_First(userGroupId, groupId, obc);
271     }
272 
273     public static com.liferay.portal.model.UserGroupGroupRole findByU_G_Last(
274         long userGroupId, long groupId,
275         com.liferay.portal.kernel.util.OrderByComparator obc)
276         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
277             com.liferay.portal.kernel.exception.SystemException {
278         return getPersistence().findByU_G_Last(userGroupId, groupId, obc);
279     }
280 
281     public static com.liferay.portal.model.UserGroupGroupRole[] findByU_G_PrevAndNext(
282         com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
283         long userGroupId, long groupId,
284         com.liferay.portal.kernel.util.OrderByComparator obc)
285         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
286             com.liferay.portal.kernel.exception.SystemException {
287         return getPersistence()
288                    .findByU_G_PrevAndNext(userGroupGroupRolePK, userGroupId,
289             groupId, obc);
290     }
291 
292     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
293         long groupId, long roleId)
294         throws com.liferay.portal.kernel.exception.SystemException {
295         return getPersistence().findByG_R(groupId, roleId);
296     }
297 
298     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
299         long groupId, long roleId, int start, int end)
300         throws com.liferay.portal.kernel.exception.SystemException {
301         return getPersistence().findByG_R(groupId, roleId, start, end);
302     }
303 
304     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
305         long groupId, long roleId, int start, int end,
306         com.liferay.portal.kernel.util.OrderByComparator obc)
307         throws com.liferay.portal.kernel.exception.SystemException {
308         return getPersistence().findByG_R(groupId, roleId, start, end, obc);
309     }
310 
311     public static com.liferay.portal.model.UserGroupGroupRole findByG_R_First(
312         long groupId, long roleId,
313         com.liferay.portal.kernel.util.OrderByComparator obc)
314         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
315             com.liferay.portal.kernel.exception.SystemException {
316         return getPersistence().findByG_R_First(groupId, roleId, obc);
317     }
318 
319     public static com.liferay.portal.model.UserGroupGroupRole findByG_R_Last(
320         long groupId, long roleId,
321         com.liferay.portal.kernel.util.OrderByComparator obc)
322         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
323             com.liferay.portal.kernel.exception.SystemException {
324         return getPersistence().findByG_R_Last(groupId, roleId, obc);
325     }
326 
327     public static com.liferay.portal.model.UserGroupGroupRole[] findByG_R_PrevAndNext(
328         com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
329         long groupId, long roleId,
330         com.liferay.portal.kernel.util.OrderByComparator obc)
331         throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
332             com.liferay.portal.kernel.exception.SystemException {
333         return getPersistence()
334                    .findByG_R_PrevAndNext(userGroupGroupRolePK, groupId,
335             roleId, obc);
336     }
337 
338     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll()
339         throws com.liferay.portal.kernel.exception.SystemException {
340         return getPersistence().findAll();
341     }
342 
343     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll(
344         int start, int end)
345         throws com.liferay.portal.kernel.exception.SystemException {
346         return getPersistence().findAll(start, end);
347     }
348 
349     public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll(
350         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
351         throws com.liferay.portal.kernel.exception.SystemException {
352         return getPersistence().findAll(start, end, obc);
353     }
354 
355     public static void removeByUserGroupId(long userGroupId)
356         throws com.liferay.portal.kernel.exception.SystemException {
357         getPersistence().removeByUserGroupId(userGroupId);
358     }
359 
360     public static void removeByGroupId(long groupId)
361         throws com.liferay.portal.kernel.exception.SystemException {
362         getPersistence().removeByGroupId(groupId);
363     }
364 
365     public static void removeByRoleId(long roleId)
366         throws com.liferay.portal.kernel.exception.SystemException {
367         getPersistence().removeByRoleId(roleId);
368     }
369 
370     public static void removeByU_G(long userGroupId, long groupId)
371         throws com.liferay.portal.kernel.exception.SystemException {
372         getPersistence().removeByU_G(userGroupId, groupId);
373     }
374 
375     public static void removeByG_R(long groupId, long roleId)
376         throws com.liferay.portal.kernel.exception.SystemException {
377         getPersistence().removeByG_R(groupId, roleId);
378     }
379 
380     public static void removeAll()
381         throws com.liferay.portal.kernel.exception.SystemException {
382         getPersistence().removeAll();
383     }
384 
385     public static int countByUserGroupId(long userGroupId)
386         throws com.liferay.portal.kernel.exception.SystemException {
387         return getPersistence().countByUserGroupId(userGroupId);
388     }
389 
390     public static int countByGroupId(long groupId)
391         throws com.liferay.portal.kernel.exception.SystemException {
392         return getPersistence().countByGroupId(groupId);
393     }
394 
395     public static int countByRoleId(long roleId)
396         throws com.liferay.portal.kernel.exception.SystemException {
397         return getPersistence().countByRoleId(roleId);
398     }
399 
400     public static int countByU_G(long userGroupId, long groupId)
401         throws com.liferay.portal.kernel.exception.SystemException {
402         return getPersistence().countByU_G(userGroupId, groupId);
403     }
404 
405     public static int countByG_R(long groupId, long roleId)
406         throws com.liferay.portal.kernel.exception.SystemException {
407         return getPersistence().countByG_R(groupId, roleId);
408     }
409 
410     public static int countAll()
411         throws com.liferay.portal.kernel.exception.SystemException {
412         return getPersistence().countAll();
413     }
414 
415     public static UserGroupGroupRolePersistence getPersistence() {
416         if (_persistence == null) {
417             _persistence = (UserGroupGroupRolePersistence)PortalBeanLocatorUtil.locate(UserGroupGroupRolePersistence.class.getName());
418         }
419 
420         return _persistence;
421     }
422 
423     public void setPersistence(UserGroupGroupRolePersistence persistence) {
424         _persistence = persistence;
425     }
426 
427     private static UserGroupGroupRolePersistence _persistence;
428 }