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