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