Class OrganizationUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
addGroup
(long pk, long groupPK) Adds an association between the organization and the group.static boolean
Adds an association between the organization and the group.static boolean
addGroups
(long pk, long[] groupPKs) Adds an association between the organization and the groups.static boolean
Adds an association between the organization and the groups.static boolean
addUser
(long pk, long userPK) Adds an association between the organization and the user.static boolean
Adds an association between the organization and the user.static boolean
addUsers
(long pk, long[] userPKs) Adds an association between the organization and the users.static boolean
Adds an association between the organization and the users.static void
cacheResult
(Organization organization) Caches the organization in the entity cache if it is enabled.static void
cacheResult
(List<Organization> organizations) Caches the organizations in the entity cache if it is enabled.static void
static void
clearCache
(Organization organization) static void
clearGroups
(long pk) Clears all associations between the organization and its groups.static void
clearUsers
(long pk) Clears all associations between the organization and its users.static boolean
containsGroup
(long pk, long groupPK) Returnstrue
if the group is associated with the organization.static boolean
containsGroups
(long pk) Returnstrue
if the organization has any groups associated with it.static boolean
containsUser
(long pk, long userPK) Returnstrue
if the user is associated with the organization.static boolean
containsUsers
(long pk) Returnstrue
if the organization has any users associated with it.static int
countAll()
Returns the number of organizations.static int
countByC_LikeN
(long companyId, String name) Returns the number of organizations where companyId = ? and name LIKE ?.static int
countByC_LikeT
(long companyId, String treePath) Returns the number of organizations where companyId = ? and treePath LIKE ?.static int
countByC_N
(long companyId, String name) Returns the number of organizations where companyId = ? and name = ?.static int
countByC_P
(long companyId, long parentOrganizationId) Returns the number of organizations where companyId = ? and parentOrganizationId = ?.static int
countByC_P_LikeN
(long companyId, long parentOrganizationId, String name) Returns the number of organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.static int
countByCompanyId
(long companyId) Returns the number of organizations where companyId = ?.static int
countByCompanyIdLocations
(long companyId) Returns the number of organizations where companyId = ?.static int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of organizations where externalReferenceCode = ? and companyId = ?.static int
countByGtO_C_P
(long organizationId, long companyId, long parentOrganizationId) Returns the number of organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.static int
countByUuid
(String uuid) Returns the number of organizations where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of organizations where uuid = ? and companyId = ?.static long
countWithDynamicQuery
(DynamicQuery dynamicQuery) static Organization
create
(long organizationId) Creates a new organization with the primary key.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 ?.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 ?.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 ?.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 ?.static Organization
fetchByC_N
(long companyId, String name) Returns the organization where companyId = ? and name = ? or returnsnull
if it could not be found.static Organization
fetchByC_N
(long companyId, String name, boolean useFinderCache) Returns the organization where companyId = ? and name = ? or returnsnull
if it could not be found, optionally using the finder cache.static Organization
fetchByC_P_First
(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?.static Organization
fetchByC_P_Last
(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?.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 ?.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 ?.static Organization
fetchByCompanyId_First
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.static Organization
fetchByCompanyId_Last
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ?.static Organization
fetchByCompanyIdLocations_First
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.static Organization
fetchByCompanyIdLocations_Last
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ?.static Organization
fetchByERC_C
(String externalReferenceCode, long companyId) Returns the organization where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.static Organization
fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the organization where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.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 = ?.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 = ?.static Organization
fetchByPrimaryKey
(long organizationId) Returns the organization with the primary key or returnsnull
if it could not be found.static Map<Serializable,
Organization> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static Organization
fetchByUuid_C_First
(String uuid, long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ? and companyId = ?.static Organization
fetchByUuid_C_Last
(String uuid, long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where uuid = ? and companyId = ?.static Organization
fetchByUuid_First
(String uuid, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ?.static Organization
fetchByUuid_Last
(String uuid, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where uuid = ?.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 ?.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 ?.static int
filterCountByC_P
(long companyId, long parentOrganizationId) Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.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 ?.static int
filterCountByCompanyId
(long companyId) Returns the number of organizations that the user has permission to view where companyId = ?.static int
filterCountByCompanyIdLocations
(long companyId) Returns the number of organizations that the user has permission to view where companyId = ?.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 = ?.static int
filterCountByUuid
(String uuid) Returns the number of organizations that the user has permission to view where uuid = ?.static int
filterCountByUuid_C
(String uuid, long companyId) Returns the number of organizations that the user has permission to view where uuid = ? and companyId = ?.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 ?.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 ?.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 ?.static Organization[]
filterFindByC_LikeN_PrevAndNext
(long organizationId, long companyId, String name, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ? and name LIKE ?.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 ?.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 ?.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 ?.static Organization[]
filterFindByC_LikeT_PrevAndNext
(long organizationId, long companyId, String treePath, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ? and treePath LIKE ?.static List<Organization>
filterFindByC_P
(long companyId, long parentOrganizationId) Returns all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.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 = ?.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 = ?.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 ?.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 ?.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 ?.static Organization[]
filterFindByC_P_LikeN_PrevAndNext
(long organizationId, long companyId, long parentOrganizationId, String name, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.static Organization[]
filterFindByC_P_PrevAndNext
(long organizationId, long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.static List<Organization>
filterFindByCompanyId
(long companyId) Returns all the organizations that the user has permission to view where companyId = ?.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 = ?.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 = ?.static Organization[]
filterFindByCompanyId_PrevAndNext
(long organizationId, long companyId, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?.static List<Organization>
filterFindByCompanyIdLocations
(long companyId) Returns all the organizations that the user has permission to view where companyId = ?.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 = ?.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 = ?.static Organization[]
filterFindByCompanyIdLocations_PrevAndNext
(long organizationId, long companyId, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?.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 = ?.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 = ?.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 = ?.static List<Organization>
filterFindByUuid
(String uuid) Returns all the organizations that the user has permission to view where uuid = ?.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 = ?.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 = ?.static List<Organization>
filterFindByUuid_C
(String uuid, long companyId) Returns all the organizations that the user has permission to view where uuid = ? and companyId = ?.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 = ?.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 = ?.static Organization[]
filterFindByUuid_C_PrevAndNext
(long organizationId, String uuid, long companyId, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where uuid = ? and companyId = ?.static Organization[]
filterFindByUuid_PrevAndNext
(long organizationId, String uuid, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where uuid = ?.static List<Organization>
findAll()
Returns all the organizations.static List<Organization>
findAll
(int start, int end) Returns a range of all the organizations.static List<Organization>
findAll
(int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations.static List<Organization>
findAll
(int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations.static List<Organization>
findByC_LikeN
(long companyId, String name) Returns all the organizations where companyId = ? and name LIKE ?.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 ?.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 ?.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 ?.static Organization
findByC_LikeN_First
(long companyId, String name, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and name LIKE ?.static Organization
findByC_LikeN_Last
(long companyId, String name, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and name LIKE ?.static Organization[]
findByC_LikeN_PrevAndNext
(long organizationId, long companyId, String name, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set where companyId = ? and name LIKE ?.static List<Organization>
findByC_LikeT
(long companyId, String treePath) Returns all the organizations where companyId = ? and treePath LIKE ?.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 ?.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 ?.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 ?.static Organization
findByC_LikeT_First
(long companyId, String treePath, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?.static Organization
findByC_LikeT_Last
(long companyId, String treePath, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and treePath LIKE ?.static Organization[]
findByC_LikeT_PrevAndNext
(long organizationId, long companyId, String treePath, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set where companyId = ? and treePath LIKE ?.static Organization
Returns the organization where companyId = ? and name = ? or throws aNoSuchOrganizationException
if it could not be found.static List<Organization>
findByC_P
(long companyId, long parentOrganizationId) Returns all the organizations where companyId = ? and parentOrganizationId = ?.static List<Organization>
findByC_P
(long companyId, long parentOrganizationId, int start, int end) Returns a range of all the organizations where companyId = ? and parentOrganizationId = ?.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 = ?.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 = ?.static Organization
findByC_P_First
(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?.static Organization
findByC_P_Last
(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?.static List<Organization>
findByC_P_LikeN
(long companyId, long parentOrganizationId, String name) Returns all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.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 ?.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 ?.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 ?.static Organization
findByC_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 ?.static Organization
findByC_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 ?.static Organization[]
findByC_P_LikeN_PrevAndNext
(long organizationId, long companyId, long parentOrganizationId, String name, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set where companyId = ? and parentOrganizationId = ? and name LIKE ?.static Organization[]
findByC_P_PrevAndNext
(long organizationId, long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set where companyId = ? and parentOrganizationId = ?.static List<Organization>
findByCompanyId
(long companyId) Returns all the organizations where companyId = ?.static List<Organization>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the organizations where companyId = ?.static List<Organization>
findByCompanyId
(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ?.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 = ?.static Organization
findByCompanyId_First
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.static Organization
findByCompanyId_Last
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ?.static Organization[]
findByCompanyId_PrevAndNext
(long organizationId, long companyId, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set where companyId = ?.static List<Organization>
findByCompanyIdLocations
(long companyId) Returns all the organizations where companyId = ?.static List<Organization>
findByCompanyIdLocations
(long companyId, int start, int end) Returns a range of all the organizations where companyId = ?.static List<Organization>
findByCompanyIdLocations
(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ?.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 = ?.static Organization
findByCompanyIdLocations_First
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.static Organization
findByCompanyIdLocations_Last
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ?.static Organization[]
findByCompanyIdLocations_PrevAndNext
(long organizationId, long companyId, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set where companyId = ?.static Organization
findByERC_C
(String externalReferenceCode, long companyId) Returns the organization where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrganizationException
if it could not be found.static List<Organization>
findByGtO_C_P
(long organizationId, long companyId, long parentOrganizationId) Returns all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.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 = ?.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 = ?.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 = ?.static Organization
findByGtO_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 = ?.static Organization
findByGtO_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 = ?.static Organization
findByPrimaryKey
(long organizationId) Returns the organization with the primary key or throws aNoSuchOrganizationException
if it could not be found.static List<Organization>
findByUuid
(String uuid) Returns all the organizations where uuid = ?.static List<Organization>
findByUuid
(String uuid, int start, int end) Returns a range of all the organizations where uuid = ?.static List<Organization>
findByUuid
(String uuid, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations where uuid = ?.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 = ?.static List<Organization>
findByUuid_C
(String uuid, long companyId) Returns all the organizations where uuid = ? and companyId = ?.static List<Organization>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the organizations where uuid = ? and companyId = ?.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 = ?.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 = ?.static Organization
findByUuid_C_First
(String uuid, long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ? and companyId = ?.static Organization
findByUuid_C_Last
(String uuid, long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where uuid = ? and companyId = ?.static Organization[]
findByUuid_C_PrevAndNext
(long organizationId, String uuid, long companyId, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set where uuid = ? and companyId = ?.static Organization
findByUuid_First
(String uuid, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ?.static Organization
findByUuid_Last
(String uuid, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where uuid = ?.static Organization[]
findByUuid_PrevAndNext
(long organizationId, String uuid, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set where uuid = ?.static List<Organization>
findWithDynamicQuery
(DynamicQuery dynamicQuery) static List<Organization>
findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end) static List<Organization>
findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<Organization> orderByComparator) static long[]
getGroupPrimaryKeys
(long pk) Returns the primaryKeys of groups associated with the organization.getGroups
(long pk) Returns all the groups associated with the organization.getGroups
(long pk, int start, int end) Returns a range of all the groups associated with the organization.getGroups
(long pk, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups associated with the organization.static int
getGroupsSize
(long pk) Returns the number of groups associated with the organization.static OrganizationPersistence
static long[]
getUserPrimaryKeys
(long pk) Returns the primaryKeys of users associated with the organization.getUsers
(long pk) Returns all the users associated with the organization.getUsers
(long pk, int start, int end) Returns a range of all the users associated with the organization.getUsers
(long pk, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users associated with the organization.static int
getUsersSize
(long pk) Returns the number of users associated with the organization.static Organization
remove
(long organizationId) Removes the organization with the primary key from the database.static void
Removes all the organizations from the database.static void
removeByC_LikeN
(long companyId, String name) Removes all the organizations where companyId = ? and name LIKE ? from the database.static void
removeByC_LikeT
(long companyId, String treePath) Removes all the organizations where companyId = ? and treePath LIKE ? from the database.static Organization
removeByC_N
(long companyId, String name) Removes the organization where companyId = ? and name = ? from the database.static void
removeByC_P
(long companyId, long parentOrganizationId) Removes all the organizations where companyId = ? and parentOrganizationId = ? from the database.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.static void
removeByCompanyId
(long companyId) Removes all the organizations where companyId = ? from the database.static void
removeByCompanyIdLocations
(long companyId) Removes all the organizations where companyId = ? from the database.static Organization
removeByERC_C
(String externalReferenceCode, long companyId) Removes the organization where externalReferenceCode = ? and companyId = ? from the database.static void
removeByGtO_C_P
(long organizationId, long companyId, long parentOrganizationId) Removes all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ? from the database.static void
removeByUuid
(String uuid) Removes all the organizations where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the organizations where uuid = ? and companyId = ? from the database.static void
removeGroup
(long pk, long groupPK) Removes the association between the organization and the group.static void
removeGroup
(long pk, Group group) Removes the association between the organization and the group.static void
removeGroups
(long pk, long[] groupPKs) Removes the association between the organization and the groups.static void
removeGroups
(long pk, List<Group> groups) Removes the association between the organization and the groups.static void
removeUser
(long pk, long userPK) Removes the association between the organization and the user.static void
removeUser
(long pk, User user) Removes the association between the organization and the user.static void
removeUsers
(long pk, long[] userPKs) Removes the association between the organization and the users.static void
removeUsers
(long pk, List<User> users) Removes the association between the organization and the users.static void
setGroups
(long pk, long[] groupPKs) Sets the groups associated with the organization, removing and adding associations as necessary.static void
Sets the groups associated with the organization, removing and adding associations as necessary.static void
setPersistence
(OrganizationPersistence persistence) static void
setUsers
(long pk, long[] userPKs) Sets the users associated with the organization, removing and adding associations as necessary.static void
Sets the users associated with the organization, removing and adding associations as necessary.static Organization
update
(Organization organization) static Organization
update
(Organization organization, ServiceContext serviceContext) static Organization
updateImpl
(Organization organization)
-
Constructor Details
-
OrganizationUtil
public OrganizationUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<Organization> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) -
findWithDynamicQuery
public static List<Organization> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<Organization> orderByComparator) -
update
-
update
-
findByUuid
Returns all the organizations where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching organizations
-
findByUuid
Returns a range of all the organizations where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 organizationuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
filterFindByUuid
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
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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 organizationuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
removeByUuid
Removes all the organizations where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of organizations where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching organizations
-
filterCountByUuid
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
Returns all the organizations where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching organizations
-
findByUuid_C
Returns a range of all the organizations where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 organizationuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
filterFindByUuid_C
Returns all the organizations that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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 organizationuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
removeByUuid_C
Removes all the organizations where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of organizations where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching organizations
-
filterCountByUuid_C
Returns the number of organizations that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching organizations that the user has permission to view
-
findByCompanyId
Returns all the organizations where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching organizations
-
findByCompanyId
Returns a range of all the organizations where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 organizationcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
filterFindByCompanyId
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
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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 organizationcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
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
Returns all the organizations where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching organizations
-
findByCompanyIdLocations
Returns a range of all the organizations where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 organizationcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
filterFindByCompanyIdLocations
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
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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 organizationcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
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
Returns all the organizations where companyId = ? and parentOrganizationId = ?.- Parameters:
companyId
- the company IDparentOrganizationId
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 IDparentOrganizationId
- the parent organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 IDparentOrganizationId
- the parent organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDparentOrganizationId
- the parent organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 IDparentOrganizationId
- the parent organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 organizationcompanyId
- the company IDparentOrganizationId
- the parent organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
filterFindByC_P
Returns all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.- Parameters:
companyId
- the company IDparentOrganizationId
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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 organizationcompanyId
- the company IDparentOrganizationId
- the parent organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
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 IDparentOrganizationId
- 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 IDparentOrganizationId
- 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 IDparentOrganizationId
- the parent organization ID- Returns:
- the number of matching organizations that the user has permission to view
-
findByC_LikeT
Returns all the organizations where companyId = ? and treePath LIKE ?.- Parameters:
companyId
- the company IDtreePath
- the tree path- Returns:
- the matching organizations
-
findByC_LikeT
Returns a range of all the organizations where companyId = ? and treePath LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDtreePath
- the tree pathstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDtreePath
- the tree pathstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDtreePath
- the tree pathstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 IDtreePath
- the tree pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 IDtreePath
- the tree pathorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDtreePath
- the tree pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 IDtreePath
- the tree pathorderByComparator
- the comparator to order the set by (optionallynull
)- 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 organizationcompanyId
- the company IDtreePath
- the tree pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
filterFindByC_LikeT
Returns all the organizations that the user has permission to view where companyId = ? and treePath LIKE ?.- Parameters:
companyId
- the company IDtreePath
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDtreePath
- the tree pathstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDtreePath
- the tree pathstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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 organizationcompanyId
- the company IDtreePath
- the tree pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
removeByC_LikeT
Removes all the organizations where companyId = ? and treePath LIKE ? from the database.- Parameters:
companyId
- the company IDtreePath
- the tree path
-
countByC_LikeT
Returns the number of organizations where companyId = ? and treePath LIKE ?.- Parameters:
companyId
- the company IDtreePath
- the tree path- Returns:
- the number of matching organizations
-
filterCountByC_LikeT
Returns the number of organizations that the user has permission to view where companyId = ? and treePath LIKE ?.- Parameters:
companyId
- the company IDtreePath
- 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 aNoSuchOrganizationException
if it could not be found.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
fetchByC_N
Returns the organization where companyId = ? and name = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the matching organization, or
null
if a matching organization could not be found
-
fetchByC_N
Returns the organization where companyId = ? and name = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDname
- the nameuseFinderCache
- 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 IDname
- the name- Returns:
- the organization that was removed
- Throws:
NoSuchOrganizationException
-
countByC_N
Returns the number of organizations where companyId = ? and name = ?.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the number of matching organizations
-
findByC_LikeN
Returns all the organizations where companyId = ? and name LIKE ?.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the matching organizations
-
findByC_LikeN
Returns a range of all the organizations where companyId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDname
- the namestart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- 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 organizationcompanyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
filterFindByC_LikeN
Returns all the organizations that the user has permission to view where companyId = ? and name LIKE ?.- Parameters:
companyId
- the company IDname
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDname
- the namestart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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 organizationcompanyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
removeByC_LikeN
Removes all the organizations where companyId = ? and name LIKE ? from the database.- Parameters:
companyId
- the company IDname
- the name
-
countByC_LikeN
Returns the number of organizations where companyId = ? and name LIKE ?.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the number of matching organizations
-
filterCountByC_LikeN
Returns the number of organizations that the user has permission to view where companyId = ? and name LIKE ?.- Parameters:
companyId
- the company IDname
- 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 IDcompanyId
- the company IDparentOrganizationId
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
organizationId
- the organization IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
organizationId
- the organization IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
organizationId
- the organization IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDcompanyId
- the company IDparentOrganizationId
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
organizationId
- the organization IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
organizationId
- the organization IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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 IDcompanyId
- the company IDparentOrganizationId
- 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 IDcompanyId
- the company IDparentOrganizationId
- 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 IDcompanyId
- the company IDparentOrganizationId
- 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 IDparentOrganizationId
- the parent organization IDname
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDname
- the namestart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 IDparentOrganizationId
- the parent organization IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 IDparentOrganizationId
- the parent organization IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDparentOrganizationId
- the parent organization IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
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 IDparentOrganizationId
- the parent organization IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- 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 organizationcompanyId
- the company IDparentOrganizationId
- the parent organization IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
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 IDparentOrganizationId
- the parent organization IDname
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDname
- the namestart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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 organizationcompanyId
- the company IDparentOrganizationId
- the parent organization IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be foundNoSuchOrganizationException
-
removeByC_P_LikeN
Removes all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ? from the database.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDname
- the name
-
countByC_P_LikeN
Returns the number of organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDname
- the name- Returns:
- the number of matching organizations
-
filterCountByC_P_LikeN
Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDname
- 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 aNoSuchOrganizationException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be foundNoSuchOrganizationException
-
fetchByERC_C
Returns the organization where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- 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 returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- 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 codecompanyId
- the company ID- Returns:
- the organization that was removed
- Throws:
NoSuchOrganizationException
-
countByERC_C
Returns the number of organizations where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching organizations
-
cacheResult
Caches the organization in the entity cache if it is enabled.- Parameters:
organization
- the organization
-
cacheResult
Caches the organizations in the entity cache if it is enabled.- Parameters:
organizations
- the organizations
-
create
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
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 foundNoSuchOrganizationException
-
updateImpl
-
findByPrimaryKey
Returns the organization with the primary key or throws aNoSuchOrganizationException
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 foundNoSuchOrganizationException
-
fetchByPrimaryKey
Returns the organization with the primary key or returnsnull
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
Returns all the organizations.- Returns:
- the organizations
-
findAll
Returns a range of all the organizations.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
start
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
start
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
start
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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
Returns all the groups associated with the organization.- Parameters:
pk
- the primary key of the organization- Returns:
- the groups associated with the organization
-
getGroups
Returns a range of all the groups associated with the organization.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
pk
- the primary key of the organizationstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
pk
- the primary key of the organizationstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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) Returnstrue
if the group is associated with the organization.- Parameters:
pk
- the primary key of the organizationgroupPK
- 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) Returnstrue
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 organizationgroupPK
- 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
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 organizationgroup
- 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 organizationgroupPKs
- 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
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 organizationgroups
- 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 organizationgroupPK
- the primary key of the group
-
removeGroup
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 organizationgroup
- 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 organizationgroupPKs
- the primary keys of the groups
-
removeGroups
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 organizationgroups
- 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 organizationgroupPKs
- the primary keys of the groups to be associated with the organization
-
setGroups
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 organizationgroups
- 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
Returns all the users associated with the organization.- Parameters:
pk
- the primary key of the organization- Returns:
- the users associated with the organization
-
getUsers
Returns a range of all the users associated with the organization.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
pk
- the primary key of the organizationstart
- the lower bound of the range of organizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
pk
- the primary key of the organizationstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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) Returnstrue
if the user is associated with the organization.- Parameters:
pk
- the primary key of the organizationuserPK
- 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) Returnstrue
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 organizationuserPK
- 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
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 organizationuser
- 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 organizationuserPKs
- 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
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 organizationusers
- 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 organizationuserPK
- the primary key of the user
-
removeUser
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 organizationuser
- 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 organizationuserPKs
- the primary keys of the users
-
removeUsers
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 organizationusers
- 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 organizationuserPKs
- the primary keys of the users to be associated with the organization
-
setUsers
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 organizationusers
- the users to be associated with the organization
-
getPersistence
-
setPersistence
-