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