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