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