public class AccountRoleUtil
extends java.lang.Object
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
AccountRolePersistence
Constructor and Description |
---|
AccountRoleUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(AccountRole accountRole)
Caches the account role in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<AccountRole> accountRoles)
Caches the account roles in the entity cache if it is enabled.
|
static void |
clearCache() |
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 |
countByCompanyId(long companyId)
Returns the number of account roles where 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 |
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 |
fetchByPrimaryKey(long accountRoleId)
Returns the account role with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,AccountRole> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static AccountRole |
fetchByRoleId(long roleId)
Returns the account role where roleId = ? or returns
null if it could not be found. |
static 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. |
static java.util.List<AccountRole> |
findAll()
Returns all the account roles.
|
static java.util.List<AccountRole> |
findAll(int start,
int end)
Returns a range of all the account roles.
|
static java.util.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 java.util.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 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 java.util.List<AccountRole> |
findByAccountEntryId(long accountEntryId)
Returns all the account roles where accountEntryId = ?.
|
static java.util.List<AccountRole> |
findByAccountEntryId(long[] accountEntryIds)
Returns all the account roles where accountEntryId = any ?.
|
static java.util.List<AccountRole> |
findByAccountEntryId(long[] accountEntryIds,
int start,
int end)
Returns a range of all the account roles where accountEntryId = any ?.
|
static java.util.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 java.util.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 java.util.List<AccountRole> |
findByAccountEntryId(long accountEntryId,
int start,
int end)
Returns a range of all the account roles where accountEntryId = ?.
|
static java.util.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 java.util.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 |
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 java.util.List<AccountRole> |
findByCompanyId(long companyId)
Returns all the account roles where companyId = ?.
|
static java.util.List<AccountRole> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the account roles where companyId = ?.
|
static java.util.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 java.util.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 |
findByPrimaryKey(long accountRoleId)
Returns the account role with the primary key or throws a
NoSuchRoleException if it could not be found. |
static AccountRole |
findByRoleId(long roleId)
Returns the account role where roleId = ? or throws a
NoSuchRoleException if it could not be found. |
static java.util.List<AccountRole> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<AccountRole> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.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 |
getPersistence() |
static AccountRole |
remove(long accountRoleId)
Removes the account role with the primary key from the database.
|
static void |
removeAll()
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 |
removeByCompanyId(long companyId)
Removes all the account roles where companyId = ? from the database.
|
static AccountRole |
removeByRoleId(long roleId)
Removes the account role where roleId = ? from the database.
|
static AccountRole |
update(AccountRole accountRole) |
static AccountRole |
update(AccountRole accountRole,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static AccountRole |
updateImpl(AccountRole accountRole) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(AccountRole accountRole)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,AccountRole> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<AccountRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<AccountRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<AccountRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static AccountRole update(AccountRole accountRole)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static AccountRole update(AccountRole accountRole, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<AccountRole> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<AccountRole> findByCompanyId(long companyId, int start, int end)
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 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 AccountRoleModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)public static java.util.List<AccountRole> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
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 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 AccountRoleModelImpl
.
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 (optionally null
)public static java.util.List<AccountRole> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache)
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 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 AccountRoleModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static AccountRole findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRoleException
- if a matching account role could not be foundpublic static AccountRole fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account role could not be foundpublic static AccountRole findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRoleException
- if a matching account role could not be foundpublic static AccountRole fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account role could not be foundpublic static AccountRole[] findByCompanyId_PrevAndNext(long accountRoleId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException
accountRoleId
- the primary key of the current account rolecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRoleException
- if a account role with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<AccountRole> findByAccountEntryId(long accountEntryId)
accountEntryId
- the account entry IDpublic static java.util.List<AccountRole> findByAccountEntryId(long accountEntryId, int start, int end)
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 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 AccountRoleModelImpl
.
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)public static java.util.List<AccountRole> findByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
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 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 AccountRoleModelImpl
.
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 (optionally null
)public static java.util.List<AccountRole> findByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache)
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 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 AccountRoleModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static AccountRole findByAccountEntryId_First(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRoleException
- if a matching account role could not be foundpublic static AccountRole fetchByAccountEntryId_First(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account role could not be foundpublic static AccountRole findByAccountEntryId_Last(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRoleException
- if a matching account role could not be foundpublic static AccountRole fetchByAccountEntryId_Last(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account role could not be foundpublic static AccountRole[] findByAccountEntryId_PrevAndNext(long accountRoleId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException
accountRoleId
- the primary key of the current account roleaccountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRoleException
- if a account role with the primary key could not be foundpublic static java.util.List<AccountRole> findByAccountEntryId(long[] accountEntryIds)
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 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 AccountRoleModelImpl
.
accountEntryIds
- the account entry IDspublic static java.util.List<AccountRole> findByAccountEntryId(long[] accountEntryIds, int start, int end)
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 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 AccountRoleModelImpl
.
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)public static java.util.List<AccountRole> findByAccountEntryId(long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
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 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 AccountRoleModelImpl
.
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 (optionally null
)public static java.util.List<AccountRole> findByAccountEntryId(long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache)
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 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 AccountRoleModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeByAccountEntryId(long accountEntryId)
accountEntryId
- the account entry IDpublic static int countByAccountEntryId(long accountEntryId)
accountEntryId
- the account entry IDpublic static int countByAccountEntryId(long[] accountEntryIds)
accountEntryIds
- the account entry IDspublic static AccountRole findByRoleId(long roleId) throws NoSuchRoleException
NoSuchRoleException
if it could not be found.roleId
- the role IDNoSuchRoleException
- if a matching account role could not be foundpublic static AccountRole fetchByRoleId(long roleId)
null
if it could not be found. Uses the finder cache.roleId
- the role IDnull
if a matching account role could not be foundpublic static AccountRole fetchByRoleId(long roleId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.roleId
- the role IDuseFinderCache
- whether to use the finder cachenull
if a matching account role could not be foundpublic static AccountRole removeByRoleId(long roleId) throws NoSuchRoleException
roleId
- the role IDNoSuchRoleException
public static int countByRoleId(long roleId)
roleId
- the role IDpublic static void cacheResult(AccountRole accountRole)
accountRole
- the account rolepublic static void cacheResult(java.util.List<AccountRole> accountRoles)
accountRoles
- the account rolespublic static AccountRole create(long accountRoleId)
accountRoleId
- the primary key for the new account rolepublic static AccountRole remove(long accountRoleId) throws NoSuchRoleException
accountRoleId
- the primary key of the account roleNoSuchRoleException
- if a account role with the primary key could not be foundpublic static AccountRole updateImpl(AccountRole accountRole)
public static AccountRole findByPrimaryKey(long accountRoleId) throws NoSuchRoleException
NoSuchRoleException
if it could not be found.accountRoleId
- the primary key of the account roleNoSuchRoleException
- if a account role with the primary key could not be foundpublic static AccountRole fetchByPrimaryKey(long accountRoleId)
null
if it could not be found.accountRoleId
- the primary key of the account rolenull
if a account role with the primary key could not be foundpublic static java.util.List<AccountRole> findAll()
public static java.util.List<AccountRole> findAll(int start, int end)
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 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 AccountRoleModelImpl
.
start
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)public static java.util.List<AccountRole> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
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 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 AccountRoleModelImpl
.
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 (optionally null
)public static java.util.List<AccountRole> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator, boolean useFinderCache)
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 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 AccountRoleModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static AccountRolePersistence getPersistence()