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.Organization;
020    
021    /**
022     * The persistence interface for the organization 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 com.liferay.portal.service.persistence.impl.OrganizationPersistenceImpl
030     * @see OrganizationUtil
031     * @generated
032     */
033    @ProviderType
034    public interface OrganizationPersistence extends BasePersistence<Organization> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link OrganizationUtil} to access the organization persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Returns all the organizations where uuid = &#63;.
043            *
044            * @param uuid the uuid
045            * @return the matching organizations
046            */
047            public java.util.List<Organization> findByUuid(java.lang.String uuid);
048    
049            /**
050            * Returns a range of all the organizations where uuid = &#63;.
051            *
052            * <p>
053            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
054            * </p>
055            *
056            * @param uuid the uuid
057            * @param start the lower bound of the range of organizations
058            * @param end the upper bound of the range of organizations (not inclusive)
059            * @return the range of matching organizations
060            */
061            public java.util.List<Organization> findByUuid(java.lang.String uuid,
062                    int start, int end);
063    
064            /**
065            * Returns an ordered range of all the organizations where uuid = &#63;.
066            *
067            * <p>
068            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
069            * </p>
070            *
071            * @param uuid the uuid
072            * @param start the lower bound of the range of organizations
073            * @param end the upper bound of the range of organizations (not inclusive)
074            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
075            * @return the ordered range of matching organizations
076            */
077            public java.util.List<Organization> findByUuid(java.lang.String uuid,
078                    int start, int end,
079                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
080    
081            /**
082            * Returns an ordered range of all the organizations where uuid = &#63;.
083            *
084            * <p>
085            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
086            * </p>
087            *
088            * @param uuid the uuid
089            * @param start the lower bound of the range of organizations
090            * @param end the upper bound of the range of organizations (not inclusive)
091            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
092            * @param retrieveFromCache whether to retrieve from the finder cache
093            * @return the ordered range of matching organizations
094            */
095            public java.util.List<Organization> findByUuid(java.lang.String uuid,
096                    int start, int end,
097                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator,
098                    boolean retrieveFromCache);
099    
100            /**
101            * Returns the first organization in the ordered set where uuid = &#63;.
102            *
103            * @param uuid the uuid
104            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
105            * @return the first matching organization
106            * @throws NoSuchOrganizationException if a matching organization could not be found
107            */
108            public Organization findByUuid_First(java.lang.String uuid,
109                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
110                    throws com.liferay.portal.exception.NoSuchOrganizationException;
111    
112            /**
113            * Returns the first organization in the ordered set where uuid = &#63;.
114            *
115            * @param uuid the uuid
116            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
117            * @return the first matching organization, or <code>null</code> if a matching organization could not be found
118            */
119            public Organization fetchByUuid_First(java.lang.String uuid,
120                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
121    
122            /**
123            * Returns the last organization in the ordered set where uuid = &#63;.
124            *
125            * @param uuid the uuid
126            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
127            * @return the last matching organization
128            * @throws NoSuchOrganizationException if a matching organization could not be found
129            */
130            public Organization findByUuid_Last(java.lang.String uuid,
131                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
132                    throws com.liferay.portal.exception.NoSuchOrganizationException;
133    
134            /**
135            * Returns the last organization in the ordered set where uuid = &#63;.
136            *
137            * @param uuid the uuid
138            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
139            * @return the last matching organization, or <code>null</code> if a matching organization could not be found
140            */
141            public Organization fetchByUuid_Last(java.lang.String uuid,
142                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
143    
144            /**
145            * Returns the organizations before and after the current organization in the ordered set where uuid = &#63;.
146            *
147            * @param organizationId the primary key of the current organization
148            * @param uuid the uuid
149            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
150            * @return the previous, current, and next organization
151            * @throws NoSuchOrganizationException if a organization with the primary key could not be found
152            */
153            public Organization[] findByUuid_PrevAndNext(long organizationId,
154                    java.lang.String uuid,
155                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
156                    throws com.liferay.portal.exception.NoSuchOrganizationException;
157    
158            /**
159            * Returns all the organizations that the user has permission to view where uuid = &#63;.
160            *
161            * @param uuid the uuid
162            * @return the matching organizations that the user has permission to view
163            */
164            public java.util.List<Organization> filterFindByUuid(java.lang.String uuid);
165    
166            /**
167            * Returns a range of all the organizations that the user has permission to view where uuid = &#63;.
168            *
169            * <p>
170            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
171            * </p>
172            *
173            * @param uuid the uuid
174            * @param start the lower bound of the range of organizations
175            * @param end the upper bound of the range of organizations (not inclusive)
176            * @return the range of matching organizations that the user has permission to view
177            */
178            public java.util.List<Organization> filterFindByUuid(
179                    java.lang.String uuid, int start, int end);
180    
181            /**
182            * Returns an ordered range of all the organizations that the user has permissions to view where uuid = &#63;.
183            *
184            * <p>
185            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
186            * </p>
187            *
188            * @param uuid the uuid
189            * @param start the lower bound of the range of organizations
190            * @param end the upper bound of the range of organizations (not inclusive)
191            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
192            * @return the ordered range of matching organizations that the user has permission to view
193            */
194            public java.util.List<Organization> filterFindByUuid(
195                    java.lang.String uuid, int start, int end,
196                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
197    
198            /**
199            * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where uuid = &#63;.
200            *
201            * @param organizationId the primary key of the current organization
202            * @param uuid the uuid
203            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
204            * @return the previous, current, and next organization
205            * @throws NoSuchOrganizationException if a organization with the primary key could not be found
206            */
207            public Organization[] filterFindByUuid_PrevAndNext(long organizationId,
208                    java.lang.String uuid,
209                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
210                    throws com.liferay.portal.exception.NoSuchOrganizationException;
211    
212            /**
213            * Removes all the organizations where uuid = &#63; from the database.
214            *
215            * @param uuid the uuid
216            */
217            public void removeByUuid(java.lang.String uuid);
218    
219            /**
220            * Returns the number of organizations where uuid = &#63;.
221            *
222            * @param uuid the uuid
223            * @return the number of matching organizations
224            */
225            public int countByUuid(java.lang.String uuid);
226    
227            /**
228            * Returns the number of organizations that the user has permission to view where uuid = &#63;.
229            *
230            * @param uuid the uuid
231            * @return the number of matching organizations that the user has permission to view
232            */
233            public int filterCountByUuid(java.lang.String uuid);
234    
235            /**
236            * Returns all the organizations where uuid = &#63; and companyId = &#63;.
237            *
238            * @param uuid the uuid
239            * @param companyId the company ID
240            * @return the matching organizations
241            */
242            public java.util.List<Organization> findByUuid_C(java.lang.String uuid,
243                    long companyId);
244    
245            /**
246            * Returns a range of all the organizations where uuid = &#63; and companyId = &#63;.
247            *
248            * <p>
249            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
250            * </p>
251            *
252            * @param uuid the uuid
253            * @param companyId the company ID
254            * @param start the lower bound of the range of organizations
255            * @param end the upper bound of the range of organizations (not inclusive)
256            * @return the range of matching organizations
257            */
258            public java.util.List<Organization> findByUuid_C(java.lang.String uuid,
259                    long companyId, int start, int end);
260    
261            /**
262            * Returns an ordered range of all the organizations where uuid = &#63; and companyId = &#63;.
263            *
264            * <p>
265            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
266            * </p>
267            *
268            * @param uuid the uuid
269            * @param companyId the company ID
270            * @param start the lower bound of the range of organizations
271            * @param end the upper bound of the range of organizations (not inclusive)
272            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
273            * @return the ordered range of matching organizations
274            */
275            public java.util.List<Organization> findByUuid_C(java.lang.String uuid,
276                    long companyId, int start, int end,
277                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
278    
279            /**
280            * Returns an ordered range of all the organizations where uuid = &#63; and companyId = &#63;.
281            *
282            * <p>
283            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
284            * </p>
285            *
286            * @param uuid the uuid
287            * @param companyId the company ID
288            * @param start the lower bound of the range of organizations
289            * @param end the upper bound of the range of organizations (not inclusive)
290            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
291            * @param retrieveFromCache whether to retrieve from the finder cache
292            * @return the ordered range of matching organizations
293            */
294            public java.util.List<Organization> findByUuid_C(java.lang.String uuid,
295                    long companyId, int start, int end,
296                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator,
297                    boolean retrieveFromCache);
298    
299            /**
300            * Returns the first organization in the ordered set where uuid = &#63; and companyId = &#63;.
301            *
302            * @param uuid the uuid
303            * @param companyId the company ID
304            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
305            * @return the first matching organization
306            * @throws NoSuchOrganizationException if a matching organization could not be found
307            */
308            public Organization findByUuid_C_First(java.lang.String uuid,
309                    long companyId,
310                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
311                    throws com.liferay.portal.exception.NoSuchOrganizationException;
312    
313            /**
314            * Returns the first organization in the ordered set where uuid = &#63; and companyId = &#63;.
315            *
316            * @param uuid the uuid
317            * @param companyId the company ID
318            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
319            * @return the first matching organization, or <code>null</code> if a matching organization could not be found
320            */
321            public Organization fetchByUuid_C_First(java.lang.String uuid,
322                    long companyId,
323                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
324    
325            /**
326            * Returns the last organization in the ordered set where uuid = &#63; and companyId = &#63;.
327            *
328            * @param uuid the uuid
329            * @param companyId the company ID
330            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
331            * @return the last matching organization
332            * @throws NoSuchOrganizationException if a matching organization could not be found
333            */
334            public Organization findByUuid_C_Last(java.lang.String uuid,
335                    long companyId,
336                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
337                    throws com.liferay.portal.exception.NoSuchOrganizationException;
338    
339            /**
340            * Returns the last organization in the ordered set where uuid = &#63; and companyId = &#63;.
341            *
342            * @param uuid the uuid
343            * @param companyId the company ID
344            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
345            * @return the last matching organization, or <code>null</code> if a matching organization could not be found
346            */
347            public Organization fetchByUuid_C_Last(java.lang.String uuid,
348                    long companyId,
349                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
350    
351            /**
352            * Returns the organizations before and after the current organization in the ordered set where uuid = &#63; and companyId = &#63;.
353            *
354            * @param organizationId the primary key of the current organization
355            * @param uuid the uuid
356            * @param companyId the company ID
357            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
358            * @return the previous, current, and next organization
359            * @throws NoSuchOrganizationException if a organization with the primary key could not be found
360            */
361            public Organization[] findByUuid_C_PrevAndNext(long organizationId,
362                    java.lang.String uuid, long companyId,
363                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
364                    throws com.liferay.portal.exception.NoSuchOrganizationException;
365    
366            /**
367            * Returns all the organizations that the user has permission to view where uuid = &#63; and companyId = &#63;.
368            *
369            * @param uuid the uuid
370            * @param companyId the company ID
371            * @return the matching organizations that the user has permission to view
372            */
373            public java.util.List<Organization> filterFindByUuid_C(
374                    java.lang.String uuid, long companyId);
375    
376            /**
377            * Returns a range of all the organizations that the user has permission to view where uuid = &#63; and companyId = &#63;.
378            *
379            * <p>
380            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
381            * </p>
382            *
383            * @param uuid the uuid
384            * @param companyId the company ID
385            * @param start the lower bound of the range of organizations
386            * @param end the upper bound of the range of organizations (not inclusive)
387            * @return the range of matching organizations that the user has permission to view
388            */
389            public java.util.List<Organization> filterFindByUuid_C(
390                    java.lang.String uuid, long companyId, int start, int end);
391    
392            /**
393            * Returns an ordered range of all the organizations that the user has permissions to view where uuid = &#63; and companyId = &#63;.
394            *
395            * <p>
396            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
397            * </p>
398            *
399            * @param uuid the uuid
400            * @param companyId the company ID
401            * @param start the lower bound of the range of organizations
402            * @param end the upper bound of the range of organizations (not inclusive)
403            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
404            * @return the ordered range of matching organizations that the user has permission to view
405            */
406            public java.util.List<Organization> filterFindByUuid_C(
407                    java.lang.String uuid, long companyId, int start, int end,
408                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
409    
410            /**
411            * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where uuid = &#63; and companyId = &#63;.
412            *
413            * @param organizationId the primary key of the current organization
414            * @param uuid the uuid
415            * @param companyId the company ID
416            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
417            * @return the previous, current, and next organization
418            * @throws NoSuchOrganizationException if a organization with the primary key could not be found
419            */
420            public Organization[] filterFindByUuid_C_PrevAndNext(long organizationId,
421                    java.lang.String uuid, long companyId,
422                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
423                    throws com.liferay.portal.exception.NoSuchOrganizationException;
424    
425            /**
426            * Removes all the organizations where uuid = &#63; and companyId = &#63; from the database.
427            *
428            * @param uuid the uuid
429            * @param companyId the company ID
430            */
431            public void removeByUuid_C(java.lang.String uuid, long companyId);
432    
433            /**
434            * Returns the number of organizations where uuid = &#63; and companyId = &#63;.
435            *
436            * @param uuid the uuid
437            * @param companyId the company ID
438            * @return the number of matching organizations
439            */
440            public int countByUuid_C(java.lang.String uuid, long companyId);
441    
442            /**
443            * Returns the number of organizations that the user has permission to view where uuid = &#63; and companyId = &#63;.
444            *
445            * @param uuid the uuid
446            * @param companyId the company ID
447            * @return the number of matching organizations that the user has permission to view
448            */
449            public int filterCountByUuid_C(java.lang.String uuid, long companyId);
450    
451            /**
452            * Returns all the organizations where companyId = &#63;.
453            *
454            * @param companyId the company ID
455            * @return the matching organizations
456            */
457            public java.util.List<Organization> findByCompanyId(long companyId);
458    
459            /**
460            * Returns a range of all the organizations where companyId = &#63;.
461            *
462            * <p>
463            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
464            * </p>
465            *
466            * @param companyId the company ID
467            * @param start the lower bound of the range of organizations
468            * @param end the upper bound of the range of organizations (not inclusive)
469            * @return the range of matching organizations
470            */
471            public java.util.List<Organization> findByCompanyId(long companyId,
472                    int start, int end);
473    
474            /**
475            * Returns an ordered range of all the organizations where companyId = &#63;.
476            *
477            * <p>
478            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
479            * </p>
480            *
481            * @param companyId the company ID
482            * @param start the lower bound of the range of organizations
483            * @param end the upper bound of the range of organizations (not inclusive)
484            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
485            * @return the ordered range of matching organizations
486            */
487            public java.util.List<Organization> findByCompanyId(long companyId,
488                    int start, int end,
489                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
490    
491            /**
492            * Returns an ordered range of all the organizations where companyId = &#63;.
493            *
494            * <p>
495            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
496            * </p>
497            *
498            * @param companyId the company ID
499            * @param start the lower bound of the range of organizations
500            * @param end the upper bound of the range of organizations (not inclusive)
501            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
502            * @param retrieveFromCache whether to retrieve from the finder cache
503            * @return the ordered range of matching organizations
504            */
505            public java.util.List<Organization> findByCompanyId(long companyId,
506                    int start, int end,
507                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator,
508                    boolean retrieveFromCache);
509    
510            /**
511            * Returns the first organization in the ordered set where companyId = &#63;.
512            *
513            * @param companyId the company ID
514            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
515            * @return the first matching organization
516            * @throws NoSuchOrganizationException if a matching organization could not be found
517            */
518            public Organization findByCompanyId_First(long companyId,
519                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
520                    throws com.liferay.portal.exception.NoSuchOrganizationException;
521    
522            /**
523            * Returns the first organization in the ordered set where companyId = &#63;.
524            *
525            * @param companyId the company ID
526            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
527            * @return the first matching organization, or <code>null</code> if a matching organization could not be found
528            */
529            public Organization fetchByCompanyId_First(long companyId,
530                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
531    
532            /**
533            * Returns the last organization in the ordered set where companyId = &#63;.
534            *
535            * @param companyId the company ID
536            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
537            * @return the last matching organization
538            * @throws NoSuchOrganizationException if a matching organization could not be found
539            */
540            public Organization findByCompanyId_Last(long companyId,
541                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
542                    throws com.liferay.portal.exception.NoSuchOrganizationException;
543    
544            /**
545            * Returns the last organization in the ordered set where companyId = &#63;.
546            *
547            * @param companyId the company ID
548            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
549            * @return the last matching organization, or <code>null</code> if a matching organization could not be found
550            */
551            public Organization fetchByCompanyId_Last(long companyId,
552                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
553    
554            /**
555            * Returns the organizations before and after the current organization in the ordered set where companyId = &#63;.
556            *
557            * @param organizationId the primary key of the current organization
558            * @param companyId the company ID
559            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
560            * @return the previous, current, and next organization
561            * @throws NoSuchOrganizationException if a organization with the primary key could not be found
562            */
563            public Organization[] findByCompanyId_PrevAndNext(long organizationId,
564                    long companyId,
565                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
566                    throws com.liferay.portal.exception.NoSuchOrganizationException;
567    
568            /**
569            * Returns all the organizations that the user has permission to view where companyId = &#63;.
570            *
571            * @param companyId the company ID
572            * @return the matching organizations that the user has permission to view
573            */
574            public java.util.List<Organization> filterFindByCompanyId(long companyId);
575    
576            /**
577            * Returns a range of all the organizations that the user has permission to view where companyId = &#63;.
578            *
579            * <p>
580            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
581            * </p>
582            *
583            * @param companyId the company ID
584            * @param start the lower bound of the range of organizations
585            * @param end the upper bound of the range of organizations (not inclusive)
586            * @return the range of matching organizations that the user has permission to view
587            */
588            public java.util.List<Organization> filterFindByCompanyId(long companyId,
589                    int start, int end);
590    
591            /**
592            * Returns an ordered range of all the organizations that the user has permissions to view where companyId = &#63;.
593            *
594            * <p>
595            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
596            * </p>
597            *
598            * @param companyId the company ID
599            * @param start the lower bound of the range of organizations
600            * @param end the upper bound of the range of organizations (not inclusive)
601            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
602            * @return the ordered range of matching organizations that the user has permission to view
603            */
604            public java.util.List<Organization> filterFindByCompanyId(long companyId,
605                    int start, int end,
606                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
607    
608            /**
609            * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = &#63;.
610            *
611            * @param organizationId the primary key of the current organization
612            * @param companyId the company ID
613            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
614            * @return the previous, current, and next organization
615            * @throws NoSuchOrganizationException if a organization with the primary key could not be found
616            */
617            public Organization[] filterFindByCompanyId_PrevAndNext(
618                    long organizationId, long companyId,
619                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
620                    throws com.liferay.portal.exception.NoSuchOrganizationException;
621    
622            /**
623            * Removes all the organizations where companyId = &#63; from the database.
624            *
625            * @param companyId the company ID
626            */
627            public void removeByCompanyId(long companyId);
628    
629            /**
630            * Returns the number of organizations where companyId = &#63;.
631            *
632            * @param companyId the company ID
633            * @return the number of matching organizations
634            */
635            public int countByCompanyId(long companyId);
636    
637            /**
638            * Returns the number of organizations that the user has permission to view where companyId = &#63;.
639            *
640            * @param companyId the company ID
641            * @return the number of matching organizations that the user has permission to view
642            */
643            public int filterCountByCompanyId(long companyId);
644    
645            /**
646            * Returns all the organizations where companyId = &#63;.
647            *
648            * @param companyId the company ID
649            * @return the matching organizations
650            */
651            public java.util.List<Organization> findByLocations(long companyId);
652    
653            /**
654            * Returns a range of all the organizations where companyId = &#63;.
655            *
656            * <p>
657            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
658            * </p>
659            *
660            * @param companyId the company ID
661            * @param start the lower bound of the range of organizations
662            * @param end the upper bound of the range of organizations (not inclusive)
663            * @return the range of matching organizations
664            */
665            public java.util.List<Organization> findByLocations(long companyId,
666                    int start, int end);
667    
668            /**
669            * Returns an ordered range of all the organizations where companyId = &#63;.
670            *
671            * <p>
672            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
673            * </p>
674            *
675            * @param companyId the company ID
676            * @param start the lower bound of the range of organizations
677            * @param end the upper bound of the range of organizations (not inclusive)
678            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
679            * @return the ordered range of matching organizations
680            */
681            public java.util.List<Organization> findByLocations(long companyId,
682                    int start, int end,
683                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
684    
685            /**
686            * Returns an ordered range of all the organizations where companyId = &#63;.
687            *
688            * <p>
689            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
690            * </p>
691            *
692            * @param companyId the company ID
693            * @param start the lower bound of the range of organizations
694            * @param end the upper bound of the range of organizations (not inclusive)
695            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
696            * @param retrieveFromCache whether to retrieve from the finder cache
697            * @return the ordered range of matching organizations
698            */
699            public java.util.List<Organization> findByLocations(long companyId,
700                    int start, int end,
701                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator,
702                    boolean retrieveFromCache);
703    
704            /**
705            * Returns the first organization in the ordered set where companyId = &#63;.
706            *
707            * @param companyId the company ID
708            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
709            * @return the first matching organization
710            * @throws NoSuchOrganizationException if a matching organization could not be found
711            */
712            public Organization findByLocations_First(long companyId,
713                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
714                    throws com.liferay.portal.exception.NoSuchOrganizationException;
715    
716            /**
717            * Returns the first organization in the ordered set where companyId = &#63;.
718            *
719            * @param companyId the company ID
720            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
721            * @return the first matching organization, or <code>null</code> if a matching organization could not be found
722            */
723            public Organization fetchByLocations_First(long companyId,
724                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
725    
726            /**
727            * Returns the last organization in the ordered set where companyId = &#63;.
728            *
729            * @param companyId the company ID
730            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
731            * @return the last matching organization
732            * @throws NoSuchOrganizationException if a matching organization could not be found
733            */
734            public Organization findByLocations_Last(long companyId,
735                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
736                    throws com.liferay.portal.exception.NoSuchOrganizationException;
737    
738            /**
739            * Returns the last organization in the ordered set where companyId = &#63;.
740            *
741            * @param companyId the company ID
742            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
743            * @return the last matching organization, or <code>null</code> if a matching organization could not be found
744            */
745            public Organization fetchByLocations_Last(long companyId,
746                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
747    
748            /**
749            * Returns the organizations before and after the current organization in the ordered set where companyId = &#63;.
750            *
751            * @param organizationId the primary key of the current organization
752            * @param companyId the company ID
753            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
754            * @return the previous, current, and next organization
755            * @throws NoSuchOrganizationException if a organization with the primary key could not be found
756            */
757            public Organization[] findByLocations_PrevAndNext(long organizationId,
758                    long companyId,
759                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
760                    throws com.liferay.portal.exception.NoSuchOrganizationException;
761    
762            /**
763            * Returns all the organizations that the user has permission to view where companyId = &#63;.
764            *
765            * @param companyId the company ID
766            * @return the matching organizations that the user has permission to view
767            */
768            public java.util.List<Organization> filterFindByLocations(long companyId);
769    
770            /**
771            * Returns a range of all the organizations that the user has permission to view where companyId = &#63;.
772            *
773            * <p>
774            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
775            * </p>
776            *
777            * @param companyId the company ID
778            * @param start the lower bound of the range of organizations
779            * @param end the upper bound of the range of organizations (not inclusive)
780            * @return the range of matching organizations that the user has permission to view
781            */
782            public java.util.List<Organization> filterFindByLocations(long companyId,
783                    int start, int end);
784    
785            /**
786            * Returns an ordered range of all the organizations that the user has permissions to view where companyId = &#63;.
787            *
788            * <p>
789            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
790            * </p>
791            *
792            * @param companyId the company ID
793            * @param start the lower bound of the range of organizations
794            * @param end the upper bound of the range of organizations (not inclusive)
795            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
796            * @return the ordered range of matching organizations that the user has permission to view
797            */
798            public java.util.List<Organization> filterFindByLocations(long companyId,
799                    int start, int end,
800                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
801    
802            /**
803            * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = &#63;.
804            *
805            * @param organizationId the primary key of the current organization
806            * @param companyId the company ID
807            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
808            * @return the previous, current, and next organization
809            * @throws NoSuchOrganizationException if a organization with the primary key could not be found
810            */
811            public Organization[] filterFindByLocations_PrevAndNext(
812                    long organizationId, long companyId,
813                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
814                    throws com.liferay.portal.exception.NoSuchOrganizationException;
815    
816            /**
817            * Removes all the organizations where companyId = &#63; from the database.
818            *
819            * @param companyId the company ID
820            */
821            public void removeByLocations(long companyId);
822    
823            /**
824            * Returns the number of organizations where companyId = &#63;.
825            *
826            * @param companyId the company ID
827            * @return the number of matching organizations
828            */
829            public int countByLocations(long companyId);
830    
831            /**
832            * Returns the number of organizations that the user has permission to view where companyId = &#63;.
833            *
834            * @param companyId the company ID
835            * @return the number of matching organizations that the user has permission to view
836            */
837            public int filterCountByLocations(long companyId);
838    
839            /**
840            * Returns all the organizations where companyId = &#63; and parentOrganizationId = &#63;.
841            *
842            * @param companyId the company ID
843            * @param parentOrganizationId the parent organization ID
844            * @return the matching organizations
845            */
846            public java.util.List<Organization> findByC_P(long companyId,
847                    long parentOrganizationId);
848    
849            /**
850            * Returns a range of all the organizations where companyId = &#63; and parentOrganizationId = &#63;.
851            *
852            * <p>
853            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
854            * </p>
855            *
856            * @param companyId the company ID
857            * @param parentOrganizationId the parent organization ID
858            * @param start the lower bound of the range of organizations
859            * @param end the upper bound of the range of organizations (not inclusive)
860            * @return the range of matching organizations
861            */
862            public java.util.List<Organization> findByC_P(long companyId,
863                    long parentOrganizationId, int start, int end);
864    
865            /**
866            * Returns an ordered range of all the organizations where companyId = &#63; and parentOrganizationId = &#63;.
867            *
868            * <p>
869            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
870            * </p>
871            *
872            * @param companyId the company ID
873            * @param parentOrganizationId the parent organization ID
874            * @param start the lower bound of the range of organizations
875            * @param end the upper bound of the range of organizations (not inclusive)
876            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
877            * @return the ordered range of matching organizations
878            */
879            public java.util.List<Organization> findByC_P(long companyId,
880                    long parentOrganizationId, int start, int end,
881                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
882    
883            /**
884            * Returns an ordered range of all the organizations where companyId = &#63; and parentOrganizationId = &#63;.
885            *
886            * <p>
887            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
888            * </p>
889            *
890            * @param companyId the company ID
891            * @param parentOrganizationId the parent organization ID
892            * @param start the lower bound of the range of organizations
893            * @param end the upper bound of the range of organizations (not inclusive)
894            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
895            * @param retrieveFromCache whether to retrieve from the finder cache
896            * @return the ordered range of matching organizations
897            */
898            public java.util.List<Organization> findByC_P(long companyId,
899                    long parentOrganizationId, int start, int end,
900                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator,
901                    boolean retrieveFromCache);
902    
903            /**
904            * Returns the first organization in the ordered set where companyId = &#63; and parentOrganizationId = &#63;.
905            *
906            * @param companyId the company ID
907            * @param parentOrganizationId the parent organization ID
908            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
909            * @return the first matching organization
910            * @throws NoSuchOrganizationException if a matching organization could not be found
911            */
912            public Organization findByC_P_First(long companyId,
913                    long parentOrganizationId,
914                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
915                    throws com.liferay.portal.exception.NoSuchOrganizationException;
916    
917            /**
918            * Returns the first organization in the ordered set where companyId = &#63; and parentOrganizationId = &#63;.
919            *
920            * @param companyId the company ID
921            * @param parentOrganizationId the parent organization ID
922            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
923            * @return the first matching organization, or <code>null</code> if a matching organization could not be found
924            */
925            public Organization fetchByC_P_First(long companyId,
926                    long parentOrganizationId,
927                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
928    
929            /**
930            * Returns the last organization in the ordered set where companyId = &#63; and parentOrganizationId = &#63;.
931            *
932            * @param companyId the company ID
933            * @param parentOrganizationId the parent organization ID
934            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
935            * @return the last matching organization
936            * @throws NoSuchOrganizationException if a matching organization could not be found
937            */
938            public Organization findByC_P_Last(long companyId,
939                    long parentOrganizationId,
940                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
941                    throws com.liferay.portal.exception.NoSuchOrganizationException;
942    
943            /**
944            * Returns the last organization in the ordered set where companyId = &#63; and parentOrganizationId = &#63;.
945            *
946            * @param companyId the company ID
947            * @param parentOrganizationId the parent organization ID
948            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
949            * @return the last matching organization, or <code>null</code> if a matching organization could not be found
950            */
951            public Organization fetchByC_P_Last(long companyId,
952                    long parentOrganizationId,
953                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
954    
955            /**
956            * Returns the organizations before and after the current organization in the ordered set where companyId = &#63; and parentOrganizationId = &#63;.
957            *
958            * @param organizationId the primary key of the current organization
959            * @param companyId the company ID
960            * @param parentOrganizationId the parent organization ID
961            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
962            * @return the previous, current, and next organization
963            * @throws NoSuchOrganizationException if a organization with the primary key could not be found
964            */
965            public Organization[] findByC_P_PrevAndNext(long organizationId,
966                    long companyId, long parentOrganizationId,
967                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
968                    throws com.liferay.portal.exception.NoSuchOrganizationException;
969    
970            /**
971            * Returns all the organizations that the user has permission to view where companyId = &#63; and parentOrganizationId = &#63;.
972            *
973            * @param companyId the company ID
974            * @param parentOrganizationId the parent organization ID
975            * @return the matching organizations that the user has permission to view
976            */
977            public java.util.List<Organization> filterFindByC_P(long companyId,
978                    long parentOrganizationId);
979    
980            /**
981            * Returns a range of all the organizations that the user has permission to view where companyId = &#63; and parentOrganizationId = &#63;.
982            *
983            * <p>
984            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
985            * </p>
986            *
987            * @param companyId the company ID
988            * @param parentOrganizationId the parent organization ID
989            * @param start the lower bound of the range of organizations
990            * @param end the upper bound of the range of organizations (not inclusive)
991            * @return the range of matching organizations that the user has permission to view
992            */
993            public java.util.List<Organization> filterFindByC_P(long companyId,
994                    long parentOrganizationId, int start, int end);
995    
996            /**
997            * Returns an ordered range of all the organizations that the user has permissions to view where companyId = &#63; and parentOrganizationId = &#63;.
998            *
999            * <p>
1000            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1001            * </p>
1002            *
1003            * @param companyId the company ID
1004            * @param parentOrganizationId the parent organization ID
1005            * @param start the lower bound of the range of organizations
1006            * @param end the upper bound of the range of organizations (not inclusive)
1007            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1008            * @return the ordered range of matching organizations that the user has permission to view
1009            */
1010            public java.util.List<Organization> filterFindByC_P(long companyId,
1011                    long parentOrganizationId, int start, int end,
1012                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
1013    
1014            /**
1015            * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = &#63; and parentOrganizationId = &#63;.
1016            *
1017            * @param organizationId the primary key of the current organization
1018            * @param companyId the company ID
1019            * @param parentOrganizationId the parent organization ID
1020            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1021            * @return the previous, current, and next organization
1022            * @throws NoSuchOrganizationException if a organization with the primary key could not be found
1023            */
1024            public Organization[] filterFindByC_P_PrevAndNext(long organizationId,
1025                    long companyId, long parentOrganizationId,
1026                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
1027                    throws com.liferay.portal.exception.NoSuchOrganizationException;
1028    
1029            /**
1030            * Removes all the organizations where companyId = &#63; and parentOrganizationId = &#63; from the database.
1031            *
1032            * @param companyId the company ID
1033            * @param parentOrganizationId the parent organization ID
1034            */
1035            public void removeByC_P(long companyId, long parentOrganizationId);
1036    
1037            /**
1038            * Returns the number of organizations where companyId = &#63; and parentOrganizationId = &#63;.
1039            *
1040            * @param companyId the company ID
1041            * @param parentOrganizationId the parent organization ID
1042            * @return the number of matching organizations
1043            */
1044            public int countByC_P(long companyId, long parentOrganizationId);
1045    
1046            /**
1047            * Returns the number of organizations that the user has permission to view where companyId = &#63; and parentOrganizationId = &#63;.
1048            *
1049            * @param companyId the company ID
1050            * @param parentOrganizationId the parent organization ID
1051            * @return the number of matching organizations that the user has permission to view
1052            */
1053            public int filterCountByC_P(long companyId, long parentOrganizationId);
1054    
1055            /**
1056            * Returns all the organizations where companyId = &#63; and treePath LIKE &#63;.
1057            *
1058            * @param companyId the company ID
1059            * @param treePath the tree path
1060            * @return the matching organizations
1061            */
1062            public java.util.List<Organization> findByC_T(long companyId,
1063                    java.lang.String treePath);
1064    
1065            /**
1066            * Returns a range of all the organizations where companyId = &#63; and treePath LIKE &#63;.
1067            *
1068            * <p>
1069            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1070            * </p>
1071            *
1072            * @param companyId the company ID
1073            * @param treePath the tree path
1074            * @param start the lower bound of the range of organizations
1075            * @param end the upper bound of the range of organizations (not inclusive)
1076            * @return the range of matching organizations
1077            */
1078            public java.util.List<Organization> findByC_T(long companyId,
1079                    java.lang.String treePath, int start, int end);
1080    
1081            /**
1082            * Returns an ordered range of all the organizations where companyId = &#63; and treePath LIKE &#63;.
1083            *
1084            * <p>
1085            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1086            * </p>
1087            *
1088            * @param companyId the company ID
1089            * @param treePath the tree path
1090            * @param start the lower bound of the range of organizations
1091            * @param end the upper bound of the range of organizations (not inclusive)
1092            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1093            * @return the ordered range of matching organizations
1094            */
1095            public java.util.List<Organization> findByC_T(long companyId,
1096                    java.lang.String treePath, int start, int end,
1097                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
1098    
1099            /**
1100            * Returns an ordered range of all the organizations where companyId = &#63; and treePath LIKE &#63;.
1101            *
1102            * <p>
1103            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1104            * </p>
1105            *
1106            * @param companyId the company ID
1107            * @param treePath the tree path
1108            * @param start the lower bound of the range of organizations
1109            * @param end the upper bound of the range of organizations (not inclusive)
1110            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1111            * @param retrieveFromCache whether to retrieve from the finder cache
1112            * @return the ordered range of matching organizations
1113            */
1114            public java.util.List<Organization> findByC_T(long companyId,
1115                    java.lang.String treePath, int start, int end,
1116                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator,
1117                    boolean retrieveFromCache);
1118    
1119            /**
1120            * Returns the first organization in the ordered set where companyId = &#63; and treePath LIKE &#63;.
1121            *
1122            * @param companyId the company ID
1123            * @param treePath the tree path
1124            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1125            * @return the first matching organization
1126            * @throws NoSuchOrganizationException if a matching organization could not be found
1127            */
1128            public Organization findByC_T_First(long companyId,
1129                    java.lang.String treePath,
1130                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
1131                    throws com.liferay.portal.exception.NoSuchOrganizationException;
1132    
1133            /**
1134            * Returns the first organization in the ordered set where companyId = &#63; and treePath LIKE &#63;.
1135            *
1136            * @param companyId the company ID
1137            * @param treePath the tree path
1138            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1139            * @return the first matching organization, or <code>null</code> if a matching organization could not be found
1140            */
1141            public Organization fetchByC_T_First(long companyId,
1142                    java.lang.String treePath,
1143                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
1144    
1145            /**
1146            * Returns the last organization in the ordered set where companyId = &#63; and treePath LIKE &#63;.
1147            *
1148            * @param companyId the company ID
1149            * @param treePath the tree path
1150            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1151            * @return the last matching organization
1152            * @throws NoSuchOrganizationException if a matching organization could not be found
1153            */
1154            public Organization findByC_T_Last(long companyId,
1155                    java.lang.String treePath,
1156                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
1157                    throws com.liferay.portal.exception.NoSuchOrganizationException;
1158    
1159            /**
1160            * Returns the last organization in the ordered set where companyId = &#63; and treePath LIKE &#63;.
1161            *
1162            * @param companyId the company ID
1163            * @param treePath the tree path
1164            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1165            * @return the last matching organization, or <code>null</code> if a matching organization could not be found
1166            */
1167            public Organization fetchByC_T_Last(long companyId,
1168                    java.lang.String treePath,
1169                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
1170    
1171            /**
1172            * Returns the organizations before and after the current organization in the ordered set where companyId = &#63; and treePath LIKE &#63;.
1173            *
1174            * @param organizationId the primary key of the current organization
1175            * @param companyId the company ID
1176            * @param treePath the tree path
1177            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1178            * @return the previous, current, and next organization
1179            * @throws NoSuchOrganizationException if a organization with the primary key could not be found
1180            */
1181            public Organization[] findByC_T_PrevAndNext(long organizationId,
1182                    long companyId, java.lang.String treePath,
1183                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
1184                    throws com.liferay.portal.exception.NoSuchOrganizationException;
1185    
1186            /**
1187            * Returns all the organizations that the user has permission to view where companyId = &#63; and treePath LIKE &#63;.
1188            *
1189            * @param companyId the company ID
1190            * @param treePath the tree path
1191            * @return the matching organizations that the user has permission to view
1192            */
1193            public java.util.List<Organization> filterFindByC_T(long companyId,
1194                    java.lang.String treePath);
1195    
1196            /**
1197            * Returns a range of all the organizations that the user has permission to view where companyId = &#63; and treePath LIKE &#63;.
1198            *
1199            * <p>
1200            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1201            * </p>
1202            *
1203            * @param companyId the company ID
1204            * @param treePath the tree path
1205            * @param start the lower bound of the range of organizations
1206            * @param end the upper bound of the range of organizations (not inclusive)
1207            * @return the range of matching organizations that the user has permission to view
1208            */
1209            public java.util.List<Organization> filterFindByC_T(long companyId,
1210                    java.lang.String treePath, int start, int end);
1211    
1212            /**
1213            * Returns an ordered range of all the organizations that the user has permissions to view where companyId = &#63; and treePath LIKE &#63;.
1214            *
1215            * <p>
1216            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1217            * </p>
1218            *
1219            * @param companyId the company ID
1220            * @param treePath the tree path
1221            * @param start the lower bound of the range of organizations
1222            * @param end the upper bound of the range of organizations (not inclusive)
1223            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1224            * @return the ordered range of matching organizations that the user has permission to view
1225            */
1226            public java.util.List<Organization> filterFindByC_T(long companyId,
1227                    java.lang.String treePath, int start, int end,
1228                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
1229    
1230            /**
1231            * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = &#63; and treePath LIKE &#63;.
1232            *
1233            * @param organizationId the primary key of the current organization
1234            * @param companyId the company ID
1235            * @param treePath the tree path
1236            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1237            * @return the previous, current, and next organization
1238            * @throws NoSuchOrganizationException if a organization with the primary key could not be found
1239            */
1240            public Organization[] filterFindByC_T_PrevAndNext(long organizationId,
1241                    long companyId, java.lang.String treePath,
1242                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
1243                    throws com.liferay.portal.exception.NoSuchOrganizationException;
1244    
1245            /**
1246            * Removes all the organizations where companyId = &#63; and treePath LIKE &#63; from the database.
1247            *
1248            * @param companyId the company ID
1249            * @param treePath the tree path
1250            */
1251            public void removeByC_T(long companyId, java.lang.String treePath);
1252    
1253            /**
1254            * Returns the number of organizations where companyId = &#63; and treePath LIKE &#63;.
1255            *
1256            * @param companyId the company ID
1257            * @param treePath the tree path
1258            * @return the number of matching organizations
1259            */
1260            public int countByC_T(long companyId, java.lang.String treePath);
1261    
1262            /**
1263            * Returns the number of organizations that the user has permission to view where companyId = &#63; and treePath LIKE &#63;.
1264            *
1265            * @param companyId the company ID
1266            * @param treePath the tree path
1267            * @return the number of matching organizations that the user has permission to view
1268            */
1269            public int filterCountByC_T(long companyId, java.lang.String treePath);
1270    
1271            /**
1272            * Returns the organization where companyId = &#63; and name = &#63; or throws a {@link NoSuchOrganizationException} if it could not be found.
1273            *
1274            * @param companyId the company ID
1275            * @param name the name
1276            * @return the matching organization
1277            * @throws NoSuchOrganizationException if a matching organization could not be found
1278            */
1279            public Organization findByC_N(long companyId, java.lang.String name)
1280                    throws com.liferay.portal.exception.NoSuchOrganizationException;
1281    
1282            /**
1283            * Returns the organization where companyId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1284            *
1285            * @param companyId the company ID
1286            * @param name the name
1287            * @return the matching organization, or <code>null</code> if a matching organization could not be found
1288            */
1289            public Organization fetchByC_N(long companyId, java.lang.String name);
1290    
1291            /**
1292            * Returns the organization where companyId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1293            *
1294            * @param companyId the company ID
1295            * @param name the name
1296            * @param retrieveFromCache whether to retrieve from the finder cache
1297            * @return the matching organization, or <code>null</code> if a matching organization could not be found
1298            */
1299            public Organization fetchByC_N(long companyId, java.lang.String name,
1300                    boolean retrieveFromCache);
1301    
1302            /**
1303            * Removes the organization where companyId = &#63; and name = &#63; from the database.
1304            *
1305            * @param companyId the company ID
1306            * @param name the name
1307            * @return the organization that was removed
1308            */
1309            public Organization removeByC_N(long companyId, java.lang.String name)
1310                    throws com.liferay.portal.exception.NoSuchOrganizationException;
1311    
1312            /**
1313            * Returns the number of organizations where companyId = &#63; and name = &#63;.
1314            *
1315            * @param companyId the company ID
1316            * @param name the name
1317            * @return the number of matching organizations
1318            */
1319            public int countByC_N(long companyId, java.lang.String name);
1320    
1321            /**
1322            * Returns all the organizations where organizationId &gt; &#63; and companyId = &#63; and parentOrganizationId = &#63;.
1323            *
1324            * @param organizationId the organization ID
1325            * @param companyId the company ID
1326            * @param parentOrganizationId the parent organization ID
1327            * @return the matching organizations
1328            */
1329            public java.util.List<Organization> findByO_C_P(long organizationId,
1330                    long companyId, long parentOrganizationId);
1331    
1332            /**
1333            * Returns a range of all the organizations where organizationId &gt; &#63; and companyId = &#63; and parentOrganizationId = &#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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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 organizationId the organization ID
1340            * @param companyId the company ID
1341            * @param parentOrganizationId the parent organization ID
1342            * @param start the lower bound of the range of organizations
1343            * @param end the upper bound of the range of organizations (not inclusive)
1344            * @return the range of matching organizations
1345            */
1346            public java.util.List<Organization> findByO_C_P(long organizationId,
1347                    long companyId, long parentOrganizationId, int start, int end);
1348    
1349            /**
1350            * Returns an ordered range of all the organizations where organizationId &gt; &#63; and companyId = &#63; and parentOrganizationId = &#63;.
1351            *
1352            * <p>
1353            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1354            * </p>
1355            *
1356            * @param organizationId the organization ID
1357            * @param companyId the company ID
1358            * @param parentOrganizationId the parent organization ID
1359            * @param start the lower bound of the range of organizations
1360            * @param end the upper bound of the range of organizations (not inclusive)
1361            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1362            * @return the ordered range of matching organizations
1363            */
1364            public java.util.List<Organization> findByO_C_P(long organizationId,
1365                    long companyId, long parentOrganizationId, int start, int end,
1366                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
1367    
1368            /**
1369            * Returns an ordered range of all the organizations where organizationId &gt; &#63; and companyId = &#63; and parentOrganizationId = &#63;.
1370            *
1371            * <p>
1372            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1373            * </p>
1374            *
1375            * @param organizationId the organization ID
1376            * @param companyId the company ID
1377            * @param parentOrganizationId the parent organization ID
1378            * @param start the lower bound of the range of organizations
1379            * @param end the upper bound of the range of organizations (not inclusive)
1380            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1381            * @param retrieveFromCache whether to retrieve from the finder cache
1382            * @return the ordered range of matching organizations
1383            */
1384            public java.util.List<Organization> findByO_C_P(long organizationId,
1385                    long companyId, long parentOrganizationId, int start, int end,
1386                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator,
1387                    boolean retrieveFromCache);
1388    
1389            /**
1390            * Returns the first organization in the ordered set where organizationId &gt; &#63; and companyId = &#63; and parentOrganizationId = &#63;.
1391            *
1392            * @param organizationId the organization ID
1393            * @param companyId the company ID
1394            * @param parentOrganizationId the parent organization ID
1395            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1396            * @return the first matching organization
1397            * @throws NoSuchOrganizationException if a matching organization could not be found
1398            */
1399            public Organization findByO_C_P_First(long organizationId, long companyId,
1400                    long parentOrganizationId,
1401                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
1402                    throws com.liferay.portal.exception.NoSuchOrganizationException;
1403    
1404            /**
1405            * Returns the first organization in the ordered set where organizationId &gt; &#63; and companyId = &#63; and parentOrganizationId = &#63;.
1406            *
1407            * @param organizationId the organization ID
1408            * @param companyId the company ID
1409            * @param parentOrganizationId the parent organization ID
1410            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1411            * @return the first matching organization, or <code>null</code> if a matching organization could not be found
1412            */
1413            public Organization fetchByO_C_P_First(long organizationId, long companyId,
1414                    long parentOrganizationId,
1415                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
1416    
1417            /**
1418            * Returns the last organization in the ordered set where organizationId &gt; &#63; and companyId = &#63; and parentOrganizationId = &#63;.
1419            *
1420            * @param organizationId the organization ID
1421            * @param companyId the company ID
1422            * @param parentOrganizationId the parent organization ID
1423            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1424            * @return the last matching organization
1425            * @throws NoSuchOrganizationException if a matching organization could not be found
1426            */
1427            public Organization findByO_C_P_Last(long organizationId, long companyId,
1428                    long parentOrganizationId,
1429                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator)
1430                    throws com.liferay.portal.exception.NoSuchOrganizationException;
1431    
1432            /**
1433            * Returns the last organization in the ordered set where organizationId &gt; &#63; and companyId = &#63; and parentOrganizationId = &#63;.
1434            *
1435            * @param organizationId the organization ID
1436            * @param companyId the company ID
1437            * @param parentOrganizationId the parent organization ID
1438            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1439            * @return the last matching organization, or <code>null</code> if a matching organization could not be found
1440            */
1441            public Organization fetchByO_C_P_Last(long organizationId, long companyId,
1442                    long parentOrganizationId,
1443                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
1444    
1445            /**
1446            * Returns all the organizations that the user has permission to view where organizationId &gt; &#63; and companyId = &#63; and parentOrganizationId = &#63;.
1447            *
1448            * @param organizationId the organization ID
1449            * @param companyId the company ID
1450            * @param parentOrganizationId the parent organization ID
1451            * @return the matching organizations that the user has permission to view
1452            */
1453            public java.util.List<Organization> filterFindByO_C_P(long organizationId,
1454                    long companyId, long parentOrganizationId);
1455    
1456            /**
1457            * Returns a range of all the organizations that the user has permission to view where organizationId &gt; &#63; and companyId = &#63; and parentOrganizationId = &#63;.
1458            *
1459            * <p>
1460            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1461            * </p>
1462            *
1463            * @param organizationId the organization ID
1464            * @param companyId the company ID
1465            * @param parentOrganizationId the parent organization ID
1466            * @param start the lower bound of the range of organizations
1467            * @param end the upper bound of the range of organizations (not inclusive)
1468            * @return the range of matching organizations that the user has permission to view
1469            */
1470            public java.util.List<Organization> filterFindByO_C_P(long organizationId,
1471                    long companyId, long parentOrganizationId, int start, int end);
1472    
1473            /**
1474            * Returns an ordered range of all the organizations that the user has permissions to view where organizationId &gt; &#63; and companyId = &#63; and parentOrganizationId = &#63;.
1475            *
1476            * <p>
1477            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1478            * </p>
1479            *
1480            * @param organizationId the organization ID
1481            * @param companyId the company ID
1482            * @param parentOrganizationId the parent organization ID
1483            * @param start the lower bound of the range of organizations
1484            * @param end the upper bound of the range of organizations (not inclusive)
1485            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1486            * @return the ordered range of matching organizations that the user has permission to view
1487            */
1488            public java.util.List<Organization> filterFindByO_C_P(long organizationId,
1489                    long companyId, long parentOrganizationId, int start, int end,
1490                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
1491    
1492            /**
1493            * Removes all the organizations where organizationId &gt; &#63; and companyId = &#63; and parentOrganizationId = &#63; from the database.
1494            *
1495            * @param organizationId the organization ID
1496            * @param companyId the company ID
1497            * @param parentOrganizationId the parent organization ID
1498            */
1499            public void removeByO_C_P(long organizationId, long companyId,
1500                    long parentOrganizationId);
1501    
1502            /**
1503            * Returns the number of organizations where organizationId &gt; &#63; and companyId = &#63; and parentOrganizationId = &#63;.
1504            *
1505            * @param organizationId the organization ID
1506            * @param companyId the company ID
1507            * @param parentOrganizationId the parent organization ID
1508            * @return the number of matching organizations
1509            */
1510            public int countByO_C_P(long organizationId, long companyId,
1511                    long parentOrganizationId);
1512    
1513            /**
1514            * Returns the number of organizations that the user has permission to view where organizationId &gt; &#63; and companyId = &#63; and parentOrganizationId = &#63;.
1515            *
1516            * @param organizationId the organization ID
1517            * @param companyId the company ID
1518            * @param parentOrganizationId the parent organization ID
1519            * @return the number of matching organizations that the user has permission to view
1520            */
1521            public int filterCountByO_C_P(long organizationId, long companyId,
1522                    long parentOrganizationId);
1523    
1524            /**
1525            * Caches the organization in the entity cache if it is enabled.
1526            *
1527            * @param organization the organization
1528            */
1529            public void cacheResult(Organization organization);
1530    
1531            /**
1532            * Caches the organizations in the entity cache if it is enabled.
1533            *
1534            * @param organizations the organizations
1535            */
1536            public void cacheResult(java.util.List<Organization> organizations);
1537    
1538            /**
1539            * Creates a new organization with the primary key. Does not add the organization to the database.
1540            *
1541            * @param organizationId the primary key for the new organization
1542            * @return the new organization
1543            */
1544            public Organization create(long organizationId);
1545    
1546            /**
1547            * Removes the organization with the primary key from the database. Also notifies the appropriate model listeners.
1548            *
1549            * @param organizationId the primary key of the organization
1550            * @return the organization that was removed
1551            * @throws NoSuchOrganizationException if a organization with the primary key could not be found
1552            */
1553            public Organization remove(long organizationId)
1554                    throws com.liferay.portal.exception.NoSuchOrganizationException;
1555    
1556            public Organization updateImpl(Organization organization);
1557    
1558            /**
1559            * Returns the organization with the primary key or throws a {@link NoSuchOrganizationException} if it could not be found.
1560            *
1561            * @param organizationId the primary key of the organization
1562            * @return the organization
1563            * @throws NoSuchOrganizationException if a organization with the primary key could not be found
1564            */
1565            public Organization findByPrimaryKey(long organizationId)
1566                    throws com.liferay.portal.exception.NoSuchOrganizationException;
1567    
1568            /**
1569            * Returns the organization with the primary key or returns <code>null</code> if it could not be found.
1570            *
1571            * @param organizationId the primary key of the organization
1572            * @return the organization, or <code>null</code> if a organization with the primary key could not be found
1573            */
1574            public Organization fetchByPrimaryKey(long organizationId);
1575    
1576            @Override
1577            public java.util.Map<java.io.Serializable, Organization> fetchByPrimaryKeys(
1578                    java.util.Set<java.io.Serializable> primaryKeys);
1579    
1580            /**
1581            * Returns all the organizations.
1582            *
1583            * @return the organizations
1584            */
1585            public java.util.List<Organization> findAll();
1586    
1587            /**
1588            * Returns a range of all the organizations.
1589            *
1590            * <p>
1591            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1592            * </p>
1593            *
1594            * @param start the lower bound of the range of organizations
1595            * @param end the upper bound of the range of organizations (not inclusive)
1596            * @return the range of organizations
1597            */
1598            public java.util.List<Organization> findAll(int start, int end);
1599    
1600            /**
1601            * Returns an ordered range of all the organizations.
1602            *
1603            * <p>
1604            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1605            * </p>
1606            *
1607            * @param start the lower bound of the range of organizations
1608            * @param end the upper bound of the range of organizations (not inclusive)
1609            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1610            * @return the ordered range of organizations
1611            */
1612            public java.util.List<Organization> findAll(int start, int end,
1613                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator);
1614    
1615            /**
1616            * Returns an ordered range of all the organizations.
1617            *
1618            * <p>
1619            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1620            * </p>
1621            *
1622            * @param start the lower bound of the range of organizations
1623            * @param end the upper bound of the range of organizations (not inclusive)
1624            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1625            * @param retrieveFromCache whether to retrieve from the finder cache
1626            * @return the ordered range of organizations
1627            */
1628            public java.util.List<Organization> findAll(int start, int end,
1629                    com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator,
1630                    boolean retrieveFromCache);
1631    
1632            /**
1633            * Removes all the organizations from the database.
1634            */
1635            public void removeAll();
1636    
1637            /**
1638            * Returns the number of organizations.
1639            *
1640            * @return the number of organizations
1641            */
1642            public int countAll();
1643    
1644            /**
1645            * Returns the primaryKeys of groups associated with the organization.
1646            *
1647            * @param pk the primary key of the organization
1648            * @return long[] of the primaryKeys of groups associated with the organization
1649            */
1650            public long[] getGroupPrimaryKeys(long pk);
1651    
1652            /**
1653            * Returns all the groups associated with the organization.
1654            *
1655            * @param pk the primary key of the organization
1656            * @return the groups associated with the organization
1657            */
1658            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk);
1659    
1660            /**
1661            * Returns a range of all the groups associated with the organization.
1662            *
1663            * <p>
1664            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1665            * </p>
1666            *
1667            * @param pk the primary key of the organization
1668            * @param start the lower bound of the range of organizations
1669            * @param end the upper bound of the range of organizations (not inclusive)
1670            * @return the range of groups associated with the organization
1671            */
1672            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
1673                    int start, int end);
1674    
1675            /**
1676            * Returns an ordered range of all the groups associated with the organization.
1677            *
1678            * <p>
1679            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1680            * </p>
1681            *
1682            * @param pk the primary key of the organization
1683            * @param start the lower bound of the range of organizations
1684            * @param end the upper bound of the range of organizations (not inclusive)
1685            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1686            * @return the ordered range of groups associated with the organization
1687            */
1688            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
1689                    int start, int end,
1690                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> orderByComparator);
1691    
1692            /**
1693            * Returns the number of groups associated with the organization.
1694            *
1695            * @param pk the primary key of the organization
1696            * @return the number of groups associated with the organization
1697            */
1698            public int getGroupsSize(long pk);
1699    
1700            /**
1701            * Returns <code>true</code> if the group is associated with the organization.
1702            *
1703            * @param pk the primary key of the organization
1704            * @param groupPK the primary key of the group
1705            * @return <code>true</code> if the group is associated with the organization; <code>false</code> otherwise
1706            */
1707            public boolean containsGroup(long pk, long groupPK);
1708    
1709            /**
1710            * Returns <code>true</code> if the organization has any groups associated with it.
1711            *
1712            * @param pk the primary key of the organization to check for associations with groups
1713            * @return <code>true</code> if the organization has any groups associated with it; <code>false</code> otherwise
1714            */
1715            public boolean containsGroups(long pk);
1716    
1717            /**
1718            * Adds an association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1719            *
1720            * @param pk the primary key of the organization
1721            * @param groupPK the primary key of the group
1722            */
1723            public void addGroup(long pk, long groupPK);
1724    
1725            /**
1726            * Adds an association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1727            *
1728            * @param pk the primary key of the organization
1729            * @param group the group
1730            */
1731            public void addGroup(long pk, com.liferay.portal.model.Group group);
1732    
1733            /**
1734            * Adds an association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1735            *
1736            * @param pk the primary key of the organization
1737            * @param groupPKs the primary keys of the groups
1738            */
1739            public void addGroups(long pk, long[] groupPKs);
1740    
1741            /**
1742            * Adds an association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1743            *
1744            * @param pk the primary key of the organization
1745            * @param groups the groups
1746            */
1747            public void addGroups(long pk,
1748                    java.util.List<com.liferay.portal.model.Group> groups);
1749    
1750            /**
1751            * Clears all associations between the organization and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1752            *
1753            * @param pk the primary key of the organization to clear the associated groups from
1754            */
1755            public void clearGroups(long pk);
1756    
1757            /**
1758            * Removes the association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1759            *
1760            * @param pk the primary key of the organization
1761            * @param groupPK the primary key of the group
1762            */
1763            public void removeGroup(long pk, long groupPK);
1764    
1765            /**
1766            * Removes the association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1767            *
1768            * @param pk the primary key of the organization
1769            * @param group the group
1770            */
1771            public void removeGroup(long pk, com.liferay.portal.model.Group group);
1772    
1773            /**
1774            * Removes the association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1775            *
1776            * @param pk the primary key of the organization
1777            * @param groupPKs the primary keys of the groups
1778            */
1779            public void removeGroups(long pk, long[] groupPKs);
1780    
1781            /**
1782            * Removes the association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1783            *
1784            * @param pk the primary key of the organization
1785            * @param groups the groups
1786            */
1787            public void removeGroups(long pk,
1788                    java.util.List<com.liferay.portal.model.Group> groups);
1789    
1790            /**
1791            * Sets the groups associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1792            *
1793            * @param pk the primary key of the organization
1794            * @param groupPKs the primary keys of the groups to be associated with the organization
1795            */
1796            public void setGroups(long pk, long[] groupPKs);
1797    
1798            /**
1799            * Sets the groups associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1800            *
1801            * @param pk the primary key of the organization
1802            * @param groups the groups to be associated with the organization
1803            */
1804            public void setGroups(long pk,
1805                    java.util.List<com.liferay.portal.model.Group> groups);
1806    
1807            /**
1808            * Returns the primaryKeys of users associated with the organization.
1809            *
1810            * @param pk the primary key of the organization
1811            * @return long[] of the primaryKeys of users associated with the organization
1812            */
1813            public long[] getUserPrimaryKeys(long pk);
1814    
1815            /**
1816            * Returns all the users associated with the organization.
1817            *
1818            * @param pk the primary key of the organization
1819            * @return the users associated with the organization
1820            */
1821            public java.util.List<com.liferay.portal.model.User> getUsers(long pk);
1822    
1823            /**
1824            * Returns a range of all the users associated with the organization.
1825            *
1826            * <p>
1827            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1828            * </p>
1829            *
1830            * @param pk the primary key of the organization
1831            * @param start the lower bound of the range of organizations
1832            * @param end the upper bound of the range of organizations (not inclusive)
1833            * @return the range of users associated with the organization
1834            */
1835            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
1836                    int start, int end);
1837    
1838            /**
1839            * Returns an ordered range of all the users associated with the organization.
1840            *
1841            * <p>
1842            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. 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.
1843            * </p>
1844            *
1845            * @param pk the primary key of the organization
1846            * @param start the lower bound of the range of organizations
1847            * @param end the upper bound of the range of organizations (not inclusive)
1848            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1849            * @return the ordered range of users associated with the organization
1850            */
1851            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
1852                    int start, int end,
1853                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.User> orderByComparator);
1854    
1855            /**
1856            * Returns the number of users associated with the organization.
1857            *
1858            * @param pk the primary key of the organization
1859            * @return the number of users associated with the organization
1860            */
1861            public int getUsersSize(long pk);
1862    
1863            /**
1864            * Returns <code>true</code> if the user is associated with the organization.
1865            *
1866            * @param pk the primary key of the organization
1867            * @param userPK the primary key of the user
1868            * @return <code>true</code> if the user is associated with the organization; <code>false</code> otherwise
1869            */
1870            public boolean containsUser(long pk, long userPK);
1871    
1872            /**
1873            * Returns <code>true</code> if the organization has any users associated with it.
1874            *
1875            * @param pk the primary key of the organization to check for associations with users
1876            * @return <code>true</code> if the organization has any users associated with it; <code>false</code> otherwise
1877            */
1878            public boolean containsUsers(long pk);
1879    
1880            /**
1881            * Adds an association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1882            *
1883            * @param pk the primary key of the organization
1884            * @param userPK the primary key of the user
1885            */
1886            public void addUser(long pk, long userPK);
1887    
1888            /**
1889            * Adds an association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1890            *
1891            * @param pk the primary key of the organization
1892            * @param user the user
1893            */
1894            public void addUser(long pk, com.liferay.portal.model.User user);
1895    
1896            /**
1897            * Adds an association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1898            *
1899            * @param pk the primary key of the organization
1900            * @param userPKs the primary keys of the users
1901            */
1902            public void addUsers(long pk, long[] userPKs);
1903    
1904            /**
1905            * Adds an association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1906            *
1907            * @param pk the primary key of the organization
1908            * @param users the users
1909            */
1910            public void addUsers(long pk,
1911                    java.util.List<com.liferay.portal.model.User> users);
1912    
1913            /**
1914            * Clears all associations between the organization and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1915            *
1916            * @param pk the primary key of the organization to clear the associated users from
1917            */
1918            public void clearUsers(long pk);
1919    
1920            /**
1921            * Removes the association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1922            *
1923            * @param pk the primary key of the organization
1924            * @param userPK the primary key of the user
1925            */
1926            public void removeUser(long pk, long userPK);
1927    
1928            /**
1929            * Removes the association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1930            *
1931            * @param pk the primary key of the organization
1932            * @param user the user
1933            */
1934            public void removeUser(long pk, com.liferay.portal.model.User user);
1935    
1936            /**
1937            * Removes the association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1938            *
1939            * @param pk the primary key of the organization
1940            * @param userPKs the primary keys of the users
1941            */
1942            public void removeUsers(long pk, long[] userPKs);
1943    
1944            /**
1945            * Removes the association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1946            *
1947            * @param pk the primary key of the organization
1948            * @param users the users
1949            */
1950            public void removeUsers(long pk,
1951                    java.util.List<com.liferay.portal.model.User> users);
1952    
1953            /**
1954            * Sets the users associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1955            *
1956            * @param pk the primary key of the organization
1957            * @param userPKs the primary keys of the users to be associated with the organization
1958            */
1959            public void setUsers(long pk, long[] userPKs);
1960    
1961            /**
1962            * Sets the users associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1963            *
1964            * @param pk the primary key of the organization
1965            * @param users the users to be associated with the organization
1966            */
1967            public void setUsers(long pk,
1968                    java.util.List<com.liferay.portal.model.User> users);
1969    
1970            @Override
1971            public java.util.Set<java.lang.String> getBadColumnNames();
1972    }