001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.model.UserGroupGroupRole;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the user group group role service. This utility wraps {@link UserGroupGroupRolePersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
029     *
030     * <p>
031     * Caching information and settings can be found in <code>portal.properties</code>
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see UserGroupGroupRolePersistence
036     * @see UserGroupGroupRolePersistenceImpl
037     * @generated
038     */
039    public class UserGroupGroupRoleUtil {
040            /*
041             * NOTE FOR DEVELOPERS:
042             *
043             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
044             */
045    
046            /**
047             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
048             */
049            public static void clearCache() {
050                    getPersistence().clearCache();
051            }
052    
053            /**
054             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
055             */
056            public static void clearCache(UserGroupGroupRole userGroupGroupRole) {
057                    getPersistence().clearCache(userGroupGroupRole);
058            }
059    
060            /**
061             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
062             */
063            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
064                    throws SystemException {
065                    return getPersistence().countWithDynamicQuery(dynamicQuery);
066            }
067    
068            /**
069             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
070             */
071            public static List<UserGroupGroupRole> findWithDynamicQuery(
072                    DynamicQuery dynamicQuery) throws SystemException {
073                    return getPersistence().findWithDynamicQuery(dynamicQuery);
074            }
075    
076            /**
077             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
078             */
079            public static List<UserGroupGroupRole> findWithDynamicQuery(
080                    DynamicQuery dynamicQuery, int start, int end)
081                    throws SystemException {
082                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
083            }
084    
085            /**
086             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
087             */
088            public static List<UserGroupGroupRole> findWithDynamicQuery(
089                    DynamicQuery dynamicQuery, int start, int end,
090                    OrderByComparator orderByComparator) throws SystemException {
091                    return getPersistence()
092                                       .findWithDynamicQuery(dynamicQuery, start, end,
093                            orderByComparator);
094            }
095    
096            /**
097             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
098             */
099            public static UserGroupGroupRole update(
100                    UserGroupGroupRole userGroupGroupRole, boolean merge)
101                    throws SystemException {
102                    return getPersistence().update(userGroupGroupRole, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static UserGroupGroupRole update(
109                    UserGroupGroupRole userGroupGroupRole, boolean merge,
110                    ServiceContext serviceContext) throws SystemException {
111                    return getPersistence().update(userGroupGroupRole, merge, serviceContext);
112            }
113    
114            /**
115            * Caches the user group group role in the entity cache if it is enabled.
116            *
117            * @param userGroupGroupRole the user group group role
118            */
119            public static void cacheResult(
120                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole) {
121                    getPersistence().cacheResult(userGroupGroupRole);
122            }
123    
124            /**
125            * Caches the user group group roles in the entity cache if it is enabled.
126            *
127            * @param userGroupGroupRoles the user group group roles
128            */
129            public static void cacheResult(
130                    java.util.List<com.liferay.portal.model.UserGroupGroupRole> userGroupGroupRoles) {
131                    getPersistence().cacheResult(userGroupGroupRoles);
132            }
133    
134            /**
135            * Creates a new user group group role with the primary key. Does not add the user group group role to the database.
136            *
137            * @param userGroupGroupRolePK the primary key for the new user group group role
138            * @return the new user group group role
139            */
140            public static com.liferay.portal.model.UserGroupGroupRole create(
141                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK) {
142                    return getPersistence().create(userGroupGroupRolePK);
143            }
144    
145            /**
146            * Removes the user group group role with the primary key from the database. Also notifies the appropriate model listeners.
147            *
148            * @param userGroupGroupRolePK the primary key of the user group group role
149            * @return the user group group role that was removed
150            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public static com.liferay.portal.model.UserGroupGroupRole remove(
154                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
155                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
156                            com.liferay.portal.kernel.exception.SystemException {
157                    return getPersistence().remove(userGroupGroupRolePK);
158            }
159    
160            public static com.liferay.portal.model.UserGroupGroupRole updateImpl(
161                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
162                    boolean merge)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getPersistence().updateImpl(userGroupGroupRole, merge);
165            }
166    
167            /**
168            * Returns the user group group role with the primary key or throws a {@link com.liferay.portal.NoSuchUserGroupGroupRoleException} if it could not be found.
169            *
170            * @param userGroupGroupRolePK the primary key of the user group group role
171            * @return the user group group role
172            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public static com.liferay.portal.model.UserGroupGroupRole findByPrimaryKey(
176                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
177                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return getPersistence().findByPrimaryKey(userGroupGroupRolePK);
180            }
181    
182            /**
183            * Returns the user group group role with the primary key or returns <code>null</code> if it could not be found.
184            *
185            * @param userGroupGroupRolePK the primary key of the user group group role
186            * @return the user group group role, or <code>null</code> if a user group group role with the primary key could not be found
187            * @throws SystemException if a system exception occurred
188            */
189            public static com.liferay.portal.model.UserGroupGroupRole fetchByPrimaryKey(
190                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
191                    throws com.liferay.portal.kernel.exception.SystemException {
192                    return getPersistence().fetchByPrimaryKey(userGroupGroupRolePK);
193            }
194    
195            /**
196            * Returns all the user group group roles where userGroupId = &#63;.
197            *
198            * @param userGroupId the user group ID
199            * @return the matching user group group roles
200            * @throws SystemException if a system exception occurred
201            */
202            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
203                    long userGroupId)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getPersistence().findByUserGroupId(userGroupId);
206            }
207    
208            /**
209            * Returns a range of all the user group group roles where userGroupId = &#63;.
210            *
211            * <p>
212            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
213            * </p>
214            *
215            * @param userGroupId the user group ID
216            * @param start the lower bound of the range of user group group roles
217            * @param end the upper bound of the range of user group group roles (not inclusive)
218            * @return the range of matching user group group roles
219            * @throws SystemException if a system exception occurred
220            */
221            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
222                    long userGroupId, int start, int end)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return getPersistence().findByUserGroupId(userGroupId, start, end);
225            }
226    
227            /**
228            * Returns an ordered range of all the user group group roles where userGroupId = &#63;.
229            *
230            * <p>
231            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
232            * </p>
233            *
234            * @param userGroupId the user group ID
235            * @param start the lower bound of the range of user group group roles
236            * @param end the upper bound of the range of user group group roles (not inclusive)
237            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
238            * @return the ordered range of matching user group group roles
239            * @throws SystemException if a system exception occurred
240            */
241            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
242                    long userGroupId, int start, int end,
243                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return getPersistence()
246                                       .findByUserGroupId(userGroupId, start, end, orderByComparator);
247            }
248    
249            /**
250            * Returns the first user group group role in the ordered set where userGroupId = &#63;.
251            *
252            * @param userGroupId the user group ID
253            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
254            * @return the first matching user group group role
255            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
256            * @throws SystemException if a system exception occurred
257            */
258            public static com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_First(
259                    long userGroupId,
260                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
261                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    return getPersistence()
264                                       .findByUserGroupId_First(userGroupId, orderByComparator);
265            }
266    
267            /**
268            * Returns the first user group group role in the ordered set where userGroupId = &#63;.
269            *
270            * @param userGroupId the user group ID
271            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
272            * @return the first matching user group group role, or <code>null</code> if a matching user group group role could not be found
273            * @throws SystemException if a system exception occurred
274            */
275            public static com.liferay.portal.model.UserGroupGroupRole fetchByUserGroupId_First(
276                    long userGroupId,
277                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    return getPersistence()
280                                       .fetchByUserGroupId_First(userGroupId, orderByComparator);
281            }
282    
283            /**
284            * Returns the last user group group role in the ordered set where userGroupId = &#63;.
285            *
286            * @param userGroupId the user group ID
287            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
288            * @return the last matching user group group role
289            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
290            * @throws SystemException if a system exception occurred
291            */
292            public static com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_Last(
293                    long userGroupId,
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                                       .findByUserGroupId_Last(userGroupId, orderByComparator);
299            }
300    
301            /**
302            * Returns the last user group group role in the ordered set where userGroupId = &#63;.
303            *
304            * @param userGroupId the user group ID
305            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
306            * @return the last matching user group group role, or <code>null</code> if a matching user group group role could not be found
307            * @throws SystemException if a system exception occurred
308            */
309            public static com.liferay.portal.model.UserGroupGroupRole fetchByUserGroupId_Last(
310                    long userGroupId,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return getPersistence()
314                                       .fetchByUserGroupId_Last(userGroupId, orderByComparator);
315            }
316    
317            /**
318            * Returns the user group group roles before and after the current user group group role in the ordered set where userGroupId = &#63;.
319            *
320            * @param userGroupGroupRolePK the primary key of the current user group group role
321            * @param userGroupId the user group ID
322            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
323            * @return the previous, current, and next user group group role
324            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found
325            * @throws SystemException if a system exception occurred
326            */
327            public static com.liferay.portal.model.UserGroupGroupRole[] findByUserGroupId_PrevAndNext(
328                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
329                    long userGroupId,
330                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
331                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    return getPersistence()
334                                       .findByUserGroupId_PrevAndNext(userGroupGroupRolePK,
335                            userGroupId, orderByComparator);
336            }
337    
338            /**
339            * Returns all the user group group roles where groupId = &#63;.
340            *
341            * @param groupId the group ID
342            * @return the matching user group group roles
343            * @throws SystemException if a system exception occurred
344            */
345            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
346                    long groupId)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    return getPersistence().findByGroupId(groupId);
349            }
350    
351            /**
352            * Returns a range of all the user group group roles where groupId = &#63;.
353            *
354            * <p>
355            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
356            * </p>
357            *
358            * @param groupId the group ID
359            * @param start the lower bound of the range of user group group roles
360            * @param end the upper bound of the range of user group group roles (not inclusive)
361            * @return the range of matching user group group roles
362            * @throws SystemException if a system exception occurred
363            */
364            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
365                    long groupId, int start, int end)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return getPersistence().findByGroupId(groupId, start, end);
368            }
369    
370            /**
371            * Returns an ordered range of all the user group group roles where groupId = &#63;.
372            *
373            * <p>
374            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
375            * </p>
376            *
377            * @param groupId the group ID
378            * @param start the lower bound of the range of user group group roles
379            * @param end the upper bound of the range of user group group roles (not inclusive)
380            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
381            * @return the ordered range of matching user group group roles
382            * @throws SystemException if a system exception occurred
383            */
384            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
385                    long groupId, int start, int end,
386                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return getPersistence()
389                                       .findByGroupId(groupId, start, end, orderByComparator);
390            }
391    
392            /**
393            * Returns the first user group group role in the ordered set where groupId = &#63;.
394            *
395            * @param groupId the group ID
396            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
397            * @return the first matching user group group role
398            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
399            * @throws SystemException if a system exception occurred
400            */
401            public static com.liferay.portal.model.UserGroupGroupRole findByGroupId_First(
402                    long groupId,
403                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
404                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
405                            com.liferay.portal.kernel.exception.SystemException {
406                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
407            }
408    
409            /**
410            * Returns the first user group group role in the ordered set where groupId = &#63;.
411            *
412            * @param groupId the group ID
413            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
414            * @return the first matching user group group role, or <code>null</code> if a matching user group group role could not be found
415            * @throws SystemException if a system exception occurred
416            */
417            public static com.liferay.portal.model.UserGroupGroupRole fetchByGroupId_First(
418                    long groupId,
419                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
420                    throws com.liferay.portal.kernel.exception.SystemException {
421                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
422            }
423    
424            /**
425            * Returns the last user group group role in the ordered set where groupId = &#63;.
426            *
427            * @param groupId the group ID
428            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
429            * @return the last matching user group group role
430            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
431            * @throws SystemException if a system exception occurred
432            */
433            public static com.liferay.portal.model.UserGroupGroupRole findByGroupId_Last(
434                    long groupId,
435                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
436                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
437                            com.liferay.portal.kernel.exception.SystemException {
438                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
439            }
440    
441            /**
442            * Returns the last user group group role in the ordered set where groupId = &#63;.
443            *
444            * @param groupId the group ID
445            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
446            * @return the last matching user group group role, or <code>null</code> if a matching user group group role could not be found
447            * @throws SystemException if a system exception occurred
448            */
449            public static com.liferay.portal.model.UserGroupGroupRole fetchByGroupId_Last(
450                    long groupId,
451                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
452                    throws com.liferay.portal.kernel.exception.SystemException {
453                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
454            }
455    
456            /**
457            * Returns the user group group roles before and after the current user group group role in the ordered set where groupId = &#63;.
458            *
459            * @param userGroupGroupRolePK the primary key of the current user group group role
460            * @param groupId the group ID
461            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
462            * @return the previous, current, and next user group group role
463            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found
464            * @throws SystemException if a system exception occurred
465            */
466            public static com.liferay.portal.model.UserGroupGroupRole[] findByGroupId_PrevAndNext(
467                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
468                    long groupId,
469                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
470                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
471                            com.liferay.portal.kernel.exception.SystemException {
472                    return getPersistence()
473                                       .findByGroupId_PrevAndNext(userGroupGroupRolePK, groupId,
474                            orderByComparator);
475            }
476    
477            /**
478            * Returns all the user group group roles where roleId = &#63;.
479            *
480            * @param roleId the role ID
481            * @return the matching user group group roles
482            * @throws SystemException if a system exception occurred
483            */
484            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
485                    long roleId) throws com.liferay.portal.kernel.exception.SystemException {
486                    return getPersistence().findByRoleId(roleId);
487            }
488    
489            /**
490            * Returns a range of all the user group group roles where roleId = &#63;.
491            *
492            * <p>
493            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
494            * </p>
495            *
496            * @param roleId the role ID
497            * @param start the lower bound of the range of user group group roles
498            * @param end the upper bound of the range of user group group roles (not inclusive)
499            * @return the range of matching user group group roles
500            * @throws SystemException if a system exception occurred
501            */
502            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
503                    long roleId, int start, int end)
504                    throws com.liferay.portal.kernel.exception.SystemException {
505                    return getPersistence().findByRoleId(roleId, start, end);
506            }
507    
508            /**
509            * Returns an ordered range of all the user group group roles where roleId = &#63;.
510            *
511            * <p>
512            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
513            * </p>
514            *
515            * @param roleId the role ID
516            * @param start the lower bound of the range of user group group roles
517            * @param end the upper bound of the range of user group group roles (not inclusive)
518            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
519            * @return the ordered range of matching user group group roles
520            * @throws SystemException if a system exception occurred
521            */
522            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
523                    long roleId, int start, int end,
524                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
525                    throws com.liferay.portal.kernel.exception.SystemException {
526                    return getPersistence()
527                                       .findByRoleId(roleId, start, end, orderByComparator);
528            }
529    
530            /**
531            * Returns the first user group group role in the ordered set where roleId = &#63;.
532            *
533            * @param roleId the role ID
534            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
535            * @return the first matching user group group role
536            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
537            * @throws SystemException if a system exception occurred
538            */
539            public static com.liferay.portal.model.UserGroupGroupRole findByRoleId_First(
540                    long roleId,
541                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
542                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
543                            com.liferay.portal.kernel.exception.SystemException {
544                    return getPersistence().findByRoleId_First(roleId, orderByComparator);
545            }
546    
547            /**
548            * Returns the first user group group role in the ordered set where roleId = &#63;.
549            *
550            * @param roleId the role ID
551            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
552            * @return the first matching user group group role, or <code>null</code> if a matching user group group role could not be found
553            * @throws SystemException if a system exception occurred
554            */
555            public static com.liferay.portal.model.UserGroupGroupRole fetchByRoleId_First(
556                    long roleId,
557                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
558                    throws com.liferay.portal.kernel.exception.SystemException {
559                    return getPersistence().fetchByRoleId_First(roleId, orderByComparator);
560            }
561    
562            /**
563            * Returns the last user group group role in the ordered set where roleId = &#63;.
564            *
565            * @param roleId the role ID
566            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
567            * @return the last matching user group group role
568            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
569            * @throws SystemException if a system exception occurred
570            */
571            public static com.liferay.portal.model.UserGroupGroupRole findByRoleId_Last(
572                    long roleId,
573                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
574                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
575                            com.liferay.portal.kernel.exception.SystemException {
576                    return getPersistence().findByRoleId_Last(roleId, orderByComparator);
577            }
578    
579            /**
580            * Returns the last user group group role in the ordered set where roleId = &#63;.
581            *
582            * @param roleId the role ID
583            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
584            * @return the last matching user group group role, or <code>null</code> if a matching user group group role could not be found
585            * @throws SystemException if a system exception occurred
586            */
587            public static com.liferay.portal.model.UserGroupGroupRole fetchByRoleId_Last(
588                    long roleId,
589                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
590                    throws com.liferay.portal.kernel.exception.SystemException {
591                    return getPersistence().fetchByRoleId_Last(roleId, orderByComparator);
592            }
593    
594            /**
595            * Returns the user group group roles before and after the current user group group role in the ordered set where roleId = &#63;.
596            *
597            * @param userGroupGroupRolePK the primary key of the current user group group role
598            * @param roleId the role ID
599            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
600            * @return the previous, current, and next user group group role
601            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found
602            * @throws SystemException if a system exception occurred
603            */
604            public static com.liferay.portal.model.UserGroupGroupRole[] findByRoleId_PrevAndNext(
605                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
606                    long roleId,
607                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
608                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
609                            com.liferay.portal.kernel.exception.SystemException {
610                    return getPersistence()
611                                       .findByRoleId_PrevAndNext(userGroupGroupRolePK, roleId,
612                            orderByComparator);
613            }
614    
615            /**
616            * Returns all the user group group roles where userGroupId = &#63; and groupId = &#63;.
617            *
618            * @param userGroupId the user group ID
619            * @param groupId the group ID
620            * @return the matching user group group roles
621            * @throws SystemException if a system exception occurred
622            */
623            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
624                    long userGroupId, long groupId)
625                    throws com.liferay.portal.kernel.exception.SystemException {
626                    return getPersistence().findByU_G(userGroupId, groupId);
627            }
628    
629            /**
630            * Returns a range of all the user group group roles where userGroupId = &#63; and groupId = &#63;.
631            *
632            * <p>
633            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
634            * </p>
635            *
636            * @param userGroupId the user group ID
637            * @param groupId the group ID
638            * @param start the lower bound of the range of user group group roles
639            * @param end the upper bound of the range of user group group roles (not inclusive)
640            * @return the range of matching user group group roles
641            * @throws SystemException if a system exception occurred
642            */
643            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
644                    long userGroupId, long groupId, int start, int end)
645                    throws com.liferay.portal.kernel.exception.SystemException {
646                    return getPersistence().findByU_G(userGroupId, groupId, start, end);
647            }
648    
649            /**
650            * Returns an ordered range of all the user group group roles where userGroupId = &#63; and groupId = &#63;.
651            *
652            * <p>
653            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
654            * </p>
655            *
656            * @param userGroupId the user group ID
657            * @param groupId the group ID
658            * @param start the lower bound of the range of user group group roles
659            * @param end the upper bound of the range of user group group roles (not inclusive)
660            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
661            * @return the ordered range of matching user group group roles
662            * @throws SystemException if a system exception occurred
663            */
664            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
665                    long userGroupId, long groupId, int start, int end,
666                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
667                    throws com.liferay.portal.kernel.exception.SystemException {
668                    return getPersistence()
669                                       .findByU_G(userGroupId, groupId, start, end,
670                            orderByComparator);
671            }
672    
673            /**
674            * Returns the first user group group role in the ordered set where userGroupId = &#63; and groupId = &#63;.
675            *
676            * @param userGroupId the user group ID
677            * @param groupId the group ID
678            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
679            * @return the first matching user group group role
680            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
681            * @throws SystemException if a system exception occurred
682            */
683            public static com.liferay.portal.model.UserGroupGroupRole findByU_G_First(
684                    long userGroupId, long groupId,
685                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
686                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
687                            com.liferay.portal.kernel.exception.SystemException {
688                    return getPersistence()
689                                       .findByU_G_First(userGroupId, groupId, orderByComparator);
690            }
691    
692            /**
693            * Returns the first user group group role in the ordered set where userGroupId = &#63; and groupId = &#63;.
694            *
695            * @param userGroupId the user group ID
696            * @param groupId the group ID
697            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
698            * @return the first matching user group group role, or <code>null</code> if a matching user group group role could not be found
699            * @throws SystemException if a system exception occurred
700            */
701            public static com.liferay.portal.model.UserGroupGroupRole fetchByU_G_First(
702                    long userGroupId, long groupId,
703                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
704                    throws com.liferay.portal.kernel.exception.SystemException {
705                    return getPersistence()
706                                       .fetchByU_G_First(userGroupId, groupId, orderByComparator);
707            }
708    
709            /**
710            * Returns the last user group group role in the ordered set where userGroupId = &#63; and groupId = &#63;.
711            *
712            * @param userGroupId the user group ID
713            * @param groupId the group ID
714            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
715            * @return the last matching user group group role
716            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
717            * @throws SystemException if a system exception occurred
718            */
719            public static com.liferay.portal.model.UserGroupGroupRole findByU_G_Last(
720                    long userGroupId, long groupId,
721                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
722                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
723                            com.liferay.portal.kernel.exception.SystemException {
724                    return getPersistence()
725                                       .findByU_G_Last(userGroupId, groupId, orderByComparator);
726            }
727    
728            /**
729            * Returns the last user group group role in the ordered set where userGroupId = &#63; and groupId = &#63;.
730            *
731            * @param userGroupId the user group ID
732            * @param groupId the group ID
733            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
734            * @return the last matching user group group role, or <code>null</code> if a matching user group group role could not be found
735            * @throws SystemException if a system exception occurred
736            */
737            public static com.liferay.portal.model.UserGroupGroupRole fetchByU_G_Last(
738                    long userGroupId, long groupId,
739                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
740                    throws com.liferay.portal.kernel.exception.SystemException {
741                    return getPersistence()
742                                       .fetchByU_G_Last(userGroupId, groupId, orderByComparator);
743            }
744    
745            /**
746            * Returns the user group group roles before and after the current user group group role in the ordered set where userGroupId = &#63; and groupId = &#63;.
747            *
748            * @param userGroupGroupRolePK the primary key of the current user group group role
749            * @param userGroupId the user group ID
750            * @param groupId the group ID
751            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
752            * @return the previous, current, and next user group group role
753            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found
754            * @throws SystemException if a system exception occurred
755            */
756            public static com.liferay.portal.model.UserGroupGroupRole[] findByU_G_PrevAndNext(
757                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
758                    long userGroupId, long groupId,
759                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
760                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
761                            com.liferay.portal.kernel.exception.SystemException {
762                    return getPersistence()
763                                       .findByU_G_PrevAndNext(userGroupGroupRolePK, userGroupId,
764                            groupId, orderByComparator);
765            }
766    
767            /**
768            * Returns all the user group group roles where groupId = &#63; and roleId = &#63;.
769            *
770            * @param groupId the group ID
771            * @param roleId the role ID
772            * @return the matching user group group roles
773            * @throws SystemException if a system exception occurred
774            */
775            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
776                    long groupId, long roleId)
777                    throws com.liferay.portal.kernel.exception.SystemException {
778                    return getPersistence().findByG_R(groupId, roleId);
779            }
780    
781            /**
782            * Returns a range of all the user group group roles where groupId = &#63; and roleId = &#63;.
783            *
784            * <p>
785            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
786            * </p>
787            *
788            * @param groupId the group ID
789            * @param roleId the role ID
790            * @param start the lower bound of the range of user group group roles
791            * @param end the upper bound of the range of user group group roles (not inclusive)
792            * @return the range of matching user group group roles
793            * @throws SystemException if a system exception occurred
794            */
795            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
796                    long groupId, long roleId, int start, int end)
797                    throws com.liferay.portal.kernel.exception.SystemException {
798                    return getPersistence().findByG_R(groupId, roleId, start, end);
799            }
800    
801            /**
802            * Returns an ordered range of all the user group group roles where groupId = &#63; and roleId = &#63;.
803            *
804            * <p>
805            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
806            * </p>
807            *
808            * @param groupId the group ID
809            * @param roleId the role ID
810            * @param start the lower bound of the range of user group group roles
811            * @param end the upper bound of the range of user group group roles (not inclusive)
812            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
813            * @return the ordered range of matching user group group roles
814            * @throws SystemException if a system exception occurred
815            */
816            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
817                    long groupId, long roleId, int start, int end,
818                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
819                    throws com.liferay.portal.kernel.exception.SystemException {
820                    return getPersistence()
821                                       .findByG_R(groupId, roleId, start, end, orderByComparator);
822            }
823    
824            /**
825            * Returns the first user group group role in the ordered set where groupId = &#63; and roleId = &#63;.
826            *
827            * @param groupId the group ID
828            * @param roleId the role ID
829            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
830            * @return the first matching user group group role
831            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
832            * @throws SystemException if a system exception occurred
833            */
834            public static com.liferay.portal.model.UserGroupGroupRole findByG_R_First(
835                    long groupId, long roleId,
836                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
837                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
838                            com.liferay.portal.kernel.exception.SystemException {
839                    return getPersistence()
840                                       .findByG_R_First(groupId, roleId, orderByComparator);
841            }
842    
843            /**
844            * Returns the first user group group role in the ordered set where groupId = &#63; and roleId = &#63;.
845            *
846            * @param groupId the group ID
847            * @param roleId the role ID
848            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
849            * @return the first matching user group group role, or <code>null</code> if a matching user group group role could not be found
850            * @throws SystemException if a system exception occurred
851            */
852            public static com.liferay.portal.model.UserGroupGroupRole fetchByG_R_First(
853                    long groupId, long roleId,
854                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
855                    throws com.liferay.portal.kernel.exception.SystemException {
856                    return getPersistence()
857                                       .fetchByG_R_First(groupId, roleId, orderByComparator);
858            }
859    
860            /**
861            * Returns the last user group group role in the ordered set where groupId = &#63; and roleId = &#63;.
862            *
863            * @param groupId the group ID
864            * @param roleId the role ID
865            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
866            * @return the last matching user group group role
867            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
868            * @throws SystemException if a system exception occurred
869            */
870            public static com.liferay.portal.model.UserGroupGroupRole findByG_R_Last(
871                    long groupId, long roleId,
872                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
873                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
874                            com.liferay.portal.kernel.exception.SystemException {
875                    return getPersistence()
876                                       .findByG_R_Last(groupId, roleId, orderByComparator);
877            }
878    
879            /**
880            * Returns the last user group group role in the ordered set where groupId = &#63; and roleId = &#63;.
881            *
882            * @param groupId the group ID
883            * @param roleId the role ID
884            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
885            * @return the last matching user group group role, or <code>null</code> if a matching user group group role could not be found
886            * @throws SystemException if a system exception occurred
887            */
888            public static com.liferay.portal.model.UserGroupGroupRole fetchByG_R_Last(
889                    long groupId, long roleId,
890                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
891                    throws com.liferay.portal.kernel.exception.SystemException {
892                    return getPersistence()
893                                       .fetchByG_R_Last(groupId, roleId, orderByComparator);
894            }
895    
896            /**
897            * Returns the user group group roles before and after the current user group group role in the ordered set where groupId = &#63; and roleId = &#63;.
898            *
899            * @param userGroupGroupRolePK the primary key of the current user group group role
900            * @param groupId the group ID
901            * @param roleId the role ID
902            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
903            * @return the previous, current, and next user group group role
904            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found
905            * @throws SystemException if a system exception occurred
906            */
907            public static com.liferay.portal.model.UserGroupGroupRole[] findByG_R_PrevAndNext(
908                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
909                    long groupId, long roleId,
910                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
911                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
912                            com.liferay.portal.kernel.exception.SystemException {
913                    return getPersistence()
914                                       .findByG_R_PrevAndNext(userGroupGroupRolePK, groupId,
915                            roleId, orderByComparator);
916            }
917    
918            /**
919            * Returns all the user group group roles.
920            *
921            * @return the user group group roles
922            * @throws SystemException if a system exception occurred
923            */
924            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll()
925                    throws com.liferay.portal.kernel.exception.SystemException {
926                    return getPersistence().findAll();
927            }
928    
929            /**
930            * Returns a range of all the user group group roles.
931            *
932            * <p>
933            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
934            * </p>
935            *
936            * @param start the lower bound of the range of user group group roles
937            * @param end the upper bound of the range of user group group roles (not inclusive)
938            * @return the range of user group group roles
939            * @throws SystemException if a system exception occurred
940            */
941            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll(
942                    int start, int end)
943                    throws com.liferay.portal.kernel.exception.SystemException {
944                    return getPersistence().findAll(start, end);
945            }
946    
947            /**
948            * Returns an ordered range of all the user group group roles.
949            *
950            * <p>
951            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
952            * </p>
953            *
954            * @param start the lower bound of the range of user group group roles
955            * @param end the upper bound of the range of user group group roles (not inclusive)
956            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
957            * @return the ordered range of user group group roles
958            * @throws SystemException if a system exception occurred
959            */
960            public static java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll(
961                    int start, int end,
962                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
963                    throws com.liferay.portal.kernel.exception.SystemException {
964                    return getPersistence().findAll(start, end, orderByComparator);
965            }
966    
967            /**
968            * Removes all the user group group roles where userGroupId = &#63; from the database.
969            *
970            * @param userGroupId the user group ID
971            * @throws SystemException if a system exception occurred
972            */
973            public static void removeByUserGroupId(long userGroupId)
974                    throws com.liferay.portal.kernel.exception.SystemException {
975                    getPersistence().removeByUserGroupId(userGroupId);
976            }
977    
978            /**
979            * Removes all the user group group roles where groupId = &#63; from the database.
980            *
981            * @param groupId the group ID
982            * @throws SystemException if a system exception occurred
983            */
984            public static void removeByGroupId(long groupId)
985                    throws com.liferay.portal.kernel.exception.SystemException {
986                    getPersistence().removeByGroupId(groupId);
987            }
988    
989            /**
990            * Removes all the user group group roles where roleId = &#63; from the database.
991            *
992            * @param roleId the role ID
993            * @throws SystemException if a system exception occurred
994            */
995            public static void removeByRoleId(long roleId)
996                    throws com.liferay.portal.kernel.exception.SystemException {
997                    getPersistence().removeByRoleId(roleId);
998            }
999    
1000            /**
1001            * Removes all the user group group roles where userGroupId = &#63; and groupId = &#63; from the database.
1002            *
1003            * @param userGroupId the user group ID
1004            * @param groupId the group ID
1005            * @throws SystemException if a system exception occurred
1006            */
1007            public static void removeByU_G(long userGroupId, long groupId)
1008                    throws com.liferay.portal.kernel.exception.SystemException {
1009                    getPersistence().removeByU_G(userGroupId, groupId);
1010            }
1011    
1012            /**
1013            * Removes all the user group group roles where groupId = &#63; and roleId = &#63; from the database.
1014            *
1015            * @param groupId the group ID
1016            * @param roleId the role ID
1017            * @throws SystemException if a system exception occurred
1018            */
1019            public static void removeByG_R(long groupId, long roleId)
1020                    throws com.liferay.portal.kernel.exception.SystemException {
1021                    getPersistence().removeByG_R(groupId, roleId);
1022            }
1023    
1024            /**
1025            * Removes all the user group group roles from the database.
1026            *
1027            * @throws SystemException if a system exception occurred
1028            */
1029            public static void removeAll()
1030                    throws com.liferay.portal.kernel.exception.SystemException {
1031                    getPersistence().removeAll();
1032            }
1033    
1034            /**
1035            * Returns the number of user group group roles where userGroupId = &#63;.
1036            *
1037            * @param userGroupId the user group ID
1038            * @return the number of matching user group group roles
1039            * @throws SystemException if a system exception occurred
1040            */
1041            public static int countByUserGroupId(long userGroupId)
1042                    throws com.liferay.portal.kernel.exception.SystemException {
1043                    return getPersistence().countByUserGroupId(userGroupId);
1044            }
1045    
1046            /**
1047            * Returns the number of user group group roles where groupId = &#63;.
1048            *
1049            * @param groupId the group ID
1050            * @return the number of matching user group group roles
1051            * @throws SystemException if a system exception occurred
1052            */
1053            public static int countByGroupId(long groupId)
1054                    throws com.liferay.portal.kernel.exception.SystemException {
1055                    return getPersistence().countByGroupId(groupId);
1056            }
1057    
1058            /**
1059            * Returns the number of user group group roles where roleId = &#63;.
1060            *
1061            * @param roleId the role ID
1062            * @return the number of matching user group group roles
1063            * @throws SystemException if a system exception occurred
1064            */
1065            public static int countByRoleId(long roleId)
1066                    throws com.liferay.portal.kernel.exception.SystemException {
1067                    return getPersistence().countByRoleId(roleId);
1068            }
1069    
1070            /**
1071            * Returns the number of user group group roles where userGroupId = &#63; and groupId = &#63;.
1072            *
1073            * @param userGroupId the user group ID
1074            * @param groupId the group ID
1075            * @return the number of matching user group group roles
1076            * @throws SystemException if a system exception occurred
1077            */
1078            public static int countByU_G(long userGroupId, long groupId)
1079                    throws com.liferay.portal.kernel.exception.SystemException {
1080                    return getPersistence().countByU_G(userGroupId, groupId);
1081            }
1082    
1083            /**
1084            * Returns the number of user group group roles where groupId = &#63; and roleId = &#63;.
1085            *
1086            * @param groupId the group ID
1087            * @param roleId the role ID
1088            * @return the number of matching user group group roles
1089            * @throws SystemException if a system exception occurred
1090            */
1091            public static int countByG_R(long groupId, long roleId)
1092                    throws com.liferay.portal.kernel.exception.SystemException {
1093                    return getPersistence().countByG_R(groupId, roleId);
1094            }
1095    
1096            /**
1097            * Returns the number of user group group roles.
1098            *
1099            * @return the number of user group group roles
1100            * @throws SystemException if a system exception occurred
1101            */
1102            public static int countAll()
1103                    throws com.liferay.portal.kernel.exception.SystemException {
1104                    return getPersistence().countAll();
1105            }
1106    
1107            public static UserGroupGroupRolePersistence getPersistence() {
1108                    if (_persistence == null) {
1109                            _persistence = (UserGroupGroupRolePersistence)PortalBeanLocatorUtil.locate(UserGroupGroupRolePersistence.class.getName());
1110    
1111                            ReferenceRegistry.registerReference(UserGroupGroupRoleUtil.class,
1112                                    "_persistence");
1113                    }
1114    
1115                    return _persistence;
1116            }
1117    
1118            /**
1119             * @deprecated
1120             */
1121            public void setPersistence(UserGroupGroupRolePersistence persistence) {
1122            }
1123    
1124            private static UserGroupGroupRolePersistence _persistence;
1125    }