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