/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.portal.kernel.service.persistence; import aQute.bnd.annotation.ProviderType; import com.liferay.portal.kernel.exception.NoSuchOrganizationException; import com.liferay.portal.kernel.model.Organization; /** * The persistence interface for the organization service. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see com.liferay.portal.service.persistence.impl.OrganizationPersistenceImpl * @see OrganizationUtil * @generated */ @ProviderType public interface OrganizationPersistence extends BasePersistence<Organization> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link OrganizationUtil} to access the organization persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the organizations where uuid = ?. * * @param uuid the uuid * @return the matching organizations */ public java.util.List<Organization> findByUuid(java.lang.String uuid); /** * Returns a range of all the organizations where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of matching organizations */ public java.util.List<Organization> findByUuid(java.lang.String uuid, int start, int end); /** * Returns an ordered range of all the organizations where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching organizations */ public java.util.List<Organization> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns an ordered range of all the organizations where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching organizations */ public java.util.List<Organization> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator, boolean retrieveFromCache); /** * Returns the first organization in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching organization * @throws NoSuchOrganizationException if a matching organization could not be found */ public Organization findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns the first organization in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the last organization in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching organization * @throws NoSuchOrganizationException if a matching organization could not be found */ public Organization findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns the last organization in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the organizations before and after the current organization in the ordered set where uuid = ?. * * @param organizationId the primary key of the current organization * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next organization * @throws NoSuchOrganizationException if a organization with the primary key could not be found */ public Organization[] findByUuid_PrevAndNext(long organizationId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns all the organizations that the user has permission to view where uuid = ?. * * @param uuid the uuid * @return the matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByUuid(java.lang.String uuid); /** * Returns a range of all the organizations that the user has permission to view where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByUuid( java.lang.String uuid, int start, int end); /** * Returns an ordered range of all the organizations that the user has permissions to view where uuid = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByUuid( java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where uuid = ?. * * @param organizationId the primary key of the current organization * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next organization * @throws NoSuchOrganizationException if a organization with the primary key could not be found */ public Organization[] filterFindByUuid_PrevAndNext(long organizationId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Removes all the organizations where uuid = ? from the database. * * @param uuid the uuid */ public void removeByUuid(java.lang.String uuid); /** * Returns the number of organizations where uuid = ?. * * @param uuid the uuid * @return the number of matching organizations */ public int countByUuid(java.lang.String uuid); /** * Returns the number of organizations that the user has permission to view where uuid = ?. * * @param uuid the uuid * @return the number of matching organizations that the user has permission to view */ public int filterCountByUuid(java.lang.String uuid); /** * Returns all the organizations where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching organizations */ public java.util.List<Organization> findByUuid_C(java.lang.String uuid, long companyId); /** * Returns a range of all the organizations where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of matching organizations */ public java.util.List<Organization> findByUuid_C(java.lang.String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the organizations where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching organizations */ public java.util.List<Organization> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns an ordered range of all the organizations where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching organizations */ public java.util.List<Organization> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator, boolean retrieveFromCache); /** * Returns the first organization in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching organization * @throws NoSuchOrganizationException if a matching organization could not be found */ public Organization findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns the first organization in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the last organization in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching organization * @throws NoSuchOrganizationException if a matching organization could not be found */ public Organization findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns the last organization in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the organizations before and after the current organization in the ordered set where uuid = ? and companyId = ?. * * @param organizationId the primary key of the current organization * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next organization * @throws NoSuchOrganizationException if a organization with the primary key could not be found */ public Organization[] findByUuid_C_PrevAndNext(long organizationId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns all the organizations that the user has permission to view where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByUuid_C( java.lang.String uuid, long companyId); /** * Returns a range of all the organizations that the user has permission to view where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByUuid_C( java.lang.String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the organizations that the user has permissions to view where uuid = ? and companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByUuid_C( java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * 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 = ?. * * @param organizationId the primary key of the current organization * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next organization * @throws NoSuchOrganizationException if a organization with the primary key could not be found */ public Organization[] filterFindByUuid_C_PrevAndNext(long organizationId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Removes all the organizations where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID */ public void removeByUuid_C(java.lang.String uuid, long companyId); /** * Returns the number of organizations where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching organizations */ public int countByUuid_C(java.lang.String uuid, long companyId); /** * Returns the number of organizations that the user has permission to view where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching organizations that the user has permission to view */ public int filterCountByUuid_C(java.lang.String uuid, long companyId); /** * Returns all the organizations where companyId = ?. * * @param companyId the company ID * @return the matching organizations */ public java.util.List<Organization> findByCompanyId(long companyId); /** * Returns a range of all the organizations where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of matching organizations */ public java.util.List<Organization> findByCompanyId(long companyId, int start, int end); /** * Returns an ordered range of all the organizations where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching organizations */ public java.util.List<Organization> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns an ordered range of all the organizations where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching organizations */ public java.util.List<Organization> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator, boolean retrieveFromCache); /** * Returns the first organization in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching organization * @throws NoSuchOrganizationException if a matching organization could not be found */ public Organization findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns the first organization in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the last organization in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching organization * @throws NoSuchOrganizationException if a matching organization could not be found */ public Organization findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns the last organization in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the organizations before and after the current organization in the ordered set where companyId = ?. * * @param organizationId the primary key of the current organization * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next organization * @throws NoSuchOrganizationException if a organization with the primary key could not be found */ public Organization[] findByCompanyId_PrevAndNext(long organizationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns all the organizations that the user has permission to view where companyId = ?. * * @param companyId the company ID * @return the matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByCompanyId(long companyId); /** * Returns a range of all the organizations that the user has permission to view where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByCompanyId(long companyId, int start, int end); /** * Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?. * * @param organizationId the primary key of the current organization * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next organization * @throws NoSuchOrganizationException if a organization with the primary key could not be found */ public Organization[] filterFindByCompanyId_PrevAndNext( long organizationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Removes all the organizations where companyId = ? from the database. * * @param companyId the company ID */ public void removeByCompanyId(long companyId); /** * Returns the number of organizations where companyId = ?. * * @param companyId the company ID * @return the number of matching organizations */ public int countByCompanyId(long companyId); /** * Returns the number of organizations that the user has permission to view where companyId = ?. * * @param companyId the company ID * @return the number of matching organizations that the user has permission to view */ public int filterCountByCompanyId(long companyId); /** * Returns all the organizations where companyId = ?. * * @param companyId the company ID * @return the matching organizations */ public java.util.List<Organization> findByLocations(long companyId); /** * Returns a range of all the organizations where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of matching organizations */ public java.util.List<Organization> findByLocations(long companyId, int start, int end); /** * Returns an ordered range of all the organizations where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching organizations */ public java.util.List<Organization> findByLocations(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns an ordered range of all the organizations where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching organizations */ public java.util.List<Organization> findByLocations(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator, boolean retrieveFromCache); /** * Returns the first organization in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching organization * @throws NoSuchOrganizationException if a matching organization could not be found */ public Organization findByLocations_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns the first organization in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByLocations_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the last organization in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching organization * @throws NoSuchOrganizationException if a matching organization could not be found */ public Organization findByLocations_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns the last organization in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByLocations_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the organizations before and after the current organization in the ordered set where companyId = ?. * * @param organizationId the primary key of the current organization * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next organization * @throws NoSuchOrganizationException if a organization with the primary key could not be found */ public Organization[] findByLocations_PrevAndNext(long organizationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns all the organizations that the user has permission to view where companyId = ?. * * @param companyId the company ID * @return the matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByLocations(long companyId); /** * Returns a range of all the organizations that the user has permission to view where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByLocations(long companyId, int start, int end); /** * Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByLocations(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?. * * @param organizationId the primary key of the current organization * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next organization * @throws NoSuchOrganizationException if a organization with the primary key could not be found */ public Organization[] filterFindByLocations_PrevAndNext( long organizationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Removes all the organizations where companyId = ? from the database. * * @param companyId the company ID */ public void removeByLocations(long companyId); /** * Returns the number of organizations where companyId = ?. * * @param companyId the company ID * @return the number of matching organizations */ public int countByLocations(long companyId); /** * Returns the number of organizations that the user has permission to view where companyId = ?. * * @param companyId the company ID * @return the number of matching organizations that the user has permission to view */ public int filterCountByLocations(long companyId); /** * Returns all the organizations where companyId = ? and parentOrganizationId = ?. * * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @return the matching organizations */ public java.util.List<Organization> findByC_P(long companyId, long parentOrganizationId); /** * Returns a range of all the organizations where companyId = ? and parentOrganizationId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of matching organizations */ public java.util.List<Organization> findByC_P(long companyId, long parentOrganizationId, int start, int end); /** * Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching organizations */ public java.util.List<Organization> findByC_P(long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching organizations */ public java.util.List<Organization> findByC_P(long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator, boolean retrieveFromCache); /** * Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?. * * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching organization * @throws NoSuchOrganizationException if a matching organization could not be found */ public Organization findByC_P_First(long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?. * * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByC_P_First(long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?. * * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching organization * @throws NoSuchOrganizationException if a matching organization could not be found */ public Organization findByC_P_Last(long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?. * * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByC_P_Last(long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the organizations before and after the current organization in the ordered set where companyId = ? and parentOrganizationId = ?. * * @param organizationId the primary key of the current organization * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next organization * @throws NoSuchOrganizationException if a organization with the primary key could not be found */ public Organization[] findByC_P_PrevAndNext(long organizationId, long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. * * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @return the matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByC_P(long companyId, long parentOrganizationId); /** * Returns a range of all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByC_P(long companyId, long parentOrganizationId, int start, int end); /** * Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and parentOrganizationId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByC_P(long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * 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 = ?. * * @param organizationId the primary key of the current organization * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next organization * @throws NoSuchOrganizationException if a organization with the primary key could not be found */ public Organization[] filterFindByC_P_PrevAndNext(long organizationId, long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Removes all the organizations where companyId = ? and parentOrganizationId = ? from the database. * * @param companyId the company ID * @param parentOrganizationId the parent organization ID */ public void removeByC_P(long companyId, long parentOrganizationId); /** * Returns the number of organizations where companyId = ? and parentOrganizationId = ?. * * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @return the number of matching organizations */ public int countByC_P(long companyId, long parentOrganizationId); /** * Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?. * * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @return the number of matching organizations that the user has permission to view */ public int filterCountByC_P(long companyId, long parentOrganizationId); /** * Returns all the organizations where companyId = ? and treePath LIKE ?. * * @param companyId the company ID * @param treePath the tree path * @return the matching organizations */ public java.util.List<Organization> findByC_T(long companyId, java.lang.String treePath); /** * Returns a range of all the organizations where companyId = ? and treePath LIKE ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param treePath the tree path * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of matching organizations */ public java.util.List<Organization> findByC_T(long companyId, java.lang.String treePath, int start, int end); /** * Returns an ordered range of all the organizations where companyId = ? and treePath LIKE ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param treePath the tree path * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching organizations */ public java.util.List<Organization> findByC_T(long companyId, java.lang.String treePath, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns an ordered range of all the organizations where companyId = ? and treePath LIKE ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param treePath the tree path * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching organizations */ public java.util.List<Organization> findByC_T(long companyId, java.lang.String treePath, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator, boolean retrieveFromCache); /** * Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?. * * @param companyId the company ID * @param treePath the tree path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching organization * @throws NoSuchOrganizationException if a matching organization could not be found */ public Organization findByC_T_First(long companyId, java.lang.String treePath, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?. * * @param companyId the company ID * @param treePath the tree path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByC_T_First(long companyId, java.lang.String treePath, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the last organization in the ordered set where companyId = ? and treePath LIKE ?. * * @param companyId the company ID * @param treePath the tree path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching organization * @throws NoSuchOrganizationException if a matching organization could not be found */ public Organization findByC_T_Last(long companyId, java.lang.String treePath, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns the last organization in the ordered set where companyId = ? and treePath LIKE ?. * * @param companyId the company ID * @param treePath the tree path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByC_T_Last(long companyId, java.lang.String treePath, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the organizations before and after the current organization in the ordered set where companyId = ? and treePath LIKE ?. * * @param organizationId the primary key of the current organization * @param companyId the company ID * @param treePath the tree path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next organization * @throws NoSuchOrganizationException if a organization with the primary key could not be found */ public Organization[] findByC_T_PrevAndNext(long organizationId, long companyId, java.lang.String treePath, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns all the organizations that the user has permission to view where companyId = ? and treePath LIKE ?. * * @param companyId the company ID * @param treePath the tree path * @return the matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByC_T(long companyId, java.lang.String treePath); /** * Returns a range of all the organizations that the user has permission to view where companyId = ? and treePath LIKE ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param treePath the tree path * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByC_T(long companyId, java.lang.String treePath, int start, int end); /** * Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and treePath LIKE ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param treePath the tree path * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByC_T(long companyId, java.lang.String treePath, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * 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 ?. * * @param organizationId the primary key of the current organization * @param companyId the company ID * @param treePath the tree path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next organization * @throws NoSuchOrganizationException if a organization with the primary key could not be found */ public Organization[] filterFindByC_T_PrevAndNext(long organizationId, long companyId, java.lang.String treePath, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Removes all the organizations where companyId = ? and treePath LIKE ? from the database. * * @param companyId the company ID * @param treePath the tree path */ public void removeByC_T(long companyId, java.lang.String treePath); /** * Returns the number of organizations where companyId = ? and treePath LIKE ?. * * @param companyId the company ID * @param treePath the tree path * @return the number of matching organizations */ public int countByC_T(long companyId, java.lang.String treePath); /** * Returns the number of organizations that the user has permission to view where companyId = ? and treePath LIKE ?. * * @param companyId the company ID * @param treePath the tree path * @return the number of matching organizations that the user has permission to view */ public int filterCountByC_T(long companyId, java.lang.String treePath); /** * Returns the organization where companyId = ? and name = ? or throws a {@link NoSuchOrganizationException} if it could not be found. * * @param companyId the company ID * @param name the name * @return the matching organization * @throws NoSuchOrganizationException if a matching organization could not be found */ public Organization findByC_N(long companyId, java.lang.String name) throws NoSuchOrganizationException; /** * Returns the organization where companyId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param companyId the company ID * @param name the name * @return the matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByC_N(long companyId, java.lang.String name); /** * Returns the organization where companyId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param companyId the company ID * @param name the name * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByC_N(long companyId, java.lang.String name, boolean retrieveFromCache); /** * Removes the organization where companyId = ? and name = ? from the database. * * @param companyId the company ID * @param name the name * @return the organization that was removed */ public Organization removeByC_N(long companyId, java.lang.String name) throws NoSuchOrganizationException; /** * Returns the number of organizations where companyId = ? and name = ?. * * @param companyId the company ID * @param name the name * @return the number of matching organizations */ public int countByC_N(long companyId, java.lang.String name); /** * Returns all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?. * * @param organizationId the organization ID * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @return the matching organizations */ public java.util.List<Organization> findByO_C_P(long organizationId, long companyId, long parentOrganizationId); /** * Returns a range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param organizationId the organization ID * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of matching organizations */ public java.util.List<Organization> findByO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end); /** * Returns an ordered range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param organizationId the organization ID * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching organizations */ public java.util.List<Organization> findByO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns an ordered range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param organizationId the organization ID * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching organizations */ public java.util.List<Organization> findByO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator, boolean retrieveFromCache); /** * Returns the first organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?. * * @param organizationId the organization ID * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching organization * @throws NoSuchOrganizationException if a matching organization could not be found */ public Organization findByO_C_P_First(long organizationId, long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns the first organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?. * * @param organizationId the organization ID * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByO_C_P_First(long organizationId, long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns the last organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?. * * @param organizationId the organization ID * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching organization * @throws NoSuchOrganizationException if a matching organization could not be found */ public Organization findByO_C_P_Last(long organizationId, long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException; /** * Returns the last organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?. * * @param organizationId the organization ID * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching organization, or <code>null</code> if a matching organization could not be found */ public Organization fetchByO_C_P_Last(long organizationId, long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns all the organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?. * * @param organizationId the organization ID * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @return the matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByO_C_P(long organizationId, long companyId, long parentOrganizationId); /** * Returns a range of all the organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param organizationId the organization ID * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end); /** * Returns an ordered range of all the organizations that the user has permissions to view where organizationId > ? and companyId = ? and parentOrganizationId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param organizationId the organization ID * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching organizations that the user has permission to view */ public java.util.List<Organization> filterFindByO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Removes all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ? from the database. * * @param organizationId the organization ID * @param companyId the company ID * @param parentOrganizationId the parent organization ID */ public void removeByO_C_P(long organizationId, long companyId, long parentOrganizationId); /** * Returns the number of organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?. * * @param organizationId the organization ID * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @return the number of matching organizations */ public int countByO_C_P(long organizationId, long companyId, long parentOrganizationId); /** * Returns the number of organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?. * * @param organizationId the organization ID * @param companyId the company ID * @param parentOrganizationId the parent organization ID * @return the number of matching organizations that the user has permission to view */ public int filterCountByO_C_P(long organizationId, long companyId, long parentOrganizationId); /** * Caches the organization in the entity cache if it is enabled. * * @param organization the organization */ public void cacheResult(Organization organization); /** * Caches the organizations in the entity cache if it is enabled. * * @param organizations the organizations */ public void cacheResult(java.util.List<Organization> organizations); /** * Creates a new organization with the primary key. Does not add the organization to the database. * * @param organizationId the primary key for the new organization * @return the new organization */ public Organization create(long organizationId); /** * Removes the organization with the primary key from the database. Also notifies the appropriate model listeners. * * @param organizationId the primary key of the organization * @return the organization that was removed * @throws NoSuchOrganizationException if a organization with the primary key could not be found */ public Organization remove(long organizationId) throws NoSuchOrganizationException; public Organization updateImpl(Organization organization); /** * Returns the organization with the primary key or throws a {@link NoSuchOrganizationException} if it could not be found. * * @param organizationId the primary key of the organization * @return the organization * @throws NoSuchOrganizationException if a organization with the primary key could not be found */ public Organization findByPrimaryKey(long organizationId) throws NoSuchOrganizationException; /** * Returns the organization with the primary key or returns <code>null</code> if it could not be found. * * @param organizationId the primary key of the organization * @return the organization, or <code>null</code> if a organization with the primary key could not be found */ public Organization fetchByPrimaryKey(long organizationId); @Override public java.util.Map<java.io.Serializable, Organization> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys); /** * Returns all the organizations. * * @return the organizations */ public java.util.List<Organization> findAll(); /** * Returns a range of all the organizations. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of organizations */ public java.util.List<Organization> findAll(int start, int end); /** * Returns an ordered range of all the organizations. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of organizations */ public java.util.List<Organization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator); /** * Returns an ordered range of all the organizations. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of organizations */ public java.util.List<Organization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Organization> orderByComparator, boolean retrieveFromCache); /** * Removes all the organizations from the database. */ public void removeAll(); /** * Returns the number of organizations. * * @return the number of organizations */ public int countAll(); /** * Returns the primaryKeys of groups associated with the organization. * * @param pk the primary key of the organization * @return long[] of the primaryKeys of groups associated with the organization */ public long[] getGroupPrimaryKeys(long pk); /** * Returns all the groups associated with the organization. * * @param pk the primary key of the organization * @return the groups associated with the organization */ public java.util.List<com.liferay.portal.kernel.model.Group> getGroups( long pk); /** * Returns a range of all the groups associated with the organization. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param pk the primary key of the organization * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of groups associated with the organization */ public java.util.List<com.liferay.portal.kernel.model.Group> getGroups( long pk, int start, int end); /** * Returns an ordered range of all the groups associated with the organization. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param pk the primary key of the organization * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of groups associated with the organization */ public java.util.List<com.liferay.portal.kernel.model.Group> getGroups( long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator); /** * Returns the number of groups associated with the organization. * * @param pk the primary key of the organization * @return the number of groups associated with the organization */ public int getGroupsSize(long pk); /** * Returns <code>true</code> if the group is associated with the organization. * * @param pk the primary key of the organization * @param groupPK the primary key of the group * @return <code>true</code> if the group is associated with the organization; <code>false</code> otherwise */ public boolean containsGroup(long pk, long groupPK); /** * Returns <code>true</code> if the organization has any groups associated with it. * * @param pk the primary key of the organization to check for associations with groups * @return <code>true</code> if the organization has any groups associated with it; <code>false</code> otherwise */ public boolean containsGroups(long pk); /** * Adds an association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param groupPK the primary key of the group */ public void addGroup(long pk, long groupPK); /** * Adds an association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param group the group */ public void addGroup(long pk, com.liferay.portal.kernel.model.Group group); /** * Adds an association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param groupPKs the primary keys of the groups */ public void addGroups(long pk, long[] groupPKs); /** * Adds an association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param groups the groups */ public void addGroups(long pk, java.util.List<com.liferay.portal.kernel.model.Group> groups); /** * Clears all associations between the organization and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization to clear the associated groups from */ public void clearGroups(long pk); /** * Removes the association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param groupPK the primary key of the group */ public void removeGroup(long pk, long groupPK); /** * Removes the association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param group the group */ public void removeGroup(long pk, com.liferay.portal.kernel.model.Group group); /** * Removes the association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param groupPKs the primary keys of the groups */ public void removeGroups(long pk, long[] groupPKs); /** * Removes the association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param groups the groups */ public void removeGroups(long pk, java.util.List<com.liferay.portal.kernel.model.Group> groups); /** * 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. * * @param pk the primary key of the organization * @param groupPKs the primary keys of the groups to be associated with the organization */ public void setGroups(long pk, long[] groupPKs); /** * 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. * * @param pk the primary key of the organization * @param groups the groups to be associated with the organization */ public void setGroups(long pk, java.util.List<com.liferay.portal.kernel.model.Group> groups); /** * Returns the primaryKeys of users associated with the organization. * * @param pk the primary key of the organization * @return long[] of the primaryKeys of users associated with the organization */ public long[] getUserPrimaryKeys(long pk); /** * Returns all the users associated with the organization. * * @param pk the primary key of the organization * @return the users associated with the organization */ public java.util.List<com.liferay.portal.kernel.model.User> getUsers( long pk); /** * Returns a range of all the users associated with the organization. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param pk the primary key of the organization * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @return the range of users associated with the organization */ public java.util.List<com.liferay.portal.kernel.model.User> getUsers( long pk, int start, int end); /** * Returns an ordered range of all the users associated with the organization. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link OrganizationModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param pk the primary key of the organization * @param start the lower bound of the range of organizations * @param end the upper bound of the range of organizations (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of users associated with the organization */ public java.util.List<com.liferay.portal.kernel.model.User> getUsers( long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator); /** * Returns the number of users associated with the organization. * * @param pk the primary key of the organization * @return the number of users associated with the organization */ public int getUsersSize(long pk); /** * Returns <code>true</code> if the user is associated with the organization. * * @param pk the primary key of the organization * @param userPK the primary key of the user * @return <code>true</code> if the user is associated with the organization; <code>false</code> otherwise */ public boolean containsUser(long pk, long userPK); /** * Returns <code>true</code> if the organization has any users associated with it. * * @param pk the primary key of the organization to check for associations with users * @return <code>true</code> if the organization has any users associated with it; <code>false</code> otherwise */ public boolean containsUsers(long pk); /** * Adds an association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param userPK the primary key of the user */ public void addUser(long pk, long userPK); /** * Adds an association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param user the user */ public void addUser(long pk, com.liferay.portal.kernel.model.User user); /** * Adds an association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param userPKs the primary keys of the users */ public void addUsers(long pk, long[] userPKs); /** * Adds an association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param users the users */ public void addUsers(long pk, java.util.List<com.liferay.portal.kernel.model.User> users); /** * Clears all associations between the organization and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization to clear the associated users from */ public void clearUsers(long pk); /** * Removes the association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param userPK the primary key of the user */ public void removeUser(long pk, long userPK); /** * Removes the association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param user the user */ public void removeUser(long pk, com.liferay.portal.kernel.model.User user); /** * Removes the association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param userPKs the primary keys of the users */ public void removeUsers(long pk, long[] userPKs); /** * Removes the association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the organization * @param users the users */ public void removeUsers(long pk, java.util.List<com.liferay.portal.kernel.model.User> users); /** * 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. * * @param pk the primary key of the organization * @param userPKs the primary keys of the users to be associated with the organization */ public void setUsers(long pk, long[] userPKs); /** * 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. * * @param pk the primary key of the organization * @param users the users to be associated with the organization */ public void setUsers(long pk, java.util.List<com.liferay.portal.kernel.model.User> users); @Override public java.util.Set<java.lang.String> getBadColumnNames(); }