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.Group;
020    
021    /**
022     * The persistence interface for the group 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 GroupPersistenceImpl
030     * @see GroupUtil
031     * @generated
032     */
033    @ProviderType
034    public interface GroupPersistence extends BasePersistence<Group> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link GroupUtil} to access the group persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Returns all the groups where uuid = &#63;.
043            *
044            * @param uuid the uuid
045            * @return the matching groups
046            */
047            public java.util.List<com.liferay.portal.model.Group> findByUuid(
048                    java.lang.String uuid);
049    
050            /**
051            * Returns a range of all the groups where uuid = &#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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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 uuid the uuid
058            * @param start the lower bound of the range of groups
059            * @param end the upper bound of the range of groups (not inclusive)
060            * @return the range of matching groups
061            */
062            public java.util.List<com.liferay.portal.model.Group> findByUuid(
063                    java.lang.String uuid, int start, int end);
064    
065            /**
066            * Returns an ordered range of all the groups where uuid = &#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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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 uuid the uuid
073            * @param start the lower bound of the range of groups
074            * @param end the upper bound of the range of groups (not inclusive)
075            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
076            * @return the ordered range of matching groups
077            */
078            public java.util.List<com.liferay.portal.model.Group> findByUuid(
079                    java.lang.String uuid, int start, int end,
080                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
081    
082            /**
083            * Returns the first group in the ordered set where uuid = &#63;.
084            *
085            * @param uuid the uuid
086            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
087            * @return the first matching group
088            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
089            */
090            public com.liferay.portal.model.Group findByUuid_First(
091                    java.lang.String uuid,
092                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
093                    throws com.liferay.portal.NoSuchGroupException;
094    
095            /**
096            * Returns the first group in the ordered set where uuid = &#63;.
097            *
098            * @param uuid the uuid
099            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
100            * @return the first matching group, or <code>null</code> if a matching group could not be found
101            */
102            public com.liferay.portal.model.Group fetchByUuid_First(
103                    java.lang.String uuid,
104                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
105    
106            /**
107            * Returns the last group in the ordered set where uuid = &#63;.
108            *
109            * @param uuid the uuid
110            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
111            * @return the last matching group
112            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
113            */
114            public com.liferay.portal.model.Group findByUuid_Last(
115                    java.lang.String uuid,
116                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
117                    throws com.liferay.portal.NoSuchGroupException;
118    
119            /**
120            * Returns the last group in the ordered set where uuid = &#63;.
121            *
122            * @param uuid the uuid
123            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
124            * @return the last matching group, or <code>null</code> if a matching group could not be found
125            */
126            public com.liferay.portal.model.Group fetchByUuid_Last(
127                    java.lang.String uuid,
128                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
129    
130            /**
131            * Returns the groups before and after the current group in the ordered set where uuid = &#63;.
132            *
133            * @param groupId the primary key of the current group
134            * @param uuid the uuid
135            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
136            * @return the previous, current, and next group
137            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
138            */
139            public com.liferay.portal.model.Group[] findByUuid_PrevAndNext(
140                    long groupId, java.lang.String uuid,
141                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
142                    throws com.liferay.portal.NoSuchGroupException;
143    
144            /**
145            * Removes all the groups where uuid = &#63; from the database.
146            *
147            * @param uuid the uuid
148            */
149            public void removeByUuid(java.lang.String uuid);
150    
151            /**
152            * Returns the number of groups where uuid = &#63;.
153            *
154            * @param uuid the uuid
155            * @return the number of matching groups
156            */
157            public int countByUuid(java.lang.String uuid);
158    
159            /**
160            * Returns the group where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found.
161            *
162            * @param uuid the uuid
163            * @param groupId the group ID
164            * @return the matching group
165            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
166            */
167            public com.liferay.portal.model.Group findByUUID_G(java.lang.String uuid,
168                    long groupId) throws com.liferay.portal.NoSuchGroupException;
169    
170            /**
171            * Returns the group where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
172            *
173            * @param uuid the uuid
174            * @param groupId the group ID
175            * @return the matching group, or <code>null</code> if a matching group could not be found
176            */
177            public com.liferay.portal.model.Group fetchByUUID_G(java.lang.String uuid,
178                    long groupId);
179    
180            /**
181            * Returns the group where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
182            *
183            * @param uuid the uuid
184            * @param groupId the group ID
185            * @param retrieveFromCache whether to use the finder cache
186            * @return the matching group, or <code>null</code> if a matching group could not be found
187            */
188            public com.liferay.portal.model.Group fetchByUUID_G(java.lang.String uuid,
189                    long groupId, boolean retrieveFromCache);
190    
191            /**
192            * Removes the group where uuid = &#63; and groupId = &#63; from the database.
193            *
194            * @param uuid the uuid
195            * @param groupId the group ID
196            * @return the group that was removed
197            */
198            public com.liferay.portal.model.Group removeByUUID_G(
199                    java.lang.String uuid, long groupId)
200                    throws com.liferay.portal.NoSuchGroupException;
201    
202            /**
203            * Returns the number of groups where uuid = &#63; and groupId = &#63;.
204            *
205            * @param uuid the uuid
206            * @param groupId the group ID
207            * @return the number of matching groups
208            */
209            public int countByUUID_G(java.lang.String uuid, long groupId);
210    
211            /**
212            * Returns all the groups where uuid = &#63; and companyId = &#63;.
213            *
214            * @param uuid the uuid
215            * @param companyId the company ID
216            * @return the matching groups
217            */
218            public java.util.List<com.liferay.portal.model.Group> findByUuid_C(
219                    java.lang.String uuid, long companyId);
220    
221            /**
222            * Returns a range of all the groups where uuid = &#63; and companyId = &#63;.
223            *
224            * <p>
225            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
226            * </p>
227            *
228            * @param uuid the uuid
229            * @param companyId the company ID
230            * @param start the lower bound of the range of groups
231            * @param end the upper bound of the range of groups (not inclusive)
232            * @return the range of matching groups
233            */
234            public java.util.List<com.liferay.portal.model.Group> findByUuid_C(
235                    java.lang.String uuid, long companyId, int start, int end);
236    
237            /**
238            * Returns an ordered range of all the groups where uuid = &#63; and companyId = &#63;.
239            *
240            * <p>
241            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
242            * </p>
243            *
244            * @param uuid the uuid
245            * @param companyId the company ID
246            * @param start the lower bound of the range of groups
247            * @param end the upper bound of the range of groups (not inclusive)
248            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
249            * @return the ordered range of matching groups
250            */
251            public java.util.List<com.liferay.portal.model.Group> findByUuid_C(
252                    java.lang.String uuid, long companyId, int start, int end,
253                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
254    
255            /**
256            * Returns the first group in the ordered set where uuid = &#63; and companyId = &#63;.
257            *
258            * @param uuid the uuid
259            * @param companyId the company ID
260            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
261            * @return the first matching group
262            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
263            */
264            public com.liferay.portal.model.Group findByUuid_C_First(
265                    java.lang.String uuid, long companyId,
266                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
267                    throws com.liferay.portal.NoSuchGroupException;
268    
269            /**
270            * Returns the first group in the ordered set where uuid = &#63; and companyId = &#63;.
271            *
272            * @param uuid the uuid
273            * @param companyId the company ID
274            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
275            * @return the first matching group, or <code>null</code> if a matching group could not be found
276            */
277            public com.liferay.portal.model.Group fetchByUuid_C_First(
278                    java.lang.String uuid, long companyId,
279                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
280    
281            /**
282            * Returns the last group in the ordered set where uuid = &#63; and companyId = &#63;.
283            *
284            * @param uuid the uuid
285            * @param companyId the company ID
286            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
287            * @return the last matching group
288            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
289            */
290            public com.liferay.portal.model.Group findByUuid_C_Last(
291                    java.lang.String uuid, long companyId,
292                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
293                    throws com.liferay.portal.NoSuchGroupException;
294    
295            /**
296            * Returns the last group in the ordered set where uuid = &#63; and companyId = &#63;.
297            *
298            * @param uuid the uuid
299            * @param companyId the company ID
300            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
301            * @return the last matching group, or <code>null</code> if a matching group could not be found
302            */
303            public com.liferay.portal.model.Group fetchByUuid_C_Last(
304                    java.lang.String uuid, long companyId,
305                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
306    
307            /**
308            * Returns the groups before and after the current group in the ordered set where uuid = &#63; and companyId = &#63;.
309            *
310            * @param groupId the primary key of the current group
311            * @param uuid the uuid
312            * @param companyId the company ID
313            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
314            * @return the previous, current, and next group
315            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
316            */
317            public com.liferay.portal.model.Group[] findByUuid_C_PrevAndNext(
318                    long groupId, java.lang.String uuid, long companyId,
319                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
320                    throws com.liferay.portal.NoSuchGroupException;
321    
322            /**
323            * Removes all the groups where uuid = &#63; and companyId = &#63; from the database.
324            *
325            * @param uuid the uuid
326            * @param companyId the company ID
327            */
328            public void removeByUuid_C(java.lang.String uuid, long companyId);
329    
330            /**
331            * Returns the number of groups where uuid = &#63; and companyId = &#63;.
332            *
333            * @param uuid the uuid
334            * @param companyId the company ID
335            * @return the number of matching groups
336            */
337            public int countByUuid_C(java.lang.String uuid, long companyId);
338    
339            /**
340            * Returns all the groups where companyId = &#63;.
341            *
342            * @param companyId the company ID
343            * @return the matching groups
344            */
345            public java.util.List<com.liferay.portal.model.Group> findByCompanyId(
346                    long companyId);
347    
348            /**
349            * Returns a range of all the groups where companyId = &#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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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 companyId the company ID
356            * @param start the lower bound of the range of groups
357            * @param end the upper bound of the range of groups (not inclusive)
358            * @return the range of matching groups
359            */
360            public java.util.List<com.liferay.portal.model.Group> findByCompanyId(
361                    long companyId, int start, int end);
362    
363            /**
364            * Returns an ordered range of all the groups where companyId = &#63;.
365            *
366            * <p>
367            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
368            * </p>
369            *
370            * @param companyId the company ID
371            * @param start the lower bound of the range of groups
372            * @param end the upper bound of the range of groups (not inclusive)
373            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
374            * @return the ordered range of matching groups
375            */
376            public java.util.List<com.liferay.portal.model.Group> findByCompanyId(
377                    long companyId, int start, int end,
378                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
379    
380            /**
381            * Returns the first group in the ordered set where companyId = &#63;.
382            *
383            * @param companyId the company ID
384            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
385            * @return the first matching group
386            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
387            */
388            public com.liferay.portal.model.Group findByCompanyId_First(
389                    long companyId,
390                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
391                    throws com.liferay.portal.NoSuchGroupException;
392    
393            /**
394            * Returns the first group in the ordered set where companyId = &#63;.
395            *
396            * @param companyId the company ID
397            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
398            * @return the first matching group, or <code>null</code> if a matching group could not be found
399            */
400            public com.liferay.portal.model.Group fetchByCompanyId_First(
401                    long companyId,
402                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
403    
404            /**
405            * Returns the last group in the ordered set where companyId = &#63;.
406            *
407            * @param companyId the company ID
408            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
409            * @return the last matching group
410            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
411            */
412            public com.liferay.portal.model.Group findByCompanyId_Last(long companyId,
413                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
414                    throws com.liferay.portal.NoSuchGroupException;
415    
416            /**
417            * Returns the last group in the ordered set where companyId = &#63;.
418            *
419            * @param companyId the company ID
420            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
421            * @return the last matching group, or <code>null</code> if a matching group could not be found
422            */
423            public com.liferay.portal.model.Group fetchByCompanyId_Last(
424                    long companyId,
425                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
426    
427            /**
428            * Returns the groups before and after the current group in the ordered set where companyId = &#63;.
429            *
430            * @param groupId the primary key of the current group
431            * @param companyId the company ID
432            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
433            * @return the previous, current, and next group
434            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
435            */
436            public com.liferay.portal.model.Group[] findByCompanyId_PrevAndNext(
437                    long groupId, long companyId,
438                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
439                    throws com.liferay.portal.NoSuchGroupException;
440    
441            /**
442            * Removes all the groups where companyId = &#63; from the database.
443            *
444            * @param companyId the company ID
445            */
446            public void removeByCompanyId(long companyId);
447    
448            /**
449            * Returns the number of groups where companyId = &#63;.
450            *
451            * @param companyId the company ID
452            * @return the number of matching groups
453            */
454            public int countByCompanyId(long companyId);
455    
456            /**
457            * Returns the group where liveGroupId = &#63; or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found.
458            *
459            * @param liveGroupId the live group ID
460            * @return the matching group
461            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
462            */
463            public com.liferay.portal.model.Group findByLiveGroupId(long liveGroupId)
464                    throws com.liferay.portal.NoSuchGroupException;
465    
466            /**
467            * Returns the group where liveGroupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
468            *
469            * @param liveGroupId the live group ID
470            * @return the matching group, or <code>null</code> if a matching group could not be found
471            */
472            public com.liferay.portal.model.Group fetchByLiveGroupId(long liveGroupId);
473    
474            /**
475            * Returns the group where liveGroupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
476            *
477            * @param liveGroupId the live group ID
478            * @param retrieveFromCache whether to use the finder cache
479            * @return the matching group, or <code>null</code> if a matching group could not be found
480            */
481            public com.liferay.portal.model.Group fetchByLiveGroupId(long liveGroupId,
482                    boolean retrieveFromCache);
483    
484            /**
485            * Removes the group where liveGroupId = &#63; from the database.
486            *
487            * @param liveGroupId the live group ID
488            * @return the group that was removed
489            */
490            public com.liferay.portal.model.Group removeByLiveGroupId(long liveGroupId)
491                    throws com.liferay.portal.NoSuchGroupException;
492    
493            /**
494            * Returns the number of groups where liveGroupId = &#63;.
495            *
496            * @param liveGroupId the live group ID
497            * @return the number of matching groups
498            */
499            public int countByLiveGroupId(long liveGroupId);
500    
501            /**
502            * Returns all the groups where companyId = &#63; and classNameId = &#63;.
503            *
504            * @param companyId the company ID
505            * @param classNameId the class name ID
506            * @return the matching groups
507            */
508            public java.util.List<com.liferay.portal.model.Group> findByC_C(
509                    long companyId, long classNameId);
510    
511            /**
512            * Returns a range of all the groups where companyId = &#63; and classNameId = &#63;.
513            *
514            * <p>
515            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
516            * </p>
517            *
518            * @param companyId the company ID
519            * @param classNameId the class name ID
520            * @param start the lower bound of the range of groups
521            * @param end the upper bound of the range of groups (not inclusive)
522            * @return the range of matching groups
523            */
524            public java.util.List<com.liferay.portal.model.Group> findByC_C(
525                    long companyId, long classNameId, int start, int end);
526    
527            /**
528            * Returns an ordered range of all the groups where companyId = &#63; and classNameId = &#63;.
529            *
530            * <p>
531            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
532            * </p>
533            *
534            * @param companyId the company ID
535            * @param classNameId the class name ID
536            * @param start the lower bound of the range of groups
537            * @param end the upper bound of the range of groups (not inclusive)
538            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
539            * @return the ordered range of matching groups
540            */
541            public java.util.List<com.liferay.portal.model.Group> findByC_C(
542                    long companyId, long classNameId, int start, int end,
543                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
544    
545            /**
546            * Returns the first group in the ordered set where companyId = &#63; and classNameId = &#63;.
547            *
548            * @param companyId the company ID
549            * @param classNameId the class name ID
550            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
551            * @return the first matching group
552            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
553            */
554            public com.liferay.portal.model.Group findByC_C_First(long companyId,
555                    long classNameId,
556                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
557                    throws com.liferay.portal.NoSuchGroupException;
558    
559            /**
560            * Returns the first group in the ordered set where companyId = &#63; and classNameId = &#63;.
561            *
562            * @param companyId the company ID
563            * @param classNameId the class name ID
564            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
565            * @return the first matching group, or <code>null</code> if a matching group could not be found
566            */
567            public com.liferay.portal.model.Group fetchByC_C_First(long companyId,
568                    long classNameId,
569                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
570    
571            /**
572            * Returns the last group in the ordered set where companyId = &#63; and classNameId = &#63;.
573            *
574            * @param companyId the company ID
575            * @param classNameId the class name ID
576            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
577            * @return the last matching group
578            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
579            */
580            public com.liferay.portal.model.Group findByC_C_Last(long companyId,
581                    long classNameId,
582                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
583                    throws com.liferay.portal.NoSuchGroupException;
584    
585            /**
586            * Returns the last group in the ordered set where companyId = &#63; and classNameId = &#63;.
587            *
588            * @param companyId the company ID
589            * @param classNameId the class name ID
590            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
591            * @return the last matching group, or <code>null</code> if a matching group could not be found
592            */
593            public com.liferay.portal.model.Group fetchByC_C_Last(long companyId,
594                    long classNameId,
595                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
596    
597            /**
598            * Returns the groups before and after the current group in the ordered set where companyId = &#63; and classNameId = &#63;.
599            *
600            * @param groupId the primary key of the current group
601            * @param companyId the company ID
602            * @param classNameId the class name ID
603            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
604            * @return the previous, current, and next group
605            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
606            */
607            public com.liferay.portal.model.Group[] findByC_C_PrevAndNext(
608                    long groupId, long companyId, long classNameId,
609                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
610                    throws com.liferay.portal.NoSuchGroupException;
611    
612            /**
613            * Removes all the groups where companyId = &#63; and classNameId = &#63; from the database.
614            *
615            * @param companyId the company ID
616            * @param classNameId the class name ID
617            */
618            public void removeByC_C(long companyId, long classNameId);
619    
620            /**
621            * Returns the number of groups where companyId = &#63; and classNameId = &#63;.
622            *
623            * @param companyId the company ID
624            * @param classNameId the class name ID
625            * @return the number of matching groups
626            */
627            public int countByC_C(long companyId, long classNameId);
628    
629            /**
630            * Returns all the groups where companyId = &#63; and parentGroupId = &#63;.
631            *
632            * @param companyId the company ID
633            * @param parentGroupId the parent group ID
634            * @return the matching groups
635            */
636            public java.util.List<com.liferay.portal.model.Group> findByC_P(
637                    long companyId, long parentGroupId);
638    
639            /**
640            * Returns a range of all the groups where companyId = &#63; and parentGroupId = &#63;.
641            *
642            * <p>
643            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
644            * </p>
645            *
646            * @param companyId the company ID
647            * @param parentGroupId the parent group ID
648            * @param start the lower bound of the range of groups
649            * @param end the upper bound of the range of groups (not inclusive)
650            * @return the range of matching groups
651            */
652            public java.util.List<com.liferay.portal.model.Group> findByC_P(
653                    long companyId, long parentGroupId, int start, int end);
654    
655            /**
656            * Returns an ordered range of all the groups where companyId = &#63; and parentGroupId = &#63;.
657            *
658            * <p>
659            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
660            * </p>
661            *
662            * @param companyId the company ID
663            * @param parentGroupId the parent group ID
664            * @param start the lower bound of the range of groups
665            * @param end the upper bound of the range of groups (not inclusive)
666            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
667            * @return the ordered range of matching groups
668            */
669            public java.util.List<com.liferay.portal.model.Group> findByC_P(
670                    long companyId, long parentGroupId, int start, int end,
671                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
672    
673            /**
674            * Returns the first group in the ordered set where companyId = &#63; and parentGroupId = &#63;.
675            *
676            * @param companyId the company ID
677            * @param parentGroupId the parent group ID
678            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
679            * @return the first matching group
680            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
681            */
682            public com.liferay.portal.model.Group findByC_P_First(long companyId,
683                    long parentGroupId,
684                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
685                    throws com.liferay.portal.NoSuchGroupException;
686    
687            /**
688            * Returns the first group in the ordered set where companyId = &#63; and parentGroupId = &#63;.
689            *
690            * @param companyId the company ID
691            * @param parentGroupId the parent group ID
692            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
693            * @return the first matching group, or <code>null</code> if a matching group could not be found
694            */
695            public com.liferay.portal.model.Group fetchByC_P_First(long companyId,
696                    long parentGroupId,
697                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
698    
699            /**
700            * Returns the last group in the ordered set where companyId = &#63; and parentGroupId = &#63;.
701            *
702            * @param companyId the company ID
703            * @param parentGroupId the parent group ID
704            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
705            * @return the last matching group
706            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
707            */
708            public com.liferay.portal.model.Group findByC_P_Last(long companyId,
709                    long parentGroupId,
710                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
711                    throws com.liferay.portal.NoSuchGroupException;
712    
713            /**
714            * Returns the last group in the ordered set where companyId = &#63; and parentGroupId = &#63;.
715            *
716            * @param companyId the company ID
717            * @param parentGroupId the parent group ID
718            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
719            * @return the last matching group, or <code>null</code> if a matching group could not be found
720            */
721            public com.liferay.portal.model.Group fetchByC_P_Last(long companyId,
722                    long parentGroupId,
723                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
724    
725            /**
726            * Returns the groups before and after the current group in the ordered set where companyId = &#63; and parentGroupId = &#63;.
727            *
728            * @param groupId the primary key of the current group
729            * @param companyId the company ID
730            * @param parentGroupId the parent group ID
731            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
732            * @return the previous, current, and next group
733            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
734            */
735            public com.liferay.portal.model.Group[] findByC_P_PrevAndNext(
736                    long groupId, long companyId, long parentGroupId,
737                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
738                    throws com.liferay.portal.NoSuchGroupException;
739    
740            /**
741            * Removes all the groups where companyId = &#63; and parentGroupId = &#63; from the database.
742            *
743            * @param companyId the company ID
744            * @param parentGroupId the parent group ID
745            */
746            public void removeByC_P(long companyId, long parentGroupId);
747    
748            /**
749            * Returns the number of groups where companyId = &#63; and parentGroupId = &#63;.
750            *
751            * @param companyId the company ID
752            * @param parentGroupId the parent group ID
753            * @return the number of matching groups
754            */
755            public int countByC_P(long companyId, long parentGroupId);
756    
757            /**
758            * Returns the group where companyId = &#63; and name = &#63; or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found.
759            *
760            * @param companyId the company ID
761            * @param name the name
762            * @return the matching group
763            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
764            */
765            public com.liferay.portal.model.Group findByC_N(long companyId,
766                    java.lang.String name) throws com.liferay.portal.NoSuchGroupException;
767    
768            /**
769            * Returns the group where companyId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
770            *
771            * @param companyId the company ID
772            * @param name the name
773            * @return the matching group, or <code>null</code> if a matching group could not be found
774            */
775            public com.liferay.portal.model.Group fetchByC_N(long companyId,
776                    java.lang.String name);
777    
778            /**
779            * Returns the group where companyId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
780            *
781            * @param companyId the company ID
782            * @param name the name
783            * @param retrieveFromCache whether to use the finder cache
784            * @return the matching group, or <code>null</code> if a matching group could not be found
785            */
786            public com.liferay.portal.model.Group fetchByC_N(long companyId,
787                    java.lang.String name, boolean retrieveFromCache);
788    
789            /**
790            * Removes the group where companyId = &#63; and name = &#63; from the database.
791            *
792            * @param companyId the company ID
793            * @param name the name
794            * @return the group that was removed
795            */
796            public com.liferay.portal.model.Group removeByC_N(long companyId,
797                    java.lang.String name) throws com.liferay.portal.NoSuchGroupException;
798    
799            /**
800            * Returns the number of groups where companyId = &#63; and name = &#63;.
801            *
802            * @param companyId the company ID
803            * @param name the name
804            * @return the number of matching groups
805            */
806            public int countByC_N(long companyId, java.lang.String name);
807    
808            /**
809            * Returns the group where companyId = &#63; and friendlyURL = &#63; or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found.
810            *
811            * @param companyId the company ID
812            * @param friendlyURL the friendly u r l
813            * @return the matching group
814            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
815            */
816            public com.liferay.portal.model.Group findByC_F(long companyId,
817                    java.lang.String friendlyURL)
818                    throws com.liferay.portal.NoSuchGroupException;
819    
820            /**
821            * Returns the group where companyId = &#63; and friendlyURL = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
822            *
823            * @param companyId the company ID
824            * @param friendlyURL the friendly u r l
825            * @return the matching group, or <code>null</code> if a matching group could not be found
826            */
827            public com.liferay.portal.model.Group fetchByC_F(long companyId,
828                    java.lang.String friendlyURL);
829    
830            /**
831            * Returns the group where companyId = &#63; and friendlyURL = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
832            *
833            * @param companyId the company ID
834            * @param friendlyURL the friendly u r l
835            * @param retrieveFromCache whether to use the finder cache
836            * @return the matching group, or <code>null</code> if a matching group could not be found
837            */
838            public com.liferay.portal.model.Group fetchByC_F(long companyId,
839                    java.lang.String friendlyURL, boolean retrieveFromCache);
840    
841            /**
842            * Removes the group where companyId = &#63; and friendlyURL = &#63; from the database.
843            *
844            * @param companyId the company ID
845            * @param friendlyURL the friendly u r l
846            * @return the group that was removed
847            */
848            public com.liferay.portal.model.Group removeByC_F(long companyId,
849                    java.lang.String friendlyURL)
850                    throws com.liferay.portal.NoSuchGroupException;
851    
852            /**
853            * Returns the number of groups where companyId = &#63; and friendlyURL = &#63;.
854            *
855            * @param companyId the company ID
856            * @param friendlyURL the friendly u r l
857            * @return the number of matching groups
858            */
859            public int countByC_F(long companyId, java.lang.String friendlyURL);
860    
861            /**
862            * Returns all the groups where companyId = &#63; and site = &#63;.
863            *
864            * @param companyId the company ID
865            * @param site the site
866            * @return the matching groups
867            */
868            public java.util.List<com.liferay.portal.model.Group> findByC_S(
869                    long companyId, boolean site);
870    
871            /**
872            * Returns a range of all the groups where companyId = &#63; and site = &#63;.
873            *
874            * <p>
875            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
876            * </p>
877            *
878            * @param companyId the company ID
879            * @param site the site
880            * @param start the lower bound of the range of groups
881            * @param end the upper bound of the range of groups (not inclusive)
882            * @return the range of matching groups
883            */
884            public java.util.List<com.liferay.portal.model.Group> findByC_S(
885                    long companyId, boolean site, int start, int end);
886    
887            /**
888            * Returns an ordered range of all the groups where companyId = &#63; and site = &#63;.
889            *
890            * <p>
891            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
892            * </p>
893            *
894            * @param companyId the company ID
895            * @param site the site
896            * @param start the lower bound of the range of groups
897            * @param end the upper bound of the range of groups (not inclusive)
898            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
899            * @return the ordered range of matching groups
900            */
901            public java.util.List<com.liferay.portal.model.Group> findByC_S(
902                    long companyId, boolean site, int start, int end,
903                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
904    
905            /**
906            * Returns the first group in the ordered set where companyId = &#63; and site = &#63;.
907            *
908            * @param companyId the company ID
909            * @param site the site
910            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
911            * @return the first matching group
912            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
913            */
914            public com.liferay.portal.model.Group findByC_S_First(long companyId,
915                    boolean site,
916                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
917                    throws com.liferay.portal.NoSuchGroupException;
918    
919            /**
920            * Returns the first group in the ordered set where companyId = &#63; and site = &#63;.
921            *
922            * @param companyId the company ID
923            * @param site the site
924            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
925            * @return the first matching group, or <code>null</code> if a matching group could not be found
926            */
927            public com.liferay.portal.model.Group fetchByC_S_First(long companyId,
928                    boolean site,
929                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
930    
931            /**
932            * Returns the last group in the ordered set where companyId = &#63; and site = &#63;.
933            *
934            * @param companyId the company ID
935            * @param site the site
936            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
937            * @return the last matching group
938            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
939            */
940            public com.liferay.portal.model.Group findByC_S_Last(long companyId,
941                    boolean site,
942                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
943                    throws com.liferay.portal.NoSuchGroupException;
944    
945            /**
946            * Returns the last group in the ordered set where companyId = &#63; and site = &#63;.
947            *
948            * @param companyId the company ID
949            * @param site the site
950            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
951            * @return the last matching group, or <code>null</code> if a matching group could not be found
952            */
953            public com.liferay.portal.model.Group fetchByC_S_Last(long companyId,
954                    boolean site,
955                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
956    
957            /**
958            * Returns the groups before and after the current group in the ordered set where companyId = &#63; and site = &#63;.
959            *
960            * @param groupId the primary key of the current group
961            * @param companyId the company ID
962            * @param site the site
963            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
964            * @return the previous, current, and next group
965            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
966            */
967            public com.liferay.portal.model.Group[] findByC_S_PrevAndNext(
968                    long groupId, long companyId, boolean site,
969                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
970                    throws com.liferay.portal.NoSuchGroupException;
971    
972            /**
973            * Removes all the groups where companyId = &#63; and site = &#63; from the database.
974            *
975            * @param companyId the company ID
976            * @param site the site
977            */
978            public void removeByC_S(long companyId, boolean site);
979    
980            /**
981            * Returns the number of groups where companyId = &#63; and site = &#63;.
982            *
983            * @param companyId the company ID
984            * @param site the site
985            * @return the number of matching groups
986            */
987            public int countByC_S(long companyId, boolean site);
988    
989            /**
990            * Returns all the groups where type = &#63; and active = &#63;.
991            *
992            * @param type the type
993            * @param active the active
994            * @return the matching groups
995            */
996            public java.util.List<com.liferay.portal.model.Group> findByT_A(int type,
997                    boolean active);
998    
999            /**
1000            * Returns a range of all the groups where type = &#63; and active = &#63;.
1001            *
1002            * <p>
1003            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
1004            * </p>
1005            *
1006            * @param type the type
1007            * @param active the active
1008            * @param start the lower bound of the range of groups
1009            * @param end the upper bound of the range of groups (not inclusive)
1010            * @return the range of matching groups
1011            */
1012            public java.util.List<com.liferay.portal.model.Group> findByT_A(int type,
1013                    boolean active, int start, int end);
1014    
1015            /**
1016            * Returns an ordered range of all the groups where type = &#63; and active = &#63;.
1017            *
1018            * <p>
1019            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
1020            * </p>
1021            *
1022            * @param type the type
1023            * @param active the active
1024            * @param start the lower bound of the range of groups
1025            * @param end the upper bound of the range of groups (not inclusive)
1026            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1027            * @return the ordered range of matching groups
1028            */
1029            public java.util.List<com.liferay.portal.model.Group> findByT_A(int type,
1030                    boolean active, int start, int end,
1031                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
1032    
1033            /**
1034            * Returns the first group in the ordered set where type = &#63; and active = &#63;.
1035            *
1036            * @param type the type
1037            * @param active the active
1038            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1039            * @return the first matching group
1040            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1041            */
1042            public com.liferay.portal.model.Group findByT_A_First(int type,
1043                    boolean active,
1044                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
1045                    throws com.liferay.portal.NoSuchGroupException;
1046    
1047            /**
1048            * Returns the first group in the ordered set where type = &#63; and active = &#63;.
1049            *
1050            * @param type the type
1051            * @param active the active
1052            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1053            * @return the first matching group, or <code>null</code> if a matching group could not be found
1054            */
1055            public com.liferay.portal.model.Group fetchByT_A_First(int type,
1056                    boolean active,
1057                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
1058    
1059            /**
1060            * Returns the last group in the ordered set where type = &#63; and active = &#63;.
1061            *
1062            * @param type the type
1063            * @param active the active
1064            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1065            * @return the last matching group
1066            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1067            */
1068            public com.liferay.portal.model.Group findByT_A_Last(int type,
1069                    boolean active,
1070                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
1071                    throws com.liferay.portal.NoSuchGroupException;
1072    
1073            /**
1074            * Returns the last group in the ordered set where type = &#63; and active = &#63;.
1075            *
1076            * @param type the type
1077            * @param active the active
1078            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1079            * @return the last matching group, or <code>null</code> if a matching group could not be found
1080            */
1081            public com.liferay.portal.model.Group fetchByT_A_Last(int type,
1082                    boolean active,
1083                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
1084    
1085            /**
1086            * Returns the groups before and after the current group in the ordered set where type = &#63; and active = &#63;.
1087            *
1088            * @param groupId the primary key of the current group
1089            * @param type the type
1090            * @param active the active
1091            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1092            * @return the previous, current, and next group
1093            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
1094            */
1095            public com.liferay.portal.model.Group[] findByT_A_PrevAndNext(
1096                    long groupId, int type, boolean active,
1097                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
1098                    throws com.liferay.portal.NoSuchGroupException;
1099    
1100            /**
1101            * Removes all the groups where type = &#63; and active = &#63; from the database.
1102            *
1103            * @param type the type
1104            * @param active the active
1105            */
1106            public void removeByT_A(int type, boolean active);
1107    
1108            /**
1109            * Returns the number of groups where type = &#63; and active = &#63;.
1110            *
1111            * @param type the type
1112            * @param active the active
1113            * @return the number of matching groups
1114            */
1115            public int countByT_A(int type, boolean active);
1116    
1117            /**
1118            * Returns all the groups where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1119            *
1120            * @param groupId the group ID
1121            * @param companyId the company ID
1122            * @param parentGroupId the parent group ID
1123            * @return the matching groups
1124            */
1125            public java.util.List<com.liferay.portal.model.Group> findByG_C_P(
1126                    long groupId, long companyId, long parentGroupId);
1127    
1128            /**
1129            * Returns a range of all the groups where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1130            *
1131            * <p>
1132            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
1133            * </p>
1134            *
1135            * @param groupId the group ID
1136            * @param companyId the company ID
1137            * @param parentGroupId the parent group ID
1138            * @param start the lower bound of the range of groups
1139            * @param end the upper bound of the range of groups (not inclusive)
1140            * @return the range of matching groups
1141            */
1142            public java.util.List<com.liferay.portal.model.Group> findByG_C_P(
1143                    long groupId, long companyId, long parentGroupId, int start, int end);
1144    
1145            /**
1146            * Returns an ordered range of all the groups where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1147            *
1148            * <p>
1149            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
1150            * </p>
1151            *
1152            * @param groupId the group ID
1153            * @param companyId the company ID
1154            * @param parentGroupId the parent group ID
1155            * @param start the lower bound of the range of groups
1156            * @param end the upper bound of the range of groups (not inclusive)
1157            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1158            * @return the ordered range of matching groups
1159            */
1160            public java.util.List<com.liferay.portal.model.Group> findByG_C_P(
1161                    long groupId, long companyId, long parentGroupId, int start, int end,
1162                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
1163    
1164            /**
1165            * Returns the first group in the ordered set where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1166            *
1167            * @param groupId the group ID
1168            * @param companyId the company ID
1169            * @param parentGroupId the parent group ID
1170            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1171            * @return the first matching group
1172            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1173            */
1174            public com.liferay.portal.model.Group findByG_C_P_First(long groupId,
1175                    long companyId, long parentGroupId,
1176                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
1177                    throws com.liferay.portal.NoSuchGroupException;
1178    
1179            /**
1180            * Returns the first group in the ordered set where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1181            *
1182            * @param groupId the group ID
1183            * @param companyId the company ID
1184            * @param parentGroupId the parent group ID
1185            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1186            * @return the first matching group, or <code>null</code> if a matching group could not be found
1187            */
1188            public com.liferay.portal.model.Group fetchByG_C_P_First(long groupId,
1189                    long companyId, long parentGroupId,
1190                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
1191    
1192            /**
1193            * Returns the last group in the ordered set where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1194            *
1195            * @param groupId the group ID
1196            * @param companyId the company ID
1197            * @param parentGroupId the parent group ID
1198            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1199            * @return the last matching group
1200            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1201            */
1202            public com.liferay.portal.model.Group findByG_C_P_Last(long groupId,
1203                    long companyId, long parentGroupId,
1204                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
1205                    throws com.liferay.portal.NoSuchGroupException;
1206    
1207            /**
1208            * Returns the last group in the ordered set where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1209            *
1210            * @param groupId the group ID
1211            * @param companyId the company ID
1212            * @param parentGroupId the parent group ID
1213            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1214            * @return the last matching group, or <code>null</code> if a matching group could not be found
1215            */
1216            public com.liferay.portal.model.Group fetchByG_C_P_Last(long groupId,
1217                    long companyId, long parentGroupId,
1218                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
1219    
1220            /**
1221            * Removes all the groups where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63; from the database.
1222            *
1223            * @param groupId the group ID
1224            * @param companyId the company ID
1225            * @param parentGroupId the parent group ID
1226            */
1227            public void removeByG_C_P(long groupId, long companyId, long parentGroupId);
1228    
1229            /**
1230            * Returns the number of groups where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1231            *
1232            * @param groupId the group ID
1233            * @param companyId the company ID
1234            * @param parentGroupId the parent group ID
1235            * @return the number of matching groups
1236            */
1237            public int countByG_C_P(long groupId, long companyId, long parentGroupId);
1238    
1239            /**
1240            * Returns the group where companyId = &#63; and classNameId = &#63; and classPK = &#63; or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found.
1241            *
1242            * @param companyId the company ID
1243            * @param classNameId the class name ID
1244            * @param classPK the class p k
1245            * @return the matching group
1246            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1247            */
1248            public com.liferay.portal.model.Group findByC_C_C(long companyId,
1249                    long classNameId, long classPK)
1250                    throws com.liferay.portal.NoSuchGroupException;
1251    
1252            /**
1253            * Returns the group where companyId = &#63; and classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1254            *
1255            * @param companyId the company ID
1256            * @param classNameId the class name ID
1257            * @param classPK the class p k
1258            * @return the matching group, or <code>null</code> if a matching group could not be found
1259            */
1260            public com.liferay.portal.model.Group fetchByC_C_C(long companyId,
1261                    long classNameId, long classPK);
1262    
1263            /**
1264            * Returns the group where companyId = &#63; and classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1265            *
1266            * @param companyId the company ID
1267            * @param classNameId the class name ID
1268            * @param classPK the class p k
1269            * @param retrieveFromCache whether to use the finder cache
1270            * @return the matching group, or <code>null</code> if a matching group could not be found
1271            */
1272            public com.liferay.portal.model.Group fetchByC_C_C(long companyId,
1273                    long classNameId, long classPK, boolean retrieveFromCache);
1274    
1275            /**
1276            * Removes the group where companyId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
1277            *
1278            * @param companyId the company ID
1279            * @param classNameId the class name ID
1280            * @param classPK the class p k
1281            * @return the group that was removed
1282            */
1283            public com.liferay.portal.model.Group removeByC_C_C(long companyId,
1284                    long classNameId, long classPK)
1285                    throws com.liferay.portal.NoSuchGroupException;
1286    
1287            /**
1288            * Returns the number of groups where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
1289            *
1290            * @param companyId the company ID
1291            * @param classNameId the class name ID
1292            * @param classPK the class p k
1293            * @return the number of matching groups
1294            */
1295            public int countByC_C_C(long companyId, long classNameId, long classPK);
1296    
1297            /**
1298            * Returns all the groups where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1299            *
1300            * @param companyId the company ID
1301            * @param classNameId the class name ID
1302            * @param parentGroupId the parent group ID
1303            * @return the matching groups
1304            */
1305            public java.util.List<com.liferay.portal.model.Group> findByC_C_P(
1306                    long companyId, long classNameId, long parentGroupId);
1307    
1308            /**
1309            * Returns a range of all the groups where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1310            *
1311            * <p>
1312            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
1313            * </p>
1314            *
1315            * @param companyId the company ID
1316            * @param classNameId the class name ID
1317            * @param parentGroupId the parent group ID
1318            * @param start the lower bound of the range of groups
1319            * @param end the upper bound of the range of groups (not inclusive)
1320            * @return the range of matching groups
1321            */
1322            public java.util.List<com.liferay.portal.model.Group> findByC_C_P(
1323                    long companyId, long classNameId, long parentGroupId, int start, int end);
1324    
1325            /**
1326            * Returns an ordered range of all the groups where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1327            *
1328            * <p>
1329            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
1330            * </p>
1331            *
1332            * @param companyId the company ID
1333            * @param classNameId the class name ID
1334            * @param parentGroupId the parent group ID
1335            * @param start the lower bound of the range of groups
1336            * @param end the upper bound of the range of groups (not inclusive)
1337            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1338            * @return the ordered range of matching groups
1339            */
1340            public java.util.List<com.liferay.portal.model.Group> findByC_C_P(
1341                    long companyId, long classNameId, long parentGroupId, int start,
1342                    int end,
1343                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
1344    
1345            /**
1346            * Returns the first group in the ordered set where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1347            *
1348            * @param companyId the company ID
1349            * @param classNameId the class name ID
1350            * @param parentGroupId the parent group ID
1351            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1352            * @return the first matching group
1353            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1354            */
1355            public com.liferay.portal.model.Group findByC_C_P_First(long companyId,
1356                    long classNameId, long parentGroupId,
1357                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
1358                    throws com.liferay.portal.NoSuchGroupException;
1359    
1360            /**
1361            * Returns the first group in the ordered set where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1362            *
1363            * @param companyId the company ID
1364            * @param classNameId the class name ID
1365            * @param parentGroupId the parent group ID
1366            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1367            * @return the first matching group, or <code>null</code> if a matching group could not be found
1368            */
1369            public com.liferay.portal.model.Group fetchByC_C_P_First(long companyId,
1370                    long classNameId, long parentGroupId,
1371                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
1372    
1373            /**
1374            * Returns the last group in the ordered set where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1375            *
1376            * @param companyId the company ID
1377            * @param classNameId the class name ID
1378            * @param parentGroupId the parent group ID
1379            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1380            * @return the last matching group
1381            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1382            */
1383            public com.liferay.portal.model.Group findByC_C_P_Last(long companyId,
1384                    long classNameId, long parentGroupId,
1385                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
1386                    throws com.liferay.portal.NoSuchGroupException;
1387    
1388            /**
1389            * Returns the last group in the ordered set where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1390            *
1391            * @param companyId the company ID
1392            * @param classNameId the class name ID
1393            * @param parentGroupId the parent group ID
1394            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1395            * @return the last matching group, or <code>null</code> if a matching group could not be found
1396            */
1397            public com.liferay.portal.model.Group fetchByC_C_P_Last(long companyId,
1398                    long classNameId, long parentGroupId,
1399                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
1400    
1401            /**
1402            * Returns the groups before and after the current group in the ordered set where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1403            *
1404            * @param groupId the primary key of the current group
1405            * @param companyId the company ID
1406            * @param classNameId the class name ID
1407            * @param parentGroupId the parent group ID
1408            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1409            * @return the previous, current, and next group
1410            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
1411            */
1412            public com.liferay.portal.model.Group[] findByC_C_P_PrevAndNext(
1413                    long groupId, long companyId, long classNameId, long parentGroupId,
1414                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
1415                    throws com.liferay.portal.NoSuchGroupException;
1416    
1417            /**
1418            * Removes all the groups where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63; from the database.
1419            *
1420            * @param companyId the company ID
1421            * @param classNameId the class name ID
1422            * @param parentGroupId the parent group ID
1423            */
1424            public void removeByC_C_P(long companyId, long classNameId,
1425                    long parentGroupId);
1426    
1427            /**
1428            * Returns the number of groups where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1429            *
1430            * @param companyId the company ID
1431            * @param classNameId the class name ID
1432            * @param parentGroupId the parent group ID
1433            * @return the number of matching groups
1434            */
1435            public int countByC_C_P(long companyId, long classNameId, long parentGroupId);
1436    
1437            /**
1438            * Returns all the groups where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1439            *
1440            * @param companyId the company ID
1441            * @param parentGroupId the parent group ID
1442            * @param site the site
1443            * @return the matching groups
1444            */
1445            public java.util.List<com.liferay.portal.model.Group> findByC_P_S(
1446                    long companyId, long parentGroupId, boolean site);
1447    
1448            /**
1449            * Returns a range of all the groups where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1450            *
1451            * <p>
1452            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
1453            * </p>
1454            *
1455            * @param companyId the company ID
1456            * @param parentGroupId the parent group ID
1457            * @param site the site
1458            * @param start the lower bound of the range of groups
1459            * @param end the upper bound of the range of groups (not inclusive)
1460            * @return the range of matching groups
1461            */
1462            public java.util.List<com.liferay.portal.model.Group> findByC_P_S(
1463                    long companyId, long parentGroupId, boolean site, int start, int end);
1464    
1465            /**
1466            * Returns an ordered range of all the groups where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1467            *
1468            * <p>
1469            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
1470            * </p>
1471            *
1472            * @param companyId the company ID
1473            * @param parentGroupId the parent group ID
1474            * @param site the site
1475            * @param start the lower bound of the range of groups
1476            * @param end the upper bound of the range of groups (not inclusive)
1477            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1478            * @return the ordered range of matching groups
1479            */
1480            public java.util.List<com.liferay.portal.model.Group> findByC_P_S(
1481                    long companyId, long parentGroupId, boolean site, int start, int end,
1482                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
1483    
1484            /**
1485            * Returns the first group in the ordered set where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1486            *
1487            * @param companyId the company ID
1488            * @param parentGroupId the parent group ID
1489            * @param site the site
1490            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1491            * @return the first matching group
1492            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1493            */
1494            public com.liferay.portal.model.Group findByC_P_S_First(long companyId,
1495                    long parentGroupId, boolean site,
1496                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
1497                    throws com.liferay.portal.NoSuchGroupException;
1498    
1499            /**
1500            * Returns the first group in the ordered set where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1501            *
1502            * @param companyId the company ID
1503            * @param parentGroupId the parent group ID
1504            * @param site the site
1505            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1506            * @return the first matching group, or <code>null</code> if a matching group could not be found
1507            */
1508            public com.liferay.portal.model.Group fetchByC_P_S_First(long companyId,
1509                    long parentGroupId, boolean site,
1510                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
1511    
1512            /**
1513            * Returns the last group in the ordered set where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1514            *
1515            * @param companyId the company ID
1516            * @param parentGroupId the parent group ID
1517            * @param site the site
1518            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1519            * @return the last matching group
1520            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1521            */
1522            public com.liferay.portal.model.Group findByC_P_S_Last(long companyId,
1523                    long parentGroupId, boolean site,
1524                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
1525                    throws com.liferay.portal.NoSuchGroupException;
1526    
1527            /**
1528            * Returns the last group in the ordered set where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1529            *
1530            * @param companyId the company ID
1531            * @param parentGroupId the parent group ID
1532            * @param site the site
1533            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1534            * @return the last matching group, or <code>null</code> if a matching group could not be found
1535            */
1536            public com.liferay.portal.model.Group fetchByC_P_S_Last(long companyId,
1537                    long parentGroupId, boolean site,
1538                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
1539    
1540            /**
1541            * Returns the groups before and after the current group in the ordered set where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1542            *
1543            * @param groupId the primary key of the current group
1544            * @param companyId the company ID
1545            * @param parentGroupId the parent group ID
1546            * @param site the site
1547            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1548            * @return the previous, current, and next group
1549            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
1550            */
1551            public com.liferay.portal.model.Group[] findByC_P_S_PrevAndNext(
1552                    long groupId, long companyId, long parentGroupId, boolean site,
1553                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator)
1554                    throws com.liferay.portal.NoSuchGroupException;
1555    
1556            /**
1557            * Removes all the groups where companyId = &#63; and parentGroupId = &#63; and site = &#63; from the database.
1558            *
1559            * @param companyId the company ID
1560            * @param parentGroupId the parent group ID
1561            * @param site the site
1562            */
1563            public void removeByC_P_S(long companyId, long parentGroupId, boolean site);
1564    
1565            /**
1566            * Returns the number of groups where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1567            *
1568            * @param companyId the company ID
1569            * @param parentGroupId the parent group ID
1570            * @param site the site
1571            * @return the number of matching groups
1572            */
1573            public int countByC_P_S(long companyId, long parentGroupId, boolean site);
1574    
1575            /**
1576            * Returns the group where companyId = &#63; and liveGroupId = &#63; and name = &#63; or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found.
1577            *
1578            * @param companyId the company ID
1579            * @param liveGroupId the live group ID
1580            * @param name the name
1581            * @return the matching group
1582            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1583            */
1584            public com.liferay.portal.model.Group findByC_L_N(long companyId,
1585                    long liveGroupId, java.lang.String name)
1586                    throws com.liferay.portal.NoSuchGroupException;
1587    
1588            /**
1589            * Returns the group where companyId = &#63; and liveGroupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1590            *
1591            * @param companyId the company ID
1592            * @param liveGroupId the live group ID
1593            * @param name the name
1594            * @return the matching group, or <code>null</code> if a matching group could not be found
1595            */
1596            public com.liferay.portal.model.Group fetchByC_L_N(long companyId,
1597                    long liveGroupId, java.lang.String name);
1598    
1599            /**
1600            * Returns the group where companyId = &#63; and liveGroupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1601            *
1602            * @param companyId the company ID
1603            * @param liveGroupId the live group ID
1604            * @param name the name
1605            * @param retrieveFromCache whether to use the finder cache
1606            * @return the matching group, or <code>null</code> if a matching group could not be found
1607            */
1608            public com.liferay.portal.model.Group fetchByC_L_N(long companyId,
1609                    long liveGroupId, java.lang.String name, boolean retrieveFromCache);
1610    
1611            /**
1612            * Removes the group where companyId = &#63; and liveGroupId = &#63; and name = &#63; from the database.
1613            *
1614            * @param companyId the company ID
1615            * @param liveGroupId the live group ID
1616            * @param name the name
1617            * @return the group that was removed
1618            */
1619            public com.liferay.portal.model.Group removeByC_L_N(long companyId,
1620                    long liveGroupId, java.lang.String name)
1621                    throws com.liferay.portal.NoSuchGroupException;
1622    
1623            /**
1624            * Returns the number of groups where companyId = &#63; and liveGroupId = &#63; and name = &#63;.
1625            *
1626            * @param companyId the company ID
1627            * @param liveGroupId the live group ID
1628            * @param name the name
1629            * @return the number of matching groups
1630            */
1631            public int countByC_L_N(long companyId, long liveGroupId,
1632                    java.lang.String name);
1633    
1634            /**
1635            * Returns the group where companyId = &#63; and classNameId = &#63; and liveGroupId = &#63; and name = &#63; or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found.
1636            *
1637            * @param companyId the company ID
1638            * @param classNameId the class name ID
1639            * @param liveGroupId the live group ID
1640            * @param name the name
1641            * @return the matching group
1642            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1643            */
1644            public com.liferay.portal.model.Group findByC_C_L_N(long companyId,
1645                    long classNameId, long liveGroupId, java.lang.String name)
1646                    throws com.liferay.portal.NoSuchGroupException;
1647    
1648            /**
1649            * Returns the group where companyId = &#63; and classNameId = &#63; and liveGroupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1650            *
1651            * @param companyId the company ID
1652            * @param classNameId the class name ID
1653            * @param liveGroupId the live group ID
1654            * @param name the name
1655            * @return the matching group, or <code>null</code> if a matching group could not be found
1656            */
1657            public com.liferay.portal.model.Group fetchByC_C_L_N(long companyId,
1658                    long classNameId, long liveGroupId, java.lang.String name);
1659    
1660            /**
1661            * Returns the group where companyId = &#63; and classNameId = &#63; and liveGroupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1662            *
1663            * @param companyId the company ID
1664            * @param classNameId the class name ID
1665            * @param liveGroupId the live group ID
1666            * @param name the name
1667            * @param retrieveFromCache whether to use the finder cache
1668            * @return the matching group, or <code>null</code> if a matching group could not be found
1669            */
1670            public com.liferay.portal.model.Group fetchByC_C_L_N(long companyId,
1671                    long classNameId, long liveGroupId, java.lang.String name,
1672                    boolean retrieveFromCache);
1673    
1674            /**
1675            * Removes the group where companyId = &#63; and classNameId = &#63; and liveGroupId = &#63; and name = &#63; from the database.
1676            *
1677            * @param companyId the company ID
1678            * @param classNameId the class name ID
1679            * @param liveGroupId the live group ID
1680            * @param name the name
1681            * @return the group that was removed
1682            */
1683            public com.liferay.portal.model.Group removeByC_C_L_N(long companyId,
1684                    long classNameId, long liveGroupId, java.lang.String name)
1685                    throws com.liferay.portal.NoSuchGroupException;
1686    
1687            /**
1688            * Returns the number of groups where companyId = &#63; and classNameId = &#63; and liveGroupId = &#63; and name = &#63;.
1689            *
1690            * @param companyId the company ID
1691            * @param classNameId the class name ID
1692            * @param liveGroupId the live group ID
1693            * @param name the name
1694            * @return the number of matching groups
1695            */
1696            public int countByC_C_L_N(long companyId, long classNameId,
1697                    long liveGroupId, java.lang.String name);
1698    
1699            /**
1700            * Caches the group in the entity cache if it is enabled.
1701            *
1702            * @param group the group
1703            */
1704            public void cacheResult(com.liferay.portal.model.Group group);
1705    
1706            /**
1707            * Caches the groups in the entity cache if it is enabled.
1708            *
1709            * @param groups the groups
1710            */
1711            public void cacheResult(
1712                    java.util.List<com.liferay.portal.model.Group> groups);
1713    
1714            /**
1715            * Creates a new group with the primary key. Does not add the group to the database.
1716            *
1717            * @param groupId the primary key for the new group
1718            * @return the new group
1719            */
1720            public com.liferay.portal.model.Group create(long groupId);
1721    
1722            /**
1723            * Removes the group with the primary key from the database. Also notifies the appropriate model listeners.
1724            *
1725            * @param groupId the primary key of the group
1726            * @return the group that was removed
1727            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
1728            */
1729            public com.liferay.portal.model.Group remove(long groupId)
1730                    throws com.liferay.portal.NoSuchGroupException;
1731    
1732            public com.liferay.portal.model.Group updateImpl(
1733                    com.liferay.portal.model.Group group);
1734    
1735            /**
1736            * Returns the group with the primary key or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found.
1737            *
1738            * @param groupId the primary key of the group
1739            * @return the group
1740            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
1741            */
1742            public com.liferay.portal.model.Group findByPrimaryKey(long groupId)
1743                    throws com.liferay.portal.NoSuchGroupException;
1744    
1745            /**
1746            * Returns the group with the primary key or returns <code>null</code> if it could not be found.
1747            *
1748            * @param groupId the primary key of the group
1749            * @return the group, or <code>null</code> if a group with the primary key could not be found
1750            */
1751            public com.liferay.portal.model.Group fetchByPrimaryKey(long groupId);
1752    
1753            @Override
1754            public java.util.Map<java.io.Serializable, com.liferay.portal.model.Group> fetchByPrimaryKeys(
1755                    java.util.Set<java.io.Serializable> primaryKeys);
1756    
1757            /**
1758            * Returns all the groups.
1759            *
1760            * @return the groups
1761            */
1762            public java.util.List<com.liferay.portal.model.Group> findAll();
1763    
1764            /**
1765            * Returns a range of all the groups.
1766            *
1767            * <p>
1768            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
1769            * </p>
1770            *
1771            * @param start the lower bound of the range of groups
1772            * @param end the upper bound of the range of groups (not inclusive)
1773            * @return the range of groups
1774            */
1775            public java.util.List<com.liferay.portal.model.Group> findAll(int start,
1776                    int end);
1777    
1778            /**
1779            * Returns an ordered range of all the groups.
1780            *
1781            * <p>
1782            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
1783            * </p>
1784            *
1785            * @param start the lower bound of the range of groups
1786            * @param end the upper bound of the range of groups (not inclusive)
1787            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1788            * @return the ordered range of groups
1789            */
1790            public java.util.List<com.liferay.portal.model.Group> findAll(int start,
1791                    int end,
1792                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
1793    
1794            /**
1795            * Removes all the groups from the database.
1796            */
1797            public void removeAll();
1798    
1799            /**
1800            * Returns the number of groups.
1801            *
1802            * @return the number of groups
1803            */
1804            public int countAll();
1805    
1806            /**
1807            * Returns the primaryKeys of organizations associated with the group.
1808            *
1809            * @param pk the primary key of the group
1810            * @return long[] of the primaryKeys of organizations associated with the group
1811            */
1812            public long[] getOrganizationPrimaryKeys(long pk);
1813    
1814            /**
1815            * Returns all the organizations associated with the group.
1816            *
1817            * @param pk the primary key of the group
1818            * @return the organizations associated with the group
1819            */
1820            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
1821                    long pk);
1822    
1823            /**
1824            * Returns a range of all the organizations associated with the group.
1825            *
1826            * <p>
1827            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
1828            * </p>
1829            *
1830            * @param pk the primary key of the group
1831            * @param start the lower bound of the range of groups
1832            * @param end the upper bound of the range of groups (not inclusive)
1833            * @return the range of organizations associated with the group
1834            */
1835            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
1836                    long pk, int start, int end);
1837    
1838            /**
1839            * Returns an ordered range of all the organizations associated with the group.
1840            *
1841            * <p>
1842            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
1843            * </p>
1844            *
1845            * @param pk the primary key of the group
1846            * @param start the lower bound of the range of groups
1847            * @param end the upper bound of the range of groups (not inclusive)
1848            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1849            * @return the ordered range of organizations associated with the group
1850            */
1851            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
1852                    long pk, int start, int end,
1853                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Organization> orderByComparator);
1854    
1855            /**
1856            * Returns the number of organizations associated with the group.
1857            *
1858            * @param pk the primary key of the group
1859            * @return the number of organizations associated with the group
1860            */
1861            public int getOrganizationsSize(long pk);
1862    
1863            /**
1864            * Returns <code>true</code> if the organization is associated with the group.
1865            *
1866            * @param pk the primary key of the group
1867            * @param organizationPK the primary key of the organization
1868            * @return <code>true</code> if the organization is associated with the group; <code>false</code> otherwise
1869            */
1870            public boolean containsOrganization(long pk, long organizationPK);
1871    
1872            /**
1873            * Returns <code>true</code> if the group has any organizations associated with it.
1874            *
1875            * @param pk the primary key of the group to check for associations with organizations
1876            * @return <code>true</code> if the group has any organizations associated with it; <code>false</code> otherwise
1877            */
1878            public boolean containsOrganizations(long pk);
1879    
1880            /**
1881            * Adds an association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1882            *
1883            * @param pk the primary key of the group
1884            * @param organizationPK the primary key of the organization
1885            */
1886            public void addOrganization(long pk, long organizationPK);
1887    
1888            /**
1889            * Adds an association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1890            *
1891            * @param pk the primary key of the group
1892            * @param organization the organization
1893            */
1894            public void addOrganization(long pk,
1895                    com.liferay.portal.model.Organization organization);
1896    
1897            /**
1898            * Adds an association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1899            *
1900            * @param pk the primary key of the group
1901            * @param organizationPKs the primary keys of the organizations
1902            */
1903            public void addOrganizations(long pk, long[] organizationPKs);
1904    
1905            /**
1906            * Adds an association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1907            *
1908            * @param pk the primary key of the group
1909            * @param organizations the organizations
1910            */
1911            public void addOrganizations(long pk,
1912                    java.util.List<com.liferay.portal.model.Organization> organizations);
1913    
1914            /**
1915            * Clears all associations between the group and its organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1916            *
1917            * @param pk the primary key of the group to clear the associated organizations from
1918            */
1919            public void clearOrganizations(long pk);
1920    
1921            /**
1922            * Removes the association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1923            *
1924            * @param pk the primary key of the group
1925            * @param organizationPK the primary key of the organization
1926            */
1927            public void removeOrganization(long pk, long organizationPK);
1928    
1929            /**
1930            * Removes the association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1931            *
1932            * @param pk the primary key of the group
1933            * @param organization the organization
1934            */
1935            public void removeOrganization(long pk,
1936                    com.liferay.portal.model.Organization organization);
1937    
1938            /**
1939            * Removes the association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1940            *
1941            * @param pk the primary key of the group
1942            * @param organizationPKs the primary keys of the organizations
1943            */
1944            public void removeOrganizations(long pk, long[] organizationPKs);
1945    
1946            /**
1947            * Removes the association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1948            *
1949            * @param pk the primary key of the group
1950            * @param organizations the organizations
1951            */
1952            public void removeOrganizations(long pk,
1953                    java.util.List<com.liferay.portal.model.Organization> organizations);
1954    
1955            /**
1956            * Sets the organizations associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1957            *
1958            * @param pk the primary key of the group
1959            * @param organizationPKs the primary keys of the organizations to be associated with the group
1960            */
1961            public void setOrganizations(long pk, long[] organizationPKs);
1962    
1963            /**
1964            * Sets the organizations associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1965            *
1966            * @param pk the primary key of the group
1967            * @param organizations the organizations to be associated with the group
1968            */
1969            public void setOrganizations(long pk,
1970                    java.util.List<com.liferay.portal.model.Organization> organizations);
1971    
1972            /**
1973            * Returns the primaryKeys of roles associated with the group.
1974            *
1975            * @param pk the primary key of the group
1976            * @return long[] of the primaryKeys of roles associated with the group
1977            */
1978            public long[] getRolePrimaryKeys(long pk);
1979    
1980            /**
1981            * Returns all the roles associated with the group.
1982            *
1983            * @param pk the primary key of the group
1984            * @return the roles associated with the group
1985            */
1986            public java.util.List<com.liferay.portal.model.Role> getRoles(long pk);
1987    
1988            /**
1989            * Returns a range of all the roles associated with the group.
1990            *
1991            * <p>
1992            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
1993            * </p>
1994            *
1995            * @param pk the primary key of the group
1996            * @param start the lower bound of the range of groups
1997            * @param end the upper bound of the range of groups (not inclusive)
1998            * @return the range of roles associated with the group
1999            */
2000            public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
2001                    int start, int end);
2002    
2003            /**
2004            * Returns an ordered range of all the roles associated with the group.
2005            *
2006            * <p>
2007            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
2008            * </p>
2009            *
2010            * @param pk the primary key of the group
2011            * @param start the lower bound of the range of groups
2012            * @param end the upper bound of the range of groups (not inclusive)
2013            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2014            * @return the ordered range of roles associated with the group
2015            */
2016            public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
2017                    int start, int end,
2018                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Role> orderByComparator);
2019    
2020            /**
2021            * Returns the number of roles associated with the group.
2022            *
2023            * @param pk the primary key of the group
2024            * @return the number of roles associated with the group
2025            */
2026            public int getRolesSize(long pk);
2027    
2028            /**
2029            * Returns <code>true</code> if the role is associated with the group.
2030            *
2031            * @param pk the primary key of the group
2032            * @param rolePK the primary key of the role
2033            * @return <code>true</code> if the role is associated with the group; <code>false</code> otherwise
2034            */
2035            public boolean containsRole(long pk, long rolePK);
2036    
2037            /**
2038            * Returns <code>true</code> if the group has any roles associated with it.
2039            *
2040            * @param pk the primary key of the group to check for associations with roles
2041            * @return <code>true</code> if the group has any roles associated with it; <code>false</code> otherwise
2042            */
2043            public boolean containsRoles(long pk);
2044    
2045            /**
2046            * Adds an association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2047            *
2048            * @param pk the primary key of the group
2049            * @param rolePK the primary key of the role
2050            */
2051            public void addRole(long pk, long rolePK);
2052    
2053            /**
2054            * Adds an association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2055            *
2056            * @param pk the primary key of the group
2057            * @param role the role
2058            */
2059            public void addRole(long pk, com.liferay.portal.model.Role role);
2060    
2061            /**
2062            * Adds an association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2063            *
2064            * @param pk the primary key of the group
2065            * @param rolePKs the primary keys of the roles
2066            */
2067            public void addRoles(long pk, long[] rolePKs);
2068    
2069            /**
2070            * Adds an association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2071            *
2072            * @param pk the primary key of the group
2073            * @param roles the roles
2074            */
2075            public void addRoles(long pk,
2076                    java.util.List<com.liferay.portal.model.Role> roles);
2077    
2078            /**
2079            * Clears all associations between the group and its roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2080            *
2081            * @param pk the primary key of the group to clear the associated roles from
2082            */
2083            public void clearRoles(long pk);
2084    
2085            /**
2086            * Removes the association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2087            *
2088            * @param pk the primary key of the group
2089            * @param rolePK the primary key of the role
2090            */
2091            public void removeRole(long pk, long rolePK);
2092    
2093            /**
2094            * Removes the association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2095            *
2096            * @param pk the primary key of the group
2097            * @param role the role
2098            */
2099            public void removeRole(long pk, com.liferay.portal.model.Role role);
2100    
2101            /**
2102            * Removes the association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2103            *
2104            * @param pk the primary key of the group
2105            * @param rolePKs the primary keys of the roles
2106            */
2107            public void removeRoles(long pk, long[] rolePKs);
2108    
2109            /**
2110            * Removes the association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2111            *
2112            * @param pk the primary key of the group
2113            * @param roles the roles
2114            */
2115            public void removeRoles(long pk,
2116                    java.util.List<com.liferay.portal.model.Role> roles);
2117    
2118            /**
2119            * Sets the roles associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2120            *
2121            * @param pk the primary key of the group
2122            * @param rolePKs the primary keys of the roles to be associated with the group
2123            */
2124            public void setRoles(long pk, long[] rolePKs);
2125    
2126            /**
2127            * Sets the roles associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2128            *
2129            * @param pk the primary key of the group
2130            * @param roles the roles to be associated with the group
2131            */
2132            public void setRoles(long pk,
2133                    java.util.List<com.liferay.portal.model.Role> roles);
2134    
2135            /**
2136            * Returns the primaryKeys of user groups associated with the group.
2137            *
2138            * @param pk the primary key of the group
2139            * @return long[] of the primaryKeys of user groups associated with the group
2140            */
2141            public long[] getUserGroupPrimaryKeys(long pk);
2142    
2143            /**
2144            * Returns all the user groups associated with the group.
2145            *
2146            * @param pk the primary key of the group
2147            * @return the user groups associated with the group
2148            */
2149            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
2150                    long pk);
2151    
2152            /**
2153            * Returns a range of all the user groups associated with the group.
2154            *
2155            * <p>
2156            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
2157            * </p>
2158            *
2159            * @param pk the primary key of the group
2160            * @param start the lower bound of the range of groups
2161            * @param end the upper bound of the range of groups (not inclusive)
2162            * @return the range of user groups associated with the group
2163            */
2164            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
2165                    long pk, int start, int end);
2166    
2167            /**
2168            * Returns an ordered range of all the user groups associated with the group.
2169            *
2170            * <p>
2171            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
2172            * </p>
2173            *
2174            * @param pk the primary key of the group
2175            * @param start the lower bound of the range of groups
2176            * @param end the upper bound of the range of groups (not inclusive)
2177            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2178            * @return the ordered range of user groups associated with the group
2179            */
2180            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
2181                    long pk, int start, int end,
2182                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
2183    
2184            /**
2185            * Returns the number of user groups associated with the group.
2186            *
2187            * @param pk the primary key of the group
2188            * @return the number of user groups associated with the group
2189            */
2190            public int getUserGroupsSize(long pk);
2191    
2192            /**
2193            * Returns <code>true</code> if the user group is associated with the group.
2194            *
2195            * @param pk the primary key of the group
2196            * @param userGroupPK the primary key of the user group
2197            * @return <code>true</code> if the user group is associated with the group; <code>false</code> otherwise
2198            */
2199            public boolean containsUserGroup(long pk, long userGroupPK);
2200    
2201            /**
2202            * Returns <code>true</code> if the group has any user groups associated with it.
2203            *
2204            * @param pk the primary key of the group to check for associations with user groups
2205            * @return <code>true</code> if the group has any user groups associated with it; <code>false</code> otherwise
2206            */
2207            public boolean containsUserGroups(long pk);
2208    
2209            /**
2210            * Adds an association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2211            *
2212            * @param pk the primary key of the group
2213            * @param userGroupPK the primary key of the user group
2214            */
2215            public void addUserGroup(long pk, long userGroupPK);
2216    
2217            /**
2218            * Adds an association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2219            *
2220            * @param pk the primary key of the group
2221            * @param userGroup the user group
2222            */
2223            public void addUserGroup(long pk,
2224                    com.liferay.portal.model.UserGroup userGroup);
2225    
2226            /**
2227            * Adds an association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2228            *
2229            * @param pk the primary key of the group
2230            * @param userGroupPKs the primary keys of the user groups
2231            */
2232            public void addUserGroups(long pk, long[] userGroupPKs);
2233    
2234            /**
2235            * Adds an association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2236            *
2237            * @param pk the primary key of the group
2238            * @param userGroups the user groups
2239            */
2240            public void addUserGroups(long pk,
2241                    java.util.List<com.liferay.portal.model.UserGroup> userGroups);
2242    
2243            /**
2244            * Clears all associations between the group and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2245            *
2246            * @param pk the primary key of the group to clear the associated user groups from
2247            */
2248            public void clearUserGroups(long pk);
2249    
2250            /**
2251            * Removes the association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2252            *
2253            * @param pk the primary key of the group
2254            * @param userGroupPK the primary key of the user group
2255            */
2256            public void removeUserGroup(long pk, long userGroupPK);
2257    
2258            /**
2259            * Removes the association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2260            *
2261            * @param pk the primary key of the group
2262            * @param userGroup the user group
2263            */
2264            public void removeUserGroup(long pk,
2265                    com.liferay.portal.model.UserGroup userGroup);
2266    
2267            /**
2268            * Removes the association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2269            *
2270            * @param pk the primary key of the group
2271            * @param userGroupPKs the primary keys of the user groups
2272            */
2273            public void removeUserGroups(long pk, long[] userGroupPKs);
2274    
2275            /**
2276            * Removes the association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2277            *
2278            * @param pk the primary key of the group
2279            * @param userGroups the user groups
2280            */
2281            public void removeUserGroups(long pk,
2282                    java.util.List<com.liferay.portal.model.UserGroup> userGroups);
2283    
2284            /**
2285            * Sets the user groups associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2286            *
2287            * @param pk the primary key of the group
2288            * @param userGroupPKs the primary keys of the user groups to be associated with the group
2289            */
2290            public void setUserGroups(long pk, long[] userGroupPKs);
2291    
2292            /**
2293            * Sets the user groups associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2294            *
2295            * @param pk the primary key of the group
2296            * @param userGroups the user groups to be associated with the group
2297            */
2298            public void setUserGroups(long pk,
2299                    java.util.List<com.liferay.portal.model.UserGroup> userGroups);
2300    
2301            /**
2302            * Returns the primaryKeys of users associated with the group.
2303            *
2304            * @param pk the primary key of the group
2305            * @return long[] of the primaryKeys of users associated with the group
2306            */
2307            public long[] getUserPrimaryKeys(long pk);
2308    
2309            /**
2310            * Returns all the users associated with the group.
2311            *
2312            * @param pk the primary key of the group
2313            * @return the users associated with the group
2314            */
2315            public java.util.List<com.liferay.portal.model.User> getUsers(long pk);
2316    
2317            /**
2318            * Returns a range of all the users associated with the group.
2319            *
2320            * <p>
2321            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
2322            * </p>
2323            *
2324            * @param pk the primary key of the group
2325            * @param start the lower bound of the range of groups
2326            * @param end the upper bound of the range of groups (not inclusive)
2327            * @return the range of users associated with the group
2328            */
2329            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
2330                    int start, int end);
2331    
2332            /**
2333            * Returns an ordered range of all the users associated with the group.
2334            *
2335            * <p>
2336            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.GroupModelImpl}. 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.
2337            * </p>
2338            *
2339            * @param pk the primary key of the group
2340            * @param start the lower bound of the range of groups
2341            * @param end the upper bound of the range of groups (not inclusive)
2342            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2343            * @return the ordered range of users associated with the group
2344            */
2345            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
2346                    int start, int end,
2347                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.User> orderByComparator);
2348    
2349            /**
2350            * Returns the number of users associated with the group.
2351            *
2352            * @param pk the primary key of the group
2353            * @return the number of users associated with the group
2354            */
2355            public int getUsersSize(long pk);
2356    
2357            /**
2358            * Returns <code>true</code> if the user is associated with the group.
2359            *
2360            * @param pk the primary key of the group
2361            * @param userPK the primary key of the user
2362            * @return <code>true</code> if the user is associated with the group; <code>false</code> otherwise
2363            */
2364            public boolean containsUser(long pk, long userPK);
2365    
2366            /**
2367            * Returns <code>true</code> if the group has any users associated with it.
2368            *
2369            * @param pk the primary key of the group to check for associations with users
2370            * @return <code>true</code> if the group has any users associated with it; <code>false</code> otherwise
2371            */
2372            public boolean containsUsers(long pk);
2373    
2374            /**
2375            * Adds an association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2376            *
2377            * @param pk the primary key of the group
2378            * @param userPK the primary key of the user
2379            */
2380            public void addUser(long pk, long userPK);
2381    
2382            /**
2383            * Adds an association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2384            *
2385            * @param pk the primary key of the group
2386            * @param user the user
2387            */
2388            public void addUser(long pk, com.liferay.portal.model.User user);
2389    
2390            /**
2391            * Adds an association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2392            *
2393            * @param pk the primary key of the group
2394            * @param userPKs the primary keys of the users
2395            */
2396            public void addUsers(long pk, long[] userPKs);
2397    
2398            /**
2399            * Adds an association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2400            *
2401            * @param pk the primary key of the group
2402            * @param users the users
2403            */
2404            public void addUsers(long pk,
2405                    java.util.List<com.liferay.portal.model.User> users);
2406    
2407            /**
2408            * Clears all associations between the group and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2409            *
2410            * @param pk the primary key of the group to clear the associated users from
2411            */
2412            public void clearUsers(long pk);
2413    
2414            /**
2415            * Removes the association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2416            *
2417            * @param pk the primary key of the group
2418            * @param userPK the primary key of the user
2419            */
2420            public void removeUser(long pk, long userPK);
2421    
2422            /**
2423            * Removes the association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2424            *
2425            * @param pk the primary key of the group
2426            * @param user the user
2427            */
2428            public void removeUser(long pk, com.liferay.portal.model.User user);
2429    
2430            /**
2431            * Removes the association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2432            *
2433            * @param pk the primary key of the group
2434            * @param userPKs the primary keys of the users
2435            */
2436            public void removeUsers(long pk, long[] userPKs);
2437    
2438            /**
2439            * Removes the association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2440            *
2441            * @param pk the primary key of the group
2442            * @param users the users
2443            */
2444            public void removeUsers(long pk,
2445                    java.util.List<com.liferay.portal.model.User> users);
2446    
2447            /**
2448            * Sets the users associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2449            *
2450            * @param pk the primary key of the group
2451            * @param userPKs the primary keys of the users to be associated with the group
2452            */
2453            public void setUsers(long pk, long[] userPKs);
2454    
2455            /**
2456            * Sets the users associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2457            *
2458            * @param pk the primary key of the group
2459            * @param users the users to be associated with the group
2460            */
2461            public void setUsers(long pk,
2462                    java.util.List<com.liferay.portal.model.User> users);
2463    }