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