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