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