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 booleanaddGroup(long pk, long groupPK) Adds an association between the organization and the group.static booleanAdds an association between the organization and the group.static booleanaddGroups(long pk, long[] groupPKs) Adds an association between the organization and the groups.static booleanAdds an association between the organization and the groups.static booleanaddUser(long pk, long userPK) Adds an association between the organization and the user.static booleanAdds an association between the organization and the user.static booleanaddUsers(long pk, long[] userPKs) Adds an association between the organization and the users.static booleanAdds an association between the organization and the users.static voidcacheResult(Organization organization) Caches the organization in the entity cache if it is enabled.static voidcacheResult(List<Organization> organizations) Caches the organizations in the entity cache if it is enabled.static voidstatic voidclearCache(Organization organization) static voidclearGroups(long pk) Clears all associations between the organization and its groups.static voidclearUsers(long pk) Clears all associations between the organization and its users.static booleancontainsGroup(long pk, long groupPK) Returnstrueif the group is associated with the organization.static booleancontainsGroups(long pk) Returnstrueif the organization has any groups associated with it.static booleancontainsUser(long pk, long userPK) Returnstrueif the user is associated with the organization.static booleancontainsUsers(long pk) Returnstrueif the organization has any users associated with it.static intcountAll()Returns the number of organizations.static intcountByC_LikeN(long companyId, String name) Returns the number of organizations where companyId = ? and name LIKE ?.static intcountByC_LikeT(long companyId, String treePath) Returns the number of organizations where companyId = ? and treePath LIKE ?.static intcountByC_N(long companyId, String name) Returns the number of organizations where companyId = ? and name = ?.static intcountByC_P(long companyId, long parentOrganizationId) Returns the number of organizations where companyId = ? and parentOrganizationId = ?.static intcountByC_P_LikeN(long companyId, long parentOrganizationId, String name) Returns the number of organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.static intcountByCompanyId(long companyId) Returns the number of organizations where companyId = ?.static intcountByCompanyIdLocations(long companyId) Returns the number of organizations where companyId = ?.static intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of organizations where externalReferenceCode = ? and companyId = ?.static intcountByGtO_C_P(long organizationId, long companyId, long parentOrganizationId) Returns the number of organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.static intcountByUuid(String uuid) Returns the number of organizations where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of organizations where uuid = ? and companyId = ?.static longcountWithDynamicQuery(DynamicQuery dynamicQuery) static Organizationcreate(long organizationId) Creates a new organization with the primary key.static OrganizationfetchByC_LikeN_First(long companyId, String name, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and name LIKE ?.static OrganizationfetchByC_LikeN_Last(long companyId, String name, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and name LIKE ?.static OrganizationfetchByC_LikeT_First(long companyId, String treePath, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?.static OrganizationfetchByC_LikeT_Last(long companyId, String treePath, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and treePath LIKE ?.static OrganizationfetchByC_N(long companyId, String name) Returns the organization where companyId = ? and name = ? or returnsnullif it could not be found.static OrganizationfetchByC_N(long companyId, String name, boolean useFinderCache) Returns the organization where companyId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.static OrganizationfetchByC_P_First(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?.static OrganizationfetchByC_P_Last(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?.static OrganizationfetchByC_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 OrganizationfetchByC_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 OrganizationfetchByCompanyId_First(long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.static OrganizationfetchByCompanyId_Last(long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ?.static OrganizationfetchByCompanyIdLocations_First(long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.static OrganizationfetchByCompanyIdLocations_Last(long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ?.static OrganizationfetchByERC_C(String externalReferenceCode, long companyId) Returns the organization where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.static OrganizationfetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the organization where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.static OrganizationfetchByGtO_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 OrganizationfetchByGtO_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 OrganizationfetchByPrimaryKey(long organizationId) Returns the organization with the primary key or returnsnullif it could not be found.static Map<Serializable,Organization> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static OrganizationfetchByUuid_C_First(String uuid, long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ? and companyId = ?.static OrganizationfetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where uuid = ? and companyId = ?.static OrganizationfetchByUuid_First(String uuid, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ?.static OrganizationfetchByUuid_Last(String uuid, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where uuid = ?.static intfilterCountByC_LikeN(long companyId, String name) Returns the number of organizations that the user has permission to view where companyId = ? and name LIKE ?.static intfilterCountByC_LikeT(long companyId, String treePath) Returns the number of organizations that the user has permission to view where companyId = ? and treePath LIKE ?.static intfilterCountByC_P(long companyId, long parentOrganizationId) Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.static intfilterCountByC_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 intfilterCountByCompanyId(long companyId) Returns the number of organizations that the user has permission to view where companyId = ?.static intfilterCountByCompanyIdLocations(long companyId) Returns the number of organizations that the user has permission to view where companyId = ?.static intfilterCountByGtO_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 intfilterCountByUuid(String uuid) Returns the number of organizations that the user has permission to view where uuid = ?.static intfilterCountByUuid_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 OrganizationfindByC_LikeN_First(long companyId, String name, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and name LIKE ?.static OrganizationfindByC_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 OrganizationfindByC_LikeT_First(long companyId, String treePath, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?.static OrganizationfindByC_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 OrganizationReturns the organization where companyId = ? and name = ? or throws aNoSuchOrganizationExceptionif 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 OrganizationfindByC_P_First(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?.static OrganizationfindByC_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 OrganizationfindByC_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 OrganizationfindByC_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 OrganizationfindByCompanyId_First(long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.static OrganizationfindByCompanyId_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 OrganizationfindByCompanyIdLocations_First(long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.static OrganizationfindByCompanyIdLocations_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 OrganizationfindByERC_C(String externalReferenceCode, long companyId) Returns the organization where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrganizationExceptionif 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 OrganizationfindByGtO_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 OrganizationfindByGtO_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 OrganizationfindByPrimaryKey(long organizationId) Returns the organization with the primary key or throws aNoSuchOrganizationExceptionif 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 OrganizationfindByUuid_C_First(String uuid, long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ? and companyId = ?.static OrganizationfindByUuid_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 OrganizationfindByUuid_First(String uuid, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ?.static OrganizationfindByUuid_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 intgetGroupsSize(long pk) Returns the number of groups associated with the organization.static OrganizationPersistencestatic 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 intgetUsersSize(long pk) Returns the number of users associated with the organization.static Organizationremove(long organizationId) Removes the organization with the primary key from the database.static voidRemoves all the organizations from the database.static voidremoveByC_LikeN(long companyId, String name) Removes all the organizations where companyId = ? and name LIKE ? from the database.static voidremoveByC_LikeT(long companyId, String treePath) Removes all the organizations where companyId = ? and treePath LIKE ? from the database.static OrganizationremoveByC_N(long companyId, String name) Removes the organization where companyId = ? and name = ? from the database.static voidremoveByC_P(long companyId, long parentOrganizationId) Removes all the organizations where companyId = ? and parentOrganizationId = ? from the database.static voidremoveByC_P_LikeN(long companyId, long parentOrganizationId, String name) Removes all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ? from the database.static voidremoveByCompanyId(long companyId) Removes all the organizations where companyId = ? from the database.static voidremoveByCompanyIdLocations(long companyId) Removes all the organizations where companyId = ? from the database.static OrganizationremoveByERC_C(String externalReferenceCode, long companyId) Removes the organization where externalReferenceCode = ? and companyId = ? from the database.static voidremoveByGtO_C_P(long organizationId, long companyId, long parentOrganizationId) Removes all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ? from the database.static voidremoveByUuid(String uuid) Removes all the organizations where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the organizations where uuid = ? and companyId = ? from the database.static voidremoveGroup(long pk, long groupPK) Removes the association between the organization and the group.static voidremoveGroup(long pk, Group group) Removes the association between the organization and the group.static voidremoveGroups(long pk, long[] groupPKs) Removes the association between the organization and the groups.static voidremoveGroups(long pk, List<Group> groups) Removes the association between the organization and the groups.static voidremoveUser(long pk, long userPK) Removes the association between the organization and the user.static voidremoveUser(long pk, User user) Removes the association between the organization and the user.static voidremoveUsers(long pk, long[] userPKs) Removes the association between the organization and the users.static voidremoveUsers(long pk, List<User> users) Removes the association between the organization and the users.static voidsetGroups(long pk, long[] groupPKs) Sets the groups associated with the organization, removing and adding associations as necessary.static voidSets the groups associated with the organization, removing and adding associations as necessary.static voidsetPersistence(OrganizationPersistence persistence) static voidsetUsers(long pk, long[] userPKs) Sets the users associated with the organization, removing and adding associations as necessary.static voidSets the users associated with the organization, removing and adding associations as necessary.static Organizationupdate(Organization organization) static Organizationupdate(Organization organization, ServiceContext serviceContext) static OrganizationupdateImpl(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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
nullif 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
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
nullif 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
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
nullif 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
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
nullif 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
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
nullif 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
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
nullif 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
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 aNoSuchOrganizationExceptionif 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 returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDname- the name- Returns:
- the matching organization, or
nullif a matching organization could not be found
-
fetchByC_N
Returns the organization where companyId = ? and name = ? or returnsnullif 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
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
nullif 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
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
nullif 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
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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
nullif 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
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 aNoSuchOrganizationExceptionif 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 returnsnullif it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching organization, or
nullif 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 returnsnullif 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
nullif 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 aNoSuchOrganizationExceptionif 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 returnsnullif it could not be found.- Parameters:
organizationId- the primary key of the organization- Returns:
- the organization, or
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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) Returnstrueif the group is associated with the organization.- Parameters:
pk- the primary key of the organizationgroupPK- the primary key of the group- Returns:
trueif the group is associated with the organization;falseotherwise
-
containsGroups
public static boolean containsGroups(long pk) Returnstrueif the organization has any groups associated with it.- Parameters:
pk- the primary key of the organization to check for associations with groups- Returns:
trueif the organization has any groups associated with it;falseotherwise
-
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:
trueif an association between the organization and the group was added;falseif 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:
trueif an association between the organization and the group was added;falseif 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:
trueif at least one association between the organization and the groups was added;falseif 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:
trueif at least one association between the organization and the groups was added;falseif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris 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) Returnstrueif the user is associated with the organization.- Parameters:
pk- the primary key of the organizationuserPK- the primary key of the user- Returns:
trueif the user is associated with the organization;falseotherwise
-
containsUsers
public static boolean containsUsers(long pk) Returnstrueif the organization has any users associated with it.- Parameters:
pk- the primary key of the organization to check for associations with users- Returns:
trueif the organization has any users associated with it;falseotherwise
-
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:
trueif an association between the organization and the user was added;falseif 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:
trueif an association between the organization and the user was added;falseif 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:
trueif at least one association between the organization and the users was added;falseif 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:
trueif at least one association between the organization and the users was added;falseif 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
-