Class OrganizationUtil

Object
com.liferay.portal.kernel.service.persistence.OrganizationUtil

public class OrganizationUtil extends Object
The persistence utility for the organization service. This utility wraps com.liferay.portal.service.persistence.impl.OrganizationPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

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

    • OrganizationUtil

      public OrganizationUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
    • clearCache

      public static void clearCache(Organization organization)
      See Also:
    • countWithDynamicQuery

      public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • fetchByPrimaryKeys

      public static Map<Serializable,Organization> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
    • findWithDynamicQuery

      public static List<Organization> findWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • findWithDynamicQuery

      public static List<Organization> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
      See Also:
    • findWithDynamicQuery

      public static List<Organization> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<Organization> orderByComparator)
      See Also:
    • update

      public static Organization update(Organization organization)
      See Also:
    • update

      public static Organization update(Organization organization, ServiceContext serviceContext)
      See Also:
    • findByUuid

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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByUuid_First

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByUuid_Last

      public static 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

      public static 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
      NoSuchOrganizationException
    • filterFindByUuid

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • removeByUuid

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

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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByUuid_C_First

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByUuid_C_Last

      public static 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

      public static 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
      NoSuchOrganizationException
    • filterFindByUuid_C

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • removeByUuid_C

      public static 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

      public static 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

      public static 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

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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByCompanyId_First

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByCompanyId_Last

      public static 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

      public static 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
      NoSuchOrganizationException
    • filterFindByCompanyId

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • removeByCompanyId

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

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

      public static 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

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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByCompanyIdLocations_First

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByCompanyIdLocations_Last

      public static 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

      public static 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
      NoSuchOrganizationException
    • filterFindByCompanyIdLocations

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • removeByCompanyIdLocations

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

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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByC_P_First

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByC_P_Last

      public static 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

      public static 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
      NoSuchOrganizationException
    • filterFindByC_P

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • removeByC_P

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByC_LikeT_First

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByC_LikeT_Last

      public static 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

      public static 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
      NoSuchOrganizationException
    • filterFindByC_LikeT

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • removeByC_LikeT

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByC_N

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByC_LikeN_First

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByC_LikeN_Last

      public static 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

      public static 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
      NoSuchOrganizationException
    • filterFindByC_LikeN

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • removeByC_LikeN

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByGtO_C_P_First

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByGtO_C_P_Last

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByC_P_LikeN_First

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByC_P_LikeN_Last

      public static 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

      public static 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
      NoSuchOrganizationException
    • filterFindByC_P_LikeN

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • removeByC_P_LikeN

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchOrganizationException
    • fetchByERC_C

      public static 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

      public static 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

      public static 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

      public static 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

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

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

      public static 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

      public static 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
      NoSuchOrganizationException
    • updateImpl

      public static Organization updateImpl(Organization organization)
    • findByPrimaryKey

      public static 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
      NoSuchOrganizationException
    • fetchByPrimaryKey

      public static 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

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

      public static 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

      public static 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

      public static 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

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

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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
    • getPersistence

      public static OrganizationPersistence getPersistence()
    • setPersistence

      public static void setPersistence(OrganizationPersistence persistence)