Class AccountRoleUtil
com.liferay.account.service.persistence.impl.AccountRolePersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(AccountRole accountRole) Caches the account role in the entity cache if it is enabled.static void
cacheResult
(List<AccountRole> accountRoles) Caches the account roles in the entity cache if it is enabled.static void
static void
clearCache
(AccountRole accountRole) static int
countAll()
Returns the number of account roles.static int
countByAccountEntryId
(long accountEntryId) Returns the number of account roles where accountEntryId = ?.static int
countByAccountEntryId
(long[] accountEntryIds) Returns the number of account roles where accountEntryId = any ?.static int
countByC_A
(long companyId, long accountEntryId) Returns the number of account roles where companyId = ? and accountEntryId = ?.static int
countByC_A
(long companyId, long[] accountEntryIds) Returns the number of account roles where companyId = ? and accountEntryId = any ?.static int
countByCompanyId
(long companyId) Returns the number of account roles where companyId = ?.static int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of account roles where externalReferenceCode = ? and companyId = ?.static int
countByRoleId
(long roleId) Returns the number of account roles where roleId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static AccountRole
create
(long accountRoleId) Creates a new account role with the primary key.static AccountRole
fetchByAccountEntryId_First
(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the first account role in the ordered set where accountEntryId = ?.static AccountRole
fetchByAccountEntryId_Last
(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the last account role in the ordered set where accountEntryId = ?.static 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 = ?.static AccountRole
fetchByC_A_Last
(long companyId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the last account role in the ordered set where companyId = ? and accountEntryId = ?.static AccountRole
fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the first account role in the ordered set where companyId = ?.static AccountRole
fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the last account role in the ordered set where companyId = ?.static AccountRole
fetchByERC_C
(String externalReferenceCode, long companyId) Returns the account role where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.static AccountRole
fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the account role where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.static AccountRole
fetchByPrimaryKey
(long accountRoleId) Returns the account role with the primary key or returnsnull
if it could not be found.static Map<Serializable,
AccountRole> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static AccountRole
fetchByRoleId
(long roleId) Returns the account role where roleId = ? or returnsnull
if it could not be found.static AccountRole
fetchByRoleId
(long roleId, boolean useFinderCache) Returns the account role where roleId = ? or returnsnull
if it could not be found, optionally using the finder cache.static int
filterCountByAccountEntryId
(long accountEntryId) Returns the number of account roles that the user has permission to view where accountEntryId = ?.static int
filterCountByAccountEntryId
(long[] accountEntryIds) Returns the number of account roles that the user has permission to view where accountEntryId = any ?.static int
filterCountByC_A
(long companyId, long accountEntryId) Returns the number of account roles that the user has permission to view where companyId = ? and accountEntryId = ?.static 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 ?.static int
filterCountByCompanyId
(long companyId) Returns the number of account roles that the user has permission to view where companyId = ?.static List<AccountRole>
filterFindByAccountEntryId
(long accountEntryId) Returns all the account roles that the user has permission to view where accountEntryId = ?.static List<AccountRole>
filterFindByAccountEntryId
(long[] accountEntryIds) Returns all the account roles that the user has permission to view where accountEntryId = any ?.static 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 ?.static 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 ?.static 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 = ?.static 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 = ?.static AccountRole[]
filterFindByAccountEntryId_PrevAndNext
(long accountRoleId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the account roles before and after the current account role in the ordered set of account roles that the user has permission to view where accountEntryId = ?.static List<AccountRole>
filterFindByC_A
(long companyId, long accountEntryId) Returns all the account roles that the user has permission to view where companyId = ? and accountEntryId = ?.static 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 ?.static 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 ?.static 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 ?.static 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 = ?.static 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 = ?.static AccountRole[]
filterFindByC_A_PrevAndNext
(long accountRoleId, long companyId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the account roles before and after the current account role in the ordered set of account roles that the user has permission to view where companyId = ? and accountEntryId = ?.static List<AccountRole>
filterFindByCompanyId
(long companyId) Returns all the account roles that the user has permission to view where companyId = ?.static 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 = ?.static 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 = ?.static AccountRole[]
filterFindByCompanyId_PrevAndNext
(long accountRoleId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the account roles before and after the current account role in the ordered set of account roles that the user has permission to view where companyId = ?.static List<AccountRole>
findAll()
Returns all the account roles.static List<AccountRole>
findAll
(int start, int end) Returns a range of all the account roles.static List<AccountRole>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns an ordered range of all the account roles.static List<AccountRole>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the account roles.static List<AccountRole>
findByAccountEntryId
(long accountEntryId) Returns all the account roles where accountEntryId = ?.static List<AccountRole>
findByAccountEntryId
(long[] accountEntryIds) Returns all the account roles where accountEntryId = any ?.static List<AccountRole>
findByAccountEntryId
(long[] accountEntryIds, int start, int end) Returns a range of all the account roles where accountEntryId = any ?.static 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 ?.static 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.static List<AccountRole>
findByAccountEntryId
(long accountEntryId, int start, int end) Returns a range of all the account roles where accountEntryId = ?.static 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 = ?.static 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 = ?.static AccountRole
findByAccountEntryId_First
(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the first account role in the ordered set where accountEntryId = ?.static AccountRole
findByAccountEntryId_Last
(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the last account role in the ordered set where accountEntryId = ?.static AccountRole[]
findByAccountEntryId_PrevAndNext
(long accountRoleId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the account roles before and after the current account role in the ordered set where accountEntryId = ?.static List<AccountRole>
findByC_A
(long companyId, long accountEntryId) Returns all the account roles where companyId = ? and accountEntryId = ?.static List<AccountRole>
findByC_A
(long companyId, long[] accountEntryIds) Returns all the account roles where companyId = ? and accountEntryId = any ?.static 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 ?.static 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 ?.static 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.static List<AccountRole>
findByC_A
(long companyId, long accountEntryId, int start, int end) Returns a range of all the account roles where companyId = ? and accountEntryId = ?.static 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 = ?.static 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 = ?.static AccountRole
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 = ?.static AccountRole
findByC_A_Last
(long companyId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the last account role in the ordered set where companyId = ? and accountEntryId = ?.static AccountRole[]
findByC_A_PrevAndNext
(long accountRoleId, long companyId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the account roles before and after the current account role in the ordered set where companyId = ? and accountEntryId = ?.static List<AccountRole>
findByCompanyId
(long companyId) Returns all the account roles where companyId = ?.static List<AccountRole>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the account roles where companyId = ?.static 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 = ?.static 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 = ?.static AccountRole
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the first account role in the ordered set where companyId = ?.static AccountRole
findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the last account role in the ordered set where companyId = ?.static AccountRole[]
findByCompanyId_PrevAndNext
(long accountRoleId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the account roles before and after the current account role in the ordered set where companyId = ?.static AccountRole
findByERC_C
(String externalReferenceCode, long companyId) Returns the account role where externalReferenceCode = ? and companyId = ? or throws aNoSuchRoleException
if it could not be found.static AccountRole
findByPrimaryKey
(long accountRoleId) Returns the account role with the primary key or throws aNoSuchRoleException
if it could not be found.static AccountRole
findByRoleId
(long roleId) Returns the account role where roleId = ? or throws aNoSuchRoleException
if it could not be found.static List<AccountRole>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<AccountRole>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<AccountRole>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) static AccountRolePersistence
static AccountRole
remove
(long accountRoleId) Removes the account role with the primary key from the database.static void
Removes all the account roles from the database.static void
removeByAccountEntryId
(long accountEntryId) Removes all the account roles where accountEntryId = ? from the database.static void
removeByC_A
(long companyId, long accountEntryId) Removes all the account roles where companyId = ? and accountEntryId = ? from the database.static void
removeByCompanyId
(long companyId) Removes all the account roles where companyId = ? from the database.static AccountRole
removeByERC_C
(String externalReferenceCode, long companyId) Removes the account role where externalReferenceCode = ? and companyId = ? from the database.static AccountRole
removeByRoleId
(long roleId) Removes the account role where roleId = ? from the database.static void
setPersistence
(AccountRolePersistence persistence) static AccountRole
update
(AccountRole accountRole) static AccountRole
update
(AccountRole accountRole, com.liferay.portal.kernel.service.ServiceContext serviceContext) static AccountRole
updateImpl
(AccountRole accountRole)
-
Constructor Details
-
AccountRoleUtil
public AccountRoleUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<AccountRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<AccountRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<AccountRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static AccountRole update(AccountRole accountRole, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCompanyId
Returns all the account roles where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching account roles
-
findByCompanyId
Returns a range of all the account roles 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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)- Returns:
- the range of matching account roles
-
findByCompanyId
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching account roles
-
findByCompanyId
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching account roles
-
findByCompanyId_First
public static 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching account role
- Throws:
NoSuchRoleException
- if a matching account role could not be foundNoSuchRoleException
-
fetchByCompanyId_First
public static 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching account role, or
null
if a matching account role could not be found
-
findByCompanyId_Last
public static AccountRole findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException Returns the last account role in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching account role
- Throws:
NoSuchRoleException
- if a matching account role could not be foundNoSuchRoleException
-
fetchByCompanyId_Last
public static AccountRole fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the last account role in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching account role, or
null
if a matching account role could not be found
-
findByCompanyId_PrevAndNext
public static AccountRole[] findByCompanyId_PrevAndNext(long accountRoleId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException Returns the account roles before and after the current account role in the ordered set where companyId = ?.- Parameters:
accountRoleId
- the primary key of the current account rolecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next account role
- Throws:
NoSuchRoleException
- if a account role with the primary key could not be foundNoSuchRoleException
-
filterFindByCompanyId
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
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
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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of account rolesend
- 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
-
filterFindByCompanyId
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching account roles that the user has permission to view
-
filterFindByCompanyId_PrevAndNext
public static AccountRole[] filterFindByCompanyId_PrevAndNext(long accountRoleId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException Returns the account roles before and after the current account role in the ordered set of account roles that the user has permission to view where companyId = ?.- Parameters:
accountRoleId
- the primary key of the current account rolecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next account role
- Throws:
NoSuchRoleException
- if a account role with the primary key could not be foundNoSuchRoleException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the account roles where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static 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
public static 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
Returns all the account roles where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry ID- Returns:
- the matching account roles
-
findByAccountEntryId
Returns a range of all the account roles where accountEntryId = ?.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 fromAccountRoleModelImpl
.- Parameters:
accountEntryId
- the account entry IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)- Returns:
- the range of matching account roles
-
findByAccountEntryId
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
accountEntryId
- the account entry IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching account roles
-
findByAccountEntryId
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
accountEntryId
- the account entry IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching account roles
-
findByAccountEntryId_First
public static 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching account role
- Throws:
NoSuchRoleException
- if a matching account role could not be foundNoSuchRoleException
-
fetchByAccountEntryId_First
public static 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching account role, or
null
if a matching account role could not be found
-
findByAccountEntryId_Last
public static AccountRole findByAccountEntryId_Last(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException Returns the last account role in the ordered set where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching account role
- Throws:
NoSuchRoleException
- if a matching account role could not be foundNoSuchRoleException
-
fetchByAccountEntryId_Last
public static AccountRole fetchByAccountEntryId_Last(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the last account role in the ordered set where accountEntryId = ?.- Parameters:
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching account role, or
null
if a matching account role could not be found
-
findByAccountEntryId_PrevAndNext
public static AccountRole[] findByAccountEntryId_PrevAndNext(long accountRoleId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException Returns the account roles before and after the current account role in the ordered set where accountEntryId = ?.- Parameters:
accountRoleId
- the primary key of the current account roleaccountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next account role
- Throws:
NoSuchRoleException
- if a account role with the primary key could not be foundNoSuchRoleException
-
filterFindByAccountEntryId
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
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
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 fromAccountRoleModelImpl
.- Parameters:
accountEntryId
- the account entry IDstart
- the lower bound of the range of account rolesend
- 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
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
accountEntryId
- the account entry IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching account roles that the user has permission to view
-
filterFindByAccountEntryId_PrevAndNext
public static AccountRole[] filterFindByAccountEntryId_PrevAndNext(long accountRoleId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException Returns the account roles before and after the current account role in the ordered set of account roles that the user has permission to view where accountEntryId = ?.- Parameters:
accountRoleId
- the primary key of the current account roleaccountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next account role
- Throws:
NoSuchRoleException
- if a account role with the primary key could not be foundNoSuchRoleException
-
filterFindByAccountEntryId
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
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
accountEntryIds
- the account entry IDsstart
- the lower bound of the range of account rolesend
- 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
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
accountEntryIds
- the account entry IDsstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching account roles that the user has permission to view
-
findByAccountEntryId
Returns all the account roles where accountEntryId = any ?.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 fromAccountRoleModelImpl
.- Parameters:
accountEntryIds
- the account entry IDs- Returns:
- the matching account roles
-
findByAccountEntryId
Returns a range of all the account roles where accountEntryId = any ?.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 fromAccountRoleModelImpl
.- Parameters:
accountEntryIds
- the account entry IDsstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)- Returns:
- the range of matching account roles
-
findByAccountEntryId
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
accountEntryIds
- the account entry IDsstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching account roles
-
findByAccountEntryId
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
accountEntryIds
- the account entry IDsstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching account roles
-
removeByAccountEntryId
public static void removeByAccountEntryId(long accountEntryId) Removes all the account roles where accountEntryId = ? from the database.- Parameters:
accountEntryId
- the account entry ID
-
countByAccountEntryId
public static 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
public static 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
public static 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
public static 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
Returns the account role where roleId = ? or throws aNoSuchRoleException
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 foundNoSuchRoleException
-
fetchByRoleId
Returns the account role where roleId = ? or returnsnull
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
-
fetchByRoleId
Returns the account role where roleId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
roleId
- the role IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching account role, or
null
if a matching account role could not be found
-
removeByRoleId
Removes the account role where roleId = ? from the database.- Parameters:
roleId
- the role ID- Returns:
- the account role that was removed
- Throws:
NoSuchRoleException
-
countByRoleId
public static 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
Returns all the account roles where companyId = ? and accountEntryId = ?.- Parameters:
companyId
- the company IDaccountEntryId
- the account entry ID- Returns:
- the matching account roles
-
findByC_A
Returns a range of all the account roles where companyId = ? and accountEntryId = ?.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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDaccountEntryId
- the account entry IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)- Returns:
- the range of matching account roles
-
findByC_A
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDaccountEntryId
- the account entry IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching account roles
-
findByC_A
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDaccountEntryId
- the account entry IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching account roles
-
findByC_A_First
public static 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 IDaccountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching account role
- Throws:
NoSuchRoleException
- if a matching account role could not be foundNoSuchRoleException
-
fetchByC_A_First
public static 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 IDaccountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching account role, or
null
if a matching account role could not be found
-
findByC_A_Last
public static AccountRole findByC_A_Last(long companyId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException Returns the last account role in the ordered set where companyId = ? and accountEntryId = ?.- Parameters:
companyId
- the company IDaccountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching account role
- Throws:
NoSuchRoleException
- if a matching account role could not be foundNoSuchRoleException
-
fetchByC_A_Last
public static AccountRole fetchByC_A_Last(long companyId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns the last account role in the ordered set where companyId = ? and accountEntryId = ?.- Parameters:
companyId
- the company IDaccountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching account role, or
null
if a matching account role could not be found
-
findByC_A_PrevAndNext
public static AccountRole[] findByC_A_PrevAndNext(long accountRoleId, long companyId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException Returns the account roles before and after the current account role in the ordered set where companyId = ? and accountEntryId = ?.- Parameters:
accountRoleId
- the primary key of the current account rolecompanyId
- the company IDaccountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next account role
- Throws:
NoSuchRoleException
- if a account role with the primary key could not be foundNoSuchRoleException
-
filterFindByC_A
Returns all the account roles that the user has permission to view where companyId = ? and accountEntryId = ?.- Parameters:
companyId
- the company IDaccountEntryId
- the account entry ID- Returns:
- the matching account roles that the user has permission to view
-
filterFindByC_A
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDaccountEntryId
- the account entry IDstart
- the lower bound of the range of account rolesend
- 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
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDaccountEntryId
- the account entry IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching account roles that the user has permission to view
-
filterFindByC_A_PrevAndNext
public static AccountRole[] filterFindByC_A_PrevAndNext(long accountRoleId, long companyId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException Returns the account roles before and after the current account role in the ordered set of account roles that the user has permission to view where companyId = ? and accountEntryId = ?.- Parameters:
accountRoleId
- the primary key of the current account rolecompanyId
- the company IDaccountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next account role
- Throws:
NoSuchRoleException
- if a account role with the primary key could not be foundNoSuchRoleException
-
filterFindByC_A
Returns all the account roles that the user has permission to view where companyId = ? and accountEntryId = any ?.- Parameters:
companyId
- the company IDaccountEntryIds
- the account entry IDs- Returns:
- the matching account roles that the user has permission to view
-
filterFindByC_A
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDaccountEntryIds
- the account entry IDsstart
- the lower bound of the range of account rolesend
- 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
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDaccountEntryIds
- the account entry IDsstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching account roles that the user has permission to view
-
findByC_A
Returns all the account roles where companyId = ? and accountEntryId = any ?.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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDaccountEntryIds
- the account entry IDs- Returns:
- the matching account roles
-
findByC_A
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDaccountEntryIds
- the account entry IDsstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)- Returns:
- the range of matching account roles
-
findByC_A
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDaccountEntryIds
- the account entry IDsstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching account roles
-
findByC_A
public static 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
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 fromAccountRoleModelImpl
.- Parameters:
companyId
- the company IDaccountEntryIds
- the account entry IDsstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching account roles
-
removeByC_A
public static void removeByC_A(long companyId, long accountEntryId) Removes all the account roles where companyId = ? and accountEntryId = ? from the database.- Parameters:
companyId
- the company IDaccountEntryId
- the account entry ID
-
countByC_A
public static int countByC_A(long companyId, long accountEntryId) Returns the number of account roles where companyId = ? and accountEntryId = ?.- Parameters:
companyId
- the company IDaccountEntryId
- the account entry ID- Returns:
- the number of matching account roles
-
countByC_A
public static int countByC_A(long companyId, long[] accountEntryIds) Returns the number of account roles where companyId = ? and accountEntryId = any ?.- Parameters:
companyId
- the company IDaccountEntryIds
- the account entry IDs- Returns:
- the number of matching account roles
-
filterCountByC_A
public static 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 IDaccountEntryId
- the account entry ID- Returns:
- the number of matching account roles that the user has permission to view
-
filterCountByC_A
public static 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 IDaccountEntryIds
- the account entry IDs- Returns:
- the number of matching account roles that the user has permission to view
-
findByERC_C
public static AccountRole findByERC_C(String externalReferenceCode, long companyId) throws NoSuchRoleException Returns the account role where externalReferenceCode = ? and companyId = ? or throws aNoSuchRoleException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching account role
- Throws:
NoSuchRoleException
- if a matching account role could not be foundNoSuchRoleException
-
fetchByERC_C
Returns the account role 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 account role, or
null
if a matching account role could not be found
-
fetchByERC_C
public static AccountRole fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the account role 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 account role, or
null
if a matching account role could not be found
-
removeByERC_C
public static 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 codecompanyId
- the company ID- Returns:
- the account role that was removed
- Throws:
NoSuchRoleException
-
countByERC_C
Returns the number of account roles where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching account roles
-
cacheResult
Caches the account role in the entity cache if it is enabled.- Parameters:
accountRole
- the account role
-
cacheResult
Caches the account roles in the entity cache if it is enabled.- Parameters:
accountRoles
- the account roles
-
create
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
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 foundNoSuchRoleException
-
updateImpl
-
findByPrimaryKey
Returns the account role with the primary key or throws aNoSuchRoleException
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 foundNoSuchRoleException
-
fetchByPrimaryKey
Returns the account role with the primary key or returnsnull
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
-
findAll
Returns all the account roles.- Returns:
- the account roles
-
findAll
Returns a range of all the account roles.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 fromAccountRoleModelImpl
.- Parameters:
start
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)- Returns:
- the range of account roles
-
findAll
public static List<AccountRole> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) Returns an ordered range of all the account roles.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 fromAccountRoleModelImpl
.- Parameters:
start
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of account roles
-
findAll
public static List<AccountRole> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the account roles.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 fromAccountRoleModelImpl
.- Parameters:
start
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of account roles
-
removeAll
public static void removeAll()Removes all the account roles from the database. -
countAll
public static int countAll()Returns the number of account roles.- Returns:
- the number of account roles
-
getPersistence
-
setPersistence
-