001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.model.UserGroup;
020    
021    /**
022     * The persistence interface for the user group service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see UserGroupPersistenceImpl
030     * @see UserGroupUtil
031     * @generated
032     */
033    @ProviderType
034    public interface UserGroupPersistence extends BasePersistence<UserGroup> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link UserGroupUtil} to access the user group persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Returns all the user groups where uuid = &#63;.
043            *
044            * @param uuid the uuid
045            * @return the matching user groups
046            */
047            public java.util.List<com.liferay.portal.model.UserGroup> findByUuid(
048                    java.lang.String uuid);
049    
050            /**
051            * Returns a range of all the user groups where uuid = &#63;.
052            *
053            * <p>
054            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
055            * </p>
056            *
057            * @param uuid the uuid
058            * @param start the lower bound of the range of user groups
059            * @param end the upper bound of the range of user groups (not inclusive)
060            * @return the range of matching user groups
061            */
062            public java.util.List<com.liferay.portal.model.UserGroup> findByUuid(
063                    java.lang.String uuid, int start, int end);
064    
065            /**
066            * Returns an ordered range of all the user groups where uuid = &#63;.
067            *
068            * <p>
069            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
070            * </p>
071            *
072            * @param uuid the uuid
073            * @param start the lower bound of the range of user groups
074            * @param end the upper bound of the range of user groups (not inclusive)
075            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
076            * @return the ordered range of matching user groups
077            */
078            public java.util.List<com.liferay.portal.model.UserGroup> findByUuid(
079                    java.lang.String uuid, int start, int end,
080                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
081    
082            /**
083            * Returns the first user group in the ordered set where uuid = &#63;.
084            *
085            * @param uuid the uuid
086            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
087            * @return the first matching user group
088            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
089            */
090            public com.liferay.portal.model.UserGroup findByUuid_First(
091                    java.lang.String uuid,
092                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
093                    throws com.liferay.portal.NoSuchUserGroupException;
094    
095            /**
096            * Returns the first user group in the ordered set where uuid = &#63;.
097            *
098            * @param uuid the uuid
099            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
100            * @return the first matching user group, or <code>null</code> if a matching user group could not be found
101            */
102            public com.liferay.portal.model.UserGroup fetchByUuid_First(
103                    java.lang.String uuid,
104                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
105    
106            /**
107            * Returns the last user group in the ordered set where uuid = &#63;.
108            *
109            * @param uuid the uuid
110            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
111            * @return the last matching user group
112            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
113            */
114            public com.liferay.portal.model.UserGroup findByUuid_Last(
115                    java.lang.String uuid,
116                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
117                    throws com.liferay.portal.NoSuchUserGroupException;
118    
119            /**
120            * Returns the last user group in the ordered set where uuid = &#63;.
121            *
122            * @param uuid the uuid
123            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
124            * @return the last matching user group, or <code>null</code> if a matching user group could not be found
125            */
126            public com.liferay.portal.model.UserGroup fetchByUuid_Last(
127                    java.lang.String uuid,
128                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
129    
130            /**
131            * Returns the user groups before and after the current user group in the ordered set where uuid = &#63;.
132            *
133            * @param userGroupId the primary key of the current user group
134            * @param uuid the uuid
135            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
136            * @return the previous, current, and next user group
137            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
138            */
139            public com.liferay.portal.model.UserGroup[] findByUuid_PrevAndNext(
140                    long userGroupId, java.lang.String uuid,
141                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
142                    throws com.liferay.portal.NoSuchUserGroupException;
143    
144            /**
145            * Returns all the user groups that the user has permission to view where uuid = &#63;.
146            *
147            * @param uuid the uuid
148            * @return the matching user groups that the user has permission to view
149            */
150            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByUuid(
151                    java.lang.String uuid);
152    
153            /**
154            * Returns a range of all the user groups that the user has permission to view where uuid = &#63;.
155            *
156            * <p>
157            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
158            * </p>
159            *
160            * @param uuid the uuid
161            * @param start the lower bound of the range of user groups
162            * @param end the upper bound of the range of user groups (not inclusive)
163            * @return the range of matching user groups that the user has permission to view
164            */
165            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByUuid(
166                    java.lang.String uuid, int start, int end);
167    
168            /**
169            * Returns an ordered range of all the user groups that the user has permissions to view where uuid = &#63;.
170            *
171            * <p>
172            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
173            * </p>
174            *
175            * @param uuid the uuid
176            * @param start the lower bound of the range of user groups
177            * @param end the upper bound of the range of user groups (not inclusive)
178            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
179            * @return the ordered range of matching user groups that the user has permission to view
180            */
181            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByUuid(
182                    java.lang.String uuid, int start, int end,
183                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
184    
185            /**
186            * Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where uuid = &#63;.
187            *
188            * @param userGroupId the primary key of the current user group
189            * @param uuid the uuid
190            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
191            * @return the previous, current, and next user group
192            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
193            */
194            public com.liferay.portal.model.UserGroup[] filterFindByUuid_PrevAndNext(
195                    long userGroupId, java.lang.String uuid,
196                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
197                    throws com.liferay.portal.NoSuchUserGroupException;
198    
199            /**
200            * Removes all the user groups where uuid = &#63; from the database.
201            *
202            * @param uuid the uuid
203            */
204            public void removeByUuid(java.lang.String uuid);
205    
206            /**
207            * Returns the number of user groups where uuid = &#63;.
208            *
209            * @param uuid the uuid
210            * @return the number of matching user groups
211            */
212            public int countByUuid(java.lang.String uuid);
213    
214            /**
215            * Returns the number of user groups that the user has permission to view where uuid = &#63;.
216            *
217            * @param uuid the uuid
218            * @return the number of matching user groups that the user has permission to view
219            */
220            public int filterCountByUuid(java.lang.String uuid);
221    
222            /**
223            * Returns all the user groups where uuid = &#63; and companyId = &#63;.
224            *
225            * @param uuid the uuid
226            * @param companyId the company ID
227            * @return the matching user groups
228            */
229            public java.util.List<com.liferay.portal.model.UserGroup> findByUuid_C(
230                    java.lang.String uuid, long companyId);
231    
232            /**
233            * Returns a range of all the user groups where uuid = &#63; and companyId = &#63;.
234            *
235            * <p>
236            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
237            * </p>
238            *
239            * @param uuid the uuid
240            * @param companyId the company ID
241            * @param start the lower bound of the range of user groups
242            * @param end the upper bound of the range of user groups (not inclusive)
243            * @return the range of matching user groups
244            */
245            public java.util.List<com.liferay.portal.model.UserGroup> findByUuid_C(
246                    java.lang.String uuid, long companyId, int start, int end);
247    
248            /**
249            * Returns an ordered range of all the user groups where uuid = &#63; and companyId = &#63;.
250            *
251            * <p>
252            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
253            * </p>
254            *
255            * @param uuid the uuid
256            * @param companyId the company ID
257            * @param start the lower bound of the range of user groups
258            * @param end the upper bound of the range of user groups (not inclusive)
259            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
260            * @return the ordered range of matching user groups
261            */
262            public java.util.List<com.liferay.portal.model.UserGroup> findByUuid_C(
263                    java.lang.String uuid, long companyId, int start, int end,
264                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
265    
266            /**
267            * Returns the first user group in the ordered set where uuid = &#63; and companyId = &#63;.
268            *
269            * @param uuid the uuid
270            * @param companyId the company ID
271            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
272            * @return the first matching user group
273            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
274            */
275            public com.liferay.portal.model.UserGroup findByUuid_C_First(
276                    java.lang.String uuid, long companyId,
277                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
278                    throws com.liferay.portal.NoSuchUserGroupException;
279    
280            /**
281            * Returns the first user group in the ordered set where uuid = &#63; and companyId = &#63;.
282            *
283            * @param uuid the uuid
284            * @param companyId the company ID
285            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
286            * @return the first matching user group, or <code>null</code> if a matching user group could not be found
287            */
288            public com.liferay.portal.model.UserGroup fetchByUuid_C_First(
289                    java.lang.String uuid, long companyId,
290                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
291    
292            /**
293            * Returns the last user group in the ordered set where uuid = &#63; and companyId = &#63;.
294            *
295            * @param uuid the uuid
296            * @param companyId the company ID
297            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
298            * @return the last matching user group
299            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
300            */
301            public com.liferay.portal.model.UserGroup findByUuid_C_Last(
302                    java.lang.String uuid, long companyId,
303                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
304                    throws com.liferay.portal.NoSuchUserGroupException;
305    
306            /**
307            * Returns the last user group in the ordered set where uuid = &#63; and companyId = &#63;.
308            *
309            * @param uuid the uuid
310            * @param companyId the company ID
311            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
312            * @return the last matching user group, or <code>null</code> if a matching user group could not be found
313            */
314            public com.liferay.portal.model.UserGroup fetchByUuid_C_Last(
315                    java.lang.String uuid, long companyId,
316                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
317    
318            /**
319            * Returns the user groups before and after the current user group in the ordered set where uuid = &#63; and companyId = &#63;.
320            *
321            * @param userGroupId the primary key of the current user group
322            * @param uuid the uuid
323            * @param companyId the company ID
324            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
325            * @return the previous, current, and next user group
326            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
327            */
328            public com.liferay.portal.model.UserGroup[] findByUuid_C_PrevAndNext(
329                    long userGroupId, java.lang.String uuid, long companyId,
330                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
331                    throws com.liferay.portal.NoSuchUserGroupException;
332    
333            /**
334            * Returns all the user groups that the user has permission to view where uuid = &#63; and companyId = &#63;.
335            *
336            * @param uuid the uuid
337            * @param companyId the company ID
338            * @return the matching user groups that the user has permission to view
339            */
340            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByUuid_C(
341                    java.lang.String uuid, long companyId);
342    
343            /**
344            * Returns a range of all the user groups that the user has permission to view where uuid = &#63; and companyId = &#63;.
345            *
346            * <p>
347            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
348            * </p>
349            *
350            * @param uuid the uuid
351            * @param companyId the company ID
352            * @param start the lower bound of the range of user groups
353            * @param end the upper bound of the range of user groups (not inclusive)
354            * @return the range of matching user groups that the user has permission to view
355            */
356            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByUuid_C(
357                    java.lang.String uuid, long companyId, int start, int end);
358    
359            /**
360            * Returns an ordered range of all the user groups that the user has permissions to view where uuid = &#63; and companyId = &#63;.
361            *
362            * <p>
363            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
364            * </p>
365            *
366            * @param uuid the uuid
367            * @param companyId the company ID
368            * @param start the lower bound of the range of user groups
369            * @param end the upper bound of the range of user groups (not inclusive)
370            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
371            * @return the ordered range of matching user groups that the user has permission to view
372            */
373            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByUuid_C(
374                    java.lang.String uuid, long companyId, int start, int end,
375                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
376    
377            /**
378            * Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where uuid = &#63; and companyId = &#63;.
379            *
380            * @param userGroupId the primary key of the current user group
381            * @param uuid the uuid
382            * @param companyId the company ID
383            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
384            * @return the previous, current, and next user group
385            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
386            */
387            public com.liferay.portal.model.UserGroup[] filterFindByUuid_C_PrevAndNext(
388                    long userGroupId, java.lang.String uuid, long companyId,
389                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
390                    throws com.liferay.portal.NoSuchUserGroupException;
391    
392            /**
393            * Removes all the user groups where uuid = &#63; and companyId = &#63; from the database.
394            *
395            * @param uuid the uuid
396            * @param companyId the company ID
397            */
398            public void removeByUuid_C(java.lang.String uuid, long companyId);
399    
400            /**
401            * Returns the number of user groups where uuid = &#63; and companyId = &#63;.
402            *
403            * @param uuid the uuid
404            * @param companyId the company ID
405            * @return the number of matching user groups
406            */
407            public int countByUuid_C(java.lang.String uuid, long companyId);
408    
409            /**
410            * Returns the number of user groups that the user has permission to view where uuid = &#63; and companyId = &#63;.
411            *
412            * @param uuid the uuid
413            * @param companyId the company ID
414            * @return the number of matching user groups that the user has permission to view
415            */
416            public int filterCountByUuid_C(java.lang.String uuid, long companyId);
417    
418            /**
419            * Returns all the user groups where companyId = &#63;.
420            *
421            * @param companyId the company ID
422            * @return the matching user groups
423            */
424            public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
425                    long companyId);
426    
427            /**
428            * Returns a range of all the user groups where companyId = &#63;.
429            *
430            * <p>
431            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
432            * </p>
433            *
434            * @param companyId the company ID
435            * @param start the lower bound of the range of user groups
436            * @param end the upper bound of the range of user groups (not inclusive)
437            * @return the range of matching user groups
438            */
439            public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
440                    long companyId, int start, int end);
441    
442            /**
443            * Returns an ordered range of all the user groups where companyId = &#63;.
444            *
445            * <p>
446            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
447            * </p>
448            *
449            * @param companyId the company ID
450            * @param start the lower bound of the range of user groups
451            * @param end the upper bound of the range of user groups (not inclusive)
452            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
453            * @return the ordered range of matching user groups
454            */
455            public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
456                    long companyId, int start, int end,
457                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
458    
459            /**
460            * Returns the first user group in the ordered set where companyId = &#63;.
461            *
462            * @param companyId the company ID
463            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
464            * @return the first matching user group
465            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
466            */
467            public com.liferay.portal.model.UserGroup findByCompanyId_First(
468                    long companyId,
469                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
470                    throws com.liferay.portal.NoSuchUserGroupException;
471    
472            /**
473            * Returns the first user group in the ordered set where companyId = &#63;.
474            *
475            * @param companyId the company ID
476            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
477            * @return the first matching user group, or <code>null</code> if a matching user group could not be found
478            */
479            public com.liferay.portal.model.UserGroup fetchByCompanyId_First(
480                    long companyId,
481                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
482    
483            /**
484            * Returns the last user group in the ordered set where companyId = &#63;.
485            *
486            * @param companyId the company ID
487            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
488            * @return the last matching user group
489            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
490            */
491            public com.liferay.portal.model.UserGroup findByCompanyId_Last(
492                    long companyId,
493                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
494                    throws com.liferay.portal.NoSuchUserGroupException;
495    
496            /**
497            * Returns the last user group in the ordered set where companyId = &#63;.
498            *
499            * @param companyId the company ID
500            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
501            * @return the last matching user group, or <code>null</code> if a matching user group could not be found
502            */
503            public com.liferay.portal.model.UserGroup fetchByCompanyId_Last(
504                    long companyId,
505                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
506    
507            /**
508            * Returns the user groups before and after the current user group in the ordered set where companyId = &#63;.
509            *
510            * @param userGroupId the primary key of the current user group
511            * @param companyId the company ID
512            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
513            * @return the previous, current, and next user group
514            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
515            */
516            public com.liferay.portal.model.UserGroup[] findByCompanyId_PrevAndNext(
517                    long userGroupId, long companyId,
518                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
519                    throws com.liferay.portal.NoSuchUserGroupException;
520    
521            /**
522            * Returns all the user groups that the user has permission to view where companyId = &#63;.
523            *
524            * @param companyId the company ID
525            * @return the matching user groups that the user has permission to view
526            */
527            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByCompanyId(
528                    long companyId);
529    
530            /**
531            * Returns a range of all the user groups that the user has permission to view where companyId = &#63;.
532            *
533            * <p>
534            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
535            * </p>
536            *
537            * @param companyId the company ID
538            * @param start the lower bound of the range of user groups
539            * @param end the upper bound of the range of user groups (not inclusive)
540            * @return the range of matching user groups that the user has permission to view
541            */
542            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByCompanyId(
543                    long companyId, int start, int end);
544    
545            /**
546            * Returns an ordered range of all the user groups that the user has permissions to view where companyId = &#63;.
547            *
548            * <p>
549            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
550            * </p>
551            *
552            * @param companyId the company ID
553            * @param start the lower bound of the range of user groups
554            * @param end the upper bound of the range of user groups (not inclusive)
555            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
556            * @return the ordered range of matching user groups that the user has permission to view
557            */
558            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByCompanyId(
559                    long companyId, int start, int end,
560                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
561    
562            /**
563            * Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where companyId = &#63;.
564            *
565            * @param userGroupId the primary key of the current user group
566            * @param companyId the company ID
567            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
568            * @return the previous, current, and next user group
569            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
570            */
571            public com.liferay.portal.model.UserGroup[] filterFindByCompanyId_PrevAndNext(
572                    long userGroupId, long companyId,
573                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
574                    throws com.liferay.portal.NoSuchUserGroupException;
575    
576            /**
577            * Removes all the user groups where companyId = &#63; from the database.
578            *
579            * @param companyId the company ID
580            */
581            public void removeByCompanyId(long companyId);
582    
583            /**
584            * Returns the number of user groups where companyId = &#63;.
585            *
586            * @param companyId the company ID
587            * @return the number of matching user groups
588            */
589            public int countByCompanyId(long companyId);
590    
591            /**
592            * Returns the number of user groups that the user has permission to view where companyId = &#63;.
593            *
594            * @param companyId the company ID
595            * @return the number of matching user groups that the user has permission to view
596            */
597            public int filterCountByCompanyId(long companyId);
598    
599            /**
600            * Returns all the user groups where companyId = &#63; and parentUserGroupId = &#63;.
601            *
602            * @param companyId the company ID
603            * @param parentUserGroupId the parent user group ID
604            * @return the matching user groups
605            */
606            public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
607                    long companyId, long parentUserGroupId);
608    
609            /**
610            * Returns a range of all the user groups where companyId = &#63; and parentUserGroupId = &#63;.
611            *
612            * <p>
613            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
614            * </p>
615            *
616            * @param companyId the company ID
617            * @param parentUserGroupId the parent user group ID
618            * @param start the lower bound of the range of user groups
619            * @param end the upper bound of the range of user groups (not inclusive)
620            * @return the range of matching user groups
621            */
622            public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
623                    long companyId, long parentUserGroupId, int start, int end);
624    
625            /**
626            * Returns an ordered range of all the user groups where companyId = &#63; and parentUserGroupId = &#63;.
627            *
628            * <p>
629            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
630            * </p>
631            *
632            * @param companyId the company ID
633            * @param parentUserGroupId the parent user group ID
634            * @param start the lower bound of the range of user groups
635            * @param end the upper bound of the range of user groups (not inclusive)
636            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
637            * @return the ordered range of matching user groups
638            */
639            public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
640                    long companyId, long parentUserGroupId, int start, int end,
641                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
642    
643            /**
644            * Returns the first user group in the ordered set where companyId = &#63; and parentUserGroupId = &#63;.
645            *
646            * @param companyId the company ID
647            * @param parentUserGroupId the parent user group ID
648            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
649            * @return the first matching user group
650            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
651            */
652            public com.liferay.portal.model.UserGroup findByC_P_First(long companyId,
653                    long parentUserGroupId,
654                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
655                    throws com.liferay.portal.NoSuchUserGroupException;
656    
657            /**
658            * Returns the first user group in the ordered set where companyId = &#63; and parentUserGroupId = &#63;.
659            *
660            * @param companyId the company ID
661            * @param parentUserGroupId the parent user group ID
662            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
663            * @return the first matching user group, or <code>null</code> if a matching user group could not be found
664            */
665            public com.liferay.portal.model.UserGroup fetchByC_P_First(long companyId,
666                    long parentUserGroupId,
667                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
668    
669            /**
670            * Returns the last user group in the ordered set where companyId = &#63; and parentUserGroupId = &#63;.
671            *
672            * @param companyId the company ID
673            * @param parentUserGroupId the parent user group ID
674            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
675            * @return the last matching user group
676            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
677            */
678            public com.liferay.portal.model.UserGroup findByC_P_Last(long companyId,
679                    long parentUserGroupId,
680                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
681                    throws com.liferay.portal.NoSuchUserGroupException;
682    
683            /**
684            * Returns the last user group in the ordered set where companyId = &#63; and parentUserGroupId = &#63;.
685            *
686            * @param companyId the company ID
687            * @param parentUserGroupId the parent user group ID
688            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
689            * @return the last matching user group, or <code>null</code> if a matching user group could not be found
690            */
691            public com.liferay.portal.model.UserGroup fetchByC_P_Last(long companyId,
692                    long parentUserGroupId,
693                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
694    
695            /**
696            * Returns the user groups before and after the current user group in the ordered set where companyId = &#63; and parentUserGroupId = &#63;.
697            *
698            * @param userGroupId the primary key of the current user group
699            * @param companyId the company ID
700            * @param parentUserGroupId the parent user group ID
701            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
702            * @return the previous, current, and next user group
703            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
704            */
705            public com.liferay.portal.model.UserGroup[] findByC_P_PrevAndNext(
706                    long userGroupId, long companyId, long parentUserGroupId,
707                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
708                    throws com.liferay.portal.NoSuchUserGroupException;
709    
710            /**
711            * Returns all the user groups that the user has permission to view where companyId = &#63; and parentUserGroupId = &#63;.
712            *
713            * @param companyId the company ID
714            * @param parentUserGroupId the parent user group ID
715            * @return the matching user groups that the user has permission to view
716            */
717            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByC_P(
718                    long companyId, long parentUserGroupId);
719    
720            /**
721            * Returns a range of all the user groups that the user has permission to view where companyId = &#63; and parentUserGroupId = &#63;.
722            *
723            * <p>
724            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
725            * </p>
726            *
727            * @param companyId the company ID
728            * @param parentUserGroupId the parent user group ID
729            * @param start the lower bound of the range of user groups
730            * @param end the upper bound of the range of user groups (not inclusive)
731            * @return the range of matching user groups that the user has permission to view
732            */
733            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByC_P(
734                    long companyId, long parentUserGroupId, int start, int end);
735    
736            /**
737            * Returns an ordered range of all the user groups that the user has permissions to view where companyId = &#63; and parentUserGroupId = &#63;.
738            *
739            * <p>
740            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
741            * </p>
742            *
743            * @param companyId the company ID
744            * @param parentUserGroupId the parent user group ID
745            * @param start the lower bound of the range of user groups
746            * @param end the upper bound of the range of user groups (not inclusive)
747            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
748            * @return the ordered range of matching user groups that the user has permission to view
749            */
750            public java.util.List<com.liferay.portal.model.UserGroup> filterFindByC_P(
751                    long companyId, long parentUserGroupId, int start, int end,
752                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
753    
754            /**
755            * Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where companyId = &#63; and parentUserGroupId = &#63;.
756            *
757            * @param userGroupId the primary key of the current user group
758            * @param companyId the company ID
759            * @param parentUserGroupId the parent user group ID
760            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
761            * @return the previous, current, and next user group
762            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
763            */
764            public com.liferay.portal.model.UserGroup[] filterFindByC_P_PrevAndNext(
765                    long userGroupId, long companyId, long parentUserGroupId,
766                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator)
767                    throws com.liferay.portal.NoSuchUserGroupException;
768    
769            /**
770            * Removes all the user groups where companyId = &#63; and parentUserGroupId = &#63; from the database.
771            *
772            * @param companyId the company ID
773            * @param parentUserGroupId the parent user group ID
774            */
775            public void removeByC_P(long companyId, long parentUserGroupId);
776    
777            /**
778            * Returns the number of user groups where companyId = &#63; and parentUserGroupId = &#63;.
779            *
780            * @param companyId the company ID
781            * @param parentUserGroupId the parent user group ID
782            * @return the number of matching user groups
783            */
784            public int countByC_P(long companyId, long parentUserGroupId);
785    
786            /**
787            * Returns the number of user groups that the user has permission to view where companyId = &#63; and parentUserGroupId = &#63;.
788            *
789            * @param companyId the company ID
790            * @param parentUserGroupId the parent user group ID
791            * @return the number of matching user groups that the user has permission to view
792            */
793            public int filterCountByC_P(long companyId, long parentUserGroupId);
794    
795            /**
796            * Returns the user group where companyId = &#63; and name = &#63; or throws a {@link com.liferay.portal.NoSuchUserGroupException} if it could not be found.
797            *
798            * @param companyId the company ID
799            * @param name the name
800            * @return the matching user group
801            * @throws com.liferay.portal.NoSuchUserGroupException if a matching user group could not be found
802            */
803            public com.liferay.portal.model.UserGroup findByC_N(long companyId,
804                    java.lang.String name)
805                    throws com.liferay.portal.NoSuchUserGroupException;
806    
807            /**
808            * Returns the user group where companyId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
809            *
810            * @param companyId the company ID
811            * @param name the name
812            * @return the matching user group, or <code>null</code> if a matching user group could not be found
813            */
814            public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
815                    java.lang.String name);
816    
817            /**
818            * Returns the user group where companyId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
819            *
820            * @param companyId the company ID
821            * @param name the name
822            * @param retrieveFromCache whether to use the finder cache
823            * @return the matching user group, or <code>null</code> if a matching user group could not be found
824            */
825            public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
826                    java.lang.String name, boolean retrieveFromCache);
827    
828            /**
829            * Removes the user group where companyId = &#63; and name = &#63; from the database.
830            *
831            * @param companyId the company ID
832            * @param name the name
833            * @return the user group that was removed
834            */
835            public com.liferay.portal.model.UserGroup removeByC_N(long companyId,
836                    java.lang.String name)
837                    throws com.liferay.portal.NoSuchUserGroupException;
838    
839            /**
840            * Returns the number of user groups where companyId = &#63; and name = &#63;.
841            *
842            * @param companyId the company ID
843            * @param name the name
844            * @return the number of matching user groups
845            */
846            public int countByC_N(long companyId, java.lang.String name);
847    
848            /**
849            * Caches the user group in the entity cache if it is enabled.
850            *
851            * @param userGroup the user group
852            */
853            public void cacheResult(com.liferay.portal.model.UserGroup userGroup);
854    
855            /**
856            * Caches the user groups in the entity cache if it is enabled.
857            *
858            * @param userGroups the user groups
859            */
860            public void cacheResult(
861                    java.util.List<com.liferay.portal.model.UserGroup> userGroups);
862    
863            /**
864            * Creates a new user group with the primary key. Does not add the user group to the database.
865            *
866            * @param userGroupId the primary key for the new user group
867            * @return the new user group
868            */
869            public com.liferay.portal.model.UserGroup create(long userGroupId);
870    
871            /**
872            * Removes the user group with the primary key from the database. Also notifies the appropriate model listeners.
873            *
874            * @param userGroupId the primary key of the user group
875            * @return the user group that was removed
876            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
877            */
878            public com.liferay.portal.model.UserGroup remove(long userGroupId)
879                    throws com.liferay.portal.NoSuchUserGroupException;
880    
881            public com.liferay.portal.model.UserGroup updateImpl(
882                    com.liferay.portal.model.UserGroup userGroup);
883    
884            /**
885            * Returns the user group with the primary key or throws a {@link com.liferay.portal.NoSuchUserGroupException} if it could not be found.
886            *
887            * @param userGroupId the primary key of the user group
888            * @return the user group
889            * @throws com.liferay.portal.NoSuchUserGroupException if a user group with the primary key could not be found
890            */
891            public com.liferay.portal.model.UserGroup findByPrimaryKey(long userGroupId)
892                    throws com.liferay.portal.NoSuchUserGroupException;
893    
894            /**
895            * Returns the user group with the primary key or returns <code>null</code> if it could not be found.
896            *
897            * @param userGroupId the primary key of the user group
898            * @return the user group, or <code>null</code> if a user group with the primary key could not be found
899            */
900            public com.liferay.portal.model.UserGroup fetchByPrimaryKey(
901                    long userGroupId);
902    
903            @Override
904            public java.util.Map<java.io.Serializable, com.liferay.portal.model.UserGroup> fetchByPrimaryKeys(
905                    java.util.Set<java.io.Serializable> primaryKeys);
906    
907            /**
908            * Returns all the user groups.
909            *
910            * @return the user groups
911            */
912            public java.util.List<com.liferay.portal.model.UserGroup> findAll();
913    
914            /**
915            * Returns a range of all the user groups.
916            *
917            * <p>
918            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
919            * </p>
920            *
921            * @param start the lower bound of the range of user groups
922            * @param end the upper bound of the range of user groups (not inclusive)
923            * @return the range of user groups
924            */
925            public java.util.List<com.liferay.portal.model.UserGroup> findAll(
926                    int start, int end);
927    
928            /**
929            * Returns an ordered range of all the user groups.
930            *
931            * <p>
932            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
933            * </p>
934            *
935            * @param start the lower bound of the range of user groups
936            * @param end the upper bound of the range of user groups (not inclusive)
937            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
938            * @return the ordered range of user groups
939            */
940            public java.util.List<com.liferay.portal.model.UserGroup> findAll(
941                    int start, int end,
942                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserGroup> orderByComparator);
943    
944            /**
945            * Removes all the user groups from the database.
946            */
947            public void removeAll();
948    
949            /**
950            * Returns the number of user groups.
951            *
952            * @return the number of user groups
953            */
954            public int countAll();
955    
956            /**
957            * Returns the primaryKeys of groups associated with the user group.
958            *
959            * @param pk the primary key of the user group
960            * @return long[] of the primaryKeys of groups associated with the user group
961            */
962            public long[] getGroupPrimaryKeys(long pk);
963    
964            /**
965            * Returns all the groups associated with the user group.
966            *
967            * @param pk the primary key of the user group
968            * @return the groups associated with the user group
969            */
970            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk);
971    
972            /**
973            * Returns a range of all the groups associated with the user group.
974            *
975            * <p>
976            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
977            * </p>
978            *
979            * @param pk the primary key of the user group
980            * @param start the lower bound of the range of user groups
981            * @param end the upper bound of the range of user groups (not inclusive)
982            * @return the range of groups associated with the user group
983            */
984            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
985                    int start, int end);
986    
987            /**
988            * Returns an ordered range of all the groups associated with the user group.
989            *
990            * <p>
991            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
992            * </p>
993            *
994            * @param pk the primary key of the user group
995            * @param start the lower bound of the range of user groups
996            * @param end the upper bound of the range of user groups (not inclusive)
997            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
998            * @return the ordered range of groups associated with the user group
999            */
1000            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
1001                    int start, int end,
1002                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
1003    
1004            /**
1005            * Returns the number of groups associated with the user group.
1006            *
1007            * @param pk the primary key of the user group
1008            * @return the number of groups associated with the user group
1009            */
1010            public int getGroupsSize(long pk);
1011    
1012            /**
1013            * Returns <code>true</code> if the group is associated with the user group.
1014            *
1015            * @param pk the primary key of the user group
1016            * @param groupPK the primary key of the group
1017            * @return <code>true</code> if the group is associated with the user group; <code>false</code> otherwise
1018            */
1019            public boolean containsGroup(long pk, long groupPK);
1020    
1021            /**
1022            * Returns <code>true</code> if the user group has any groups associated with it.
1023            *
1024            * @param pk the primary key of the user group to check for associations with groups
1025            * @return <code>true</code> if the user group has any groups associated with it; <code>false</code> otherwise
1026            */
1027            public boolean containsGroups(long pk);
1028    
1029            /**
1030            * Adds an association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1031            *
1032            * @param pk the primary key of the user group
1033            * @param groupPK the primary key of the group
1034            */
1035            public void addGroup(long pk, long groupPK);
1036    
1037            /**
1038            * Adds an association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1039            *
1040            * @param pk the primary key of the user group
1041            * @param group the group
1042            */
1043            public void addGroup(long pk, com.liferay.portal.model.Group group);
1044    
1045            /**
1046            * Adds an association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1047            *
1048            * @param pk the primary key of the user group
1049            * @param groupPKs the primary keys of the groups
1050            */
1051            public void addGroups(long pk, long[] groupPKs);
1052    
1053            /**
1054            * Adds an association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1055            *
1056            * @param pk the primary key of the user group
1057            * @param groups the groups
1058            */
1059            public void addGroups(long pk,
1060                    java.util.List<com.liferay.portal.model.Group> groups);
1061    
1062            /**
1063            * Clears all associations between the user group and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1064            *
1065            * @param pk the primary key of the user group to clear the associated groups from
1066            */
1067            public void clearGroups(long pk);
1068    
1069            /**
1070            * Removes the association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1071            *
1072            * @param pk the primary key of the user group
1073            * @param groupPK the primary key of the group
1074            */
1075            public void removeGroup(long pk, long groupPK);
1076    
1077            /**
1078            * Removes the association between the user group and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1079            *
1080            * @param pk the primary key of the user group
1081            * @param group the group
1082            */
1083            public void removeGroup(long pk, com.liferay.portal.model.Group group);
1084    
1085            /**
1086            * Removes the association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1087            *
1088            * @param pk the primary key of the user group
1089            * @param groupPKs the primary keys of the groups
1090            */
1091            public void removeGroups(long pk, long[] groupPKs);
1092    
1093            /**
1094            * Removes the association between the user group and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1095            *
1096            * @param pk the primary key of the user group
1097            * @param groups the groups
1098            */
1099            public void removeGroups(long pk,
1100                    java.util.List<com.liferay.portal.model.Group> groups);
1101    
1102            /**
1103            * Sets the groups associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1104            *
1105            * @param pk the primary key of the user group
1106            * @param groupPKs the primary keys of the groups to be associated with the user group
1107            */
1108            public void setGroups(long pk, long[] groupPKs);
1109    
1110            /**
1111            * Sets the groups associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1112            *
1113            * @param pk the primary key of the user group
1114            * @param groups the groups to be associated with the user group
1115            */
1116            public void setGroups(long pk,
1117                    java.util.List<com.liferay.portal.model.Group> groups);
1118    
1119            /**
1120            * Returns the primaryKeys of teams associated with the user group.
1121            *
1122            * @param pk the primary key of the user group
1123            * @return long[] of the primaryKeys of teams associated with the user group
1124            */
1125            public long[] getTeamPrimaryKeys(long pk);
1126    
1127            /**
1128            * Returns all the teams associated with the user group.
1129            *
1130            * @param pk the primary key of the user group
1131            * @return the teams associated with the user group
1132            */
1133            public java.util.List<com.liferay.portal.model.Team> getTeams(long pk);
1134    
1135            /**
1136            * Returns a range of all the teams associated with the user group.
1137            *
1138            * <p>
1139            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1140            * </p>
1141            *
1142            * @param pk the primary key of the user group
1143            * @param start the lower bound of the range of user groups
1144            * @param end the upper bound of the range of user groups (not inclusive)
1145            * @return the range of teams associated with the user group
1146            */
1147            public java.util.List<com.liferay.portal.model.Team> getTeams(long pk,
1148                    int start, int end);
1149    
1150            /**
1151            * Returns an ordered range of all the teams associated with the user group.
1152            *
1153            * <p>
1154            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1155            * </p>
1156            *
1157            * @param pk the primary key of the user group
1158            * @param start the lower bound of the range of user groups
1159            * @param end the upper bound of the range of user groups (not inclusive)
1160            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1161            * @return the ordered range of teams associated with the user group
1162            */
1163            public java.util.List<com.liferay.portal.model.Team> getTeams(long pk,
1164                    int start, int end,
1165                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Team> orderByComparator);
1166    
1167            /**
1168            * Returns the number of teams associated with the user group.
1169            *
1170            * @param pk the primary key of the user group
1171            * @return the number of teams associated with the user group
1172            */
1173            public int getTeamsSize(long pk);
1174    
1175            /**
1176            * Returns <code>true</code> if the team is associated with the user group.
1177            *
1178            * @param pk the primary key of the user group
1179            * @param teamPK the primary key of the team
1180            * @return <code>true</code> if the team is associated with the user group; <code>false</code> otherwise
1181            */
1182            public boolean containsTeam(long pk, long teamPK);
1183    
1184            /**
1185            * Returns <code>true</code> if the user group has any teams associated with it.
1186            *
1187            * @param pk the primary key of the user group to check for associations with teams
1188            * @return <code>true</code> if the user group has any teams associated with it; <code>false</code> otherwise
1189            */
1190            public boolean containsTeams(long pk);
1191    
1192            /**
1193            * Adds an association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1194            *
1195            * @param pk the primary key of the user group
1196            * @param teamPK the primary key of the team
1197            */
1198            public void addTeam(long pk, long teamPK);
1199    
1200            /**
1201            * Adds an association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1202            *
1203            * @param pk the primary key of the user group
1204            * @param team the team
1205            */
1206            public void addTeam(long pk, com.liferay.portal.model.Team team);
1207    
1208            /**
1209            * Adds an association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1210            *
1211            * @param pk the primary key of the user group
1212            * @param teamPKs the primary keys of the teams
1213            */
1214            public void addTeams(long pk, long[] teamPKs);
1215    
1216            /**
1217            * Adds an association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1218            *
1219            * @param pk the primary key of the user group
1220            * @param teams the teams
1221            */
1222            public void addTeams(long pk,
1223                    java.util.List<com.liferay.portal.model.Team> teams);
1224    
1225            /**
1226            * Clears all associations between the user group and its teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1227            *
1228            * @param pk the primary key of the user group to clear the associated teams from
1229            */
1230            public void clearTeams(long pk);
1231    
1232            /**
1233            * Removes the association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1234            *
1235            * @param pk the primary key of the user group
1236            * @param teamPK the primary key of the team
1237            */
1238            public void removeTeam(long pk, long teamPK);
1239    
1240            /**
1241            * Removes the association between the user group and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1242            *
1243            * @param pk the primary key of the user group
1244            * @param team the team
1245            */
1246            public void removeTeam(long pk, com.liferay.portal.model.Team team);
1247    
1248            /**
1249            * Removes the association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1250            *
1251            * @param pk the primary key of the user group
1252            * @param teamPKs the primary keys of the teams
1253            */
1254            public void removeTeams(long pk, long[] teamPKs);
1255    
1256            /**
1257            * Removes the association between the user group and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1258            *
1259            * @param pk the primary key of the user group
1260            * @param teams the teams
1261            */
1262            public void removeTeams(long pk,
1263                    java.util.List<com.liferay.portal.model.Team> teams);
1264    
1265            /**
1266            * Sets the teams associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1267            *
1268            * @param pk the primary key of the user group
1269            * @param teamPKs the primary keys of the teams to be associated with the user group
1270            */
1271            public void setTeams(long pk, long[] teamPKs);
1272    
1273            /**
1274            * Sets the teams associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1275            *
1276            * @param pk the primary key of the user group
1277            * @param teams the teams to be associated with the user group
1278            */
1279            public void setTeams(long pk,
1280                    java.util.List<com.liferay.portal.model.Team> teams);
1281    
1282            /**
1283            * Returns the primaryKeys of users associated with the user group.
1284            *
1285            * @param pk the primary key of the user group
1286            * @return long[] of the primaryKeys of users associated with the user group
1287            */
1288            public long[] getUserPrimaryKeys(long pk);
1289    
1290            /**
1291            * Returns all the users associated with the user group.
1292            *
1293            * @param pk the primary key of the user group
1294            * @return the users associated with the user group
1295            */
1296            public java.util.List<com.liferay.portal.model.User> getUsers(long pk);
1297    
1298            /**
1299            * Returns a range of all the users associated with the user group.
1300            *
1301            * <p>
1302            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1303            * </p>
1304            *
1305            * @param pk the primary key of the user group
1306            * @param start the lower bound of the range of user groups
1307            * @param end the upper bound of the range of user groups (not inclusive)
1308            * @return the range of users associated with the user group
1309            */
1310            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
1311                    int start, int end);
1312    
1313            /**
1314            * Returns an ordered range of all the users associated with the user group.
1315            *
1316            * <p>
1317            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserGroupModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1318            * </p>
1319            *
1320            * @param pk the primary key of the user group
1321            * @param start the lower bound of the range of user groups
1322            * @param end the upper bound of the range of user groups (not inclusive)
1323            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1324            * @return the ordered range of users associated with the user group
1325            */
1326            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
1327                    int start, int end,
1328                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.User> orderByComparator);
1329    
1330            /**
1331            * Returns the number of users associated with the user group.
1332            *
1333            * @param pk the primary key of the user group
1334            * @return the number of users associated with the user group
1335            */
1336            public int getUsersSize(long pk);
1337    
1338            /**
1339            * Returns <code>true</code> if the user is associated with the user group.
1340            *
1341            * @param pk the primary key of the user group
1342            * @param userPK the primary key of the user
1343            * @return <code>true</code> if the user is associated with the user group; <code>false</code> otherwise
1344            */
1345            public boolean containsUser(long pk, long userPK);
1346    
1347            /**
1348            * Returns <code>true</code> if the user group has any users associated with it.
1349            *
1350            * @param pk the primary key of the user group to check for associations with users
1351            * @return <code>true</code> if the user group has any users associated with it; <code>false</code> otherwise
1352            */
1353            public boolean containsUsers(long pk);
1354    
1355            /**
1356            * Adds an association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1357            *
1358            * @param pk the primary key of the user group
1359            * @param userPK the primary key of the user
1360            */
1361            public void addUser(long pk, long userPK);
1362    
1363            /**
1364            * Adds an association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1365            *
1366            * @param pk the primary key of the user group
1367            * @param user the user
1368            */
1369            public void addUser(long pk, com.liferay.portal.model.User user);
1370    
1371            /**
1372            * Adds an association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1373            *
1374            * @param pk the primary key of the user group
1375            * @param userPKs the primary keys of the users
1376            */
1377            public void addUsers(long pk, long[] userPKs);
1378    
1379            /**
1380            * Adds an association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1381            *
1382            * @param pk the primary key of the user group
1383            * @param users the users
1384            */
1385            public void addUsers(long pk,
1386                    java.util.List<com.liferay.portal.model.User> users);
1387    
1388            /**
1389            * Clears all associations between the user group and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1390            *
1391            * @param pk the primary key of the user group to clear the associated users from
1392            */
1393            public void clearUsers(long pk);
1394    
1395            /**
1396            * Removes the association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1397            *
1398            * @param pk the primary key of the user group
1399            * @param userPK the primary key of the user
1400            */
1401            public void removeUser(long pk, long userPK);
1402    
1403            /**
1404            * Removes the association between the user group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1405            *
1406            * @param pk the primary key of the user group
1407            * @param user the user
1408            */
1409            public void removeUser(long pk, com.liferay.portal.model.User user);
1410    
1411            /**
1412            * Removes the association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1413            *
1414            * @param pk the primary key of the user group
1415            * @param userPKs the primary keys of the users
1416            */
1417            public void removeUsers(long pk, long[] userPKs);
1418    
1419            /**
1420            * Removes the association between the user group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1421            *
1422            * @param pk the primary key of the user group
1423            * @param users the users
1424            */
1425            public void removeUsers(long pk,
1426                    java.util.List<com.liferay.portal.model.User> users);
1427    
1428            /**
1429            * Sets the users associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1430            *
1431            * @param pk the primary key of the user group
1432            * @param userPKs the primary keys of the users to be associated with the user group
1433            */
1434            public void setUsers(long pk, long[] userPKs);
1435    
1436            /**
1437            * Sets the users associated with the user group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1438            *
1439            * @param pk the primary key of the user group
1440            * @param users the users to be associated with the user group
1441            */
1442            public void setUsers(long pk,
1443                    java.util.List<com.liferay.portal.model.User> users);
1444    }