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