Interface AccountRolePersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<AccountRole>

@ProviderType public interface AccountRolePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<AccountRole>
The persistence interface for the account role service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    countByAccountEntryId(long accountEntryId)
    Returns the number of account roles where accountEntryId = ?.
    int
    countByAccountEntryId(long[] accountEntryIds)
    Returns the number of account roles where accountEntryId = any ?.
    int
    countByC_A(long companyId, long accountEntryId)
    Returns the number of account roles where companyId = ? and accountEntryId = ?.
    int
    countByC_A(long companyId, long[] accountEntryIds)
    Returns the number of account roles where companyId = ? and accountEntryId = any ?.
    int
    countByCompanyId(long companyId)
    Returns the number of account roles where companyId = ?.
    int
    countByERC_C(String externalReferenceCode, long companyId)
    Returns the number of account roles where externalReferenceCode = ? and companyId = ?.
    int
    countByRoleId(long roleId)
    Returns the number of account roles where roleId = ?.
    create(long accountRoleId)
    Creates a new account role with the primary key.
    fetchByAccountEntryId_First(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns the first account role in the ordered set where accountEntryId = ?.
    fetchByC_A_First(long companyId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns the first account role in the ordered set where companyId = ? and accountEntryId = ?.
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns the first account role in the ordered set where companyId = ?.
    default AccountRole
    fetchByERC_C(String externalReferenceCode, long companyId)
    Returns the account role where externalReferenceCode = ? and companyId = ? or returns null if it could not be found.
    fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
    Returns the account role where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByPrimaryKey(long accountRoleId)
    Returns the account role with the primary key or returns null if it could not be found.
    default AccountRole
    fetchByRoleId(long roleId)
    Returns the account role where roleId = ? or returns null if it could not be found.
    fetchByRoleId(long roleId, boolean useFinderCache)
    Returns the account role where roleId = ? or returns null if it could not be found, optionally using the finder cache.
    int
    filterCountByAccountEntryId(long accountEntryId)
    Returns the number of account roles that the user has permission to view where accountEntryId = ?.
    int
    filterCountByAccountEntryId(long[] accountEntryIds)
    Returns the number of account roles that the user has permission to view where accountEntryId = any ?.
    int
    filterCountByC_A(long companyId, long accountEntryId)
    Returns the number of account roles that the user has permission to view where companyId = ? and accountEntryId = ?.
    int
    filterCountByC_A(long companyId, long[] accountEntryIds)
    Returns the number of account roles that the user has permission to view where companyId = ? and accountEntryId = any ?.
    int
    filterCountByCompanyId(long companyId)
    Returns the number of account roles that the user has permission to view where companyId = ?.
    default List<AccountRole>
    filterFindByAccountEntryId(long accountEntryId)
    Returns all the account roles that the user has permission to view where accountEntryId = ?.
    default List<AccountRole>
    filterFindByAccountEntryId(long[] accountEntryIds)
    Returns all the account roles that the user has permission to view where accountEntryId = any ?.
    default List<AccountRole>
    filterFindByAccountEntryId(long[] accountEntryIds, int start, int end)
    Returns a range of all the account roles that the user has permission to view where accountEntryId = any ?.
    filterFindByAccountEntryId(long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns an ordered range of all the account roles that the user has permission to view where accountEntryId = any ?.
    default List<AccountRole>
    filterFindByAccountEntryId(long accountEntryId, int start, int end)
    Returns a range of all the account roles that the user has permission to view where accountEntryId = ?.
    filterFindByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns an ordered range of all the account roles that the user has permissions to view where accountEntryId = ?.
    default List<AccountRole>
    filterFindByC_A(long companyId, long accountEntryId)
    Returns all the account roles that the user has permission to view where companyId = ? and accountEntryId = ?.
    default List<AccountRole>
    filterFindByC_A(long companyId, long[] accountEntryIds)
    Returns all the account roles that the user has permission to view where companyId = ? and accountEntryId = any ?.
    default List<AccountRole>
    filterFindByC_A(long companyId, long[] accountEntryIds, int start, int end)
    Returns a range of all the account roles that the user has permission to view where companyId = ? and accountEntryId = any ?.
    filterFindByC_A(long companyId, long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns an ordered range of all the account roles that the user has permission to view where companyId = ? and accountEntryId = any ?.
    default List<AccountRole>
    filterFindByC_A(long companyId, long accountEntryId, int start, int end)
    Returns a range of all the account roles that the user has permission to view where companyId = ? and accountEntryId = ?.
    filterFindByC_A(long companyId, long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns an ordered range of all the account roles that the user has permissions to view where companyId = ? and accountEntryId = ?.
    default List<AccountRole>
    filterFindByCompanyId(long companyId)
    Returns all the account roles that the user has permission to view where companyId = ?.
    default List<AccountRole>
    filterFindByCompanyId(long companyId, int start, int end)
    Returns a range of all the account roles that the user has permission to view where companyId = ?.
    filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns an ordered range of all the account roles that the user has permissions to view where companyId = ?.
    default List<AccountRole>
    findByAccountEntryId(long accountEntryId)
    Returns all the account roles where accountEntryId = ?.
    default List<AccountRole>
    findByAccountEntryId(long[] accountEntryIds)
    Returns all the account roles where accountEntryId = any ?.
    default List<AccountRole>
    findByAccountEntryId(long[] accountEntryIds, int start, int end)
    Returns a range of all the account roles where accountEntryId = any ?.
    default List<AccountRole>
    findByAccountEntryId(long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns an ordered range of all the account roles where accountEntryId = any ?.
    findByAccountEntryId(long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the account roles where accountEntryId = ?, optionally using the finder cache.
    default List<AccountRole>
    findByAccountEntryId(long accountEntryId, int start, int end)
    Returns a range of all the account roles where accountEntryId = ?.
    default List<AccountRole>
    findByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns an ordered range of all the account roles where accountEntryId = ?.
    findByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the account roles where accountEntryId = ?.
    findByAccountEntryId_First(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns the first account role in the ordered set where accountEntryId = ?.
    default List<AccountRole>
    findByC_A(long companyId, long accountEntryId)
    Returns all the account roles where companyId = ? and accountEntryId = ?.
    default List<AccountRole>
    findByC_A(long companyId, long[] accountEntryIds)
    Returns all the account roles where companyId = ? and accountEntryId = any ?.
    default List<AccountRole>
    findByC_A(long companyId, long[] accountEntryIds, int start, int end)
    Returns a range of all the account roles where companyId = ? and accountEntryId = any ?.
    default List<AccountRole>
    findByC_A(long companyId, long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns an ordered range of all the account roles where companyId = ? and accountEntryId = any ?.
    findByC_A(long companyId, long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the account roles where companyId = ? and accountEntryId = ?, optionally using the finder cache.
    default List<AccountRole>
    findByC_A(long companyId, long accountEntryId, int start, int end)
    Returns a range of all the account roles where companyId = ? and accountEntryId = ?.
    default List<AccountRole>
    findByC_A(long companyId, long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns an ordered range of all the account roles where companyId = ? and accountEntryId = ?.
    findByC_A(long companyId, long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the account roles where companyId = ? and accountEntryId = ?.
    findByC_A_First(long companyId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns the first account role in the ordered set where companyId = ? and accountEntryId = ?.
    default List<AccountRole>
    findByCompanyId(long companyId)
    Returns all the account roles where companyId = ?.
    default List<AccountRole>
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the account roles where companyId = ?.
    default List<AccountRole>
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns an ordered range of all the account roles where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the account roles where companyId = ?.
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
    Returns the first account role in the ordered set where companyId = ?.
    findByERC_C(String externalReferenceCode, long companyId)
    Returns the account role where externalReferenceCode = ? and companyId = ? or throws a NoSuchRoleException if it could not be found.
    findByPrimaryKey(long accountRoleId)
    Returns the account role with the primary key or throws a NoSuchRoleException if it could not be found.
    findByRoleId(long roleId)
    Returns the account role where roleId = ? or throws a NoSuchRoleException if it could not be found.
    remove(long accountRoleId)
    Removes the account role with the primary key from the database.
    void
    removeByAccountEntryId(long accountEntryId)
    Removes all the account roles where accountEntryId = ? from the database.
    void
    removeByC_A(long companyId, long accountEntryId)
    Removes all the account roles where companyId = ? and accountEntryId = ? from the database.
    void
    removeByCompanyId(long companyId)
    Removes all the account roles where companyId = ? from the database.
    removeByERC_C(String externalReferenceCode, long companyId)
    Removes the account role where externalReferenceCode = ? and companyId = ? from the database.
    removeByRoleId(long roleId)
    Removes the account role where roleId = ? from the database.
    updateImpl(AccountRole accountRole)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByCompanyId

      List<AccountRole> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the account roles where companyId = ?.

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

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

      AccountRole findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException
      Returns the first account role in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching account role
      Throws:
      NoSuchRoleException - if a matching account role could not be found
    • fetchByCompanyId_First

      AccountRole fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
      Returns the first account role in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching account role, or null if a matching account role could not be found
    • filterFindByCompanyId

      List<AccountRole> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
      Returns an ordered range of all the account roles that the user has permissions to view where companyId = ?.

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

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

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

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

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

      List<AccountRole> findByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the account roles where accountEntryId = ?.

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

      Parameters:
      accountEntryId - the account entry ID
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching account roles
    • findByAccountEntryId_First

      AccountRole findByAccountEntryId_First(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException
      Returns the first account role in the ordered set where accountEntryId = ?.
      Parameters:
      accountEntryId - the account entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching account role
      Throws:
      NoSuchRoleException - if a matching account role could not be found
    • fetchByAccountEntryId_First

      AccountRole fetchByAccountEntryId_First(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
      Returns the first account role in the ordered set where accountEntryId = ?.
      Parameters:
      accountEntryId - the account entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching account role, or null if a matching account role could not be found
    • filterFindByAccountEntryId

      List<AccountRole> filterFindByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
      Returns an ordered range of all the account roles that the user has permissions to view where accountEntryId = ?.

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

      Parameters:
      accountEntryId - the account entry ID
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching account roles that the user has permission to view
    • filterFindByAccountEntryId

      List<AccountRole> filterFindByAccountEntryId(long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
      Returns an ordered range of all the account roles that the user has permission to view where accountEntryId = any ?.

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

      Parameters:
      accountEntryIds - the account entry IDs
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching account roles that the user has permission to view
    • findByAccountEntryId

      List<AccountRole> findByAccountEntryId(long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the account roles where accountEntryId = ?, optionally using the finder cache.

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

      Parameters:
      accountEntryIds - the account entry IDs
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching account roles
    • removeByAccountEntryId

      void removeByAccountEntryId(long accountEntryId)
      Removes all the account roles where accountEntryId = ? from the database.
      Parameters:
      accountEntryId - the account entry ID
    • countByAccountEntryId

      int countByAccountEntryId(long accountEntryId)
      Returns the number of account roles where accountEntryId = ?.
      Parameters:
      accountEntryId - the account entry ID
      Returns:
      the number of matching account roles
    • countByAccountEntryId

      int countByAccountEntryId(long[] accountEntryIds)
      Returns the number of account roles where accountEntryId = any ?.
      Parameters:
      accountEntryIds - the account entry IDs
      Returns:
      the number of matching account roles
    • filterCountByAccountEntryId

      int filterCountByAccountEntryId(long accountEntryId)
      Returns the number of account roles that the user has permission to view where accountEntryId = ?.
      Parameters:
      accountEntryId - the account entry ID
      Returns:
      the number of matching account roles that the user has permission to view
    • filterCountByAccountEntryId

      int filterCountByAccountEntryId(long[] accountEntryIds)
      Returns the number of account roles that the user has permission to view where accountEntryId = any ?.
      Parameters:
      accountEntryIds - the account entry IDs
      Returns:
      the number of matching account roles that the user has permission to view
    • findByRoleId

      AccountRole findByRoleId(long roleId) throws NoSuchRoleException
      Returns the account role where roleId = ? or throws a NoSuchRoleException if it could not be found.
      Parameters:
      roleId - the role ID
      Returns:
      the matching account role
      Throws:
      NoSuchRoleException - if a matching account role could not be found
    • fetchByRoleId

      AccountRole fetchByRoleId(long roleId, boolean useFinderCache)
      Returns the account role where roleId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      roleId - the role ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching account role, or null if a matching account role could not be found
    • removeByRoleId

      AccountRole removeByRoleId(long roleId) throws NoSuchRoleException
      Removes the account role where roleId = ? from the database.
      Parameters:
      roleId - the role ID
      Returns:
      the account role that was removed
      Throws:
      NoSuchRoleException
    • countByRoleId

      int countByRoleId(long roleId)
      Returns the number of account roles where roleId = ?.
      Parameters:
      roleId - the role ID
      Returns:
      the number of matching account roles
    • findByC_A

      List<AccountRole> findByC_A(long companyId, long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the account roles where companyId = ? and accountEntryId = ?.

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

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

      AccountRole findByC_A_First(long companyId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException
      Returns the first account role in the ordered set where companyId = ? and accountEntryId = ?.
      Parameters:
      companyId - the company ID
      accountEntryId - the account entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching account role
      Throws:
      NoSuchRoleException - if a matching account role could not be found
    • fetchByC_A_First

      AccountRole fetchByC_A_First(long companyId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
      Returns the first account role in the ordered set where companyId = ? and accountEntryId = ?.
      Parameters:
      companyId - the company ID
      accountEntryId - the account entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching account role, or null if a matching account role could not be found
    • filterFindByC_A

      List<AccountRole> filterFindByC_A(long companyId, long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
      Returns an ordered range of all the account roles that the user has permissions to view where companyId = ? and accountEntryId = ?.

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

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

      List<AccountRole> filterFindByC_A(long companyId, long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
      Returns an ordered range of all the account roles that the user has permission to view where companyId = ? and accountEntryId = any ?.

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

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

      List<AccountRole> findByC_A(long companyId, long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the account roles where companyId = ? and accountEntryId = ?, optionally using the finder cache.

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

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

      void removeByC_A(long companyId, long accountEntryId)
      Removes all the account roles where companyId = ? and accountEntryId = ? from the database.
      Parameters:
      companyId - the company ID
      accountEntryId - the account entry ID
    • countByC_A

      int countByC_A(long companyId, long accountEntryId)
      Returns the number of account roles where companyId = ? and accountEntryId = ?.
      Parameters:
      companyId - the company ID
      accountEntryId - the account entry ID
      Returns:
      the number of matching account roles
    • countByC_A

      int countByC_A(long companyId, long[] accountEntryIds)
      Returns the number of account roles where companyId = ? and accountEntryId = any ?.
      Parameters:
      companyId - the company ID
      accountEntryIds - the account entry IDs
      Returns:
      the number of matching account roles
    • filterCountByC_A

      int filterCountByC_A(long companyId, long accountEntryId)
      Returns the number of account roles that the user has permission to view where companyId = ? and accountEntryId = ?.
      Parameters:
      companyId - the company ID
      accountEntryId - the account entry ID
      Returns:
      the number of matching account roles that the user has permission to view
    • filterCountByC_A

      int filterCountByC_A(long companyId, long[] accountEntryIds)
      Returns the number of account roles that the user has permission to view where companyId = ? and accountEntryId = any ?.
      Parameters:
      companyId - the company ID
      accountEntryIds - the account entry IDs
      Returns:
      the number of matching account roles that the user has permission to view
    • findByERC_C

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

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

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

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

      AccountRole create(long accountRoleId)
      Creates a new account role with the primary key. Does not add the account role to the database.
      Parameters:
      accountRoleId - the primary key for the new account role
      Returns:
      the new account role
    • remove

      AccountRole remove(long accountRoleId) throws NoSuchRoleException
      Removes the account role with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      accountRoleId - the primary key of the account role
      Returns:
      the account role that was removed
      Throws:
      NoSuchRoleException - if a account role with the primary key could not be found
    • updateImpl

      AccountRole updateImpl(AccountRole accountRole)
    • findByPrimaryKey

      AccountRole findByPrimaryKey(long accountRoleId) throws NoSuchRoleException
      Returns the account role with the primary key or throws a NoSuchRoleException if it could not be found.
      Parameters:
      accountRoleId - the primary key of the account role
      Returns:
      the account role
      Throws:
      NoSuchRoleException - if a account role with the primary key could not be found
    • fetchByPrimaryKey

      AccountRole fetchByPrimaryKey(long accountRoleId)
      Returns the account role with the primary key or returns null if it could not be found.
      Parameters:
      accountRoleId - the primary key of the account role
      Returns:
      the account role, or null if a account role with the primary key could not be found
    • fetchByRoleId

      default AccountRole fetchByRoleId(long roleId)
      Returns the account role where roleId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      roleId - the role ID
      Returns:
      the matching account role, or null if a matching account role could not be found
    • fetchByERC_C

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

      default List<AccountRole> findByCompanyId(long companyId)
      Returns all the account roles where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching account roles
    • findByCompanyId

      default List<AccountRole> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the account roles where companyId = ?.

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

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

      default List<AccountRole> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
      Returns an ordered range of all the account roles where companyId = ?.

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

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

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

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

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

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

      default List<AccountRole> findByAccountEntryId(long accountEntryId)
      Returns all the account roles where accountEntryId = ?.
      Parameters:
      accountEntryId - the account entry ID
      Returns:
      the matching account roles
    • findByAccountEntryId

      default List<AccountRole> findByAccountEntryId(long accountEntryId, int start, int end)
      Returns a range of all the account roles where accountEntryId = ?.

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

      Parameters:
      accountEntryId - the account entry ID
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      Returns:
      the range of matching account roles
    • findByAccountEntryId

      default List<AccountRole> findByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
      Returns an ordered range of all the account roles where accountEntryId = ?.

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

      Parameters:
      accountEntryId - the account entry ID
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching account roles
    • findByAccountEntryId

      default List<AccountRole> findByAccountEntryId(long[] accountEntryIds)
      Returns all the account roles where accountEntryId = any ?.
      Parameters:
      accountEntryIds - the account entry IDs
      Returns:
      the matching account roles
    • findByAccountEntryId

      default List<AccountRole> findByAccountEntryId(long[] accountEntryIds, int start, int end)
      Returns a range of all the account roles where accountEntryId = any ?.

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

      Parameters:
      accountEntryIds - the account entry IDs
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      Returns:
      the range of matching account roles
    • findByAccountEntryId

      default List<AccountRole> findByAccountEntryId(long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
      Returns an ordered range of all the account roles where accountEntryId = any ?.

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

      Parameters:
      accountEntryIds - the account entry IDs
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching account roles
    • filterFindByAccountEntryId

      default List<AccountRole> filterFindByAccountEntryId(long accountEntryId)
      Returns all the account roles that the user has permission to view where accountEntryId = ?.
      Parameters:
      accountEntryId - the account entry ID
      Returns:
      the matching account roles that the user has permission to view
    • filterFindByAccountEntryId

      default List<AccountRole> filterFindByAccountEntryId(long accountEntryId, int start, int end)
      Returns a range of all the account roles that the user has permission to view where accountEntryId = ?.

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

      Parameters:
      accountEntryId - the account entry ID
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      Returns:
      the range of matching account roles that the user has permission to view
    • filterFindByAccountEntryId

      default List<AccountRole> filterFindByAccountEntryId(long[] accountEntryIds)
      Returns all the account roles that the user has permission to view where accountEntryId = any ?.
      Parameters:
      accountEntryIds - the account entry IDs
      Returns:
      the matching account roles that the user has permission to view
    • filterFindByAccountEntryId

      default List<AccountRole> filterFindByAccountEntryId(long[] accountEntryIds, int start, int end)
      Returns a range of all the account roles that the user has permission to view where accountEntryId = any ?.

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

      Parameters:
      accountEntryIds - the account entry IDs
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      Returns:
      the range of matching account roles that the user has permission to view
    • findByC_A

      default List<AccountRole> findByC_A(long companyId, long accountEntryId)
      Returns all the account roles where companyId = ? and accountEntryId = ?.
      Parameters:
      companyId - the company ID
      accountEntryId - the account entry ID
      Returns:
      the matching account roles
    • findByC_A

      default List<AccountRole> findByC_A(long companyId, long accountEntryId, int start, int end)
      Returns a range of all the account roles where companyId = ? and accountEntryId = ?.

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

      Parameters:
      companyId - the company ID
      accountEntryId - the account entry ID
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      Returns:
      the range of matching account roles
    • findByC_A

      default List<AccountRole> findByC_A(long companyId, long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
      Returns an ordered range of all the account roles where companyId = ? and accountEntryId = ?.

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

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

      default List<AccountRole> findByC_A(long companyId, long[] accountEntryIds)
      Returns all the account roles where companyId = ? and accountEntryId = any ?.
      Parameters:
      companyId - the company ID
      accountEntryIds - the account entry IDs
      Returns:
      the matching account roles
    • findByC_A

      default List<AccountRole> findByC_A(long companyId, long[] accountEntryIds, int start, int end)
      Returns a range of all the account roles where companyId = ? and accountEntryId = any ?.

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

      Parameters:
      companyId - the company ID
      accountEntryIds - the account entry IDs
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      Returns:
      the range of matching account roles
    • findByC_A

      default List<AccountRole> findByC_A(long companyId, long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
      Returns an ordered range of all the account roles where companyId = ? and accountEntryId = any ?.

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

      Parameters:
      companyId - the company ID
      accountEntryIds - the account entry IDs
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching account roles
    • filterFindByC_A

      default List<AccountRole> filterFindByC_A(long companyId, long accountEntryId)
      Returns all the account roles that the user has permission to view where companyId = ? and accountEntryId = ?.
      Parameters:
      companyId - the company ID
      accountEntryId - the account entry ID
      Returns:
      the matching account roles that the user has permission to view
    • filterFindByC_A

      default List<AccountRole> filterFindByC_A(long companyId, long accountEntryId, int start, int end)
      Returns a range of all the account roles that the user has permission to view where companyId = ? and accountEntryId = ?.

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

      Parameters:
      companyId - the company ID
      accountEntryId - the account entry ID
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      Returns:
      the range of matching account roles that the user has permission to view
    • filterFindByC_A

      default List<AccountRole> filterFindByC_A(long companyId, long[] accountEntryIds)
      Returns all the account roles that the user has permission to view where companyId = ? and accountEntryId = any ?.
      Parameters:
      companyId - the company ID
      accountEntryIds - the account entry IDs
      Returns:
      the matching account roles that the user has permission to view
    • filterFindByC_A

      default List<AccountRole> filterFindByC_A(long companyId, long[] accountEntryIds, int start, int end)
      Returns a range of all the account roles that the user has permission to view where companyId = ? and accountEntryId = any ?.

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

      Parameters:
      companyId - the company ID
      accountEntryIds - the account entry IDs
      start - the lower bound of the range of account roles
      end - the upper bound of the range of account roles (not inclusive)
      Returns:
      the range of matching account roles that the user has permission to view