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