1
22
23 package com.liferay.portal.service.persistence;
24
25
26
39 public class UserGroupGroupRoleUtil {
40 public static void cacheResult(
41 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole) {
42 getPersistence().cacheResult(userGroupGroupRole);
43 }
44
45 public static void cacheResult(
46 java.util.List<com.liferay.portal.model.UserGroupGroupRole> userGroupGroupRoles) {
47 getPersistence().cacheResult(userGroupGroupRoles);
48 }
49
50 public static void clearCache() {
51 getPersistence().clearCache();
52 }
53
54 public static com.liferay.portal.model.UserGroupGroupRole create(
55 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) {
56 return getPersistence().create(userGroupGroupRolePK);
57 }
58
59 public static com.liferay.portal.model.UserGroupGroupRole remove(
60 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
61 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
62 com.liferay.portal.SystemException {
63 return getPersistence().remove(userGroupGroupRolePK);
64 }
65
66 public static com.liferay.portal.model.UserGroupGroupRole remove(
67 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
68 throws com.liferay.portal.SystemException {
69 return getPersistence().remove(userGroupGroupRole);
70 }
71
72
75 public static com.liferay.portal.model.UserGroupGroupRole update(
76 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole)
77 throws com.liferay.portal.SystemException {
78 return getPersistence().update(userGroupGroupRole);
79 }
80
81
93 public static com.liferay.portal.model.UserGroupGroupRole update(
94 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
95 boolean merge) throws com.liferay.portal.SystemException {
96 return getPersistence().update(userGroupGroupRole, merge);
97 }
98
99 public static com.liferay.portal.model.UserGroupGroupRole updateImpl(
100 com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
101 boolean merge) throws com.liferay.portal.SystemException {
102 return getPersistence().updateImpl(userGroupGroupRole, merge);
103 }
104
105 public static com.liferay.portal.model.UserGroupGroupRole findByPrimaryKey(
106 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
107 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
108 com.liferay.portal.SystemException {
109 return getPersistence().findByPrimaryKey(userGroupGroupRolePK);
110 }
111
112 public static com.liferay.portal.model.UserGroupGroupRole fetchByPrimaryKey(
113 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
114 throws com.liferay.portal.SystemException {
115 return getPersistence().fetchByPrimaryKey(userGroupGroupRolePK);
116 }
117
118 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
119 long userGroupId) throws com.liferay.portal.SystemException {
120 return getPersistence().findByUserGroupId(userGroupId);
121 }
122
123 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
124 long userGroupId, int start, int end)
125 throws com.liferay.portal.SystemException {
126 return getPersistence().findByUserGroupId(userGroupId, start, end);
127 }
128
129 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
130 long userGroupId, int start, int end,
131 com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws com.liferay.portal.SystemException {
133 return getPersistence().findByUserGroupId(userGroupId, start, end, obc);
134 }
135
136 public static com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_First(
137 long userGroupId, com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
139 com.liferay.portal.SystemException {
140 return getPersistence().findByUserGroupId_First(userGroupId, obc);
141 }
142
143 public static com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_Last(
144 long userGroupId, com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
146 com.liferay.portal.SystemException {
147 return getPersistence().findByUserGroupId_Last(userGroupId, obc);
148 }
149
150 public static com.liferay.portal.model.UserGroupGroupRole[] findByUserGroupId_PrevAndNext(
151 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
152 long userGroupId, com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
154 com.liferay.portal.SystemException {
155 return getPersistence()
156 .findByUserGroupId_PrevAndNext(userGroupGroupRolePK,
157 userGroupId, obc);
158 }
159
160 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
161 long groupId) throws com.liferay.portal.SystemException {
162 return getPersistence().findByGroupId(groupId);
163 }
164
165 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
166 long groupId, int start, int end)
167 throws com.liferay.portal.SystemException {
168 return getPersistence().findByGroupId(groupId, start, end);
169 }
170
171 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
172 long groupId, int start, int end,
173 com.liferay.portal.kernel.util.OrderByComparator obc)
174 throws com.liferay.portal.SystemException {
175 return getPersistence().findByGroupId(groupId, start, end, obc);
176 }
177
178 public static com.liferay.portal.model.UserGroupGroupRole findByGroupId_First(
179 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
181 com.liferay.portal.SystemException {
182 return getPersistence().findByGroupId_First(groupId, obc);
183 }
184
185 public static com.liferay.portal.model.UserGroupGroupRole findByGroupId_Last(
186 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
187 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
188 com.liferay.portal.SystemException {
189 return getPersistence().findByGroupId_Last(groupId, obc);
190 }
191
192 public static com.liferay.portal.model.UserGroupGroupRole[] findByGroupId_PrevAndNext(
193 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
194 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
195 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
196 com.liferay.portal.SystemException {
197 return getPersistence()
198 .findByGroupId_PrevAndNext(userGroupGroupRolePK, groupId, obc);
199 }
200
201 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
202 long roleId) throws com.liferay.portal.SystemException {
203 return getPersistence().findByRoleId(roleId);
204 }
205
206 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
207 long roleId, int start, int end)
208 throws com.liferay.portal.SystemException {
209 return getPersistence().findByRoleId(roleId, start, end);
210 }
211
212 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
213 long roleId, int start, int end,
214 com.liferay.portal.kernel.util.OrderByComparator obc)
215 throws com.liferay.portal.SystemException {
216 return getPersistence().findByRoleId(roleId, start, end, obc);
217 }
218
219 public static com.liferay.portal.model.UserGroupGroupRole findByRoleId_First(
220 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
221 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
222 com.liferay.portal.SystemException {
223 return getPersistence().findByRoleId_First(roleId, obc);
224 }
225
226 public static com.liferay.portal.model.UserGroupGroupRole findByRoleId_Last(
227 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
228 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
229 com.liferay.portal.SystemException {
230 return getPersistence().findByRoleId_Last(roleId, obc);
231 }
232
233 public static com.liferay.portal.model.UserGroupGroupRole[] findByRoleId_PrevAndNext(
234 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
235 long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
236 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
237 com.liferay.portal.SystemException {
238 return getPersistence()
239 .findByRoleId_PrevAndNext(userGroupGroupRolePK, roleId, obc);
240 }
241
242 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
243 long userGroupId, long groupId)
244 throws com.liferay.portal.SystemException {
245 return getPersistence().findByU_G(userGroupId, groupId);
246 }
247
248 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
249 long userGroupId, long groupId, int start, int end)
250 throws com.liferay.portal.SystemException {
251 return getPersistence().findByU_G(userGroupId, groupId, start, end);
252 }
253
254 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
255 long userGroupId, long groupId, int start, int end,
256 com.liferay.portal.kernel.util.OrderByComparator obc)
257 throws com.liferay.portal.SystemException {
258 return getPersistence().findByU_G(userGroupId, groupId, start, end, obc);
259 }
260
261 public static com.liferay.portal.model.UserGroupGroupRole findByU_G_First(
262 long userGroupId, long groupId,
263 com.liferay.portal.kernel.util.OrderByComparator obc)
264 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
265 com.liferay.portal.SystemException {
266 return getPersistence().findByU_G_First(userGroupId, groupId, obc);
267 }
268
269 public static com.liferay.portal.model.UserGroupGroupRole findByU_G_Last(
270 long userGroupId, long groupId,
271 com.liferay.portal.kernel.util.OrderByComparator obc)
272 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
273 com.liferay.portal.SystemException {
274 return getPersistence().findByU_G_Last(userGroupId, groupId, obc);
275 }
276
277 public static com.liferay.portal.model.UserGroupGroupRole[] findByU_G_PrevAndNext(
278 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
279 long userGroupId, long groupId,
280 com.liferay.portal.kernel.util.OrderByComparator obc)
281 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
282 com.liferay.portal.SystemException {
283 return getPersistence()
284 .findByU_G_PrevAndNext(userGroupGroupRolePK, userGroupId,
285 groupId, obc);
286 }
287
288 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
289 long groupId, long roleId) throws com.liferay.portal.SystemException {
290 return getPersistence().findByG_R(groupId, roleId);
291 }
292
293 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
294 long groupId, long roleId, int start, int end)
295 throws com.liferay.portal.SystemException {
296 return getPersistence().findByG_R(groupId, roleId, start, end);
297 }
298
299 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
300 long groupId, long roleId, int start, int end,
301 com.liferay.portal.kernel.util.OrderByComparator obc)
302 throws com.liferay.portal.SystemException {
303 return getPersistence().findByG_R(groupId, roleId, start, end, obc);
304 }
305
306 public static com.liferay.portal.model.UserGroupGroupRole findByG_R_First(
307 long groupId, long roleId,
308 com.liferay.portal.kernel.util.OrderByComparator obc)
309 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
310 com.liferay.portal.SystemException {
311 return getPersistence().findByG_R_First(groupId, roleId, obc);
312 }
313
314 public static com.liferay.portal.model.UserGroupGroupRole findByG_R_Last(
315 long groupId, long roleId,
316 com.liferay.portal.kernel.util.OrderByComparator obc)
317 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
318 com.liferay.portal.SystemException {
319 return getPersistence().findByG_R_Last(groupId, roleId, obc);
320 }
321
322 public static com.liferay.portal.model.UserGroupGroupRole[] findByG_R_PrevAndNext(
323 com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
324 long groupId, long roleId,
325 com.liferay.portal.kernel.util.OrderByComparator obc)
326 throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
327 com.liferay.portal.SystemException {
328 return getPersistence()
329 .findByG_R_PrevAndNext(userGroupGroupRolePK, groupId,
330 roleId, obc);
331 }
332
333 public static java.util.List<Object> findWithDynamicQuery(
334 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
335 throws com.liferay.portal.SystemException {
336 return getPersistence().findWithDynamicQuery(dynamicQuery);
337 }
338
339 public static java.util.List<Object> findWithDynamicQuery(
340 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
341 int end) throws com.liferay.portal.SystemException {
342 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
343 }
344
345 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll()
346 throws com.liferay.portal.SystemException {
347 return getPersistence().findAll();
348 }
349
350 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll(
351 int start, int end) throws com.liferay.portal.SystemException {
352 return getPersistence().findAll(start, end);
353 }
354
355 public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll(
356 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
357 throws com.liferay.portal.SystemException {
358 return getPersistence().findAll(start, end, obc);
359 }
360
361 public static void removeByUserGroupId(long userGroupId)
362 throws com.liferay.portal.SystemException {
363 getPersistence().removeByUserGroupId(userGroupId);
364 }
365
366 public static void removeByGroupId(long groupId)
367 throws com.liferay.portal.SystemException {
368 getPersistence().removeByGroupId(groupId);
369 }
370
371 public static void removeByRoleId(long roleId)
372 throws com.liferay.portal.SystemException {
373 getPersistence().removeByRoleId(roleId);
374 }
375
376 public static void removeByU_G(long userGroupId, long groupId)
377 throws com.liferay.portal.SystemException {
378 getPersistence().removeByU_G(userGroupId, groupId);
379 }
380
381 public static void removeByG_R(long groupId, long roleId)
382 throws com.liferay.portal.SystemException {
383 getPersistence().removeByG_R(groupId, roleId);
384 }
385
386 public static void removeAll() throws com.liferay.portal.SystemException {
387 getPersistence().removeAll();
388 }
389
390 public static int countByUserGroupId(long userGroupId)
391 throws com.liferay.portal.SystemException {
392 return getPersistence().countByUserGroupId(userGroupId);
393 }
394
395 public static int countByGroupId(long groupId)
396 throws com.liferay.portal.SystemException {
397 return getPersistence().countByGroupId(groupId);
398 }
399
400 public static int countByRoleId(long roleId)
401 throws com.liferay.portal.SystemException {
402 return getPersistence().countByRoleId(roleId);
403 }
404
405 public static int countByU_G(long userGroupId, long groupId)
406 throws com.liferay.portal.SystemException {
407 return getPersistence().countByU_G(userGroupId, groupId);
408 }
409
410 public static int countByG_R(long groupId, long roleId)
411 throws com.liferay.portal.SystemException {
412 return getPersistence().countByG_R(groupId, roleId);
413 }
414
415 public static int countAll() throws com.liferay.portal.SystemException {
416 return getPersistence().countAll();
417 }
418
419 public static UserGroupGroupRolePersistence getPersistence() {
420 return _persistence;
421 }
422
423 public void setPersistence(UserGroupGroupRolePersistence persistence) {
424 _persistence = persistence;
425 }
426
427 private static UserGroupGroupRolePersistence _persistence;
428 }