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