001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.UserGroupGroupRole;
018    
019    /**
020     * The persistence interface for the user group group role service.
021     *
022     * <p>
023     * Never modify or reference this interface directly. Always use {@link UserGroupGroupRoleUtil} to access the user group group role persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
024     * </p>
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see UserGroupGroupRolePersistenceImpl
032     * @see UserGroupGroupRoleUtil
033     * @generated
034     */
035    public interface UserGroupGroupRolePersistence extends BasePersistence<UserGroupGroupRole> {
036            /**
037            * Caches the user group group role in the entity cache if it is enabled.
038            *
039            * @param userGroupGroupRole the user group group role to cache
040            */
041            public void cacheResult(
042                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole);
043    
044            /**
045            * Caches the user group group roles in the entity cache if it is enabled.
046            *
047            * @param userGroupGroupRoles the user group group roles to cache
048            */
049            public void cacheResult(
050                    java.util.List<com.liferay.portal.model.UserGroupGroupRole> userGroupGroupRoles);
051    
052            /**
053            * Creates a new user group group role with the primary key. Does not add the user group group role to the database.
054            *
055            * @param userGroupGroupRolePK the primary key for the new user group group role
056            * @return the new user group group role
057            */
058            public com.liferay.portal.model.UserGroupGroupRole create(
059                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK);
060    
061            /**
062            * Removes the user group group role with the primary key from the database. Also notifies the appropriate model listeners.
063            *
064            * @param userGroupGroupRolePK the primary key of the user group group role to remove
065            * @return the user group group role that was removed
066            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found
067            * @throws SystemException if a system exception occurred
068            */
069            public com.liferay.portal.model.UserGroupGroupRole remove(
070                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
071                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            public com.liferay.portal.model.UserGroupGroupRole updateImpl(
075                    com.liferay.portal.model.UserGroupGroupRole userGroupGroupRole,
076                    boolean merge)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            /**
080            * Finds the user group group role with the primary key or throws a {@link com.liferay.portal.NoSuchUserGroupGroupRoleException} if it could not be found.
081            *
082            * @param userGroupGroupRolePK the primary key of the user group group role to find
083            * @return the user group group role
084            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found
085            * @throws SystemException if a system exception occurred
086            */
087            public com.liferay.portal.model.UserGroupGroupRole findByPrimaryKey(
088                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
089                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
090                            com.liferay.portal.kernel.exception.SystemException;
091    
092            /**
093            * Finds the user group group role with the primary key or returns <code>null</code> if it could not be found.
094            *
095            * @param userGroupGroupRolePK the primary key of the user group group role to find
096            * @return the user group group role, or <code>null</code> if a user group group role with the primary key could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portal.model.UserGroupGroupRole fetchByPrimaryKey(
100                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK)
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Finds all the user group group roles where userGroupId = &#63;.
105            *
106            * @param userGroupId the user group id to search with
107            * @return the matching user group group roles
108            * @throws SystemException if a system exception occurred
109            */
110            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
111                    long userGroupId)
112                    throws com.liferay.portal.kernel.exception.SystemException;
113    
114            /**
115            * Finds a range of all the user group group roles where userGroupId = &#63;.
116            *
117            * <p>
118            * 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.
119            * </p>
120            *
121            * @param userGroupId the user group id to search with
122            * @param start the lower bound of the range of user group group roles to return
123            * @param end the upper bound of the range of user group group roles to return (not inclusive)
124            * @return the range of matching user group group roles
125            * @throws SystemException if a system exception occurred
126            */
127            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
128                    long userGroupId, int start, int end)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            /**
132            * Finds an ordered range of all the user group group roles where userGroupId = &#63;.
133            *
134            * <p>
135            * 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.
136            * </p>
137            *
138            * @param userGroupId the user group id to search with
139            * @param start the lower bound of the range of user group group roles to return
140            * @param end the upper bound of the range of user group group roles to return (not inclusive)
141            * @param orderByComparator the comparator to order the results by
142            * @return the ordered range of matching user group group roles
143            * @throws SystemException if a system exception occurred
144            */
145            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByUserGroupId(
146                    long userGroupId, int start, int end,
147                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148                    throws com.liferay.portal.kernel.exception.SystemException;
149    
150            /**
151            * Finds the first user group group role in the ordered set where userGroupId = &#63;.
152            *
153            * <p>
154            * 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.
155            * </p>
156            *
157            * @param userGroupId the user group id to search with
158            * @param orderByComparator the comparator to order the set by
159            * @return the first matching user group group role
160            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_First(
164                    long userGroupId,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
167                            com.liferay.portal.kernel.exception.SystemException;
168    
169            /**
170            * Finds the last user group group role in the ordered set where userGroupId = &#63;.
171            *
172            * <p>
173            * 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.
174            * </p>
175            *
176            * @param userGroupId the user group id to search with
177            * @param orderByComparator the comparator to order the set by
178            * @return the last matching user group group role
179            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            public com.liferay.portal.model.UserGroupGroupRole findByUserGroupId_Last(
183                    long userGroupId,
184                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
185                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
186                            com.liferay.portal.kernel.exception.SystemException;
187    
188            /**
189            * Finds the user group group roles before and after the current user group group role in the ordered set where userGroupId = &#63;.
190            *
191            * <p>
192            * 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.
193            * </p>
194            *
195            * @param userGroupGroupRolePK the primary key of the current user group group role
196            * @param userGroupId the user group id to search with
197            * @param orderByComparator the comparator to order the set by
198            * @return the previous, current, and next user group group role
199            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public com.liferay.portal.model.UserGroupGroupRole[] findByUserGroupId_PrevAndNext(
203                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
204                    long userGroupId,
205                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
207                            com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Finds all the user group group roles where groupId = &#63;.
211            *
212            * @param groupId the group id to search with
213            * @return the matching user group group roles
214            * @throws SystemException if a system exception occurred
215            */
216            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
217                    long groupId)
218                    throws com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Finds a range of all the user group group roles where groupId = &#63;.
222            *
223            * <p>
224            * 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.
225            * </p>
226            *
227            * @param groupId the group id to search with
228            * @param start the lower bound of the range of user group group roles to return
229            * @param end the upper bound of the range of user group group roles to return (not inclusive)
230            * @return the range of matching user group group roles
231            * @throws SystemException if a system exception occurred
232            */
233            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
234                    long groupId, int start, int end)
235                    throws com.liferay.portal.kernel.exception.SystemException;
236    
237            /**
238            * Finds an ordered range of all the user group group roles where groupId = &#63;.
239            *
240            * <p>
241            * 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.
242            * </p>
243            *
244            * @param groupId the group id to search with
245            * @param start the lower bound of the range of user group group roles to return
246            * @param end the upper bound of the range of user group group roles to return (not inclusive)
247            * @param orderByComparator the comparator to order the results by
248            * @return the ordered range of matching user group group roles
249            * @throws SystemException if a system exception occurred
250            */
251            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByGroupId(
252                    long groupId, int start, int end,
253                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Finds the first user group group role in the ordered set where groupId = &#63;.
258            *
259            * <p>
260            * 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.
261            * </p>
262            *
263            * @param groupId the group id to search with
264            * @param orderByComparator the comparator to order the set by
265            * @return the first matching user group group role
266            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
267            * @throws SystemException if a system exception occurred
268            */
269            public com.liferay.portal.model.UserGroupGroupRole findByGroupId_First(
270                    long groupId,
271                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
273                            com.liferay.portal.kernel.exception.SystemException;
274    
275            /**
276            * Finds the last user group group role in the ordered set where groupId = &#63;.
277            *
278            * <p>
279            * 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.
280            * </p>
281            *
282            * @param groupId the group id to search with
283            * @param orderByComparator the comparator to order the set by
284            * @return the last matching user group group role
285            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
286            * @throws SystemException if a system exception occurred
287            */
288            public com.liferay.portal.model.UserGroupGroupRole findByGroupId_Last(
289                    long groupId,
290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
292                            com.liferay.portal.kernel.exception.SystemException;
293    
294            /**
295            * Finds the user group group roles before and after the current user group group role in the ordered set where groupId = &#63;.
296            *
297            * <p>
298            * 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.
299            * </p>
300            *
301            * @param userGroupGroupRolePK the primary key of the current user group group role
302            * @param groupId the group id to search with
303            * @param orderByComparator the comparator to order the set by
304            * @return the previous, current, and next user group group role
305            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found
306            * @throws SystemException if a system exception occurred
307            */
308            public com.liferay.portal.model.UserGroupGroupRole[] findByGroupId_PrevAndNext(
309                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
310                    long groupId,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
313                            com.liferay.portal.kernel.exception.SystemException;
314    
315            /**
316            * Finds all the user group group roles where roleId = &#63;.
317            *
318            * @param roleId the role id to search with
319            * @return the matching user group group roles
320            * @throws SystemException if a system exception occurred
321            */
322            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
323                    long roleId) throws com.liferay.portal.kernel.exception.SystemException;
324    
325            /**
326            * Finds a range of all the user group group roles where roleId = &#63;.
327            *
328            * <p>
329            * 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.
330            * </p>
331            *
332            * @param roleId the role id to search with
333            * @param start the lower bound of the range of user group group roles to return
334            * @param end the upper bound of the range of user group group roles to return (not inclusive)
335            * @return the range of matching user group group roles
336            * @throws SystemException if a system exception occurred
337            */
338            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
339                    long roleId, int start, int end)
340                    throws com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * Finds an ordered range of all the user group group roles where roleId = &#63;.
344            *
345            * <p>
346            * 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.
347            * </p>
348            *
349            * @param roleId the role id to search with
350            * @param start the lower bound of the range of user group group roles to return
351            * @param end the upper bound of the range of user group group roles to return (not inclusive)
352            * @param orderByComparator the comparator to order the results by
353            * @return the ordered range of matching user group group roles
354            * @throws SystemException if a system exception occurred
355            */
356            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByRoleId(
357                    long roleId, int start, int end,
358                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
359                    throws com.liferay.portal.kernel.exception.SystemException;
360    
361            /**
362            * Finds the first user group group role in the ordered set where roleId = &#63;.
363            *
364            * <p>
365            * 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.
366            * </p>
367            *
368            * @param roleId the role id to search with
369            * @param orderByComparator the comparator to order the set by
370            * @return the first matching user group group role
371            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
372            * @throws SystemException if a system exception occurred
373            */
374            public com.liferay.portal.model.UserGroupGroupRole findByRoleId_First(
375                    long roleId,
376                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
377                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
378                            com.liferay.portal.kernel.exception.SystemException;
379    
380            /**
381            * Finds the last user group group role in the ordered set where roleId = &#63;.
382            *
383            * <p>
384            * 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.
385            * </p>
386            *
387            * @param roleId the role id to search with
388            * @param orderByComparator the comparator to order the set by
389            * @return the last matching user group group role
390            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
391            * @throws SystemException if a system exception occurred
392            */
393            public com.liferay.portal.model.UserGroupGroupRole findByRoleId_Last(
394                    long roleId,
395                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
397                            com.liferay.portal.kernel.exception.SystemException;
398    
399            /**
400            * Finds the user group group roles before and after the current user group group role in the ordered set where roleId = &#63;.
401            *
402            * <p>
403            * 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.
404            * </p>
405            *
406            * @param userGroupGroupRolePK the primary key of the current user group group role
407            * @param roleId the role id to search with
408            * @param orderByComparator the comparator to order the set by
409            * @return the previous, current, and next user group group role
410            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found
411            * @throws SystemException if a system exception occurred
412            */
413            public com.liferay.portal.model.UserGroupGroupRole[] findByRoleId_PrevAndNext(
414                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
415                    long roleId,
416                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
417                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
418                            com.liferay.portal.kernel.exception.SystemException;
419    
420            /**
421            * Finds all the user group group roles where userGroupId = &#63; and groupId = &#63;.
422            *
423            * @param userGroupId the user group id to search with
424            * @param groupId the group id to search with
425            * @return the matching user group group roles
426            * @throws SystemException if a system exception occurred
427            */
428            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
429                    long userGroupId, long groupId)
430                    throws com.liferay.portal.kernel.exception.SystemException;
431    
432            /**
433            * Finds a range of all the user group group roles where userGroupId = &#63; and groupId = &#63;.
434            *
435            * <p>
436            * 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.
437            * </p>
438            *
439            * @param userGroupId the user group id to search with
440            * @param groupId the group id to search with
441            * @param start the lower bound of the range of user group group roles to return
442            * @param end the upper bound of the range of user group group roles to return (not inclusive)
443            * @return the range of matching user group group roles
444            * @throws SystemException if a system exception occurred
445            */
446            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
447                    long userGroupId, long groupId, int start, int end)
448                    throws com.liferay.portal.kernel.exception.SystemException;
449    
450            /**
451            * Finds an ordered range of all the user group group roles where userGroupId = &#63; and groupId = &#63;.
452            *
453            * <p>
454            * 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.
455            * </p>
456            *
457            * @param userGroupId the user group id to search with
458            * @param groupId the group id to search with
459            * @param start the lower bound of the range of user group group roles to return
460            * @param end the upper bound of the range of user group group roles to return (not inclusive)
461            * @param orderByComparator the comparator to order the results by
462            * @return the ordered range of matching user group group roles
463            * @throws SystemException if a system exception occurred
464            */
465            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByU_G(
466                    long userGroupId, long groupId, int start, int end,
467                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
468                    throws com.liferay.portal.kernel.exception.SystemException;
469    
470            /**
471            * Finds the first user group group role in the ordered set where userGroupId = &#63; and groupId = &#63;.
472            *
473            * <p>
474            * 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.
475            * </p>
476            *
477            * @param userGroupId the user group id to search with
478            * @param groupId the group id to search with
479            * @param orderByComparator the comparator to order the set by
480            * @return the first matching user group group role
481            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
482            * @throws SystemException if a system exception occurred
483            */
484            public com.liferay.portal.model.UserGroupGroupRole findByU_G_First(
485                    long userGroupId, long groupId,
486                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
487                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
488                            com.liferay.portal.kernel.exception.SystemException;
489    
490            /**
491            * Finds the last user group group role in the ordered set where userGroupId = &#63; and groupId = &#63;.
492            *
493            * <p>
494            * 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.
495            * </p>
496            *
497            * @param userGroupId the user group id to search with
498            * @param groupId the group id to search with
499            * @param orderByComparator the comparator to order the set by
500            * @return the last matching user group group role
501            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
502            * @throws SystemException if a system exception occurred
503            */
504            public com.liferay.portal.model.UserGroupGroupRole findByU_G_Last(
505                    long userGroupId, long groupId,
506                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
507                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
508                            com.liferay.portal.kernel.exception.SystemException;
509    
510            /**
511            * Finds the user group group roles before and after the current user group group role in the ordered set where userGroupId = &#63; and groupId = &#63;.
512            *
513            * <p>
514            * 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.
515            * </p>
516            *
517            * @param userGroupGroupRolePK the primary key of the current user group group role
518            * @param userGroupId the user group id to search with
519            * @param groupId the group id to search with
520            * @param orderByComparator the comparator to order the set by
521            * @return the previous, current, and next user group group role
522            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found
523            * @throws SystemException if a system exception occurred
524            */
525            public com.liferay.portal.model.UserGroupGroupRole[] findByU_G_PrevAndNext(
526                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
527                    long userGroupId, long groupId,
528                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
529                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
530                            com.liferay.portal.kernel.exception.SystemException;
531    
532            /**
533            * Finds all the user group group roles where groupId = &#63; and roleId = &#63;.
534            *
535            * @param groupId the group id to search with
536            * @param roleId the role id to search with
537            * @return the matching user group group roles
538            * @throws SystemException if a system exception occurred
539            */
540            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
541                    long groupId, long roleId)
542                    throws com.liferay.portal.kernel.exception.SystemException;
543    
544            /**
545            * Finds a range of all the user group group roles where groupId = &#63; and roleId = &#63;.
546            *
547            * <p>
548            * 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.
549            * </p>
550            *
551            * @param groupId the group id to search with
552            * @param roleId the role id to search with
553            * @param start the lower bound of the range of user group group roles to return
554            * @param end the upper bound of the range of user group group roles to return (not inclusive)
555            * @return the range of matching user group group roles
556            * @throws SystemException if a system exception occurred
557            */
558            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
559                    long groupId, long roleId, int start, int end)
560                    throws com.liferay.portal.kernel.exception.SystemException;
561    
562            /**
563            * Finds an ordered range of all the user group group roles where groupId = &#63; and roleId = &#63;.
564            *
565            * <p>
566            * 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.
567            * </p>
568            *
569            * @param groupId the group id to search with
570            * @param roleId the role id to search with
571            * @param start the lower bound of the range of user group group roles to return
572            * @param end the upper bound of the range of user group group roles to return (not inclusive)
573            * @param orderByComparator the comparator to order the results by
574            * @return the ordered range of matching user group group roles
575            * @throws SystemException if a system exception occurred
576            */
577            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findByG_R(
578                    long groupId, long roleId, int start, int end,
579                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
580                    throws com.liferay.portal.kernel.exception.SystemException;
581    
582            /**
583            * Finds the first user group group role in the ordered set where groupId = &#63; and roleId = &#63;.
584            *
585            * <p>
586            * 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.
587            * </p>
588            *
589            * @param groupId the group id to search with
590            * @param roleId the role id to search with
591            * @param orderByComparator the comparator to order the set by
592            * @return the first matching user group group role
593            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
594            * @throws SystemException if a system exception occurred
595            */
596            public com.liferay.portal.model.UserGroupGroupRole findByG_R_First(
597                    long groupId, long roleId,
598                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
599                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
600                            com.liferay.portal.kernel.exception.SystemException;
601    
602            /**
603            * Finds the last user group group role in the ordered set where groupId = &#63; and roleId = &#63;.
604            *
605            * <p>
606            * 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.
607            * </p>
608            *
609            * @param groupId the group id to search with
610            * @param roleId the role id to search with
611            * @param orderByComparator the comparator to order the set by
612            * @return the last matching user group group role
613            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a matching user group group role could not be found
614            * @throws SystemException if a system exception occurred
615            */
616            public com.liferay.portal.model.UserGroupGroupRole findByG_R_Last(
617                    long groupId, long roleId,
618                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
619                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
620                            com.liferay.portal.kernel.exception.SystemException;
621    
622            /**
623            * Finds the user group group roles before and after the current user group group role in the ordered set where groupId = &#63; and roleId = &#63;.
624            *
625            * <p>
626            * 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.
627            * </p>
628            *
629            * @param userGroupGroupRolePK the primary key of the current user group group role
630            * @param groupId the group id to search with
631            * @param roleId the role id to search with
632            * @param orderByComparator the comparator to order the set by
633            * @return the previous, current, and next user group group role
634            * @throws com.liferay.portal.NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found
635            * @throws SystemException if a system exception occurred
636            */
637            public com.liferay.portal.model.UserGroupGroupRole[] findByG_R_PrevAndNext(
638                    com.liferay.portal.service.persistence.UserGroupGroupRolePK userGroupGroupRolePK,
639                    long groupId, long roleId,
640                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
641                    throws com.liferay.portal.NoSuchUserGroupGroupRoleException,
642                            com.liferay.portal.kernel.exception.SystemException;
643    
644            /**
645            * Finds all the user group group roles.
646            *
647            * @return the user group group roles
648            * @throws SystemException if a system exception occurred
649            */
650            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll()
651                    throws com.liferay.portal.kernel.exception.SystemException;
652    
653            /**
654            * Finds a range of all the user group group roles.
655            *
656            * <p>
657            * 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.
658            * </p>
659            *
660            * @param start the lower bound of the range of user group group roles to return
661            * @param end the upper bound of the range of user group group roles to return (not inclusive)
662            * @return the range of user group group roles
663            * @throws SystemException if a system exception occurred
664            */
665            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll(
666                    int start, int end)
667                    throws com.liferay.portal.kernel.exception.SystemException;
668    
669            /**
670            * Finds an ordered range of all the user group group roles.
671            *
672            * <p>
673            * 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.
674            * </p>
675            *
676            * @param start the lower bound of the range of user group group roles to return
677            * @param end the upper bound of the range of user group group roles to return (not inclusive)
678            * @param orderByComparator the comparator to order the results by
679            * @return the ordered range of user group group roles
680            * @throws SystemException if a system exception occurred
681            */
682            public java.util.List<com.liferay.portal.model.UserGroupGroupRole> findAll(
683                    int start, int end,
684                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
685                    throws com.liferay.portal.kernel.exception.SystemException;
686    
687            /**
688            * Removes all the user group group roles where userGroupId = &#63; from the database.
689            *
690            * @param userGroupId the user group id to search with
691            * @throws SystemException if a system exception occurred
692            */
693            public void removeByUserGroupId(long userGroupId)
694                    throws com.liferay.portal.kernel.exception.SystemException;
695    
696            /**
697            * Removes all the user group group roles where groupId = &#63; from the database.
698            *
699            * @param groupId the group id to search with
700            * @throws SystemException if a system exception occurred
701            */
702            public void removeByGroupId(long groupId)
703                    throws com.liferay.portal.kernel.exception.SystemException;
704    
705            /**
706            * Removes all the user group group roles where roleId = &#63; from the database.
707            *
708            * @param roleId the role id to search with
709            * @throws SystemException if a system exception occurred
710            */
711            public void removeByRoleId(long roleId)
712                    throws com.liferay.portal.kernel.exception.SystemException;
713    
714            /**
715            * Removes all the user group group roles where userGroupId = &#63; and groupId = &#63; from the database.
716            *
717            * @param userGroupId the user group id to search with
718            * @param groupId the group id to search with
719            * @throws SystemException if a system exception occurred
720            */
721            public void removeByU_G(long userGroupId, long groupId)
722                    throws com.liferay.portal.kernel.exception.SystemException;
723    
724            /**
725            * Removes all the user group group roles where groupId = &#63; and roleId = &#63; from the database.
726            *
727            * @param groupId the group id to search with
728            * @param roleId the role id to search with
729            * @throws SystemException if a system exception occurred
730            */
731            public void removeByG_R(long groupId, long roleId)
732                    throws com.liferay.portal.kernel.exception.SystemException;
733    
734            /**
735            * Removes all the user group group roles from the database.
736            *
737            * @throws SystemException if a system exception occurred
738            */
739            public void removeAll()
740                    throws com.liferay.portal.kernel.exception.SystemException;
741    
742            /**
743            * Counts all the user group group roles where userGroupId = &#63;.
744            *
745            * @param userGroupId the user group id to search with
746            * @return the number of matching user group group roles
747            * @throws SystemException if a system exception occurred
748            */
749            public int countByUserGroupId(long userGroupId)
750                    throws com.liferay.portal.kernel.exception.SystemException;
751    
752            /**
753            * Counts all the user group group roles where groupId = &#63;.
754            *
755            * @param groupId the group id to search with
756            * @return the number of matching user group group roles
757            * @throws SystemException if a system exception occurred
758            */
759            public int countByGroupId(long groupId)
760                    throws com.liferay.portal.kernel.exception.SystemException;
761    
762            /**
763            * Counts all the user group group roles where roleId = &#63;.
764            *
765            * @param roleId the role id to search with
766            * @return the number of matching user group group roles
767            * @throws SystemException if a system exception occurred
768            */
769            public int countByRoleId(long roleId)
770                    throws com.liferay.portal.kernel.exception.SystemException;
771    
772            /**
773            * Counts all the user group group roles where userGroupId = &#63; and groupId = &#63;.
774            *
775            * @param userGroupId the user group id to search with
776            * @param groupId the group id to search with
777            * @return the number of matching user group group roles
778            * @throws SystemException if a system exception occurred
779            */
780            public int countByU_G(long userGroupId, long groupId)
781                    throws com.liferay.portal.kernel.exception.SystemException;
782    
783            /**
784            * Counts all the user group group roles where groupId = &#63; and roleId = &#63;.
785            *
786            * @param groupId the group id to search with
787            * @param roleId the role id to search with
788            * @return the number of matching user group group roles
789            * @throws SystemException if a system exception occurred
790            */
791            public int countByG_R(long groupId, long roleId)
792                    throws com.liferay.portal.kernel.exception.SystemException;
793    
794            /**
795            * Counts all the user group group roles.
796            *
797            * @return the number of user group group roles
798            * @throws SystemException if a system exception occurred
799            */
800            public int countAll()
801                    throws com.liferay.portal.kernel.exception.SystemException;
802    }