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