Interface OrganizationPersistence
- All Superinterfaces:
BasePersistence<Organization>
,CTPersistence<Organization>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addGroup
(long pk, long groupPK) Adds an association between the organization and the group.boolean
Adds an association between the organization and the group.boolean
addGroups
(long pk, long[] groupPKs) Adds an association between the organization and the groups.boolean
Adds an association between the organization and the groups.boolean
addUser
(long pk, long userPK) Adds an association between the organization and the user.boolean
Adds an association between the organization and the user.boolean
addUsers
(long pk, long[] userPKs) Adds an association between the organization and the users.boolean
Adds an association between the organization and the users.void
cacheResult
(Organization organization) Caches the organization in the entity cache if it is enabled.void
cacheResult
(List<Organization> organizations) Caches the organizations in the entity cache if it is enabled.void
clearGroups
(long pk) Clears all associations between the organization and its groups.void
clearUsers
(long pk) Clears all associations between the organization and its users.boolean
containsGroup
(long pk, long groupPK) Returnstrue
if the group is associated with the organization.boolean
containsGroups
(long pk) Returnstrue
if the organization has any groups associated with it.boolean
containsUser
(long pk, long userPK) Returnstrue
if the user is associated with the organization.boolean
containsUsers
(long pk) Returnstrue
if the organization has any users associated with it.int
countAll()
Returns the number of organizations.int
countByC_LikeN
(long companyId, String name) Returns the number of organizations where companyId = ? and name LIKE ?.int
countByC_LikeT
(long companyId, String treePath) Returns the number of organizations where companyId = ? and treePath LIKE ?.int
countByC_N
(long companyId, String name) Returns the number of organizations where companyId = ? and name = ?.int
countByC_P
(long companyId, long parentOrganizationId) Returns the number of organizations where companyId = ? and parentOrganizationId = ?.int
countByC_P_LikeN
(long companyId, long parentOrganizationId, String name) Returns the number of organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.int
countByCompanyId
(long companyId) Returns the number of organizations where companyId = ?.int
countByCompanyIdLocations
(long companyId) Returns the number of organizations where companyId = ?.int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of organizations where externalReferenceCode = ? and companyId = ?.int
countByGtO_C_P
(long organizationId, long companyId, long parentOrganizationId) Returns the number of organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.int
countByUuid
(String uuid) Returns the number of organizations where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of organizations where uuid = ? and companyId = ?.create
(long organizationId) Creates a new organization with the primary key.fetchByC_LikeN_First
(long companyId, String name, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and name LIKE ?.fetchByC_LikeN_Last
(long companyId, String name, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and name LIKE ?.fetchByC_LikeT_First
(long companyId, String treePath, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?.fetchByC_LikeT_Last
(long companyId, String treePath, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and treePath LIKE ?.fetchByC_N
(long companyId, String name) Returns the organization where companyId = ? and name = ? or returnsnull
if it could not be found.fetchByC_N
(long companyId, String name, boolean useFinderCache) Returns the organization where companyId = ? and name = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByC_P_First
(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?.fetchByC_P_Last
(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?.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 ?.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 ?.fetchByCompanyId_First
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.fetchByCompanyId_Last
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ?.fetchByCompanyIdLocations_First
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.fetchByCompanyIdLocations_Last
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ?.fetchByERC_C
(String externalReferenceCode, long companyId) Returns the organization where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the organization where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.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 = ?.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 = ?.fetchByPrimaryKey
(long organizationId) Returns the organization with the primary key or returnsnull
if it could not be found.fetchByUuid_C_First
(String uuid, long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ? and companyId = ?.fetchByUuid_C_Last
(String uuid, long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where uuid = ? and companyId = ?.fetchByUuid_First
(String uuid, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ?.fetchByUuid_Last
(String uuid, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where uuid = ?.int
filterCountByC_LikeN
(long companyId, String name) Returns the number of organizations that the user has permission to view where companyId = ? and name LIKE ?.int
filterCountByC_LikeT
(long companyId, String treePath) Returns the number of organizations that the user has permission to view where companyId = ? and treePath LIKE ?.int
filterCountByC_P
(long companyId, long parentOrganizationId) Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.int
filterCountByC_P_LikeN
(long companyId, long parentOrganizationId, String name) Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.int
filterCountByCompanyId
(long companyId) Returns the number of organizations that the user has permission to view where companyId = ?.int
filterCountByCompanyIdLocations
(long companyId) Returns the number of organizations that the user has permission to view where companyId = ?.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 = ?.int
filterCountByUuid
(String uuid) Returns the number of organizations that the user has permission to view where uuid = ?.int
filterCountByUuid_C
(String uuid, long companyId) Returns the number of organizations that the user has permission to view where uuid = ? and companyId = ?.filterFindByC_LikeN
(long companyId, String name) Returns all the organizations that the user has permission to view where companyId = ? and name LIKE ?.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 ?.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 ?.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 ?.filterFindByC_LikeT
(long companyId, String treePath) Returns all the organizations that the user has permission to view where companyId = ? and treePath LIKE ?.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 ?.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 ?.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 ?.filterFindByC_P
(long companyId, long parentOrganizationId) Returns all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.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 = ?.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 = ?.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 ?.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 ?.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 ?.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 ?.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 = ?.filterFindByCompanyId
(long companyId) Returns all the organizations that the user has permission to view where companyId = ?.filterFindByCompanyId
(long companyId, int start, int end) Returns a range of all the organizations that the user has permission to view where companyId = ?.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 = ?.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 = ?.filterFindByCompanyIdLocations
(long companyId) Returns all the organizations that the user has permission to view where companyId = ?.filterFindByCompanyIdLocations
(long companyId, int start, int end) Returns a range of all the organizations that the user has permission to view where companyId = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.filterFindByUuid
(String uuid) Returns all the organizations that the user has permission to view where uuid = ?.filterFindByUuid
(String uuid, int start, int end) Returns a range of all the organizations that the user has permission to view where uuid = ?.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 = ?.filterFindByUuid_C
(String uuid, long companyId) Returns all the organizations that the user has permission to view where uuid = ? and companyId = ?.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 = ?.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 = ?.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 = ?.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 = ?.findAll()
Returns all the organizations.findAll
(int start, int end) Returns a range of all the organizations.findAll
(int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations.findAll
(int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations.findByC_LikeN
(long companyId, String name) Returns all the organizations where companyId = ? and name LIKE ?.findByC_LikeN
(long companyId, String name, int start, int end) Returns a range of all the organizations where companyId = ? and name LIKE ?.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 ?.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 ?.findByC_LikeN_First
(long companyId, String name, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and name LIKE ?.findByC_LikeN_Last
(long companyId, String name, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and name LIKE ?.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 ?.findByC_LikeT
(long companyId, String treePath) Returns all the organizations where companyId = ? and treePath LIKE ?.findByC_LikeT
(long companyId, String treePath, int start, int end) Returns a range of all the organizations where companyId = ? and treePath LIKE ?.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 ?.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 ?.findByC_LikeT_First
(long companyId, String treePath, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?.findByC_LikeT_Last
(long companyId, String treePath, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and treePath LIKE ?.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 ?.Returns the organization where companyId = ? and name = ? or throws aNoSuchOrganizationException
if it could not be found.findByC_P
(long companyId, long parentOrganizationId) Returns all the organizations where companyId = ? and parentOrganizationId = ?.findByC_P
(long companyId, long parentOrganizationId, int start, int end) Returns a range of all the organizations where companyId = ? and parentOrganizationId = ?.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 = ?.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 = ?.findByC_P_First
(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?.findByC_P_Last
(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?.findByC_P_LikeN
(long companyId, long parentOrganizationId, String name) Returns all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.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 ?.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 ?.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 ?.findByC_P_LikeN_First
(long companyId, long parentOrganizationId, String name, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ? and name LIKE ?.findByC_P_LikeN_Last
(long companyId, long parentOrganizationId, String name, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ? and name LIKE ?.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 ?.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 = ?.findByCompanyId
(long companyId) Returns all the organizations where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the organizations where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ?.findByCompanyId_First
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.findByCompanyId_Last
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ?.findByCompanyId_PrevAndNext
(long organizationId, long companyId, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set where companyId = ?.findByCompanyIdLocations
(long companyId) Returns all the organizations where companyId = ?.findByCompanyIdLocations
(long companyId, int start, int end) Returns a range of all the organizations where companyId = ?.findByCompanyIdLocations
(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ?.findByCompanyIdLocations
(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ?.findByCompanyIdLocations_First
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.findByCompanyIdLocations_Last
(long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ?.findByCompanyIdLocations_PrevAndNext
(long organizationId, long companyId, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set where companyId = ?.findByERC_C
(String externalReferenceCode, long companyId) Returns the organization where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrganizationException
if it could not be found.findByGtO_C_P
(long organizationId, long companyId, long parentOrganizationId) Returns all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.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 = ?.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 = ?.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 = ?.findByGtO_C_P_First
(long organizationId, long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?.findByGtO_C_P_Last
(long organizationId, long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?.findByPrimaryKey
(long organizationId) Returns the organization with the primary key or throws aNoSuchOrganizationException
if it could not be found.findByUuid
(String uuid) Returns all the organizations where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the organizations where uuid = ?.findByUuid
(String uuid, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations where uuid = ?.findByUuid
(String uuid, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where uuid = ?.findByUuid_C
(String uuid, long companyId) Returns all the organizations where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the organizations where uuid = ? and companyId = ?.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 = ?.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 = ?.findByUuid_C_First
(String uuid, long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ? and companyId = ?.findByUuid_C_Last
(String uuid, long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where uuid = ? and companyId = ?.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 = ?.findByUuid_First
(String uuid, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ?.findByUuid_Last
(String uuid, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where uuid = ?.findByUuid_PrevAndNext
(long organizationId, String uuid, OrderByComparator<Organization> orderByComparator) Returns the organizations before and after the current organization in the ordered set where uuid = ?.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.int
getGroupsSize
(long pk) Returns the number of groups associated with the organization.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.int
getUsersSize
(long pk) Returns the number of users associated with the organization.remove
(long organizationId) Removes the organization with the primary key from the database.void
Removes all the organizations from the database.void
removeByC_LikeN
(long companyId, String name) Removes all the organizations where companyId = ? and name LIKE ? from the database.void
removeByC_LikeT
(long companyId, String treePath) Removes all the organizations where companyId = ? and treePath LIKE ? from the database.removeByC_N
(long companyId, String name) Removes the organization where companyId = ? and name = ? from the database.void
removeByC_P
(long companyId, long parentOrganizationId) Removes all the organizations where companyId = ? and parentOrganizationId = ? from the database.void
removeByC_P_LikeN
(long companyId, long parentOrganizationId, String name) Removes all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ? from the database.void
removeByCompanyId
(long companyId) Removes all the organizations where companyId = ? from the database.void
removeByCompanyIdLocations
(long companyId) Removes all the organizations where companyId = ? from the database.removeByERC_C
(String externalReferenceCode, long companyId) Removes the organization where externalReferenceCode = ? and companyId = ? from the database.void
removeByGtO_C_P
(long organizationId, long companyId, long parentOrganizationId) Removes all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ? from the database.void
removeByUuid
(String uuid) Removes all the organizations where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the organizations where uuid = ? and companyId = ? from the database.void
removeGroup
(long pk, long groupPK) Removes the association between the organization and the group.void
removeGroup
(long pk, Group group) Removes the association between the organization and the group.void
removeGroups
(long pk, long[] groupPKs) Removes the association between the organization and the groups.void
removeGroups
(long pk, List<Group> groups) Removes the association between the organization and the groups.void
removeUser
(long pk, long userPK) Removes the association between the organization and the user.void
removeUser
(long pk, User user) Removes the association between the organization and the user.void
removeUsers
(long pk, long[] userPKs) Removes the association between the organization and the users.void
removeUsers
(long pk, List<User> users) Removes the association between the organization and the users.void
setGroups
(long pk, long[] groupPKs) Sets the groups associated with the organization, removing and adding associations as necessary.void
Sets the groups associated with the organization, removing and adding associations as necessary.void
setUsers
(long pk, long[] userPKs) Sets the users associated with the organization, removing and adding associations as necessary.void
Sets the users associated with the organization, removing and adding associations as necessary.updateImpl
(Organization organization) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByUuid
Returns all the organizations where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching organizations
-
findByUuid
Returns a range of all the organizations where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations
-
findByUuid
List<Organization> findByUuid(String uuid, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations
-
findByUuid
List<Organization> findByUuid(String uuid, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByUuid_First
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 found
-
fetchByUuid_First
Returns the first organization in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization, or
null
if a matching organization could not be found
-
findByUuid_Last
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 found
-
fetchByUuid_Last
Returns the last organization in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization, or
null
if a matching organization could not be found
-
findByUuid_PrevAndNext
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 found
-
filterFindByUuid
Returns all the organizations that the user has permission to view where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching organizations that the user has permission to view
-
filterFindByUuid
Returns a range of all the organizations that the user has permission to view where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations that the user has permission to view
-
filterFindByUuid
List<Organization> filterFindByUuid(String uuid, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
filterFindByUuid_PrevAndNext
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 found
-
removeByUuid
Removes all the organizations where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of organizations where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching organizations
-
filterCountByUuid
Returns the number of organizations that the user has permission to view where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching organizations that the user has permission to view
-
findByUuid_C
Returns all the organizations where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching organizations
-
findByUuid_C
Returns a range of all the organizations where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations
-
findByUuid_C
List<Organization> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations
-
findByUuid_C
List<Organization> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByUuid_C_First
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 found
-
fetchByUuid_C_First
Organization fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization, or
null
if a matching organization could not be found
-
findByUuid_C_Last
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 found
-
fetchByUuid_C_Last
Organization fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization, or
null
if a matching organization could not be found
-
findByUuid_C_PrevAndNext
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 found
-
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
Returns a range of all the organizations that the user has permission to view where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations that the user has permission to view
-
filterFindByUuid_C
List<Organization> filterFindByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
filterFindByUuid_C_PrevAndNext
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 found
-
removeByUuid_C
Removes all the organizations where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of organizations where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching organizations
-
filterCountByUuid_C
Returns the number of organizations that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching organizations that the user has permission to view
-
findByCompanyId
Returns all the organizations where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching organizations
-
findByCompanyId
Returns a range of all the organizations where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations
-
findByCompanyId
List<Organization> findByCompanyId(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations
-
findByCompanyId
List<Organization> findByCompanyId(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByCompanyId_First
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 found
-
fetchByCompanyId_First
Organization fetchByCompanyId_First(long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization, or
null
if a matching organization could not be found
-
findByCompanyId_Last
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 found
-
fetchByCompanyId_Last
Organization fetchByCompanyId_Last(long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization, or
null
if a matching organization could not be found
-
findByCompanyId_PrevAndNext
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 found
-
filterFindByCompanyId
Returns all the organizations that the user has permission to view where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching organizations that the user has permission to view
-
filterFindByCompanyId
Returns a range of all the organizations that the user has permission to view where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations that the user has permission to view
-
filterFindByCompanyId
List<Organization> filterFindByCompanyId(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
filterFindByCompanyId_PrevAndNext
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 found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the organizations where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of organizations where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching organizations
-
filterCountByCompanyId
int filterCountByCompanyId(long companyId) Returns the number of organizations that the user has permission to view where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching organizations that the user has permission to view
-
findByCompanyIdLocations
Returns all the organizations where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching organizations
-
findByCompanyIdLocations
Returns a range of all the organizations where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations
-
findByCompanyIdLocations
List<Organization> findByCompanyIdLocations(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations
-
findByCompanyIdLocations
List<Organization> findByCompanyIdLocations(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByCompanyIdLocations_First
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 found
-
fetchByCompanyIdLocations_First
Organization fetchByCompanyIdLocations_First(long companyId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization, or
null
if a matching organization could not be found
-
findByCompanyIdLocations_Last
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 found
-
fetchByCompanyIdLocations_Last
Organization fetchByCompanyIdLocations_Last(long companyId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization, or
null
if a matching organization could not be found
-
findByCompanyIdLocations_PrevAndNext
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 found
-
filterFindByCompanyIdLocations
Returns all the organizations that the user has permission to view where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching organizations that the user has permission to view
-
filterFindByCompanyIdLocations
Returns a range of all the organizations that the user has permission to view where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations that the user has permission to view
-
filterFindByCompanyIdLocations
List<Organization> filterFindByCompanyIdLocations(long companyId, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
filterFindByCompanyIdLocations_PrevAndNext
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 found
-
removeByCompanyIdLocations
void removeByCompanyIdLocations(long companyId) Removes all the organizations where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyIdLocations
int countByCompanyIdLocations(long companyId) Returns the number of organizations where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching organizations
-
filterCountByCompanyIdLocations
int filterCountByCompanyIdLocations(long companyId) Returns the number of organizations that the user has permission to view where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching organizations that the user has permission to view
-
findByC_P
Returns all the organizations where companyId = ? and parentOrganizationId = ?.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization ID- Returns:
- the matching organizations
-
findByC_P
Returns a range of all the organizations where companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations
-
findByC_P
List<Organization> findByC_P(long companyId, long parentOrganizationId, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations
-
findByC_P
List<Organization> findByC_P(long companyId, long parentOrganizationId, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByC_P_First
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 found
-
fetchByC_P_First
Organization fetchByC_P_First(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization, or
null
if a matching organization could not be found
-
findByC_P_Last
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 found
-
fetchByC_P_Last
Organization fetchByC_P_Last(long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization, or
null
if a matching organization could not be found
-
findByC_P_PrevAndNext
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 found
-
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
Returns a range of all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations that the user has permission to view
-
filterFindByC_P
List<Organization> filterFindByC_P(long companyId, long parentOrganizationId, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
filterFindByC_P_PrevAndNext
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 found
-
removeByC_P
void removeByC_P(long companyId, long parentOrganizationId) Removes all the organizations where companyId = ? and parentOrganizationId = ? from the database.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization ID
-
countByC_P
int countByC_P(long companyId, long parentOrganizationId) Returns the number of organizations where companyId = ? and parentOrganizationId = ?.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization ID- Returns:
- the number of matching organizations
-
filterCountByC_P
int filterCountByC_P(long companyId, long parentOrganizationId) Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization ID- Returns:
- the number of matching organizations that the user has permission to view
-
findByC_LikeT
Returns all the organizations where companyId = ? and treePath LIKE ?.- Parameters:
companyId
- the company IDtreePath
- the tree path- Returns:
- the matching organizations
-
findByC_LikeT
Returns a range of all the organizations where companyId = ? and treePath LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDtreePath
- the tree pathstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations
-
findByC_LikeT
List<Organization> findByC_LikeT(long companyId, String treePath, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ? and treePath LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDtreePath
- the tree pathstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations
-
findByC_LikeT
List<Organization> findByC_LikeT(long companyId, String treePath, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ? and treePath LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDtreePath
- the tree pathstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByC_LikeT_First
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 found
-
fetchByC_LikeT_First
Organization fetchByC_LikeT_First(long companyId, String treePath, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and treePath LIKE ?.- Parameters:
companyId
- the company IDtreePath
- the tree pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization, or
null
if a matching organization could not be found
-
findByC_LikeT_Last
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 found
-
fetchByC_LikeT_Last
Organization fetchByC_LikeT_Last(long companyId, String treePath, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and treePath LIKE ?.- Parameters:
companyId
- the company IDtreePath
- the tree pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization, or
null
if a matching organization could not be found
-
findByC_LikeT_PrevAndNext
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 found
-
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
Returns a range of all the organizations that the user has permission to view where companyId = ? and treePath LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDtreePath
- the tree pathstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations that the user has permission to view
-
filterFindByC_LikeT
List<Organization> filterFindByC_LikeT(long companyId, String treePath, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and treePath LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDtreePath
- the tree pathstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
filterFindByC_LikeT_PrevAndNext
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 found
-
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
Returns the organization where companyId = ? and name = ? or throws aNoSuchOrganizationException
if it could not be found.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be found
-
fetchByC_N
Returns the organization where companyId = ? and name = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the matching organization, or
null
if a matching organization could not be found
-
fetchByC_N
Returns the organization where companyId = ? and name = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDname
- the nameuseFinderCache
- whether to use the finder cache- Returns:
- the matching organization, or
null
if a matching organization could not be found
-
removeByC_N
Removes the organization where companyId = ? and name = ? from the database.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the organization that was removed
- Throws:
NoSuchOrganizationException
-
countByC_N
Returns the number of organizations where companyId = ? and name = ?.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the number of matching organizations
-
findByC_LikeN
Returns all the organizations where companyId = ? and name LIKE ?.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the matching organizations
-
findByC_LikeN
Returns a range of all the organizations where companyId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations
-
findByC_LikeN
List<Organization> findByC_LikeN(long companyId, String name, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations
-
findByC_LikeN
List<Organization> findByC_LikeN(long companyId, String name, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByC_LikeN_First
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 found
-
fetchByC_LikeN_First
Organization fetchByC_LikeN_First(long companyId, String name, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and name LIKE ?.- Parameters:
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization, or
null
if a matching organization could not be found
-
findByC_LikeN_Last
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 found
-
fetchByC_LikeN_Last
Organization fetchByC_LikeN_Last(long companyId, String name, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and name LIKE ?.- Parameters:
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization, or
null
if a matching organization could not be found
-
findByC_LikeN_PrevAndNext
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 found
-
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
Returns a range of all the organizations that the user has permission to view where companyId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations that the user has permission to view
-
filterFindByC_LikeN
List<Organization> filterFindByC_LikeN(long companyId, String name, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
filterFindByC_LikeN_PrevAndNext
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 found
-
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
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
List<Organization> findByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end) Returns a range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
organizationId
- the organization IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations
-
findByGtO_C_P
List<Organization> findByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
organizationId
- the organization IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations
-
findByGtO_C_P
List<Organization> findByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where organizationId > ? and companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
organizationId
- the organization IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByGtO_C_P_First
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 found
-
fetchByGtO_C_P_First
Organization fetchByGtO_C_P_First(long organizationId, long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?.- Parameters:
organizationId
- the organization IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization, or
null
if a matching organization could not be found
-
findByGtO_C_P_Last
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 found
-
fetchByGtO_C_P_Last
Organization fetchByGtO_C_P_Last(long organizationId, long companyId, long parentOrganizationId, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where organizationId > ? and companyId = ? and parentOrganizationId = ?.- Parameters:
organizationId
- the organization IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization, or
null
if a matching organization could not be found
-
filterFindByGtO_C_P
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
List<Organization> filterFindByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end) Returns a range of all the organizations that the user has permission to view where organizationId > ? and companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
organizationId
- the organization IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations that the user has permission to view
-
filterFindByGtO_C_P
List<Organization> filterFindByGtO_C_P(long organizationId, long companyId, long parentOrganizationId, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where organizationId > ? and companyId = ? and parentOrganizationId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
organizationId
- the organization IDcompanyId
- the company IDparentOrganizationId
- the parent organization IDstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
removeByGtO_C_P
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
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
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
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
List<Organization> findByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end) Returns a range of all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations
-
findByC_P_LikeN
List<Organization> findByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations
-
findByC_P_LikeN
List<Organization> findByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching organizations
-
findByC_P_LikeN_First
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 found
-
fetchByC_P_LikeN_First
Organization fetchByC_P_LikeN_First(long companyId, long parentOrganizationId, String name, OrderByComparator<Organization> orderByComparator) Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ? and name LIKE ?.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching organization, or
null
if a matching organization could not be found
-
findByC_P_LikeN_Last
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 found
-
fetchByC_P_LikeN_Last
Organization fetchByC_P_LikeN_Last(long companyId, long parentOrganizationId, String name, OrderByComparator<Organization> orderByComparator) Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ? and name LIKE ?.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDname
- the nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching organization, or
null
if a matching organization could not be found
-
findByC_P_LikeN_PrevAndNext
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 found
-
filterFindByC_P_LikeN
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
List<Organization> filterFindByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end) Returns a range of all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of matching organizations that the user has permission to view
-
filterFindByC_P_LikeN
List<Organization> filterFindByC_P_LikeN(long companyId, long parentOrganizationId, String name, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and parentOrganizationId = ? and name LIKE ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
companyId
- the company IDparentOrganizationId
- the parent organization IDname
- the namestart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching organizations that the user has permission to view
-
filterFindByC_P_LikeN_PrevAndNext
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 found
-
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
Organization findByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrganizationException Returns the organization where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrganizationException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching organization
- Throws:
NoSuchOrganizationException
- if a matching organization could not be found
-
fetchByERC_C
Returns the organization where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching organization, or
null
if a matching organization could not be found
-
fetchByERC_C
Returns the organization where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching organization, or
null
if a matching organization could not be found
-
removeByERC_C
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 found
-
updateImpl
-
findByPrimaryKey
Returns the organization with the primary key or throws aNoSuchOrganizationException
if it could not be found.- Parameters:
organizationId
- the primary key of the organization- Returns:
- the organization
- Throws:
NoSuchOrganizationException
- if a organization with the primary key could not be found
-
fetchByPrimaryKey
Returns the organization with the primary key or returnsnull
if it could not be found.- Parameters:
organizationId
- the primary key of the organization- Returns:
- the organization, or
null
if a organization with the primary key could not be found
-
findAll
List<Organization> findAll()Returns all the organizations.- Returns:
- the organizations
-
findAll
Returns a range of all the organizations.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
start
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of organizations
-
findAll
Returns an ordered range of all the organizations.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
start
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of organizations
-
findAll
List<Organization> findAll(int start, int end, OrderByComparator<Organization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the organizations.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
start
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of organizations
-
removeAll
void removeAll()Removes all the organizations from the database. -
countAll
int countAll()Returns the number of organizations.- Returns:
- the number of organizations
-
getGroupPrimaryKeys
long[] getGroupPrimaryKeys(long pk) Returns the primaryKeys of groups associated with the organization.- Parameters:
pk
- the primary key of the organization- Returns:
- long[] of the primaryKeys of groups associated with the organization
-
getGroups
Returns all the groups associated with the organization.- Parameters:
pk
- the primary key of the organization- Returns:
- the groups associated with the organization
-
getGroups
Returns a range of all the groups associated with the organization.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
pk
- the primary key of the organizationstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of groups associated with the organization
-
getGroups
Returns an ordered range of all the groups associated with the organization.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
pk
- the primary key of the organizationstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of groups associated with the organization
-
getGroupsSize
int getGroupsSize(long pk) Returns the number of groups associated with the organization.- Parameters:
pk
- the primary key of the organization- Returns:
- the number of groups associated with the organization
-
containsGroup
boolean containsGroup(long pk, long groupPK) Returnstrue
if the group is associated with the organization.- Parameters:
pk
- the primary key of the organizationgroupPK
- the primary key of the group- Returns:
true
if the group is associated with the organization;false
otherwise
-
containsGroups
boolean containsGroups(long pk) Returnstrue
if the organization has any groups associated with it.- Parameters:
pk
- the primary key of the organization to check for associations with groups- Returns:
true
if the organization has any groups associated with it;false
otherwise
-
addGroup
boolean addGroup(long pk, long groupPK) Adds an association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the organizationgroupPK
- the primary key of the group- Returns:
true
if an association between the organization and the group was added;false
if they were already associated
-
addGroup
Adds an association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the organizationgroup
- the group- Returns:
true
if an association between the organization and the group was added;false
if they were already associated
-
addGroups
boolean addGroups(long pk, long[] groupPKs) Adds an association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the organizationgroupPKs
- the primary keys of the groups- Returns:
true
if at least one association between the organization and the groups was added;false
if they were all already associated
-
addGroups
Adds an association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the organizationgroups
- the groups- Returns:
true
if at least one association between the organization and the groups was added;false
if they were all already associated
-
clearGroups
void clearGroups(long pk) Clears all associations between the organization and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the organization to clear the associated groups from
-
removeGroup
void removeGroup(long pk, long groupPK) Removes the association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the 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
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
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
long[] getUserPrimaryKeys(long pk) Returns the primaryKeys of users associated with the organization.- Parameters:
pk
- the primary key of the organization- Returns:
- long[] of the primaryKeys of users associated with the organization
-
getUsers
Returns all the users associated with the organization.- Parameters:
pk
- the primary key of the organization- Returns:
- the users associated with the organization
-
getUsers
Returns a range of all the users associated with the organization.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
pk
- the primary key of the organizationstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)- Returns:
- the range of users associated with the organization
-
getUsers
Returns an ordered range of all the users associated with the organization.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromOrganizationModelImpl
.- Parameters:
pk
- the primary key of the organizationstart
- the lower bound of the range of organizationsend
- the upper bound of the range of organizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of users associated with the organization
-
getUsersSize
int getUsersSize(long pk) Returns the number of users associated with the organization.- Parameters:
pk
- the primary key of the organization- Returns:
- the number of users associated with the organization
-
containsUser
boolean containsUser(long pk, long userPK) Returnstrue
if the user is associated with the organization.- Parameters:
pk
- the primary key of the organizationuserPK
- the primary key of the user- Returns:
true
if the user is associated with the organization;false
otherwise
-
containsUsers
boolean containsUsers(long pk) Returnstrue
if the organization has any users associated with it.- Parameters:
pk
- the primary key of the organization to check for associations with users- Returns:
true
if the organization has any users associated with it;false
otherwise
-
addUser
boolean addUser(long pk, long userPK) Adds an association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the organizationuserPK
- the primary key of the user- Returns:
true
if an association between the organization and the user was added;false
if they were already associated
-
addUser
Adds an association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the organizationuser
- the user- Returns:
true
if an association between the organization and the user was added;false
if they were already associated
-
addUsers
boolean addUsers(long pk, long[] userPKs) Adds an association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the organizationuserPKs
- the primary keys of the users- Returns:
true
if at least one association between the organization and the users was added;false
if they were all already associated
-
addUsers
Adds an association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the organizationusers
- the users- Returns:
true
if at least one association between the organization and the users was added;false
if they were all already associated
-
clearUsers
void clearUsers(long pk) Clears all associations between the organization and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the organization to clear the associated users from
-
removeUser
void removeUser(long pk, long userPK) Removes the association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the 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
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
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
-