Interface OrganizationPersistence

All Superinterfaces:
BasePersistence<Organization>, CTPersistence<Organization>

@ProviderType public interface OrganizationPersistence extends BasePersistence<Organization>, CTPersistence<Organization>
The persistence interface for the organization service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Method Details

    • findByUuid

      List<Organization> findByUuid(String uuid)
      Returns all the organizations where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching organizations
    • findByUuid

      List<Organization> findByUuid(String uuid, int start, int end)
      Returns a range of all the organizations where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations
    • findByUuid

      List<Organization> findByUuid(String uuid, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations
    • findByUuid

      List<Organization> findByUuid(String uuid, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the organizations where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching organizations
    • findByUuid_First

      Organization findByUuid_First(String uuid, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the first organization in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByUuid_First

      Organization fetchByUuid_First(String uuid, OrderByComparator<Organization> orderByComparator)
      Returns the first organization in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization, or null if a matching organization could not be found
    • findByUuid_Last

      Organization findByUuid_Last(String uuid, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the last organization in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByUuid_Last

      Organization fetchByUuid_Last(String uuid, OrderByComparator<Organization> orderByComparator)
      Returns the last organization in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization, or null if a matching organization could not be found
    • findByUuid_PrevAndNext

      Organization[] findByUuid_PrevAndNext(long organizationId, String uuid, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the organizations before and after the current organization in the ordered set where uuid = ?.
      Parameters:
      organizationId - the primary key of the current organization
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • filterFindByUuid

      List<Organization> filterFindByUuid(String uuid)
      Returns all the organizations that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching organizations that the user has permission to view
    • filterFindByUuid

      List<Organization> filterFindByUuid(String uuid, int start, int end)
      Returns a range of all the organizations that the user has permission to view where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations that the user has permission to view
    • filterFindByUuid

      List<Organization> filterFindByUuid(String uuid, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations that the user has permissions to view where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations that the user has permission to view
    • filterFindByUuid_PrevAndNext

      Organization[] filterFindByUuid_PrevAndNext(long organizationId, String uuid, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where uuid = ?.
      Parameters:
      organizationId - the primary key of the current organization
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • removeByUuid

      void removeByUuid(String uuid)
      Removes all the organizations where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      int countByUuid(String uuid)
      Returns the number of organizations where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching organizations
    • filterCountByUuid

      int filterCountByUuid(String uuid)
      Returns the number of organizations that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching organizations that the user has permission to view
    • findByUuid_C

      List<Organization> findByUuid_C(String uuid, long companyId)
      Returns all the organizations where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching organizations
    • findByUuid_C

      List<Organization> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the organizations where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations
    • findByUuid_C

      List<Organization> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations
    • findByUuid_C

      List<Organization> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the organizations where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching organizations
    • findByUuid_C_First

      Organization findByUuid_C_First(String uuid, long companyId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the first organization in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByUuid_C_First

      Organization fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<Organization> orderByComparator)
      Returns the first organization in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization, or null if a matching organization could not be found
    • findByUuid_C_Last

      Organization findByUuid_C_Last(String uuid, long companyId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the last organization in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByUuid_C_Last

      Organization fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<Organization> orderByComparator)
      Returns the last organization in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization, or null if a matching organization could not be found
    • findByUuid_C_PrevAndNext

      Organization[] findByUuid_C_PrevAndNext(long organizationId, String uuid, long companyId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the organizations before and after the current organization in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      organizationId - the primary key of the current organization
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • filterFindByUuid_C

      List<Organization> filterFindByUuid_C(String uuid, long companyId)
      Returns all the organizations that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching organizations that the user has permission to view
    • filterFindByUuid_C

      List<Organization> filterFindByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the organizations that the user has permission to view where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations that the user has permission to view
    • filterFindByUuid_C

      List<Organization> filterFindByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations that the user has permissions to view where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations that the user has permission to view
    • filterFindByUuid_C_PrevAndNext

      Organization[] filterFindByUuid_C_PrevAndNext(long organizationId, String uuid, long companyId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      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 = ?.
      Parameters:
      organizationId - the primary key of the current organization
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • removeByUuid_C

      void removeByUuid_C(String uuid, long companyId)
      Removes all the organizations where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      int countByUuid_C(String uuid, long companyId)
      Returns the number of organizations where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching organizations
    • filterCountByUuid_C

      int filterCountByUuid_C(String uuid, long companyId)
      Returns the number of organizations that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching organizations that the user has permission to view
    • findByCompanyId

      List<Organization> findByCompanyId(long companyId)
      Returns all the organizations where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching organizations
    • findByCompanyId

      List<Organization> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the organizations where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations
    • findByCompanyId

      List<Organization> findByCompanyId(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations
    • findByCompanyId

      List<Organization> findByCompanyId(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the organizations where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching organizations
    • findByCompanyId_First

      Organization findByCompanyId_First(long companyId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the first organization in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByCompanyId_First

      Organization fetchByCompanyId_First(long companyId, OrderByComparator<Organization> orderByComparator)
      Returns the first organization in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization, or null if a matching organization could not be found
    • findByCompanyId_Last

      Organization findByCompanyId_Last(long companyId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the last organization in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByCompanyId_Last

      Organization fetchByCompanyId_Last(long companyId, OrderByComparator<Organization> orderByComparator)
      Returns the last organization in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization, or null if a matching organization could not be found
    • findByCompanyId_PrevAndNext

      Organization[] findByCompanyId_PrevAndNext(long organizationId, long companyId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the organizations before and after the current organization in the ordered set where companyId = ?.
      Parameters:
      organizationId - the primary key of the current organization
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • filterFindByCompanyId

      List<Organization> filterFindByCompanyId(long companyId)
      Returns all the organizations that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching organizations that the user has permission to view
    • filterFindByCompanyId

      List<Organization> filterFindByCompanyId(long companyId, int start, int end)
      Returns a range of all the organizations that the user has permission to view where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations that the user has permission to view
    • filterFindByCompanyId

      List<Organization> filterFindByCompanyId(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations that the user has permission to view
    • filterFindByCompanyId_PrevAndNext

      Organization[] filterFindByCompanyId_PrevAndNext(long organizationId, long companyId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?.
      Parameters:
      organizationId - the primary key of the current organization
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • removeByCompanyId

      void removeByCompanyId(long companyId)
      Removes all the organizations where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      int countByCompanyId(long companyId)
      Returns the number of organizations where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching organizations
    • filterCountByCompanyId

      int filterCountByCompanyId(long companyId)
      Returns the number of organizations that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching organizations that the user has permission to view
    • findByCompanyIdLocations

      List<Organization> findByCompanyIdLocations(long companyId)
      Returns all the organizations where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching organizations
    • findByCompanyIdLocations

      List<Organization> findByCompanyIdLocations(long companyId, int start, int end)
      Returns a range of all the organizations where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations
    • findByCompanyIdLocations

      List<Organization> findByCompanyIdLocations(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations
    • findByCompanyIdLocations

      List<Organization> findByCompanyIdLocations(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the organizations where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching organizations
    • findByCompanyIdLocations_First

      Organization findByCompanyIdLocations_First(long companyId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the first organization in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByCompanyIdLocations_First

      Organization fetchByCompanyIdLocations_First(long companyId, OrderByComparator<Organization> orderByComparator)
      Returns the first organization in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization, or null if a matching organization could not be found
    • findByCompanyIdLocations_Last

      Organization findByCompanyIdLocations_Last(long companyId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the last organization in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByCompanyIdLocations_Last

      Organization fetchByCompanyIdLocations_Last(long companyId, OrderByComparator<Organization> orderByComparator)
      Returns the last organization in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization, or null if a matching organization could not be found
    • findByCompanyIdLocations_PrevAndNext

      Organization[] findByCompanyIdLocations_PrevAndNext(long organizationId, long companyId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the organizations before and after the current organization in the ordered set where companyId = ?.
      Parameters:
      organizationId - the primary key of the current organization
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • filterFindByCompanyIdLocations

      List<Organization> filterFindByCompanyIdLocations(long companyId)
      Returns all the organizations that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching organizations that the user has permission to view
    • filterFindByCompanyIdLocations

      List<Organization> filterFindByCompanyIdLocations(long companyId, int start, int end)
      Returns a range of all the organizations that the user has permission to view where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations that the user has permission to view
    • filterFindByCompanyIdLocations

      List<Organization> filterFindByCompanyIdLocations(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations that the user has permission to view
    • filterFindByCompanyIdLocations_PrevAndNext

      Organization[] filterFindByCompanyIdLocations_PrevAndNext(long organizationId, long companyId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?.
      Parameters:
      organizationId - the primary key of the current organization
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • removeByCompanyIdLocations

      void removeByCompanyIdLocations(long companyId)
      Removes all the organizations where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyIdLocations

      int countByCompanyIdLocations(long companyId)
      Returns the number of organizations where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching organizations
    • filterCountByCompanyIdLocations

      int filterCountByCompanyIdLocations(long companyId)
      Returns the number of organizations that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching organizations that the user has permission to view
    • findByC_P

      List<Organization> findByC_P(long companyId, long parentOrganizationId)
      Returns all the organizations where companyId = ? and parentOrganizationId = ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      Returns:
      the matching organizations
    • findByC_P

      List<Organization> findByC_P(long companyId, long parentOrganizationId, int start, int end)
      Returns a range of all the organizations where companyId = ? and parentOrganizationId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations
    • findByC_P

      List<Organization> findByC_P(long companyId, long parentOrganizationId, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations
    • findByC_P

      List<Organization> findByC_P(long companyId, long parentOrganizationId, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching organizations
    • findByC_P_First

      Organization findByC_P_First(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByC_P_First

      Organization fetchByC_P_First(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator)
      Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization, or null if a matching organization could not be found
    • findByC_P_Last

      Organization findByC_P_Last(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByC_P_Last

      Organization fetchByC_P_Last(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator)
      Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization, or null if a matching organization could not be found
    • findByC_P_PrevAndNext

      Organization[] findByC_P_PrevAndNext(long organizationId, long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the organizations before and after the current organization in the ordered set where companyId = ? and parentOrganizationId = ?.
      Parameters:
      organizationId - the primary key of the current organization
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • filterFindByC_P

      List<Organization> filterFindByC_P(long companyId, long parentOrganizationId)
      Returns all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      Returns:
      the matching organizations that the user has permission to view
    • filterFindByC_P

      List<Organization> filterFindByC_P(long companyId, long parentOrganizationId, int start, int end)
      Returns a range of all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations that the user has permission to view
    • filterFindByC_P

      List<Organization> filterFindByC_P(long companyId, long parentOrganizationId, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and parentOrganizationId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations that the user has permission to view
    • filterFindByC_P_PrevAndNext

      Organization[] filterFindByC_P_PrevAndNext(long organizationId, long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      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 = ?.
      Parameters:
      organizationId - the primary key of the current organization
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • removeByC_P

      void removeByC_P(long companyId, long parentOrganizationId)
      Removes all the organizations where companyId = ? and parentOrganizationId = ? from the database.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
    • countByC_P

      int countByC_P(long companyId, long parentOrganizationId)
      Returns the number of organizations where companyId = ? and parentOrganizationId = ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      Returns:
      the number of matching organizations
    • filterCountByC_P

      int filterCountByC_P(long companyId, long parentOrganizationId)
      Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      Returns:
      the number of matching organizations that the user has permission to view
    • findByC_LikeT

      List<Organization> findByC_LikeT(long companyId, String treePath)
      Returns all the organizations where companyId = ? and treePath LIKE ?.
      Parameters:
      companyId - the company ID
      treePath - the tree path
      Returns:
      the matching organizations
    • findByC_LikeT

      List<Organization> findByC_LikeT(long companyId, String treePath, int start, int end)
      Returns a range of all the organizations where companyId = ? and treePath LIKE ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      treePath - the tree path
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations
    • findByC_LikeT

      List<Organization> findByC_LikeT(long companyId, String treePath, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations where companyId = ? and treePath LIKE ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      treePath - the tree path
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations
    • findByC_LikeT

      List<Organization> findByC_LikeT(long companyId, String treePath, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the organizations where companyId = ? and treePath LIKE ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      treePath - the tree path
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching organizations
    • findByC_LikeT_First

      Organization findByC_LikeT_First(long companyId, String treePath, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?.
      Parameters:
      companyId - the company ID
      treePath - the tree path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByC_LikeT_First

      Organization fetchByC_LikeT_First(long companyId, String treePath, OrderByComparator<Organization> orderByComparator)
      Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?.
      Parameters:
      companyId - the company ID
      treePath - the tree path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization, or null if a matching organization could not be found
    • findByC_LikeT_Last

      Organization findByC_LikeT_Last(long companyId, String treePath, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the last organization in the ordered set where companyId = ? and treePath LIKE ?.
      Parameters:
      companyId - the company ID
      treePath - the tree path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByC_LikeT_Last

      Organization fetchByC_LikeT_Last(long companyId, String treePath, OrderByComparator<Organization> orderByComparator)
      Returns the last organization in the ordered set where companyId = ? and treePath LIKE ?.
      Parameters:
      companyId - the company ID
      treePath - the tree path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization, or null if a matching organization could not be found
    • findByC_LikeT_PrevAndNext

      Organization[] findByC_LikeT_PrevAndNext(long organizationId, long companyId, String treePath, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the organizations before and after the current organization in the ordered set where companyId = ? and treePath LIKE ?.
      Parameters:
      organizationId - the primary key of the current organization
      companyId - the company ID
      treePath - the tree path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • filterFindByC_LikeT

      List<Organization> filterFindByC_LikeT(long companyId, String treePath)
      Returns all the organizations that the user has permission to view where companyId = ? and treePath LIKE ?.
      Parameters:
      companyId - the company ID
      treePath - the tree path
      Returns:
      the matching organizations that the user has permission to view
    • filterFindByC_LikeT

      List<Organization> filterFindByC_LikeT(long companyId, String treePath, int start, int end)
      Returns a range of all the organizations that the user has permission to view where companyId = ? and treePath LIKE ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      treePath - the tree path
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations that the user has permission to view
    • filterFindByC_LikeT

      List<Organization> filterFindByC_LikeT(long companyId, String treePath, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and treePath LIKE ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      treePath - the tree path
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations that the user has permission to view
    • filterFindByC_LikeT_PrevAndNext

      Organization[] filterFindByC_LikeT_PrevAndNext(long organizationId, long companyId, String treePath, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      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 ?.
      Parameters:
      organizationId - the primary key of the current organization
      companyId - the company ID
      treePath - the tree path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • removeByC_LikeT

      void removeByC_LikeT(long companyId, String treePath)
      Removes all the organizations where companyId = ? and treePath LIKE ? from the database.
      Parameters:
      companyId - the company ID
      treePath - the tree path
    • countByC_LikeT

      int countByC_LikeT(long companyId, String treePath)
      Returns the number of organizations where companyId = ? and treePath LIKE ?.
      Parameters:
      companyId - the company ID
      treePath - the tree path
      Returns:
      the number of matching organizations
    • filterCountByC_LikeT

      int filterCountByC_LikeT(long companyId, String treePath)
      Returns the number of organizations that the user has permission to view where companyId = ? and treePath LIKE ?.
      Parameters:
      companyId - the company ID
      treePath - the tree path
      Returns:
      the number of matching organizations that the user has permission to view
    • findByC_N

      Organization findByC_N(long companyId, String name) throws NoSuchOrganizationException
      Returns the organization where companyId = ? and name = ? or throws a NoSuchOrganizationException if it could not be found.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByC_N

      Organization fetchByC_N(long companyId, String name)
      Returns the organization where companyId = ? and name = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the matching organization, or null if a matching organization could not be found
    • fetchByC_N

      Organization fetchByC_N(long companyId, String name, boolean useFinderCache)
      Returns the organization where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      companyId - the company ID
      name - the name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching organization, or null if a matching organization could not be found
    • removeByC_N

      Organization removeByC_N(long companyId, String name) throws NoSuchOrganizationException
      Removes the organization where companyId = ? and name = ? from the database.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the organization that was removed
      Throws:
      NoSuchOrganizationException
    • countByC_N

      int countByC_N(long companyId, String name)
      Returns the number of organizations where companyId = ? and name = ?.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the number of matching organizations
    • findByC_LikeN

      List<Organization> findByC_LikeN(long companyId, String name)
      Returns all the organizations where companyId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the matching organizations
    • findByC_LikeN

      List<Organization> findByC_LikeN(long companyId, String name, int start, int end)
      Returns a range of all the organizations where companyId = ? and name LIKE ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      name - the name
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations
    • findByC_LikeN

      List<Organization> findByC_LikeN(long companyId, String name, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations where companyId = ? and name LIKE ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      name - the name
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations
    • findByC_LikeN

      List<Organization> findByC_LikeN(long companyId, String name, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the organizations where companyId = ? and name LIKE ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      name - the name
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching organizations
    • findByC_LikeN_First

      Organization findByC_LikeN_First(long companyId, String name, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the first organization in the ordered set where companyId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByC_LikeN_First

      Organization fetchByC_LikeN_First(long companyId, String name, OrderByComparator<Organization> orderByComparator)
      Returns the first organization in the ordered set where companyId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization, or null if a matching organization could not be found
    • findByC_LikeN_Last

      Organization findByC_LikeN_Last(long companyId, String name, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the last organization in the ordered set where companyId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByC_LikeN_Last

      Organization fetchByC_LikeN_Last(long companyId, String name, OrderByComparator<Organization> orderByComparator)
      Returns the last organization in the ordered set where companyId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization, or null if a matching organization could not be found
    • findByC_LikeN_PrevAndNext

      Organization[] findByC_LikeN_PrevAndNext(long organizationId, long companyId, String name, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the organizations before and after the current organization in the ordered set where companyId = ? and name LIKE ?.
      Parameters:
      organizationId - the primary key of the current organization
      companyId - the company ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • filterFindByC_LikeN

      List<Organization> filterFindByC_LikeN(long companyId, String name)
      Returns all the organizations that the user has permission to view where companyId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the matching organizations that the user has permission to view
    • filterFindByC_LikeN

      List<Organization> filterFindByC_LikeN(long companyId, String name, int start, int end)
      Returns a range of all the organizations that the user has permission to view where companyId = ? and name LIKE ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      name - the name
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations that the user has permission to view
    • filterFindByC_LikeN

      List<Organization> filterFindByC_LikeN(long companyId, String name, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and name LIKE ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      name - the name
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations that the user has permission to view
    • filterFindByC_LikeN_PrevAndNext

      Organization[] filterFindByC_LikeN_PrevAndNext(long organizationId, long companyId, String name, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      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 name LIKE ?.
      Parameters:
      organizationId - the primary key of the current organization
      companyId - the company ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • removeByC_LikeN

      void removeByC_LikeN(long companyId, String name)
      Removes all the organizations where companyId = ? and name LIKE ? from the database.
      Parameters:
      companyId - the company ID
      name - the name
    • countByC_LikeN

      int countByC_LikeN(long companyId, String name)
      Returns the number of organizations where companyId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the number of matching organizations
    • filterCountByC_LikeN

      int filterCountByC_LikeN(long companyId, String name)
      Returns the number of organizations that the user has permission to view where companyId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the number of matching organizations that the user has permission to view
    • findByGtO_C_P

      List<Organization> findByGtO_C_P(long organizationId, long companyId, long parentOrganizationId)
      Returns all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.
      Parameters:
      organizationId - the organization ID
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      Returns:
      the matching organizations
    • findByGtO_C_P

      List<Organization> findByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end)
      Returns a range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      organizationId - the organization ID
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations
    • findByGtO_C_P

      List<Organization> findByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      organizationId - the organization ID
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations
    • findByGtO_C_P

      List<Organization> findByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      organizationId - the organization ID
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching organizations
    • findByGtO_C_P_First

      Organization findByGtO_C_P_First(long organizationId, long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the first organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?.
      Parameters:
      organizationId - the organization ID
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByGtO_C_P_First

      Organization fetchByGtO_C_P_First(long organizationId, long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator)
      Returns the first organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?.
      Parameters:
      organizationId - the organization ID
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization, or null if a matching organization could not be found
    • findByGtO_C_P_Last

      Organization findByGtO_C_P_Last(long organizationId, long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the last organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?.
      Parameters:
      organizationId - the organization ID
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByGtO_C_P_Last

      Organization fetchByGtO_C_P_Last(long organizationId, long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator)
      Returns the last organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?.
      Parameters:
      organizationId - the organization ID
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization, or null if a matching organization could not be found
    • filterFindByGtO_C_P

      List<Organization> filterFindByGtO_C_P(long organizationId, long companyId, long parentOrganizationId)
      Returns all the organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?.
      Parameters:
      organizationId - the organization ID
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      Returns:
      the matching organizations that the user has permission to view
    • filterFindByGtO_C_P

      List<Organization> filterFindByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end)
      Returns a range of all the organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      organizationId - the organization ID
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations that the user has permission to view
    • filterFindByGtO_C_P

      List<Organization> filterFindByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations that the user has permissions to view where organizationId > ? and companyId = ? and parentOrganizationId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      organizationId - the organization ID
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations that the user has permission to view
    • removeByGtO_C_P

      void removeByGtO_C_P(long organizationId, long companyId, long parentOrganizationId)
      Removes all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ? from the database.
      Parameters:
      organizationId - the organization ID
      companyId - the company ID
      parentOrganizationId - the parent organization ID
    • countByGtO_C_P

      int countByGtO_C_P(long organizationId, long companyId, long parentOrganizationId)
      Returns the number of organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.
      Parameters:
      organizationId - the organization ID
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      Returns:
      the number of matching organizations
    • filterCountByGtO_C_P

      int filterCountByGtO_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 = ?.
      Parameters:
      organizationId - the organization ID
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      Returns:
      the number of matching organizations that the user has permission to view
    • findByC_P_LikeN

      List<Organization> findByC_P_LikeN(long companyId, long parentOrganizationId, String name)
      Returns all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
      Returns:
      the matching organizations
    • findByC_P_LikeN

      List<Organization> findByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end)
      Returns a range of all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations
    • findByC_P_LikeN

      List<Organization> findByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations
    • findByC_P_LikeN

      List<Organization> findByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching organizations
    • findByC_P_LikeN_First

      Organization findByC_P_LikeN_First(long companyId, long parentOrganizationId, String name, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByC_P_LikeN_First

      Organization fetchByC_P_LikeN_First(long companyId, long parentOrganizationId, String name, OrderByComparator<Organization> orderByComparator)
      Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching organization, or null if a matching organization could not be found
    • findByC_P_LikeN_Last

      Organization findByC_P_LikeN_Last(long companyId, long parentOrganizationId, String name, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByC_P_LikeN_Last

      Organization fetchByC_P_LikeN_Last(long companyId, long parentOrganizationId, String name, OrderByComparator<Organization> orderByComparator)
      Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching organization, or null if a matching organization could not be found
    • findByC_P_LikeN_PrevAndNext

      Organization[] findByC_P_LikeN_PrevAndNext(long organizationId, long companyId, long parentOrganizationId, String name, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      Returns the organizations before and after the current organization in the ordered set where companyId = ? and parentOrganizationId = ? and name LIKE ?.
      Parameters:
      organizationId - the primary key of the current organization
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • filterFindByC_P_LikeN

      List<Organization> filterFindByC_P_LikeN(long companyId, long parentOrganizationId, String name)
      Returns all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
      Returns:
      the matching organizations that the user has permission to view
    • filterFindByC_P_LikeN

      List<Organization> filterFindByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end)
      Returns a range of all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of matching organizations that the user has permission to view
    • filterFindByC_P_LikeN

      List<Organization> filterFindByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching organizations that the user has permission to view
    • filterFindByC_P_LikeN_PrevAndNext

      Organization[] filterFindByC_P_LikeN_PrevAndNext(long organizationId, long companyId, long parentOrganizationId, String name, OrderByComparator<Organization> orderByComparator) throws NoSuchOrganizationException
      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 = ? and name LIKE ?.
      Parameters:
      organizationId - the primary key of the current organization
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • removeByC_P_LikeN

      void removeByC_P_LikeN(long companyId, long parentOrganizationId, String name)
      Removes all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ? from the database.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
    • countByC_P_LikeN

      int countByC_P_LikeN(long companyId, long parentOrganizationId, String name)
      Returns the number of organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
      Returns:
      the number of matching organizations
    • filterCountByC_P_LikeN

      int filterCountByC_P_LikeN(long companyId, long parentOrganizationId, String name)
      Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      parentOrganizationId - the parent organization ID
      name - the name
      Returns:
      the number of matching organizations that the user has permission to view
    • findByERC_C

      Organization findByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrganizationException
      Returns the organization where externalReferenceCode = ? and companyId = ? or throws a NoSuchOrganizationException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching organization
      Throws:
      NoSuchOrganizationException - if a matching organization could not be found
    • fetchByERC_C

      Organization fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the organization where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching organization, or null if a matching organization could not be found
    • fetchByERC_C

      Organization fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the organization where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching organization, or null if a matching organization could not be found
    • removeByERC_C

      Organization removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrganizationException
      Removes the organization where externalReferenceCode = ? and companyId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the organization that was removed
      Throws:
      NoSuchOrganizationException
    • countByERC_C

      int countByERC_C(String externalReferenceCode, long companyId)
      Returns the number of organizations where externalReferenceCode = ? and companyId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the number of matching organizations
    • cacheResult

      void cacheResult(Organization organization)
      Caches the organization in the entity cache if it is enabled.
      Parameters:
      organization - the organization
    • cacheResult

      void cacheResult(List<Organization> organizations)
      Caches the organizations in the entity cache if it is enabled.
      Parameters:
      organizations - the organizations
    • create

      Organization create(long organizationId)
      Creates a new organization with the primary key. Does not add the organization to the database.
      Parameters:
      organizationId - the primary key for the new organization
      Returns:
      the new organization
    • remove

      Organization remove(long organizationId) throws NoSuchOrganizationException
      Removes the organization with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      organizationId - the primary key of the organization
      Returns:
      the organization that was removed
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • updateImpl

      Organization updateImpl(Organization organization)
    • findByPrimaryKey

      Organization findByPrimaryKey(long organizationId) throws NoSuchOrganizationException
      Returns the organization with the primary key or throws a NoSuchOrganizationException if it could not be found.
      Parameters:
      organizationId - the primary key of the organization
      Returns:
      the organization
      Throws:
      NoSuchOrganizationException - if a organization with the primary key could not be found
    • fetchByPrimaryKey

      Organization fetchByPrimaryKey(long organizationId)
      Returns the organization with the primary key or returns null if it could not be found.
      Parameters:
      organizationId - the primary key of the organization
      Returns:
      the organization, or null if a organization with the primary key could not be found
    • findAll

      List<Organization> findAll()
      Returns all the organizations.
      Returns:
      the organizations
    • findAll

      List<Organization> findAll(int start, int end)
      Returns a range of all the organizations.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of organizations
    • findAll

      List<Organization> findAll(int start, int end, OrderByComparator<Organization> orderByComparator)
      Returns an ordered range of all the organizations.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of organizations
    • findAll

      List<Organization> findAll(int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the organizations.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of organizations
    • removeAll

      void removeAll()
      Removes all the organizations from the database.
    • countAll

      int countAll()
      Returns the number of organizations.
      Returns:
      the number of organizations
    • getGroupPrimaryKeys

      long[] getGroupPrimaryKeys(long pk)
      Returns the primaryKeys of groups associated with the organization.
      Parameters:
      pk - the primary key of the organization
      Returns:
      long[] of the primaryKeys of groups associated with the organization
    • getGroups

      List<Group> getGroups(long pk)
      Returns all the groups associated with the organization.
      Parameters:
      pk - the primary key of the organization
      Returns:
      the groups associated with the organization
    • getGroups

      List<Group> getGroups(long pk, int start, int end)
      Returns a range of all the groups associated with the organization.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      pk - the primary key of the organization
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of groups associated with the organization
    • getGroups

      List<Group> getGroups(long pk, int start, int end, OrderByComparator<Group> orderByComparator)
      Returns an ordered range of all the groups associated with the organization.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      pk - the primary key of the organization
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of groups associated with the organization
    • getGroupsSize

      int getGroupsSize(long pk)
      Returns the number of groups associated with the organization.
      Parameters:
      pk - the primary key of the organization
      Returns:
      the number of groups associated with the organization
    • containsGroup

      boolean containsGroup(long pk, long groupPK)
      Returns true if the group is associated with the organization.
      Parameters:
      pk - the primary key of the organization
      groupPK - the primary key of the group
      Returns:
      true if the group is associated with the organization; false otherwise
    • containsGroups

      boolean containsGroups(long pk)
      Returns true if the organization has any groups associated with it.
      Parameters:
      pk - the primary key of the organization to check for associations with groups
      Returns:
      true if the organization has any groups associated with it; false otherwise
    • addGroup

      boolean 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.
      Parameters:
      pk - the primary key of the organization
      groupPK - the primary key of the group
      Returns:
      true if an association between the organization and the group was added; false if they were already associated
    • addGroup

      boolean addGroup(long pk, Group group)
      Adds an association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the organization
      group - the group
      Returns:
      true if an association between the organization and the group was added; false if they were already associated
    • addGroups

      boolean 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.
      Parameters:
      pk - the primary key of the organization
      groupPKs - the primary keys of the groups
      Returns:
      true if at least one association between the organization and the groups was added; false if they were all already associated
    • addGroups

      boolean addGroups(long pk, List<Group> groups)
      Adds an association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the organization
      groups - the groups
      Returns:
      true if at least one association between the organization and the groups was added; false if they were all already associated
    • clearGroups

      void clearGroups(long pk)
      Clears all associations between the organization and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the organization to clear the associated groups from
    • removeGroup

      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.
      Parameters:
      pk - the primary key of the organization
      groupPK - the primary key of the group
    • removeGroup

      void removeGroup(long pk, Group group)
      Removes the association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the organization
      group - the group
    • removeGroups

      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.
      Parameters:
      pk - the primary key of the organization
      groupPKs - the primary keys of the groups
    • removeGroups

      void removeGroups(long pk, List<Group> groups)
      Removes the association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the organization
      groups - the groups
    • setGroups

      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.
      Parameters:
      pk - the primary key of the organization
      groupPKs - the primary keys of the groups to be associated with the organization
    • setGroups

      void setGroups(long pk, List<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.
      Parameters:
      pk - the primary key of the organization
      groups - the groups to be associated with the organization
    • getUserPrimaryKeys

      long[] getUserPrimaryKeys(long pk)
      Returns the primaryKeys of users associated with the organization.
      Parameters:
      pk - the primary key of the organization
      Returns:
      long[] of the primaryKeys of users associated with the organization
    • getUsers

      List<User> getUsers(long pk)
      Returns all the users associated with the organization.
      Parameters:
      pk - the primary key of the organization
      Returns:
      the users associated with the organization
    • getUsers

      List<User> getUsers(long pk, int start, int end)
      Returns a range of all the users associated with the organization.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      pk - the primary key of the organization
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      Returns:
      the range of users associated with the organization
    • getUsers

      List<User> getUsers(long pk, int start, int end, OrderByComparator<User> orderByComparator)
      Returns an ordered range of all the users associated with the organization.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from OrganizationModelImpl.

      Parameters:
      pk - the primary key of the organization
      start - the lower bound of the range of organizations
      end - the upper bound of the range of organizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of users associated with the organization
    • getUsersSize

      int getUsersSize(long pk)
      Returns the number of users associated with the organization.
      Parameters:
      pk - the primary key of the organization
      Returns:
      the number of users associated with the organization
    • containsUser

      boolean containsUser(long pk, long userPK)
      Returns true if the user is associated with the organization.
      Parameters:
      pk - the primary key of the organization
      userPK - the primary key of the user
      Returns:
      true if the user is associated with the organization; false otherwise
    • containsUsers

      boolean containsUsers(long pk)
      Returns true if the organization has any users associated with it.
      Parameters:
      pk - the primary key of the organization to check for associations with users
      Returns:
      true if the organization has any users associated with it; false otherwise
    • addUser

      boolean 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.
      Parameters:
      pk - the primary key of the organization
      userPK - the primary key of the user
      Returns:
      true if an association between the organization and the user was added; false if they were already associated
    • addUser

      boolean addUser(long pk, User user)
      Adds an association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the organization
      user - the user
      Returns:
      true if an association between the organization and the user was added; false if they were already associated
    • addUsers

      boolean 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.
      Parameters:
      pk - the primary key of the organization
      userPKs - the primary keys of the users
      Returns:
      true if at least one association between the organization and the users was added; false if they were all already associated
    • addUsers

      boolean addUsers(long pk, List<User> users)
      Adds an association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the organization
      users - the users
      Returns:
      true if at least one association between the organization and the users was added; false if they were all already associated
    • clearUsers

      void clearUsers(long pk)
      Clears all associations between the organization and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the organization to clear the associated users from
    • removeUser

      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.
      Parameters:
      pk - the primary key of the organization
      userPK - the primary key of the user
    • removeUser

      void removeUser(long pk, User user)
      Removes the association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the organization
      user - the user
    • removeUsers

      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.
      Parameters:
      pk - the primary key of the organization
      userPKs - the primary keys of the users
    • removeUsers

      void removeUsers(long pk, List<User> users)
      Removes the association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Parameters:
      pk - the primary key of the organization
      users - the users
    • setUsers

      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.
      Parameters:
      pk - the primary key of the organization
      userPKs - the primary keys of the users to be associated with the organization
    • setUsers

      void setUsers(long pk, List<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.
      Parameters:
      pk - the primary key of the organization
      users - the users to be associated with the organization