001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import 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            * @throws SystemException if a system exception occurred
047            */
048            public java.util.List<com.liferay.portal.model.Group> findByUuid(
049                    java.lang.String uuid)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            /**
053            * Returns a range of all the groups where uuid = &#63;.
054            *
055            * <p>
056            * 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.
057            * </p>
058            *
059            * @param uuid the uuid
060            * @param start the lower bound of the range of groups
061            * @param end the upper bound of the range of groups (not inclusive)
062            * @return the range of matching groups
063            * @throws SystemException if a system exception occurred
064            */
065            public java.util.List<com.liferay.portal.model.Group> findByUuid(
066                    java.lang.String uuid, int start, int end)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            /**
070            * Returns an ordered range of all the groups where uuid = &#63;.
071            *
072            * <p>
073            * 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.
074            * </p>
075            *
076            * @param uuid the uuid
077            * @param start the lower bound of the range of groups
078            * @param end the upper bound of the range of groups (not inclusive)
079            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
080            * @return the ordered range of matching groups
081            * @throws SystemException if a system exception occurred
082            */
083            public java.util.List<com.liferay.portal.model.Group> findByUuid(
084                    java.lang.String uuid, int start, int end,
085                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
086                    throws com.liferay.portal.kernel.exception.SystemException;
087    
088            /**
089            * Returns the first group in the ordered set where uuid = &#63;.
090            *
091            * @param uuid the uuid
092            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
093            * @return the first matching group
094            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
095            * @throws SystemException if a system exception occurred
096            */
097            public com.liferay.portal.model.Group findByUuid_First(
098                    java.lang.String uuid,
099                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100                    throws com.liferay.portal.NoSuchGroupException,
101                            com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Returns the first group in the ordered set where uuid = &#63;.
105            *
106            * @param uuid the uuid
107            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
108            * @return the first matching group, or <code>null</code> if a matching group could not be found
109            * @throws SystemException if a system exception occurred
110            */
111            public com.liferay.portal.model.Group fetchByUuid_First(
112                    java.lang.String uuid,
113                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Returns the last group in the ordered set where uuid = &#63;.
118            *
119            * @param uuid the uuid
120            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
121            * @return the last matching group
122            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
123            * @throws SystemException if a system exception occurred
124            */
125            public com.liferay.portal.model.Group findByUuid_Last(
126                    java.lang.String uuid,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.NoSuchGroupException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            /**
132            * Returns the last group in the ordered set where uuid = &#63;.
133            *
134            * @param uuid the uuid
135            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
136            * @return the last matching group, or <code>null</code> if a matching group could not be found
137            * @throws SystemException if a system exception occurred
138            */
139            public com.liferay.portal.model.Group fetchByUuid_Last(
140                    java.lang.String uuid,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            /**
145            * Returns the groups before and after the current group in the ordered set where uuid = &#63;.
146            *
147            * @param groupId the primary key of the current group
148            * @param uuid the uuid
149            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
150            * @return the previous, current, and next group
151            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
152            * @throws SystemException if a system exception occurred
153            */
154            public com.liferay.portal.model.Group[] findByUuid_PrevAndNext(
155                    long groupId, java.lang.String uuid,
156                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157                    throws com.liferay.portal.NoSuchGroupException,
158                            com.liferay.portal.kernel.exception.SystemException;
159    
160            /**
161            * Removes all the groups where uuid = &#63; from the database.
162            *
163            * @param uuid the uuid
164            * @throws SystemException if a system exception occurred
165            */
166            public void removeByUuid(java.lang.String uuid)
167                    throws com.liferay.portal.kernel.exception.SystemException;
168    
169            /**
170            * Returns the number of groups where uuid = &#63;.
171            *
172            * @param uuid the uuid
173            * @return the number of matching groups
174            * @throws SystemException if a system exception occurred
175            */
176            public int countByUuid(java.lang.String uuid)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            /**
180            * Returns the group where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found.
181            *
182            * @param uuid the uuid
183            * @param groupId the group ID
184            * @return the matching group
185            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public com.liferay.portal.model.Group findByUUID_G(java.lang.String uuid,
189                    long groupId)
190                    throws com.liferay.portal.NoSuchGroupException,
191                            com.liferay.portal.kernel.exception.SystemException;
192    
193            /**
194            * Returns the group where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
195            *
196            * @param uuid the uuid
197            * @param groupId the group ID
198            * @return the matching group, or <code>null</code> if a matching group could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            public com.liferay.portal.model.Group fetchByUUID_G(java.lang.String uuid,
202                    long groupId)
203                    throws com.liferay.portal.kernel.exception.SystemException;
204    
205            /**
206            * 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.
207            *
208            * @param uuid the uuid
209            * @param groupId the group ID
210            * @param retrieveFromCache whether to use the finder cache
211            * @return the matching group, or <code>null</code> if a matching group could not be found
212            * @throws SystemException if a system exception occurred
213            */
214            public com.liferay.portal.model.Group fetchByUUID_G(java.lang.String uuid,
215                    long groupId, boolean retrieveFromCache)
216                    throws com.liferay.portal.kernel.exception.SystemException;
217    
218            /**
219            * Removes the group where uuid = &#63; and groupId = &#63; from the database.
220            *
221            * @param uuid the uuid
222            * @param groupId the group ID
223            * @return the group that was removed
224            * @throws SystemException if a system exception occurred
225            */
226            public com.liferay.portal.model.Group removeByUUID_G(
227                    java.lang.String uuid, long groupId)
228                    throws com.liferay.portal.NoSuchGroupException,
229                            com.liferay.portal.kernel.exception.SystemException;
230    
231            /**
232            * Returns the number of groups where uuid = &#63; and groupId = &#63;.
233            *
234            * @param uuid the uuid
235            * @param groupId the group ID
236            * @return the number of matching groups
237            * @throws SystemException if a system exception occurred
238            */
239            public int countByUUID_G(java.lang.String uuid, long groupId)
240                    throws com.liferay.portal.kernel.exception.SystemException;
241    
242            /**
243            * Returns all the groups where uuid = &#63; and companyId = &#63;.
244            *
245            * @param uuid the uuid
246            * @param companyId the company ID
247            * @return the matching groups
248            * @throws SystemException if a system exception occurred
249            */
250            public java.util.List<com.liferay.portal.model.Group> findByUuid_C(
251                    java.lang.String uuid, long companyId)
252                    throws com.liferay.portal.kernel.exception.SystemException;
253    
254            /**
255            * Returns a range of all the groups where uuid = &#63; and companyId = &#63;.
256            *
257            * <p>
258            * 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.
259            * </p>
260            *
261            * @param uuid the uuid
262            * @param companyId the company ID
263            * @param start the lower bound of the range of groups
264            * @param end the upper bound of the range of groups (not inclusive)
265            * @return the range of matching groups
266            * @throws SystemException if a system exception occurred
267            */
268            public java.util.List<com.liferay.portal.model.Group> findByUuid_C(
269                    java.lang.String uuid, long companyId, int start, int end)
270                    throws com.liferay.portal.kernel.exception.SystemException;
271    
272            /**
273            * Returns an ordered range of all the groups where uuid = &#63; and companyId = &#63;.
274            *
275            * <p>
276            * 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.
277            * </p>
278            *
279            * @param uuid the uuid
280            * @param companyId the company ID
281            * @param start the lower bound of the range of groups
282            * @param end the upper bound of the range of groups (not inclusive)
283            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
284            * @return the ordered range of matching groups
285            * @throws SystemException if a system exception occurred
286            */
287            public java.util.List<com.liferay.portal.model.Group> findByUuid_C(
288                    java.lang.String uuid, long companyId, int start, int end,
289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290                    throws com.liferay.portal.kernel.exception.SystemException;
291    
292            /**
293            * Returns the first group in the ordered set where uuid = &#63; and companyId = &#63;.
294            *
295            * @param uuid the uuid
296            * @param companyId the company ID
297            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
298            * @return the first matching group
299            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
300            * @throws SystemException if a system exception occurred
301            */
302            public com.liferay.portal.model.Group findByUuid_C_First(
303                    java.lang.String uuid, long companyId,
304                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305                    throws com.liferay.portal.NoSuchGroupException,
306                            com.liferay.portal.kernel.exception.SystemException;
307    
308            /**
309            * Returns the first group in the ordered set where uuid = &#63; and companyId = &#63;.
310            *
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 first matching group, or <code>null</code> if a matching group could not be found
315            * @throws SystemException if a system exception occurred
316            */
317            public com.liferay.portal.model.Group fetchByUuid_C_First(
318                    java.lang.String uuid, long companyId,
319                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320                    throws com.liferay.portal.kernel.exception.SystemException;
321    
322            /**
323            * Returns the last group in the ordered set where uuid = &#63; and companyId = &#63;.
324            *
325            * @param uuid the uuid
326            * @param companyId the company ID
327            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
328            * @return the last matching group
329            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
330            * @throws SystemException if a system exception occurred
331            */
332            public com.liferay.portal.model.Group findByUuid_C_Last(
333                    java.lang.String uuid, long companyId,
334                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
335                    throws com.liferay.portal.NoSuchGroupException,
336                            com.liferay.portal.kernel.exception.SystemException;
337    
338            /**
339            * Returns the last group in the ordered set where uuid = &#63; and companyId = &#63;.
340            *
341            * @param uuid the uuid
342            * @param companyId the company ID
343            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
344            * @return the last matching group, or <code>null</code> if a matching group could not be found
345            * @throws SystemException if a system exception occurred
346            */
347            public com.liferay.portal.model.Group fetchByUuid_C_Last(
348                    java.lang.String uuid, long companyId,
349                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
350                    throws com.liferay.portal.kernel.exception.SystemException;
351    
352            /**
353            * Returns the groups before and after the current group in the ordered set where uuid = &#63; and companyId = &#63;.
354            *
355            * @param groupId the primary key of the current group
356            * @param uuid the uuid
357            * @param companyId the company ID
358            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
359            * @return the previous, current, and next group
360            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
361            * @throws SystemException if a system exception occurred
362            */
363            public com.liferay.portal.model.Group[] findByUuid_C_PrevAndNext(
364                    long groupId, java.lang.String uuid, long companyId,
365                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366                    throws com.liferay.portal.NoSuchGroupException,
367                            com.liferay.portal.kernel.exception.SystemException;
368    
369            /**
370            * Removes all the groups where uuid = &#63; and companyId = &#63; from the database.
371            *
372            * @param uuid the uuid
373            * @param companyId the company ID
374            * @throws SystemException if a system exception occurred
375            */
376            public void removeByUuid_C(java.lang.String uuid, long companyId)
377                    throws com.liferay.portal.kernel.exception.SystemException;
378    
379            /**
380            * Returns the number of groups where uuid = &#63; and companyId = &#63;.
381            *
382            * @param uuid the uuid
383            * @param companyId the company ID
384            * @return the number of matching groups
385            * @throws SystemException if a system exception occurred
386            */
387            public int countByUuid_C(java.lang.String uuid, long companyId)
388                    throws com.liferay.portal.kernel.exception.SystemException;
389    
390            /**
391            * Returns all the groups where companyId = &#63;.
392            *
393            * @param companyId the company ID
394            * @return the matching groups
395            * @throws SystemException if a system exception occurred
396            */
397            public java.util.List<com.liferay.portal.model.Group> findByCompanyId(
398                    long companyId)
399                    throws com.liferay.portal.kernel.exception.SystemException;
400    
401            /**
402            * Returns a range of all the groups where companyId = &#63;.
403            *
404            * <p>
405            * 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.
406            * </p>
407            *
408            * @param companyId the company ID
409            * @param start the lower bound of the range of groups
410            * @param end the upper bound of the range of groups (not inclusive)
411            * @return the range of matching groups
412            * @throws SystemException if a system exception occurred
413            */
414            public java.util.List<com.liferay.portal.model.Group> findByCompanyId(
415                    long companyId, int start, int end)
416                    throws com.liferay.portal.kernel.exception.SystemException;
417    
418            /**
419            * Returns an ordered range of all the groups where companyId = &#63;.
420            *
421            * <p>
422            * 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.
423            * </p>
424            *
425            * @param companyId the company ID
426            * @param start the lower bound of the range of groups
427            * @param end the upper bound of the range of groups (not inclusive)
428            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
429            * @return the ordered range of matching groups
430            * @throws SystemException if a system exception occurred
431            */
432            public java.util.List<com.liferay.portal.model.Group> findByCompanyId(
433                    long companyId, int start, int end,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.kernel.exception.SystemException;
436    
437            /**
438            * Returns the first group in the ordered set where companyId = &#63;.
439            *
440            * @param companyId the company ID
441            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
442            * @return the first matching group
443            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
444            * @throws SystemException if a system exception occurred
445            */
446            public com.liferay.portal.model.Group findByCompanyId_First(
447                    long companyId,
448                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
449                    throws com.liferay.portal.NoSuchGroupException,
450                            com.liferay.portal.kernel.exception.SystemException;
451    
452            /**
453            * Returns the first group in the ordered set where companyId = &#63;.
454            *
455            * @param companyId the company ID
456            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
457            * @return the first matching group, or <code>null</code> if a matching group could not be found
458            * @throws SystemException if a system exception occurred
459            */
460            public com.liferay.portal.model.Group fetchByCompanyId_First(
461                    long companyId,
462                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
463                    throws com.liferay.portal.kernel.exception.SystemException;
464    
465            /**
466            * Returns the last group in the ordered set where companyId = &#63;.
467            *
468            * @param companyId the company ID
469            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
470            * @return the last matching group
471            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
472            * @throws SystemException if a system exception occurred
473            */
474            public com.liferay.portal.model.Group findByCompanyId_Last(long companyId,
475                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
476                    throws com.liferay.portal.NoSuchGroupException,
477                            com.liferay.portal.kernel.exception.SystemException;
478    
479            /**
480            * Returns the last group in the ordered set where companyId = &#63;.
481            *
482            * @param companyId the company ID
483            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
484            * @return the last matching group, or <code>null</code> if a matching group could not be found
485            * @throws SystemException if a system exception occurred
486            */
487            public com.liferay.portal.model.Group fetchByCompanyId_Last(
488                    long companyId,
489                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
490                    throws com.liferay.portal.kernel.exception.SystemException;
491    
492            /**
493            * Returns the groups before and after the current group in the ordered set where companyId = &#63;.
494            *
495            * @param groupId the primary key of the current group
496            * @param companyId the company ID
497            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
498            * @return the previous, current, and next group
499            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
500            * @throws SystemException if a system exception occurred
501            */
502            public com.liferay.portal.model.Group[] findByCompanyId_PrevAndNext(
503                    long groupId, long companyId,
504                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
505                    throws com.liferay.portal.NoSuchGroupException,
506                            com.liferay.portal.kernel.exception.SystemException;
507    
508            /**
509            * Removes all the groups where companyId = &#63; from the database.
510            *
511            * @param companyId the company ID
512            * @throws SystemException if a system exception occurred
513            */
514            public void removeByCompanyId(long companyId)
515                    throws com.liferay.portal.kernel.exception.SystemException;
516    
517            /**
518            * Returns the number of groups where companyId = &#63;.
519            *
520            * @param companyId the company ID
521            * @return the number of matching groups
522            * @throws SystemException if a system exception occurred
523            */
524            public int countByCompanyId(long companyId)
525                    throws com.liferay.portal.kernel.exception.SystemException;
526    
527            /**
528            * Returns the group where liveGroupId = &#63; or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found.
529            *
530            * @param liveGroupId the live group ID
531            * @return the matching group
532            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
533            * @throws SystemException if a system exception occurred
534            */
535            public com.liferay.portal.model.Group findByLiveGroupId(long liveGroupId)
536                    throws com.liferay.portal.NoSuchGroupException,
537                            com.liferay.portal.kernel.exception.SystemException;
538    
539            /**
540            * Returns the group where liveGroupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
541            *
542            * @param liveGroupId the live group ID
543            * @return the matching group, or <code>null</code> if a matching group could not be found
544            * @throws SystemException if a system exception occurred
545            */
546            public com.liferay.portal.model.Group fetchByLiveGroupId(long liveGroupId)
547                    throws com.liferay.portal.kernel.exception.SystemException;
548    
549            /**
550            * Returns the group where liveGroupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
551            *
552            * @param liveGroupId the live group ID
553            * @param retrieveFromCache whether to use the finder cache
554            * @return the matching group, or <code>null</code> if a matching group could not be found
555            * @throws SystemException if a system exception occurred
556            */
557            public com.liferay.portal.model.Group fetchByLiveGroupId(long liveGroupId,
558                    boolean retrieveFromCache)
559                    throws com.liferay.portal.kernel.exception.SystemException;
560    
561            /**
562            * Removes the group where liveGroupId = &#63; from the database.
563            *
564            * @param liveGroupId the live group ID
565            * @return the group that was removed
566            * @throws SystemException if a system exception occurred
567            */
568            public com.liferay.portal.model.Group removeByLiveGroupId(long liveGroupId)
569                    throws com.liferay.portal.NoSuchGroupException,
570                            com.liferay.portal.kernel.exception.SystemException;
571    
572            /**
573            * Returns the number of groups where liveGroupId = &#63;.
574            *
575            * @param liveGroupId the live group ID
576            * @return the number of matching groups
577            * @throws SystemException if a system exception occurred
578            */
579            public int countByLiveGroupId(long liveGroupId)
580                    throws com.liferay.portal.kernel.exception.SystemException;
581    
582            /**
583            * Returns all the groups where companyId = &#63; and classNameId = &#63;.
584            *
585            * @param companyId the company ID
586            * @param classNameId the class name ID
587            * @return the matching groups
588            * @throws SystemException if a system exception occurred
589            */
590            public java.util.List<com.liferay.portal.model.Group> findByC_C(
591                    long companyId, long classNameId)
592                    throws com.liferay.portal.kernel.exception.SystemException;
593    
594            /**
595            * Returns a range of all the groups where companyId = &#63; and classNameId = &#63;.
596            *
597            * <p>
598            * 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.
599            * </p>
600            *
601            * @param companyId the company ID
602            * @param classNameId the class name ID
603            * @param start the lower bound of the range of groups
604            * @param end the upper bound of the range of groups (not inclusive)
605            * @return the range of matching groups
606            * @throws SystemException if a system exception occurred
607            */
608            public java.util.List<com.liferay.portal.model.Group> findByC_C(
609                    long companyId, long classNameId, int start, int end)
610                    throws com.liferay.portal.kernel.exception.SystemException;
611    
612            /**
613            * Returns an ordered range of all the groups where companyId = &#63; and classNameId = &#63;.
614            *
615            * <p>
616            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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.
617            * </p>
618            *
619            * @param companyId the company ID
620            * @param classNameId the class name ID
621            * @param start the lower bound of the range of groups
622            * @param end the upper bound of the range of groups (not inclusive)
623            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
624            * @return the ordered range of matching groups
625            * @throws SystemException if a system exception occurred
626            */
627            public java.util.List<com.liferay.portal.model.Group> findByC_C(
628                    long companyId, long classNameId, int start, int end,
629                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
630                    throws com.liferay.portal.kernel.exception.SystemException;
631    
632            /**
633            * Returns the first group in the ordered set where companyId = &#63; and classNameId = &#63;.
634            *
635            * @param companyId the company ID
636            * @param classNameId the class name ID
637            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
638            * @return the first matching group
639            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
640            * @throws SystemException if a system exception occurred
641            */
642            public com.liferay.portal.model.Group findByC_C_First(long companyId,
643                    long classNameId,
644                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
645                    throws com.liferay.portal.NoSuchGroupException,
646                            com.liferay.portal.kernel.exception.SystemException;
647    
648            /**
649            * Returns the first group in the ordered set where companyId = &#63; and classNameId = &#63;.
650            *
651            * @param companyId the company ID
652            * @param classNameId the class name ID
653            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
654            * @return the first matching group, or <code>null</code> if a matching group could not be found
655            * @throws SystemException if a system exception occurred
656            */
657            public com.liferay.portal.model.Group fetchByC_C_First(long companyId,
658                    long classNameId,
659                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
660                    throws com.liferay.portal.kernel.exception.SystemException;
661    
662            /**
663            * Returns the last group in the ordered set where companyId = &#63; and classNameId = &#63;.
664            *
665            * @param companyId the company ID
666            * @param classNameId the class name ID
667            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
668            * @return the last matching group
669            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
670            * @throws SystemException if a system exception occurred
671            */
672            public com.liferay.portal.model.Group findByC_C_Last(long companyId,
673                    long classNameId,
674                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
675                    throws com.liferay.portal.NoSuchGroupException,
676                            com.liferay.portal.kernel.exception.SystemException;
677    
678            /**
679            * Returns the last group in the ordered set where companyId = &#63; and classNameId = &#63;.
680            *
681            * @param companyId the company ID
682            * @param classNameId the class name ID
683            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
684            * @return the last matching group, or <code>null</code> if a matching group could not be found
685            * @throws SystemException if a system exception occurred
686            */
687            public com.liferay.portal.model.Group fetchByC_C_Last(long companyId,
688                    long classNameId,
689                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
690                    throws com.liferay.portal.kernel.exception.SystemException;
691    
692            /**
693            * Returns the groups before and after the current group in the ordered set where companyId = &#63; and classNameId = &#63;.
694            *
695            * @param groupId the primary key of the current group
696            * @param companyId the company ID
697            * @param classNameId the class name ID
698            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
699            * @return the previous, current, and next group
700            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
701            * @throws SystemException if a system exception occurred
702            */
703            public com.liferay.portal.model.Group[] findByC_C_PrevAndNext(
704                    long groupId, long companyId, long classNameId,
705                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
706                    throws com.liferay.portal.NoSuchGroupException,
707                            com.liferay.portal.kernel.exception.SystemException;
708    
709            /**
710            * Removes all the groups where companyId = &#63; and classNameId = &#63; from the database.
711            *
712            * @param companyId the company ID
713            * @param classNameId the class name ID
714            * @throws SystemException if a system exception occurred
715            */
716            public void removeByC_C(long companyId, long classNameId)
717                    throws com.liferay.portal.kernel.exception.SystemException;
718    
719            /**
720            * Returns the number of groups where companyId = &#63; and classNameId = &#63;.
721            *
722            * @param companyId the company ID
723            * @param classNameId the class name ID
724            * @return the number of matching groups
725            * @throws SystemException if a system exception occurred
726            */
727            public int countByC_C(long companyId, long classNameId)
728                    throws com.liferay.portal.kernel.exception.SystemException;
729    
730            /**
731            * Returns all the groups where companyId = &#63; and parentGroupId = &#63;.
732            *
733            * @param companyId the company ID
734            * @param parentGroupId the parent group ID
735            * @return the matching groups
736            * @throws SystemException if a system exception occurred
737            */
738            public java.util.List<com.liferay.portal.model.Group> findByC_P(
739                    long companyId, long parentGroupId)
740                    throws com.liferay.portal.kernel.exception.SystemException;
741    
742            /**
743            * Returns a range of all the groups where companyId = &#63; and parentGroupId = &#63;.
744            *
745            * <p>
746            * 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.
747            * </p>
748            *
749            * @param companyId the company ID
750            * @param parentGroupId the parent group ID
751            * @param start the lower bound of the range of groups
752            * @param end the upper bound of the range of groups (not inclusive)
753            * @return the range of matching groups
754            * @throws SystemException if a system exception occurred
755            */
756            public java.util.List<com.liferay.portal.model.Group> findByC_P(
757                    long companyId, long parentGroupId, int start, int end)
758                    throws com.liferay.portal.kernel.exception.SystemException;
759    
760            /**
761            * Returns an ordered range of all the groups where companyId = &#63; and parentGroupId = &#63;.
762            *
763            * <p>
764            * 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.
765            * </p>
766            *
767            * @param companyId the company ID
768            * @param parentGroupId the parent group ID
769            * @param start the lower bound of the range of groups
770            * @param end the upper bound of the range of groups (not inclusive)
771            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
772            * @return the ordered range of matching groups
773            * @throws SystemException if a system exception occurred
774            */
775            public java.util.List<com.liferay.portal.model.Group> findByC_P(
776                    long companyId, long parentGroupId, int start, int end,
777                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
778                    throws com.liferay.portal.kernel.exception.SystemException;
779    
780            /**
781            * Returns the first group in the ordered set where companyId = &#63; and parentGroupId = &#63;.
782            *
783            * @param companyId the company ID
784            * @param parentGroupId the parent group ID
785            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
786            * @return the first matching group
787            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
788            * @throws SystemException if a system exception occurred
789            */
790            public com.liferay.portal.model.Group findByC_P_First(long companyId,
791                    long parentGroupId,
792                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
793                    throws com.liferay.portal.NoSuchGroupException,
794                            com.liferay.portal.kernel.exception.SystemException;
795    
796            /**
797            * Returns the first group in the ordered set where companyId = &#63; and parentGroupId = &#63;.
798            *
799            * @param companyId the company ID
800            * @param parentGroupId the parent group ID
801            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
802            * @return the first matching group, or <code>null</code> if a matching group could not be found
803            * @throws SystemException if a system exception occurred
804            */
805            public com.liferay.portal.model.Group fetchByC_P_First(long companyId,
806                    long parentGroupId,
807                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
808                    throws com.liferay.portal.kernel.exception.SystemException;
809    
810            /**
811            * Returns the last group in the ordered set where companyId = &#63; and parentGroupId = &#63;.
812            *
813            * @param companyId the company ID
814            * @param parentGroupId the parent group ID
815            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
816            * @return the last matching group
817            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
818            * @throws SystemException if a system exception occurred
819            */
820            public com.liferay.portal.model.Group findByC_P_Last(long companyId,
821                    long parentGroupId,
822                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
823                    throws com.liferay.portal.NoSuchGroupException,
824                            com.liferay.portal.kernel.exception.SystemException;
825    
826            /**
827            * Returns the last group in the ordered set where companyId = &#63; and parentGroupId = &#63;.
828            *
829            * @param companyId the company ID
830            * @param parentGroupId the parent group ID
831            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
832            * @return the last matching group, or <code>null</code> if a matching group could not be found
833            * @throws SystemException if a system exception occurred
834            */
835            public com.liferay.portal.model.Group fetchByC_P_Last(long companyId,
836                    long parentGroupId,
837                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
838                    throws com.liferay.portal.kernel.exception.SystemException;
839    
840            /**
841            * Returns the groups before and after the current group in the ordered set where companyId = &#63; and parentGroupId = &#63;.
842            *
843            * @param groupId the primary key of the current group
844            * @param companyId the company ID
845            * @param parentGroupId the parent group ID
846            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
847            * @return the previous, current, and next group
848            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
849            * @throws SystemException if a system exception occurred
850            */
851            public com.liferay.portal.model.Group[] findByC_P_PrevAndNext(
852                    long groupId, long companyId, long parentGroupId,
853                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
854                    throws com.liferay.portal.NoSuchGroupException,
855                            com.liferay.portal.kernel.exception.SystemException;
856    
857            /**
858            * Removes all the groups where companyId = &#63; and parentGroupId = &#63; from the database.
859            *
860            * @param companyId the company ID
861            * @param parentGroupId the parent group ID
862            * @throws SystemException if a system exception occurred
863            */
864            public void removeByC_P(long companyId, long parentGroupId)
865                    throws com.liferay.portal.kernel.exception.SystemException;
866    
867            /**
868            * Returns the number of groups where companyId = &#63; and parentGroupId = &#63;.
869            *
870            * @param companyId the company ID
871            * @param parentGroupId the parent group ID
872            * @return the number of matching groups
873            * @throws SystemException if a system exception occurred
874            */
875            public int countByC_P(long companyId, long parentGroupId)
876                    throws com.liferay.portal.kernel.exception.SystemException;
877    
878            /**
879            * Returns the group where companyId = &#63; and name = &#63; or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found.
880            *
881            * @param companyId the company ID
882            * @param name the name
883            * @return the matching group
884            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
885            * @throws SystemException if a system exception occurred
886            */
887            public com.liferay.portal.model.Group findByC_N(long companyId,
888                    java.lang.String name)
889                    throws com.liferay.portal.NoSuchGroupException,
890                            com.liferay.portal.kernel.exception.SystemException;
891    
892            /**
893            * Returns the group where companyId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
894            *
895            * @param companyId the company ID
896            * @param name the name
897            * @return the matching group, or <code>null</code> if a matching group could not be found
898            * @throws SystemException if a system exception occurred
899            */
900            public com.liferay.portal.model.Group fetchByC_N(long companyId,
901                    java.lang.String name)
902                    throws com.liferay.portal.kernel.exception.SystemException;
903    
904            /**
905            * 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.
906            *
907            * @param companyId the company ID
908            * @param name the name
909            * @param retrieveFromCache whether to use the finder cache
910            * @return the matching group, or <code>null</code> if a matching group could not be found
911            * @throws SystemException if a system exception occurred
912            */
913            public com.liferay.portal.model.Group fetchByC_N(long companyId,
914                    java.lang.String name, boolean retrieveFromCache)
915                    throws com.liferay.portal.kernel.exception.SystemException;
916    
917            /**
918            * Removes the group where companyId = &#63; and name = &#63; from the database.
919            *
920            * @param companyId the company ID
921            * @param name the name
922            * @return the group that was removed
923            * @throws SystemException if a system exception occurred
924            */
925            public com.liferay.portal.model.Group removeByC_N(long companyId,
926                    java.lang.String name)
927                    throws com.liferay.portal.NoSuchGroupException,
928                            com.liferay.portal.kernel.exception.SystemException;
929    
930            /**
931            * Returns the number of groups where companyId = &#63; and name = &#63;.
932            *
933            * @param companyId the company ID
934            * @param name the name
935            * @return the number of matching groups
936            * @throws SystemException if a system exception occurred
937            */
938            public int countByC_N(long companyId, java.lang.String name)
939                    throws com.liferay.portal.kernel.exception.SystemException;
940    
941            /**
942            * Returns the group where companyId = &#63; and friendlyURL = &#63; or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found.
943            *
944            * @param companyId the company ID
945            * @param friendlyURL the friendly u r l
946            * @return the matching group
947            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
948            * @throws SystemException if a system exception occurred
949            */
950            public com.liferay.portal.model.Group findByC_F(long companyId,
951                    java.lang.String friendlyURL)
952                    throws com.liferay.portal.NoSuchGroupException,
953                            com.liferay.portal.kernel.exception.SystemException;
954    
955            /**
956            * Returns the group where companyId = &#63; and friendlyURL = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
957            *
958            * @param companyId the company ID
959            * @param friendlyURL the friendly u r l
960            * @return the matching group, or <code>null</code> if a matching group could not be found
961            * @throws SystemException if a system exception occurred
962            */
963            public com.liferay.portal.model.Group fetchByC_F(long companyId,
964                    java.lang.String friendlyURL)
965                    throws com.liferay.portal.kernel.exception.SystemException;
966    
967            /**
968            * 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.
969            *
970            * @param companyId the company ID
971            * @param friendlyURL the friendly u r l
972            * @param retrieveFromCache whether to use the finder cache
973            * @return the matching group, or <code>null</code> if a matching group could not be found
974            * @throws SystemException if a system exception occurred
975            */
976            public com.liferay.portal.model.Group fetchByC_F(long companyId,
977                    java.lang.String friendlyURL, boolean retrieveFromCache)
978                    throws com.liferay.portal.kernel.exception.SystemException;
979    
980            /**
981            * Removes the group where companyId = &#63; and friendlyURL = &#63; from the database.
982            *
983            * @param companyId the company ID
984            * @param friendlyURL the friendly u r l
985            * @return the group that was removed
986            * @throws SystemException if a system exception occurred
987            */
988            public com.liferay.portal.model.Group removeByC_F(long companyId,
989                    java.lang.String friendlyURL)
990                    throws com.liferay.portal.NoSuchGroupException,
991                            com.liferay.portal.kernel.exception.SystemException;
992    
993            /**
994            * Returns the number of groups where companyId = &#63; and friendlyURL = &#63;.
995            *
996            * @param companyId the company ID
997            * @param friendlyURL the friendly u r l
998            * @return the number of matching groups
999            * @throws SystemException if a system exception occurred
1000            */
1001            public int countByC_F(long companyId, java.lang.String friendlyURL)
1002                    throws com.liferay.portal.kernel.exception.SystemException;
1003    
1004            /**
1005            * Returns all the groups where companyId = &#63; and site = &#63;.
1006            *
1007            * @param companyId the company ID
1008            * @param site the site
1009            * @return the matching groups
1010            * @throws SystemException if a system exception occurred
1011            */
1012            public java.util.List<com.liferay.portal.model.Group> findByC_S(
1013                    long companyId, boolean site)
1014                    throws com.liferay.portal.kernel.exception.SystemException;
1015    
1016            /**
1017            * Returns a range of all the groups where companyId = &#63; and site = &#63;.
1018            *
1019            * <p>
1020            * 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.
1021            * </p>
1022            *
1023            * @param companyId the company ID
1024            * @param site the site
1025            * @param start the lower bound of the range of groups
1026            * @param end the upper bound of the range of groups (not inclusive)
1027            * @return the range of matching groups
1028            * @throws SystemException if a system exception occurred
1029            */
1030            public java.util.List<com.liferay.portal.model.Group> findByC_S(
1031                    long companyId, boolean site, int start, int end)
1032                    throws com.liferay.portal.kernel.exception.SystemException;
1033    
1034            /**
1035            * Returns an ordered range of all the groups where companyId = &#63; and site = &#63;.
1036            *
1037            * <p>
1038            * 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.
1039            * </p>
1040            *
1041            * @param companyId the company ID
1042            * @param site the site
1043            * @param start the lower bound of the range of groups
1044            * @param end the upper bound of the range of groups (not inclusive)
1045            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1046            * @return the ordered range of matching groups
1047            * @throws SystemException if a system exception occurred
1048            */
1049            public java.util.List<com.liferay.portal.model.Group> findByC_S(
1050                    long companyId, boolean site, int start, int end,
1051                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1052                    throws com.liferay.portal.kernel.exception.SystemException;
1053    
1054            /**
1055            * Returns the first group in the ordered set where companyId = &#63; and site = &#63;.
1056            *
1057            * @param companyId the company ID
1058            * @param site the site
1059            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1060            * @return the first matching group
1061            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1062            * @throws SystemException if a system exception occurred
1063            */
1064            public com.liferay.portal.model.Group findByC_S_First(long companyId,
1065                    boolean site,
1066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1067                    throws com.liferay.portal.NoSuchGroupException,
1068                            com.liferay.portal.kernel.exception.SystemException;
1069    
1070            /**
1071            * Returns the first group in the ordered set where companyId = &#63; and site = &#63;.
1072            *
1073            * @param companyId the company ID
1074            * @param site the site
1075            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1076            * @return the first matching group, or <code>null</code> if a matching group could not be found
1077            * @throws SystemException if a system exception occurred
1078            */
1079            public com.liferay.portal.model.Group fetchByC_S_First(long companyId,
1080                    boolean site,
1081                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1082                    throws com.liferay.portal.kernel.exception.SystemException;
1083    
1084            /**
1085            * Returns the last group in the ordered set where companyId = &#63; and site = &#63;.
1086            *
1087            * @param companyId the company ID
1088            * @param site the site
1089            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1090            * @return the last matching group
1091            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1092            * @throws SystemException if a system exception occurred
1093            */
1094            public com.liferay.portal.model.Group findByC_S_Last(long companyId,
1095                    boolean site,
1096                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1097                    throws com.liferay.portal.NoSuchGroupException,
1098                            com.liferay.portal.kernel.exception.SystemException;
1099    
1100            /**
1101            * Returns the last group in the ordered set where companyId = &#63; and site = &#63;.
1102            *
1103            * @param companyId the company ID
1104            * @param site the site
1105            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1106            * @return the last matching group, or <code>null</code> if a matching group could not be found
1107            * @throws SystemException if a system exception occurred
1108            */
1109            public com.liferay.portal.model.Group fetchByC_S_Last(long companyId,
1110                    boolean site,
1111                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1112                    throws com.liferay.portal.kernel.exception.SystemException;
1113    
1114            /**
1115            * Returns the groups before and after the current group in the ordered set where companyId = &#63; and site = &#63;.
1116            *
1117            * @param groupId the primary key of the current group
1118            * @param companyId the company ID
1119            * @param site the site
1120            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1121            * @return the previous, current, and next group
1122            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
1123            * @throws SystemException if a system exception occurred
1124            */
1125            public com.liferay.portal.model.Group[] findByC_S_PrevAndNext(
1126                    long groupId, long companyId, boolean site,
1127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1128                    throws com.liferay.portal.NoSuchGroupException,
1129                            com.liferay.portal.kernel.exception.SystemException;
1130    
1131            /**
1132            * Removes all the groups where companyId = &#63; and site = &#63; from the database.
1133            *
1134            * @param companyId the company ID
1135            * @param site the site
1136            * @throws SystemException if a system exception occurred
1137            */
1138            public void removeByC_S(long companyId, boolean site)
1139                    throws com.liferay.portal.kernel.exception.SystemException;
1140    
1141            /**
1142            * Returns the number of groups where companyId = &#63; and site = &#63;.
1143            *
1144            * @param companyId the company ID
1145            * @param site the site
1146            * @return the number of matching groups
1147            * @throws SystemException if a system exception occurred
1148            */
1149            public int countByC_S(long companyId, boolean site)
1150                    throws com.liferay.portal.kernel.exception.SystemException;
1151    
1152            /**
1153            * Returns all the groups where companyId = &#63; and active = &#63;.
1154            *
1155            * @param companyId the company ID
1156            * @param active the active
1157            * @return the matching groups
1158            * @throws SystemException if a system exception occurred
1159            */
1160            public java.util.List<com.liferay.portal.model.Group> findByC_A(
1161                    long companyId, boolean active)
1162                    throws com.liferay.portal.kernel.exception.SystemException;
1163    
1164            /**
1165            * Returns a range of all the groups where companyId = &#63; and active = &#63;.
1166            *
1167            * <p>
1168            * 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.
1169            * </p>
1170            *
1171            * @param companyId the company ID
1172            * @param active the active
1173            * @param start the lower bound of the range of groups
1174            * @param end the upper bound of the range of groups (not inclusive)
1175            * @return the range of matching groups
1176            * @throws SystemException if a system exception occurred
1177            */
1178            public java.util.List<com.liferay.portal.model.Group> findByC_A(
1179                    long companyId, boolean active, int start, int end)
1180                    throws com.liferay.portal.kernel.exception.SystemException;
1181    
1182            /**
1183            * Returns an ordered range of all the groups where companyId = &#63; and active = &#63;.
1184            *
1185            * <p>
1186            * 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.
1187            * </p>
1188            *
1189            * @param companyId the company ID
1190            * @param active the active
1191            * @param start the lower bound of the range of groups
1192            * @param end the upper bound of the range of groups (not inclusive)
1193            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1194            * @return the ordered range of matching groups
1195            * @throws SystemException if a system exception occurred
1196            */
1197            public java.util.List<com.liferay.portal.model.Group> findByC_A(
1198                    long companyId, boolean active, int start, int end,
1199                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1200                    throws com.liferay.portal.kernel.exception.SystemException;
1201    
1202            /**
1203            * Returns the first group in the ordered set where companyId = &#63; and active = &#63;.
1204            *
1205            * @param companyId the company ID
1206            * @param active the active
1207            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1208            * @return the first matching group
1209            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1210            * @throws SystemException if a system exception occurred
1211            */
1212            public com.liferay.portal.model.Group findByC_A_First(long companyId,
1213                    boolean active,
1214                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1215                    throws com.liferay.portal.NoSuchGroupException,
1216                            com.liferay.portal.kernel.exception.SystemException;
1217    
1218            /**
1219            * Returns the first group in the ordered set where companyId = &#63; and active = &#63;.
1220            *
1221            * @param companyId the company ID
1222            * @param active the active
1223            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1224            * @return the first matching group, or <code>null</code> if a matching group could not be found
1225            * @throws SystemException if a system exception occurred
1226            */
1227            public com.liferay.portal.model.Group fetchByC_A_First(long companyId,
1228                    boolean active,
1229                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1230                    throws com.liferay.portal.kernel.exception.SystemException;
1231    
1232            /**
1233            * Returns the last group in the ordered set where companyId = &#63; and active = &#63;.
1234            *
1235            * @param companyId the company ID
1236            * @param active the active
1237            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1238            * @return the last matching group
1239            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1240            * @throws SystemException if a system exception occurred
1241            */
1242            public com.liferay.portal.model.Group findByC_A_Last(long companyId,
1243                    boolean active,
1244                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1245                    throws com.liferay.portal.NoSuchGroupException,
1246                            com.liferay.portal.kernel.exception.SystemException;
1247    
1248            /**
1249            * Returns the last group in the ordered set where companyId = &#63; and active = &#63;.
1250            *
1251            * @param companyId the company ID
1252            * @param active the active
1253            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1254            * @return the last matching group, or <code>null</code> if a matching group could not be found
1255            * @throws SystemException if a system exception occurred
1256            */
1257            public com.liferay.portal.model.Group fetchByC_A_Last(long companyId,
1258                    boolean active,
1259                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1260                    throws com.liferay.portal.kernel.exception.SystemException;
1261    
1262            /**
1263            * Returns the groups before and after the current group in the ordered set where companyId = &#63; and active = &#63;.
1264            *
1265            * @param groupId the primary key of the current group
1266            * @param companyId the company ID
1267            * @param active the active
1268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1269            * @return the previous, current, and next group
1270            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
1271            * @throws SystemException if a system exception occurred
1272            */
1273            public com.liferay.portal.model.Group[] findByC_A_PrevAndNext(
1274                    long groupId, long companyId, boolean active,
1275                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1276                    throws com.liferay.portal.NoSuchGroupException,
1277                            com.liferay.portal.kernel.exception.SystemException;
1278    
1279            /**
1280            * Removes all the groups where companyId = &#63; and active = &#63; from the database.
1281            *
1282            * @param companyId the company ID
1283            * @param active the active
1284            * @throws SystemException if a system exception occurred
1285            */
1286            public void removeByC_A(long companyId, boolean active)
1287                    throws com.liferay.portal.kernel.exception.SystemException;
1288    
1289            /**
1290            * Returns the number of groups where companyId = &#63; and active = &#63;.
1291            *
1292            * @param companyId the company ID
1293            * @param active the active
1294            * @return the number of matching groups
1295            * @throws SystemException if a system exception occurred
1296            */
1297            public int countByC_A(long companyId, boolean active)
1298                    throws com.liferay.portal.kernel.exception.SystemException;
1299    
1300            /**
1301            * Returns all the groups where type = &#63; and active = &#63;.
1302            *
1303            * @param type the type
1304            * @param active the active
1305            * @return the matching groups
1306            * @throws SystemException if a system exception occurred
1307            */
1308            public java.util.List<com.liferay.portal.model.Group> findByT_A(int type,
1309                    boolean active)
1310                    throws com.liferay.portal.kernel.exception.SystemException;
1311    
1312            /**
1313            * Returns a range of all the groups where type = &#63; and active = &#63;.
1314            *
1315            * <p>
1316            * 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.
1317            * </p>
1318            *
1319            * @param type the type
1320            * @param active the active
1321            * @param start the lower bound of the range of groups
1322            * @param end the upper bound of the range of groups (not inclusive)
1323            * @return the range of matching groups
1324            * @throws SystemException if a system exception occurred
1325            */
1326            public java.util.List<com.liferay.portal.model.Group> findByT_A(int type,
1327                    boolean active, int start, int end)
1328                    throws com.liferay.portal.kernel.exception.SystemException;
1329    
1330            /**
1331            * Returns an ordered range of all the groups where type = &#63; and active = &#63;.
1332            *
1333            * <p>
1334            * 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.
1335            * </p>
1336            *
1337            * @param type the type
1338            * @param active the active
1339            * @param start the lower bound of the range of groups
1340            * @param end the upper bound of the range of groups (not inclusive)
1341            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1342            * @return the ordered range of matching groups
1343            * @throws SystemException if a system exception occurred
1344            */
1345            public java.util.List<com.liferay.portal.model.Group> findByT_A(int type,
1346                    boolean active, int start, int end,
1347                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1348                    throws com.liferay.portal.kernel.exception.SystemException;
1349    
1350            /**
1351            * Returns the first group in the ordered set where type = &#63; and active = &#63;.
1352            *
1353            * @param type the type
1354            * @param active the active
1355            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1356            * @return the first matching group
1357            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1358            * @throws SystemException if a system exception occurred
1359            */
1360            public com.liferay.portal.model.Group findByT_A_First(int type,
1361                    boolean active,
1362                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1363                    throws com.liferay.portal.NoSuchGroupException,
1364                            com.liferay.portal.kernel.exception.SystemException;
1365    
1366            /**
1367            * Returns the first group in the ordered set where type = &#63; and active = &#63;.
1368            *
1369            * @param type the type
1370            * @param active the active
1371            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1372            * @return the first matching group, or <code>null</code> if a matching group could not be found
1373            * @throws SystemException if a system exception occurred
1374            */
1375            public com.liferay.portal.model.Group fetchByT_A_First(int type,
1376                    boolean active,
1377                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1378                    throws com.liferay.portal.kernel.exception.SystemException;
1379    
1380            /**
1381            * Returns the last group in the ordered set where type = &#63; and active = &#63;.
1382            *
1383            * @param type the type
1384            * @param active the active
1385            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1386            * @return the last matching group
1387            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1388            * @throws SystemException if a system exception occurred
1389            */
1390            public com.liferay.portal.model.Group findByT_A_Last(int type,
1391                    boolean active,
1392                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1393                    throws com.liferay.portal.NoSuchGroupException,
1394                            com.liferay.portal.kernel.exception.SystemException;
1395    
1396            /**
1397            * Returns the last group in the ordered set where type = &#63; and active = &#63;.
1398            *
1399            * @param type the type
1400            * @param active the active
1401            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1402            * @return the last matching group, or <code>null</code> if a matching group could not be found
1403            * @throws SystemException if a system exception occurred
1404            */
1405            public com.liferay.portal.model.Group fetchByT_A_Last(int type,
1406                    boolean active,
1407                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1408                    throws com.liferay.portal.kernel.exception.SystemException;
1409    
1410            /**
1411            * Returns the groups before and after the current group in the ordered set where type = &#63; and active = &#63;.
1412            *
1413            * @param groupId the primary key of the current group
1414            * @param type the type
1415            * @param active the active
1416            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1417            * @return the previous, current, and next group
1418            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
1419            * @throws SystemException if a system exception occurred
1420            */
1421            public com.liferay.portal.model.Group[] findByT_A_PrevAndNext(
1422                    long groupId, int type, boolean active,
1423                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1424                    throws com.liferay.portal.NoSuchGroupException,
1425                            com.liferay.portal.kernel.exception.SystemException;
1426    
1427            /**
1428            * Removes all the groups where type = &#63; and active = &#63; from the database.
1429            *
1430            * @param type the type
1431            * @param active the active
1432            * @throws SystemException if a system exception occurred
1433            */
1434            public void removeByT_A(int type, boolean active)
1435                    throws com.liferay.portal.kernel.exception.SystemException;
1436    
1437            /**
1438            * Returns the number of groups where type = &#63; and active = &#63;.
1439            *
1440            * @param type the type
1441            * @param active the active
1442            * @return the number of matching groups
1443            * @throws SystemException if a system exception occurred
1444            */
1445            public int countByT_A(int type, boolean active)
1446                    throws com.liferay.portal.kernel.exception.SystemException;
1447    
1448            /**
1449            * Returns all the groups where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1450            *
1451            * @param groupId the group ID
1452            * @param companyId the company ID
1453            * @param parentGroupId the parent group ID
1454            * @return the matching groups
1455            * @throws SystemException if a system exception occurred
1456            */
1457            public java.util.List<com.liferay.portal.model.Group> findByG_C_P(
1458                    long groupId, long companyId, long parentGroupId)
1459                    throws com.liferay.portal.kernel.exception.SystemException;
1460    
1461            /**
1462            * Returns a range of all the groups where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1463            *
1464            * <p>
1465            * 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.
1466            * </p>
1467            *
1468            * @param groupId the group ID
1469            * @param companyId the company ID
1470            * @param parentGroupId the parent group ID
1471            * @param start the lower bound of the range of groups
1472            * @param end the upper bound of the range of groups (not inclusive)
1473            * @return the range of matching groups
1474            * @throws SystemException if a system exception occurred
1475            */
1476            public java.util.List<com.liferay.portal.model.Group> findByG_C_P(
1477                    long groupId, long companyId, long parentGroupId, int start, int end)
1478                    throws com.liferay.portal.kernel.exception.SystemException;
1479    
1480            /**
1481            * Returns an ordered range of all the groups where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1482            *
1483            * <p>
1484            * 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.
1485            * </p>
1486            *
1487            * @param groupId the group ID
1488            * @param companyId the company ID
1489            * @param parentGroupId the parent group ID
1490            * @param start the lower bound of the range of groups
1491            * @param end the upper bound of the range of groups (not inclusive)
1492            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1493            * @return the ordered range of matching groups
1494            * @throws SystemException if a system exception occurred
1495            */
1496            public java.util.List<com.liferay.portal.model.Group> findByG_C_P(
1497                    long groupId, long companyId, long parentGroupId, int start, int end,
1498                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1499                    throws com.liferay.portal.kernel.exception.SystemException;
1500    
1501            /**
1502            * Returns the first group in the ordered set where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1503            *
1504            * @param groupId the group ID
1505            * @param companyId the company ID
1506            * @param parentGroupId the parent group ID
1507            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1508            * @return the first matching group
1509            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1510            * @throws SystemException if a system exception occurred
1511            */
1512            public com.liferay.portal.model.Group findByG_C_P_First(long groupId,
1513                    long companyId, long parentGroupId,
1514                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1515                    throws com.liferay.portal.NoSuchGroupException,
1516                            com.liferay.portal.kernel.exception.SystemException;
1517    
1518            /**
1519            * Returns the first group in the ordered set where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1520            *
1521            * @param groupId the group ID
1522            * @param companyId the company ID
1523            * @param parentGroupId the parent group ID
1524            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1525            * @return the first matching group, or <code>null</code> if a matching group could not be found
1526            * @throws SystemException if a system exception occurred
1527            */
1528            public com.liferay.portal.model.Group fetchByG_C_P_First(long groupId,
1529                    long companyId, long parentGroupId,
1530                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1531                    throws com.liferay.portal.kernel.exception.SystemException;
1532    
1533            /**
1534            * Returns the last group in the ordered set where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1535            *
1536            * @param groupId the group ID
1537            * @param companyId the company ID
1538            * @param parentGroupId the parent group ID
1539            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1540            * @return the last matching group
1541            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1542            * @throws SystemException if a system exception occurred
1543            */
1544            public com.liferay.portal.model.Group findByG_C_P_Last(long groupId,
1545                    long companyId, long parentGroupId,
1546                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1547                    throws com.liferay.portal.NoSuchGroupException,
1548                            com.liferay.portal.kernel.exception.SystemException;
1549    
1550            /**
1551            * Returns the last group in the ordered set where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1552            *
1553            * @param groupId the group ID
1554            * @param companyId the company ID
1555            * @param parentGroupId the parent group ID
1556            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1557            * @return the last matching group, or <code>null</code> if a matching group could not be found
1558            * @throws SystemException if a system exception occurred
1559            */
1560            public com.liferay.portal.model.Group fetchByG_C_P_Last(long groupId,
1561                    long companyId, long parentGroupId,
1562                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1563                    throws com.liferay.portal.kernel.exception.SystemException;
1564    
1565            /**
1566            * Removes all the groups where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63; from the database.
1567            *
1568            * @param groupId the group ID
1569            * @param companyId the company ID
1570            * @param parentGroupId the parent group ID
1571            * @throws SystemException if a system exception occurred
1572            */
1573            public void removeByG_C_P(long groupId, long companyId, long parentGroupId)
1574                    throws com.liferay.portal.kernel.exception.SystemException;
1575    
1576            /**
1577            * Returns the number of groups where groupId &gt; &#63; and companyId = &#63; and parentGroupId = &#63;.
1578            *
1579            * @param groupId the group ID
1580            * @param companyId the company ID
1581            * @param parentGroupId the parent group ID
1582            * @return the number of matching groups
1583            * @throws SystemException if a system exception occurred
1584            */
1585            public int countByG_C_P(long groupId, long companyId, long parentGroupId)
1586                    throws com.liferay.portal.kernel.exception.SystemException;
1587    
1588            /**
1589            * 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.
1590            *
1591            * @param companyId the company ID
1592            * @param classNameId the class name ID
1593            * @param classPK the class p k
1594            * @return the matching group
1595            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1596            * @throws SystemException if a system exception occurred
1597            */
1598            public com.liferay.portal.model.Group findByC_C_C(long companyId,
1599                    long classNameId, long classPK)
1600                    throws com.liferay.portal.NoSuchGroupException,
1601                            com.liferay.portal.kernel.exception.SystemException;
1602    
1603            /**
1604            * 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.
1605            *
1606            * @param companyId the company ID
1607            * @param classNameId the class name ID
1608            * @param classPK the class p k
1609            * @return the matching group, or <code>null</code> if a matching group could not be found
1610            * @throws SystemException if a system exception occurred
1611            */
1612            public com.liferay.portal.model.Group fetchByC_C_C(long companyId,
1613                    long classNameId, long classPK)
1614                    throws com.liferay.portal.kernel.exception.SystemException;
1615    
1616            /**
1617            * 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.
1618            *
1619            * @param companyId the company ID
1620            * @param classNameId the class name ID
1621            * @param classPK the class p k
1622            * @param retrieveFromCache whether to use the finder cache
1623            * @return the matching group, or <code>null</code> if a matching group could not be found
1624            * @throws SystemException if a system exception occurred
1625            */
1626            public com.liferay.portal.model.Group fetchByC_C_C(long companyId,
1627                    long classNameId, long classPK, boolean retrieveFromCache)
1628                    throws com.liferay.portal.kernel.exception.SystemException;
1629    
1630            /**
1631            * Removes the group where companyId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
1632            *
1633            * @param companyId the company ID
1634            * @param classNameId the class name ID
1635            * @param classPK the class p k
1636            * @return the group that was removed
1637            * @throws SystemException if a system exception occurred
1638            */
1639            public com.liferay.portal.model.Group removeByC_C_C(long companyId,
1640                    long classNameId, long classPK)
1641                    throws com.liferay.portal.NoSuchGroupException,
1642                            com.liferay.portal.kernel.exception.SystemException;
1643    
1644            /**
1645            * Returns the number of groups where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
1646            *
1647            * @param companyId the company ID
1648            * @param classNameId the class name ID
1649            * @param classPK the class p k
1650            * @return the number of matching groups
1651            * @throws SystemException if a system exception occurred
1652            */
1653            public int countByC_C_C(long companyId, long classNameId, long classPK)
1654                    throws com.liferay.portal.kernel.exception.SystemException;
1655    
1656            /**
1657            * Returns all the groups where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1658            *
1659            * @param companyId the company ID
1660            * @param classNameId the class name ID
1661            * @param parentGroupId the parent group ID
1662            * @return the matching groups
1663            * @throws SystemException if a system exception occurred
1664            */
1665            public java.util.List<com.liferay.portal.model.Group> findByC_C_P(
1666                    long companyId, long classNameId, long parentGroupId)
1667                    throws com.liferay.portal.kernel.exception.SystemException;
1668    
1669            /**
1670            * Returns a range of all the groups where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1671            *
1672            * <p>
1673            * 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.
1674            * </p>
1675            *
1676            * @param companyId the company ID
1677            * @param classNameId the class name ID
1678            * @param parentGroupId the parent group ID
1679            * @param start the lower bound of the range of groups
1680            * @param end the upper bound of the range of groups (not inclusive)
1681            * @return the range of matching groups
1682            * @throws SystemException if a system exception occurred
1683            */
1684            public java.util.List<com.liferay.portal.model.Group> findByC_C_P(
1685                    long companyId, long classNameId, long parentGroupId, int start, int end)
1686                    throws com.liferay.portal.kernel.exception.SystemException;
1687    
1688            /**
1689            * Returns an ordered range of all the groups where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1690            *
1691            * <p>
1692            * 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.
1693            * </p>
1694            *
1695            * @param companyId the company ID
1696            * @param classNameId the class name ID
1697            * @param parentGroupId the parent group ID
1698            * @param start the lower bound of the range of groups
1699            * @param end the upper bound of the range of groups (not inclusive)
1700            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1701            * @return the ordered range of matching groups
1702            * @throws SystemException if a system exception occurred
1703            */
1704            public java.util.List<com.liferay.portal.model.Group> findByC_C_P(
1705                    long companyId, long classNameId, long parentGroupId, int start,
1706                    int end,
1707                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1708                    throws com.liferay.portal.kernel.exception.SystemException;
1709    
1710            /**
1711            * Returns the first group in the ordered set where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1712            *
1713            * @param companyId the company ID
1714            * @param classNameId the class name ID
1715            * @param parentGroupId the parent group ID
1716            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1717            * @return the first matching group
1718            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1719            * @throws SystemException if a system exception occurred
1720            */
1721            public com.liferay.portal.model.Group findByC_C_P_First(long companyId,
1722                    long classNameId, long parentGroupId,
1723                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1724                    throws com.liferay.portal.NoSuchGroupException,
1725                            com.liferay.portal.kernel.exception.SystemException;
1726    
1727            /**
1728            * Returns the first group in the ordered set where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1729            *
1730            * @param companyId the company ID
1731            * @param classNameId the class name ID
1732            * @param parentGroupId the parent group ID
1733            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1734            * @return the first matching group, or <code>null</code> if a matching group could not be found
1735            * @throws SystemException if a system exception occurred
1736            */
1737            public com.liferay.portal.model.Group fetchByC_C_P_First(long companyId,
1738                    long classNameId, long parentGroupId,
1739                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1740                    throws com.liferay.portal.kernel.exception.SystemException;
1741    
1742            /**
1743            * Returns the last group in the ordered set where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1744            *
1745            * @param companyId the company ID
1746            * @param classNameId the class name ID
1747            * @param parentGroupId the parent group ID
1748            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1749            * @return the last matching group
1750            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1751            * @throws SystemException if a system exception occurred
1752            */
1753            public com.liferay.portal.model.Group findByC_C_P_Last(long companyId,
1754                    long classNameId, long parentGroupId,
1755                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1756                    throws com.liferay.portal.NoSuchGroupException,
1757                            com.liferay.portal.kernel.exception.SystemException;
1758    
1759            /**
1760            * Returns the last group in the ordered set where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1761            *
1762            * @param companyId the company ID
1763            * @param classNameId the class name ID
1764            * @param parentGroupId the parent group ID
1765            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1766            * @return the last matching group, or <code>null</code> if a matching group could not be found
1767            * @throws SystemException if a system exception occurred
1768            */
1769            public com.liferay.portal.model.Group fetchByC_C_P_Last(long companyId,
1770                    long classNameId, long parentGroupId,
1771                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1772                    throws com.liferay.portal.kernel.exception.SystemException;
1773    
1774            /**
1775            * Returns the groups before and after the current group in the ordered set where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1776            *
1777            * @param groupId the primary key of the current group
1778            * @param companyId the company ID
1779            * @param classNameId the class name ID
1780            * @param parentGroupId the parent group ID
1781            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1782            * @return the previous, current, and next group
1783            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
1784            * @throws SystemException if a system exception occurred
1785            */
1786            public com.liferay.portal.model.Group[] findByC_C_P_PrevAndNext(
1787                    long groupId, long companyId, long classNameId, long parentGroupId,
1788                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1789                    throws com.liferay.portal.NoSuchGroupException,
1790                            com.liferay.portal.kernel.exception.SystemException;
1791    
1792            /**
1793            * Removes all the groups where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63; from the database.
1794            *
1795            * @param companyId the company ID
1796            * @param classNameId the class name ID
1797            * @param parentGroupId the parent group ID
1798            * @throws SystemException if a system exception occurred
1799            */
1800            public void removeByC_C_P(long companyId, long classNameId,
1801                    long parentGroupId)
1802                    throws com.liferay.portal.kernel.exception.SystemException;
1803    
1804            /**
1805            * Returns the number of groups where companyId = &#63; and classNameId = &#63; and parentGroupId = &#63;.
1806            *
1807            * @param companyId the company ID
1808            * @param classNameId the class name ID
1809            * @param parentGroupId the parent group ID
1810            * @return the number of matching groups
1811            * @throws SystemException if a system exception occurred
1812            */
1813            public int countByC_C_P(long companyId, long classNameId, long parentGroupId)
1814                    throws com.liferay.portal.kernel.exception.SystemException;
1815    
1816            /**
1817            * Returns all the groups where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1818            *
1819            * @param companyId the company ID
1820            * @param parentGroupId the parent group ID
1821            * @param site the site
1822            * @return the matching groups
1823            * @throws SystemException if a system exception occurred
1824            */
1825            public java.util.List<com.liferay.portal.model.Group> findByC_P_S(
1826                    long companyId, long parentGroupId, boolean site)
1827                    throws com.liferay.portal.kernel.exception.SystemException;
1828    
1829            /**
1830            * Returns a range of all the groups where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1831            *
1832            * <p>
1833            * 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.
1834            * </p>
1835            *
1836            * @param companyId the company ID
1837            * @param parentGroupId the parent group ID
1838            * @param site the site
1839            * @param start the lower bound of the range of groups
1840            * @param end the upper bound of the range of groups (not inclusive)
1841            * @return the range of matching groups
1842            * @throws SystemException if a system exception occurred
1843            */
1844            public java.util.List<com.liferay.portal.model.Group> findByC_P_S(
1845                    long companyId, long parentGroupId, boolean site, int start, int end)
1846                    throws com.liferay.portal.kernel.exception.SystemException;
1847    
1848            /**
1849            * Returns an ordered range of all the groups where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1850            *
1851            * <p>
1852            * 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.
1853            * </p>
1854            *
1855            * @param companyId the company ID
1856            * @param parentGroupId the parent group ID
1857            * @param site the site
1858            * @param start the lower bound of the range of groups
1859            * @param end the upper bound of the range of groups (not inclusive)
1860            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1861            * @return the ordered range of matching groups
1862            * @throws SystemException if a system exception occurred
1863            */
1864            public java.util.List<com.liferay.portal.model.Group> findByC_P_S(
1865                    long companyId, long parentGroupId, boolean site, int start, int end,
1866                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1867                    throws com.liferay.portal.kernel.exception.SystemException;
1868    
1869            /**
1870            * Returns the first group in the ordered set where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1871            *
1872            * @param companyId the company ID
1873            * @param parentGroupId the parent group ID
1874            * @param site the site
1875            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1876            * @return the first matching group
1877            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1878            * @throws SystemException if a system exception occurred
1879            */
1880            public com.liferay.portal.model.Group findByC_P_S_First(long companyId,
1881                    long parentGroupId, boolean site,
1882                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1883                    throws com.liferay.portal.NoSuchGroupException,
1884                            com.liferay.portal.kernel.exception.SystemException;
1885    
1886            /**
1887            * Returns the first group in the ordered set where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1888            *
1889            * @param companyId the company ID
1890            * @param parentGroupId the parent group ID
1891            * @param site the site
1892            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1893            * @return the first matching group, or <code>null</code> if a matching group could not be found
1894            * @throws SystemException if a system exception occurred
1895            */
1896            public com.liferay.portal.model.Group fetchByC_P_S_First(long companyId,
1897                    long parentGroupId, boolean site,
1898                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1899                    throws com.liferay.portal.kernel.exception.SystemException;
1900    
1901            /**
1902            * Returns the last group in the ordered set where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1903            *
1904            * @param companyId the company ID
1905            * @param parentGroupId the parent group ID
1906            * @param site the site
1907            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1908            * @return the last matching group
1909            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1910            * @throws SystemException if a system exception occurred
1911            */
1912            public com.liferay.portal.model.Group findByC_P_S_Last(long companyId,
1913                    long parentGroupId, boolean site,
1914                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1915                    throws com.liferay.portal.NoSuchGroupException,
1916                            com.liferay.portal.kernel.exception.SystemException;
1917    
1918            /**
1919            * Returns the last group in the ordered set where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1920            *
1921            * @param companyId the company ID
1922            * @param parentGroupId the parent group ID
1923            * @param site the site
1924            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1925            * @return the last matching group, or <code>null</code> if a matching group could not be found
1926            * @throws SystemException if a system exception occurred
1927            */
1928            public com.liferay.portal.model.Group fetchByC_P_S_Last(long companyId,
1929                    long parentGroupId, boolean site,
1930                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1931                    throws com.liferay.portal.kernel.exception.SystemException;
1932    
1933            /**
1934            * Returns the groups before and after the current group in the ordered set where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1935            *
1936            * @param groupId the primary key of the current group
1937            * @param companyId the company ID
1938            * @param parentGroupId the parent group ID
1939            * @param site the site
1940            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1941            * @return the previous, current, and next group
1942            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
1943            * @throws SystemException if a system exception occurred
1944            */
1945            public com.liferay.portal.model.Group[] findByC_P_S_PrevAndNext(
1946                    long groupId, long companyId, long parentGroupId, boolean site,
1947                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1948                    throws com.liferay.portal.NoSuchGroupException,
1949                            com.liferay.portal.kernel.exception.SystemException;
1950    
1951            /**
1952            * Removes all the groups where companyId = &#63; and parentGroupId = &#63; and site = &#63; from the database.
1953            *
1954            * @param companyId the company ID
1955            * @param parentGroupId the parent group ID
1956            * @param site the site
1957            * @throws SystemException if a system exception occurred
1958            */
1959            public void removeByC_P_S(long companyId, long parentGroupId, boolean site)
1960                    throws com.liferay.portal.kernel.exception.SystemException;
1961    
1962            /**
1963            * Returns the number of groups where companyId = &#63; and parentGroupId = &#63; and site = &#63;.
1964            *
1965            * @param companyId the company ID
1966            * @param parentGroupId the parent group ID
1967            * @param site the site
1968            * @return the number of matching groups
1969            * @throws SystemException if a system exception occurred
1970            */
1971            public int countByC_P_S(long companyId, long parentGroupId, boolean site)
1972                    throws com.liferay.portal.kernel.exception.SystemException;
1973    
1974            /**
1975            * 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.
1976            *
1977            * @param companyId the company ID
1978            * @param liveGroupId the live group ID
1979            * @param name the name
1980            * @return the matching group
1981            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
1982            * @throws SystemException if a system exception occurred
1983            */
1984            public com.liferay.portal.model.Group findByC_L_N(long companyId,
1985                    long liveGroupId, java.lang.String name)
1986                    throws com.liferay.portal.NoSuchGroupException,
1987                            com.liferay.portal.kernel.exception.SystemException;
1988    
1989            /**
1990            * 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.
1991            *
1992            * @param companyId the company ID
1993            * @param liveGroupId the live group ID
1994            * @param name the name
1995            * @return the matching group, or <code>null</code> if a matching group could not be found
1996            * @throws SystemException if a system exception occurred
1997            */
1998            public com.liferay.portal.model.Group fetchByC_L_N(long companyId,
1999                    long liveGroupId, java.lang.String name)
2000                    throws com.liferay.portal.kernel.exception.SystemException;
2001    
2002            /**
2003            * 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.
2004            *
2005            * @param companyId the company ID
2006            * @param liveGroupId the live group ID
2007            * @param name the name
2008            * @param retrieveFromCache whether to use the finder cache
2009            * @return the matching group, or <code>null</code> if a matching group could not be found
2010            * @throws SystemException if a system exception occurred
2011            */
2012            public com.liferay.portal.model.Group fetchByC_L_N(long companyId,
2013                    long liveGroupId, java.lang.String name, boolean retrieveFromCache)
2014                    throws com.liferay.portal.kernel.exception.SystemException;
2015    
2016            /**
2017            * Removes the group where companyId = &#63; and liveGroupId = &#63; and name = &#63; from the database.
2018            *
2019            * @param companyId the company ID
2020            * @param liveGroupId the live group ID
2021            * @param name the name
2022            * @return the group that was removed
2023            * @throws SystemException if a system exception occurred
2024            */
2025            public com.liferay.portal.model.Group removeByC_L_N(long companyId,
2026                    long liveGroupId, java.lang.String name)
2027                    throws com.liferay.portal.NoSuchGroupException,
2028                            com.liferay.portal.kernel.exception.SystemException;
2029    
2030            /**
2031            * Returns the number of groups where companyId = &#63; and liveGroupId = &#63; and name = &#63;.
2032            *
2033            * @param companyId the company ID
2034            * @param liveGroupId the live group ID
2035            * @param name the name
2036            * @return the number of matching groups
2037            * @throws SystemException if a system exception occurred
2038            */
2039            public int countByC_L_N(long companyId, long liveGroupId,
2040                    java.lang.String name)
2041                    throws com.liferay.portal.kernel.exception.SystemException;
2042    
2043            /**
2044            * 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.
2045            *
2046            * @param companyId the company ID
2047            * @param classNameId the class name ID
2048            * @param liveGroupId the live group ID
2049            * @param name the name
2050            * @return the matching group
2051            * @throws com.liferay.portal.NoSuchGroupException if a matching group could not be found
2052            * @throws SystemException if a system exception occurred
2053            */
2054            public com.liferay.portal.model.Group findByC_C_L_N(long companyId,
2055                    long classNameId, long liveGroupId, java.lang.String name)
2056                    throws com.liferay.portal.NoSuchGroupException,
2057                            com.liferay.portal.kernel.exception.SystemException;
2058    
2059            /**
2060            * 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.
2061            *
2062            * @param companyId the company ID
2063            * @param classNameId the class name ID
2064            * @param liveGroupId the live group ID
2065            * @param name the name
2066            * @return the matching group, or <code>null</code> if a matching group could not be found
2067            * @throws SystemException if a system exception occurred
2068            */
2069            public com.liferay.portal.model.Group fetchByC_C_L_N(long companyId,
2070                    long classNameId, long liveGroupId, java.lang.String name)
2071                    throws com.liferay.portal.kernel.exception.SystemException;
2072    
2073            /**
2074            * 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.
2075            *
2076            * @param companyId the company ID
2077            * @param classNameId the class name ID
2078            * @param liveGroupId the live group ID
2079            * @param name the name
2080            * @param retrieveFromCache whether to use the finder cache
2081            * @return the matching group, or <code>null</code> if a matching group could not be found
2082            * @throws SystemException if a system exception occurred
2083            */
2084            public com.liferay.portal.model.Group fetchByC_C_L_N(long companyId,
2085                    long classNameId, long liveGroupId, java.lang.String name,
2086                    boolean retrieveFromCache)
2087                    throws com.liferay.portal.kernel.exception.SystemException;
2088    
2089            /**
2090            * Removes the group where companyId = &#63; and classNameId = &#63; and liveGroupId = &#63; and name = &#63; from the database.
2091            *
2092            * @param companyId the company ID
2093            * @param classNameId the class name ID
2094            * @param liveGroupId the live group ID
2095            * @param name the name
2096            * @return the group that was removed
2097            * @throws SystemException if a system exception occurred
2098            */
2099            public com.liferay.portal.model.Group removeByC_C_L_N(long companyId,
2100                    long classNameId, long liveGroupId, java.lang.String name)
2101                    throws com.liferay.portal.NoSuchGroupException,
2102                            com.liferay.portal.kernel.exception.SystemException;
2103    
2104            /**
2105            * Returns the number of groups where companyId = &#63; and classNameId = &#63; and liveGroupId = &#63; and name = &#63;.
2106            *
2107            * @param companyId the company ID
2108            * @param classNameId the class name ID
2109            * @param liveGroupId the live group ID
2110            * @param name the name
2111            * @return the number of matching groups
2112            * @throws SystemException if a system exception occurred
2113            */
2114            public int countByC_C_L_N(long companyId, long classNameId,
2115                    long liveGroupId, java.lang.String name)
2116                    throws com.liferay.portal.kernel.exception.SystemException;
2117    
2118            /**
2119            * Caches the group in the entity cache if it is enabled.
2120            *
2121            * @param group the group
2122            */
2123            public void cacheResult(com.liferay.portal.model.Group group);
2124    
2125            /**
2126            * Caches the groups in the entity cache if it is enabled.
2127            *
2128            * @param groups the groups
2129            */
2130            public void cacheResult(
2131                    java.util.List<com.liferay.portal.model.Group> groups);
2132    
2133            /**
2134            * Creates a new group with the primary key. Does not add the group to the database.
2135            *
2136            * @param groupId the primary key for the new group
2137            * @return the new group
2138            */
2139            public com.liferay.portal.model.Group create(long groupId);
2140    
2141            /**
2142            * Removes the group with the primary key from the database. Also notifies the appropriate model listeners.
2143            *
2144            * @param groupId the primary key of the group
2145            * @return the group that was removed
2146            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
2147            * @throws SystemException if a system exception occurred
2148            */
2149            public com.liferay.portal.model.Group remove(long groupId)
2150                    throws com.liferay.portal.NoSuchGroupException,
2151                            com.liferay.portal.kernel.exception.SystemException;
2152    
2153            public com.liferay.portal.model.Group updateImpl(
2154                    com.liferay.portal.model.Group group)
2155                    throws com.liferay.portal.kernel.exception.SystemException;
2156    
2157            /**
2158            * Returns the group with the primary key or throws a {@link com.liferay.portal.NoSuchGroupException} if it could not be found.
2159            *
2160            * @param groupId the primary key of the group
2161            * @return the group
2162            * @throws com.liferay.portal.NoSuchGroupException if a group with the primary key could not be found
2163            * @throws SystemException if a system exception occurred
2164            */
2165            public com.liferay.portal.model.Group findByPrimaryKey(long groupId)
2166                    throws com.liferay.portal.NoSuchGroupException,
2167                            com.liferay.portal.kernel.exception.SystemException;
2168    
2169            /**
2170            * Returns the group with the primary key or returns <code>null</code> if it could not be found.
2171            *
2172            * @param groupId the primary key of the group
2173            * @return the group, or <code>null</code> if a group with the primary key could not be found
2174            * @throws SystemException if a system exception occurred
2175            */
2176            public com.liferay.portal.model.Group fetchByPrimaryKey(long groupId)
2177                    throws com.liferay.portal.kernel.exception.SystemException;
2178    
2179            /**
2180            * Returns all the groups.
2181            *
2182            * @return the groups
2183            * @throws SystemException if a system exception occurred
2184            */
2185            public java.util.List<com.liferay.portal.model.Group> findAll()
2186                    throws com.liferay.portal.kernel.exception.SystemException;
2187    
2188            /**
2189            * Returns a range of all the groups.
2190            *
2191            * <p>
2192            * 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.
2193            * </p>
2194            *
2195            * @param start the lower bound of the range of groups
2196            * @param end the upper bound of the range of groups (not inclusive)
2197            * @return the range of groups
2198            * @throws SystemException if a system exception occurred
2199            */
2200            public java.util.List<com.liferay.portal.model.Group> findAll(int start,
2201                    int end) throws com.liferay.portal.kernel.exception.SystemException;
2202    
2203            /**
2204            * Returns an ordered range of all the groups.
2205            *
2206            * <p>
2207            * 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.
2208            * </p>
2209            *
2210            * @param start the lower bound of the range of groups
2211            * @param end the upper bound of the range of groups (not inclusive)
2212            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2213            * @return the ordered range of groups
2214            * @throws SystemException if a system exception occurred
2215            */
2216            public java.util.List<com.liferay.portal.model.Group> findAll(int start,
2217                    int end,
2218                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2219                    throws com.liferay.portal.kernel.exception.SystemException;
2220    
2221            /**
2222            * Removes all the groups from the database.
2223            *
2224            * @throws SystemException if a system exception occurred
2225            */
2226            public void removeAll()
2227                    throws com.liferay.portal.kernel.exception.SystemException;
2228    
2229            /**
2230            * Returns the number of groups.
2231            *
2232            * @return the number of groups
2233            * @throws SystemException if a system exception occurred
2234            */
2235            public int countAll()
2236                    throws com.liferay.portal.kernel.exception.SystemException;
2237    
2238            /**
2239            * Returns all the organizations associated with the group.
2240            *
2241            * @param pk the primary key of the group
2242            * @return the organizations associated with the group
2243            * @throws SystemException if a system exception occurred
2244            */
2245            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
2246                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
2247    
2248            /**
2249            * Returns a range of all the organizations associated with the group.
2250            *
2251            * <p>
2252            * 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.
2253            * </p>
2254            *
2255            * @param pk the primary key of the group
2256            * @param start the lower bound of the range of groups
2257            * @param end the upper bound of the range of groups (not inclusive)
2258            * @return the range of organizations associated with the group
2259            * @throws SystemException if a system exception occurred
2260            */
2261            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
2262                    long pk, int start, int end)
2263                    throws com.liferay.portal.kernel.exception.SystemException;
2264    
2265            /**
2266            * Returns an ordered range of all the organizations associated with the group.
2267            *
2268            * <p>
2269            * 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.
2270            * </p>
2271            *
2272            * @param pk the primary key of the group
2273            * @param start the lower bound of the range of groups
2274            * @param end the upper bound of the range of groups (not inclusive)
2275            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2276            * @return the ordered range of organizations associated with the group
2277            * @throws SystemException if a system exception occurred
2278            */
2279            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
2280                    long pk, int start, int end,
2281                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2282                    throws com.liferay.portal.kernel.exception.SystemException;
2283    
2284            /**
2285            * Returns the number of organizations associated with the group.
2286            *
2287            * @param pk the primary key of the group
2288            * @return the number of organizations associated with the group
2289            * @throws SystemException if a system exception occurred
2290            */
2291            public int getOrganizationsSize(long pk)
2292                    throws com.liferay.portal.kernel.exception.SystemException;
2293    
2294            /**
2295            * Returns <code>true</code> if the organization is associated with the group.
2296            *
2297            * @param pk the primary key of the group
2298            * @param organizationPK the primary key of the organization
2299            * @return <code>true</code> if the organization is associated with the group; <code>false</code> otherwise
2300            * @throws SystemException if a system exception occurred
2301            */
2302            public boolean containsOrganization(long pk, long organizationPK)
2303                    throws com.liferay.portal.kernel.exception.SystemException;
2304    
2305            /**
2306            * Returns <code>true</code> if the group has any organizations associated with it.
2307            *
2308            * @param pk the primary key of the group to check for associations with organizations
2309            * @return <code>true</code> if the group has any organizations associated with it; <code>false</code> otherwise
2310            * @throws SystemException if a system exception occurred
2311            */
2312            public boolean containsOrganizations(long pk)
2313                    throws com.liferay.portal.kernel.exception.SystemException;
2314    
2315            /**
2316            * Adds an association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2317            *
2318            * @param pk the primary key of the group
2319            * @param organizationPK the primary key of the organization
2320            * @throws SystemException if a system exception occurred
2321            */
2322            public void addOrganization(long pk, long organizationPK)
2323                    throws com.liferay.portal.kernel.exception.SystemException;
2324    
2325            /**
2326            * Adds an association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2327            *
2328            * @param pk the primary key of the group
2329            * @param organization the organization
2330            * @throws SystemException if a system exception occurred
2331            */
2332            public void addOrganization(long pk,
2333                    com.liferay.portal.model.Organization organization)
2334                    throws com.liferay.portal.kernel.exception.SystemException;
2335    
2336            /**
2337            * Adds an association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2338            *
2339            * @param pk the primary key of the group
2340            * @param organizationPKs the primary keys of the organizations
2341            * @throws SystemException if a system exception occurred
2342            */
2343            public void addOrganizations(long pk, long[] organizationPKs)
2344                    throws com.liferay.portal.kernel.exception.SystemException;
2345    
2346            /**
2347            * Adds an association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2348            *
2349            * @param pk the primary key of the group
2350            * @param organizations the organizations
2351            * @throws SystemException if a system exception occurred
2352            */
2353            public void addOrganizations(long pk,
2354                    java.util.List<com.liferay.portal.model.Organization> organizations)
2355                    throws com.liferay.portal.kernel.exception.SystemException;
2356    
2357            /**
2358            * Clears all associations between the group and its organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2359            *
2360            * @param pk the primary key of the group to clear the associated organizations from
2361            * @throws SystemException if a system exception occurred
2362            */
2363            public void clearOrganizations(long pk)
2364                    throws com.liferay.portal.kernel.exception.SystemException;
2365    
2366            /**
2367            * Removes the association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2368            *
2369            * @param pk the primary key of the group
2370            * @param organizationPK the primary key of the organization
2371            * @throws SystemException if a system exception occurred
2372            */
2373            public void removeOrganization(long pk, long organizationPK)
2374                    throws com.liferay.portal.kernel.exception.SystemException;
2375    
2376            /**
2377            * Removes the association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2378            *
2379            * @param pk the primary key of the group
2380            * @param organization the organization
2381            * @throws SystemException if a system exception occurred
2382            */
2383            public void removeOrganization(long pk,
2384                    com.liferay.portal.model.Organization organization)
2385                    throws com.liferay.portal.kernel.exception.SystemException;
2386    
2387            /**
2388            * Removes the association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2389            *
2390            * @param pk the primary key of the group
2391            * @param organizationPKs the primary keys of the organizations
2392            * @throws SystemException if a system exception occurred
2393            */
2394            public void removeOrganizations(long pk, long[] organizationPKs)
2395                    throws com.liferay.portal.kernel.exception.SystemException;
2396    
2397            /**
2398            * Removes the association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2399            *
2400            * @param pk the primary key of the group
2401            * @param organizations the organizations
2402            * @throws SystemException if a system exception occurred
2403            */
2404            public void removeOrganizations(long pk,
2405                    java.util.List<com.liferay.portal.model.Organization> organizations)
2406                    throws com.liferay.portal.kernel.exception.SystemException;
2407    
2408            /**
2409            * 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.
2410            *
2411            * @param pk the primary key of the group
2412            * @param organizationPKs the primary keys of the organizations to be associated with the group
2413            * @throws SystemException if a system exception occurred
2414            */
2415            public void setOrganizations(long pk, long[] organizationPKs)
2416                    throws com.liferay.portal.kernel.exception.SystemException;
2417    
2418            /**
2419            * 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.
2420            *
2421            * @param pk the primary key of the group
2422            * @param organizations the organizations to be associated with the group
2423            * @throws SystemException if a system exception occurred
2424            */
2425            public void setOrganizations(long pk,
2426                    java.util.List<com.liferay.portal.model.Organization> organizations)
2427                    throws com.liferay.portal.kernel.exception.SystemException;
2428    
2429            /**
2430            * Returns all the roles associated with the group.
2431            *
2432            * @param pk the primary key of the group
2433            * @return the roles associated with the group
2434            * @throws SystemException if a system exception occurred
2435            */
2436            public java.util.List<com.liferay.portal.model.Role> getRoles(long pk)
2437                    throws com.liferay.portal.kernel.exception.SystemException;
2438    
2439            /**
2440            * Returns a range of all the roles associated with the group.
2441            *
2442            * <p>
2443            * 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.
2444            * </p>
2445            *
2446            * @param pk the primary key of the group
2447            * @param start the lower bound of the range of groups
2448            * @param end the upper bound of the range of groups (not inclusive)
2449            * @return the range of roles associated with the group
2450            * @throws SystemException if a system exception occurred
2451            */
2452            public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
2453                    int start, int end)
2454                    throws com.liferay.portal.kernel.exception.SystemException;
2455    
2456            /**
2457            * Returns an ordered range of all the roles associated with the group.
2458            *
2459            * <p>
2460            * 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.
2461            * </p>
2462            *
2463            * @param pk the primary key of the group
2464            * @param start the lower bound of the range of groups
2465            * @param end the upper bound of the range of groups (not inclusive)
2466            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2467            * @return the ordered range of roles associated with the group
2468            * @throws SystemException if a system exception occurred
2469            */
2470            public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
2471                    int start, int end,
2472                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2473                    throws com.liferay.portal.kernel.exception.SystemException;
2474    
2475            /**
2476            * Returns the number of roles associated with the group.
2477            *
2478            * @param pk the primary key of the group
2479            * @return the number of roles associated with the group
2480            * @throws SystemException if a system exception occurred
2481            */
2482            public int getRolesSize(long pk)
2483                    throws com.liferay.portal.kernel.exception.SystemException;
2484    
2485            /**
2486            * Returns <code>true</code> if the role is associated with the group.
2487            *
2488            * @param pk the primary key of the group
2489            * @param rolePK the primary key of the role
2490            * @return <code>true</code> if the role is associated with the group; <code>false</code> otherwise
2491            * @throws SystemException if a system exception occurred
2492            */
2493            public boolean containsRole(long pk, long rolePK)
2494                    throws com.liferay.portal.kernel.exception.SystemException;
2495    
2496            /**
2497            * Returns <code>true</code> if the group has any roles associated with it.
2498            *
2499            * @param pk the primary key of the group to check for associations with roles
2500            * @return <code>true</code> if the group has any roles associated with it; <code>false</code> otherwise
2501            * @throws SystemException if a system exception occurred
2502            */
2503            public boolean containsRoles(long pk)
2504                    throws com.liferay.portal.kernel.exception.SystemException;
2505    
2506            /**
2507            * Adds an association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2508            *
2509            * @param pk the primary key of the group
2510            * @param rolePK the primary key of the role
2511            * @throws SystemException if a system exception occurred
2512            */
2513            public void addRole(long pk, long rolePK)
2514                    throws com.liferay.portal.kernel.exception.SystemException;
2515    
2516            /**
2517            * Adds an association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2518            *
2519            * @param pk the primary key of the group
2520            * @param role the role
2521            * @throws SystemException if a system exception occurred
2522            */
2523            public void addRole(long pk, com.liferay.portal.model.Role role)
2524                    throws com.liferay.portal.kernel.exception.SystemException;
2525    
2526            /**
2527            * Adds an association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2528            *
2529            * @param pk the primary key of the group
2530            * @param rolePKs the primary keys of the roles
2531            * @throws SystemException if a system exception occurred
2532            */
2533            public void addRoles(long pk, long[] rolePKs)
2534                    throws com.liferay.portal.kernel.exception.SystemException;
2535    
2536            /**
2537            * Adds an association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2538            *
2539            * @param pk the primary key of the group
2540            * @param roles the roles
2541            * @throws SystemException if a system exception occurred
2542            */
2543            public void addRoles(long pk,
2544                    java.util.List<com.liferay.portal.model.Role> roles)
2545                    throws com.liferay.portal.kernel.exception.SystemException;
2546    
2547            /**
2548            * Clears all associations between the group and its roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2549            *
2550            * @param pk the primary key of the group to clear the associated roles from
2551            * @throws SystemException if a system exception occurred
2552            */
2553            public void clearRoles(long pk)
2554                    throws com.liferay.portal.kernel.exception.SystemException;
2555    
2556            /**
2557            * Removes the association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2558            *
2559            * @param pk the primary key of the group
2560            * @param rolePK the primary key of the role
2561            * @throws SystemException if a system exception occurred
2562            */
2563            public void removeRole(long pk, long rolePK)
2564                    throws com.liferay.portal.kernel.exception.SystemException;
2565    
2566            /**
2567            * Removes the association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2568            *
2569            * @param pk the primary key of the group
2570            * @param role the role
2571            * @throws SystemException if a system exception occurred
2572            */
2573            public void removeRole(long pk, com.liferay.portal.model.Role role)
2574                    throws com.liferay.portal.kernel.exception.SystemException;
2575    
2576            /**
2577            * Removes the association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2578            *
2579            * @param pk the primary key of the group
2580            * @param rolePKs the primary keys of the roles
2581            * @throws SystemException if a system exception occurred
2582            */
2583            public void removeRoles(long pk, long[] rolePKs)
2584                    throws com.liferay.portal.kernel.exception.SystemException;
2585    
2586            /**
2587            * Removes the association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2588            *
2589            * @param pk the primary key of the group
2590            * @param roles the roles
2591            * @throws SystemException if a system exception occurred
2592            */
2593            public void removeRoles(long pk,
2594                    java.util.List<com.liferay.portal.model.Role> roles)
2595                    throws com.liferay.portal.kernel.exception.SystemException;
2596    
2597            /**
2598            * 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.
2599            *
2600            * @param pk the primary key of the group
2601            * @param rolePKs the primary keys of the roles to be associated with the group
2602            * @throws SystemException if a system exception occurred
2603            */
2604            public void setRoles(long pk, long[] rolePKs)
2605                    throws com.liferay.portal.kernel.exception.SystemException;
2606    
2607            /**
2608            * 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.
2609            *
2610            * @param pk the primary key of the group
2611            * @param roles the roles to be associated with the group
2612            * @throws SystemException if a system exception occurred
2613            */
2614            public void setRoles(long pk,
2615                    java.util.List<com.liferay.portal.model.Role> roles)
2616                    throws com.liferay.portal.kernel.exception.SystemException;
2617    
2618            /**
2619            * Returns all the user groups associated with the group.
2620            *
2621            * @param pk the primary key of the group
2622            * @return the user groups associated with the group
2623            * @throws SystemException if a system exception occurred
2624            */
2625            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
2626                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
2627    
2628            /**
2629            * Returns a range of all the user groups associated with the group.
2630            *
2631            * <p>
2632            * 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.
2633            * </p>
2634            *
2635            * @param pk the primary key of the group
2636            * @param start the lower bound of the range of groups
2637            * @param end the upper bound of the range of groups (not inclusive)
2638            * @return the range of user groups associated with the group
2639            * @throws SystemException if a system exception occurred
2640            */
2641            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
2642                    long pk, int start, int end)
2643                    throws com.liferay.portal.kernel.exception.SystemException;
2644    
2645            /**
2646            * Returns an ordered range of all the user groups associated with the group.
2647            *
2648            * <p>
2649            * 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.
2650            * </p>
2651            *
2652            * @param pk the primary key of the group
2653            * @param start the lower bound of the range of groups
2654            * @param end the upper bound of the range of groups (not inclusive)
2655            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2656            * @return the ordered range of user groups associated with the group
2657            * @throws SystemException if a system exception occurred
2658            */
2659            public java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(
2660                    long pk, int start, int end,
2661                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2662                    throws com.liferay.portal.kernel.exception.SystemException;
2663    
2664            /**
2665            * Returns the number of user groups associated with the group.
2666            *
2667            * @param pk the primary key of the group
2668            * @return the number of user groups associated with the group
2669            * @throws SystemException if a system exception occurred
2670            */
2671            public int getUserGroupsSize(long pk)
2672                    throws com.liferay.portal.kernel.exception.SystemException;
2673    
2674            /**
2675            * Returns <code>true</code> if the user group is associated with the group.
2676            *
2677            * @param pk the primary key of the group
2678            * @param userGroupPK the primary key of the user group
2679            * @return <code>true</code> if the user group is associated with the group; <code>false</code> otherwise
2680            * @throws SystemException if a system exception occurred
2681            */
2682            public boolean containsUserGroup(long pk, long userGroupPK)
2683                    throws com.liferay.portal.kernel.exception.SystemException;
2684    
2685            /**
2686            * Returns <code>true</code> if the group has any user groups associated with it.
2687            *
2688            * @param pk the primary key of the group to check for associations with user groups
2689            * @return <code>true</code> if the group has any user groups associated with it; <code>false</code> otherwise
2690            * @throws SystemException if a system exception occurred
2691            */
2692            public boolean containsUserGroups(long pk)
2693                    throws com.liferay.portal.kernel.exception.SystemException;
2694    
2695            /**
2696            * Adds an association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2697            *
2698            * @param pk the primary key of the group
2699            * @param userGroupPK the primary key of the user group
2700            * @throws SystemException if a system exception occurred
2701            */
2702            public void addUserGroup(long pk, long userGroupPK)
2703                    throws com.liferay.portal.kernel.exception.SystemException;
2704    
2705            /**
2706            * Adds an association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2707            *
2708            * @param pk the primary key of the group
2709            * @param userGroup the user group
2710            * @throws SystemException if a system exception occurred
2711            */
2712            public void addUserGroup(long pk,
2713                    com.liferay.portal.model.UserGroup userGroup)
2714                    throws com.liferay.portal.kernel.exception.SystemException;
2715    
2716            /**
2717            * Adds an association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2718            *
2719            * @param pk the primary key of the group
2720            * @param userGroupPKs the primary keys of the user groups
2721            * @throws SystemException if a system exception occurred
2722            */
2723            public void addUserGroups(long pk, long[] userGroupPKs)
2724                    throws com.liferay.portal.kernel.exception.SystemException;
2725    
2726            /**
2727            * Adds an association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2728            *
2729            * @param pk the primary key of the group
2730            * @param userGroups the user groups
2731            * @throws SystemException if a system exception occurred
2732            */
2733            public void addUserGroups(long pk,
2734                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
2735                    throws com.liferay.portal.kernel.exception.SystemException;
2736    
2737            /**
2738            * Clears all associations between the group and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2739            *
2740            * @param pk the primary key of the group to clear the associated user groups from
2741            * @throws SystemException if a system exception occurred
2742            */
2743            public void clearUserGroups(long pk)
2744                    throws com.liferay.portal.kernel.exception.SystemException;
2745    
2746            /**
2747            * Removes the association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2748            *
2749            * @param pk the primary key of the group
2750            * @param userGroupPK the primary key of the user group
2751            * @throws SystemException if a system exception occurred
2752            */
2753            public void removeUserGroup(long pk, long userGroupPK)
2754                    throws com.liferay.portal.kernel.exception.SystemException;
2755    
2756            /**
2757            * Removes the association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2758            *
2759            * @param pk the primary key of the group
2760            * @param userGroup the user group
2761            * @throws SystemException if a system exception occurred
2762            */
2763            public void removeUserGroup(long pk,
2764                    com.liferay.portal.model.UserGroup userGroup)
2765                    throws com.liferay.portal.kernel.exception.SystemException;
2766    
2767            /**
2768            * Removes the association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2769            *
2770            * @param pk the primary key of the group
2771            * @param userGroupPKs the primary keys of the user groups
2772            * @throws SystemException if a system exception occurred
2773            */
2774            public void removeUserGroups(long pk, long[] userGroupPKs)
2775                    throws com.liferay.portal.kernel.exception.SystemException;
2776    
2777            /**
2778            * Removes the association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2779            *
2780            * @param pk the primary key of the group
2781            * @param userGroups the user groups
2782            * @throws SystemException if a system exception occurred
2783            */
2784            public void removeUserGroups(long pk,
2785                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
2786                    throws com.liferay.portal.kernel.exception.SystemException;
2787    
2788            /**
2789            * 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.
2790            *
2791            * @param pk the primary key of the group
2792            * @param userGroupPKs the primary keys of the user groups to be associated with the group
2793            * @throws SystemException if a system exception occurred
2794            */
2795            public void setUserGroups(long pk, long[] userGroupPKs)
2796                    throws com.liferay.portal.kernel.exception.SystemException;
2797    
2798            /**
2799            * 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.
2800            *
2801            * @param pk the primary key of the group
2802            * @param userGroups the user groups to be associated with the group
2803            * @throws SystemException if a system exception occurred
2804            */
2805            public void setUserGroups(long pk,
2806                    java.util.List<com.liferay.portal.model.UserGroup> userGroups)
2807                    throws com.liferay.portal.kernel.exception.SystemException;
2808    
2809            /**
2810            * Returns all the users associated with the group.
2811            *
2812            * @param pk the primary key of the group
2813            * @return the users associated with the group
2814            * @throws SystemException if a system exception occurred
2815            */
2816            public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
2817                    throws com.liferay.portal.kernel.exception.SystemException;
2818    
2819            /**
2820            * Returns a range of all the users associated with the group.
2821            *
2822            * <p>
2823            * 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.
2824            * </p>
2825            *
2826            * @param pk the primary key of the group
2827            * @param start the lower bound of the range of groups
2828            * @param end the upper bound of the range of groups (not inclusive)
2829            * @return the range of users associated with the group
2830            * @throws SystemException if a system exception occurred
2831            */
2832            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
2833                    int start, int end)
2834                    throws com.liferay.portal.kernel.exception.SystemException;
2835    
2836            /**
2837            * Returns an ordered range of all the users associated with the group.
2838            *
2839            * <p>
2840            * 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.
2841            * </p>
2842            *
2843            * @param pk the primary key of the group
2844            * @param start the lower bound of the range of groups
2845            * @param end the upper bound of the range of groups (not inclusive)
2846            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2847            * @return the ordered range of users associated with the group
2848            * @throws SystemException if a system exception occurred
2849            */
2850            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
2851                    int start, int end,
2852                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2853                    throws com.liferay.portal.kernel.exception.SystemException;
2854    
2855            /**
2856            * Returns the number of users associated with the group.
2857            *
2858            * @param pk the primary key of the group
2859            * @return the number of users associated with the group
2860            * @throws SystemException if a system exception occurred
2861            */
2862            public int getUsersSize(long pk)
2863                    throws com.liferay.portal.kernel.exception.SystemException;
2864    
2865            /**
2866            * Returns <code>true</code> if the user is associated with the group.
2867            *
2868            * @param pk the primary key of the group
2869            * @param userPK the primary key of the user
2870            * @return <code>true</code> if the user is associated with the group; <code>false</code> otherwise
2871            * @throws SystemException if a system exception occurred
2872            */
2873            public boolean containsUser(long pk, long userPK)
2874                    throws com.liferay.portal.kernel.exception.SystemException;
2875    
2876            /**
2877            * Returns <code>true</code> if the group has any users associated with it.
2878            *
2879            * @param pk the primary key of the group to check for associations with users
2880            * @return <code>true</code> if the group has any users associated with it; <code>false</code> otherwise
2881            * @throws SystemException if a system exception occurred
2882            */
2883            public boolean containsUsers(long pk)
2884                    throws com.liferay.portal.kernel.exception.SystemException;
2885    
2886            /**
2887            * Adds an association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2888            *
2889            * @param pk the primary key of the group
2890            * @param userPK the primary key of the user
2891            * @throws SystemException if a system exception occurred
2892            */
2893            public void addUser(long pk, long userPK)
2894                    throws com.liferay.portal.kernel.exception.SystemException;
2895    
2896            /**
2897            * Adds an association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2898            *
2899            * @param pk the primary key of the group
2900            * @param user the user
2901            * @throws SystemException if a system exception occurred
2902            */
2903            public void addUser(long pk, com.liferay.portal.model.User user)
2904                    throws com.liferay.portal.kernel.exception.SystemException;
2905    
2906            /**
2907            * Adds an association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2908            *
2909            * @param pk the primary key of the group
2910            * @param userPKs the primary keys of the users
2911            * @throws SystemException if a system exception occurred
2912            */
2913            public void addUsers(long pk, long[] userPKs)
2914                    throws com.liferay.portal.kernel.exception.SystemException;
2915    
2916            /**
2917            * Adds an association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2918            *
2919            * @param pk the primary key of the group
2920            * @param users the users
2921            * @throws SystemException if a system exception occurred
2922            */
2923            public void addUsers(long pk,
2924                    java.util.List<com.liferay.portal.model.User> users)
2925                    throws com.liferay.portal.kernel.exception.SystemException;
2926    
2927            /**
2928            * Clears all associations between the group and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2929            *
2930            * @param pk the primary key of the group to clear the associated users from
2931            * @throws SystemException if a system exception occurred
2932            */
2933            public void clearUsers(long pk)
2934                    throws com.liferay.portal.kernel.exception.SystemException;
2935    
2936            /**
2937            * Removes the association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2938            *
2939            * @param pk the primary key of the group
2940            * @param userPK the primary key of the user
2941            * @throws SystemException if a system exception occurred
2942            */
2943            public void removeUser(long pk, long userPK)
2944                    throws com.liferay.portal.kernel.exception.SystemException;
2945    
2946            /**
2947            * Removes the association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2948            *
2949            * @param pk the primary key of the group
2950            * @param user the user
2951            * @throws SystemException if a system exception occurred
2952            */
2953            public void removeUser(long pk, com.liferay.portal.model.User user)
2954                    throws com.liferay.portal.kernel.exception.SystemException;
2955    
2956            /**
2957            * Removes the association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2958            *
2959            * @param pk the primary key of the group
2960            * @param userPKs the primary keys of the users
2961            * @throws SystemException if a system exception occurred
2962            */
2963            public void removeUsers(long pk, long[] userPKs)
2964                    throws com.liferay.portal.kernel.exception.SystemException;
2965    
2966            /**
2967            * Removes the association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2968            *
2969            * @param pk the primary key of the group
2970            * @param users the users
2971            * @throws SystemException if a system exception occurred
2972            */
2973            public void removeUsers(long pk,
2974                    java.util.List<com.liferay.portal.model.User> users)
2975                    throws com.liferay.portal.kernel.exception.SystemException;
2976    
2977            /**
2978            * 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.
2979            *
2980            * @param pk the primary key of the group
2981            * @param userPKs the primary keys of the users to be associated with the group
2982            * @throws SystemException if a system exception occurred
2983            */
2984            public void setUsers(long pk, long[] userPKs)
2985                    throws com.liferay.portal.kernel.exception.SystemException;
2986    
2987            /**
2988            * 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.
2989            *
2990            * @param pk the primary key of the group
2991            * @param users the users to be associated with the group
2992            * @throws SystemException if a system exception occurred
2993            */
2994            public void setUsers(long pk,
2995                    java.util.List<com.liferay.portal.model.User> users)
2996                    throws com.liferay.portal.kernel.exception.SystemException;
2997    }