@Deprecated
public class ResourceTypePermissionUtil
extends Object
com.liferay.portal.service.persistence.impl.ResourceTypePermissionPersistenceImpl
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
ResourceTypePermissionPersistence
Constructor and Description |
---|
ResourceTypePermissionUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(List<ResourceTypePermission> resourceTypePermissions)
Deprecated.
Caches the resource type permissions in the entity cache if it is enabled.
|
static void |
cacheResult(ResourceTypePermission resourceTypePermission)
Deprecated.
Caches the resource type permission in the entity cache if it is enabled.
|
static void |
clearCache()
Deprecated.
|
static void |
clearCache(ResourceTypePermission resourceTypePermission)
Deprecated.
|
static int |
countAll()
Deprecated.
Returns the number of resource type permissions.
|
static int |
countByC_G_N_R(long companyId,
long groupId,
String name,
long roleId)
Deprecated.
Returns the number of resource type permissions where companyId = ? and groupId = ? and name = ? and roleId = ?.
|
static int |
countByC_N_R(long companyId,
String name,
long roleId)
Deprecated.
Returns the number of resource type permissions where companyId = ? and name = ? and roleId = ?.
|
static int |
countByRoleId(long roleId)
Deprecated.
Returns the number of resource type permissions where roleId = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
Deprecated.
|
static ResourceTypePermission |
create(long resourceTypePermissionId)
Deprecated.
Creates a new resource type permission with the primary key.
|
static ResourceTypePermission |
fetchByC_G_N_R(long companyId,
long groupId,
String name,
long roleId)
Deprecated.
Returns the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? or returns
null if it could not be found. |
static ResourceTypePermission |
fetchByC_G_N_R(long companyId,
long groupId,
String name,
long roleId,
boolean useFinderCache)
Deprecated.
Returns the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? or returns
null if it could not be found, optionally using the finder cache. |
static ResourceTypePermission |
fetchByC_N_R_First(long companyId,
String name,
long roleId,
OrderByComparator<ResourceTypePermission> orderByComparator)
Deprecated.
Returns the first resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?.
|
static ResourceTypePermission |
fetchByC_N_R_Last(long companyId,
String name,
long roleId,
OrderByComparator<ResourceTypePermission> orderByComparator)
Deprecated.
Returns the last resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?.
|
static ResourceTypePermission |
fetchByPrimaryKey(long resourceTypePermissionId)
Deprecated.
Returns the resource type permission with the primary key or returns
null if it could not be found. |
static Map<Serializable,ResourceTypePermission> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Deprecated.
|
static ResourceTypePermission |
fetchByRoleId_First(long roleId,
OrderByComparator<ResourceTypePermission> orderByComparator)
Deprecated.
Returns the first resource type permission in the ordered set where roleId = ?.
|
static ResourceTypePermission |
fetchByRoleId_Last(long roleId,
OrderByComparator<ResourceTypePermission> orderByComparator)
Deprecated.
Returns the last resource type permission in the ordered set where roleId = ?.
|
static List<ResourceTypePermission> |
findAll()
Deprecated.
Returns all the resource type permissions.
|
static List<ResourceTypePermission> |
findAll(int start,
int end)
Deprecated.
Returns a range of all the resource type permissions.
|
static List<ResourceTypePermission> |
findAll(int start,
int end,
OrderByComparator<ResourceTypePermission> orderByComparator)
Deprecated.
Returns an ordered range of all the resource type permissions.
|
static List<ResourceTypePermission> |
findAll(int start,
int end,
OrderByComparator<ResourceTypePermission> orderByComparator,
boolean useFinderCache)
Deprecated.
Returns an ordered range of all the resource type permissions.
|
static ResourceTypePermission |
findByC_G_N_R(long companyId,
long groupId,
String name,
long roleId)
Deprecated.
Returns the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? or throws a
NoSuchResourceTypePermissionException if it could not be found. |
static ResourceTypePermission |
findByC_N_R_First(long companyId,
String name,
long roleId,
OrderByComparator<ResourceTypePermission> orderByComparator)
Deprecated.
Returns the first resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?.
|
static ResourceTypePermission |
findByC_N_R_Last(long companyId,
String name,
long roleId,
OrderByComparator<ResourceTypePermission> orderByComparator)
Deprecated.
Returns the last resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?.
|
static ResourceTypePermission[] |
findByC_N_R_PrevAndNext(long resourceTypePermissionId,
long companyId,
String name,
long roleId,
OrderByComparator<ResourceTypePermission> orderByComparator)
Deprecated.
Returns the resource type permissions before and after the current resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?.
|
static List<ResourceTypePermission> |
findByC_N_R(long companyId,
String name,
long roleId)
Deprecated.
Returns all the resource type permissions where companyId = ? and name = ? and roleId = ?.
|
static List<ResourceTypePermission> |
findByC_N_R(long companyId,
String name,
long roleId,
int start,
int end)
Deprecated.
Returns a range of all the resource type permissions where companyId = ? and name = ? and roleId = ?.
|
static List<ResourceTypePermission> |
findByC_N_R(long companyId,
String name,
long roleId,
int start,
int end,
OrderByComparator<ResourceTypePermission> orderByComparator)
Deprecated.
Returns an ordered range of all the resource type permissions where companyId = ? and name = ? and roleId = ?.
|
static List<ResourceTypePermission> |
findByC_N_R(long companyId,
String name,
long roleId,
int start,
int end,
OrderByComparator<ResourceTypePermission> orderByComparator,
boolean useFinderCache)
Deprecated.
Returns an ordered range of all the resource type permissions where companyId = ? and name = ? and roleId = ?.
|
static ResourceTypePermission |
findByPrimaryKey(long resourceTypePermissionId)
Deprecated.
Returns the resource type permission with the primary key or throws a
NoSuchResourceTypePermissionException if it could not be found. |
static ResourceTypePermission |
findByRoleId_First(long roleId,
OrderByComparator<ResourceTypePermission> orderByComparator)
Deprecated.
Returns the first resource type permission in the ordered set where roleId = ?.
|
static ResourceTypePermission |
findByRoleId_Last(long roleId,
OrderByComparator<ResourceTypePermission> orderByComparator)
Deprecated.
Returns the last resource type permission in the ordered set where roleId = ?.
|
static ResourceTypePermission[] |
findByRoleId_PrevAndNext(long resourceTypePermissionId,
long roleId,
OrderByComparator<ResourceTypePermission> orderByComparator)
Deprecated.
Returns the resource type permissions before and after the current resource type permission in the ordered set where roleId = ?.
|
static List<ResourceTypePermission> |
findByRoleId(long roleId)
Deprecated.
Returns all the resource type permissions where roleId = ?.
|
static List<ResourceTypePermission> |
findByRoleId(long roleId,
int start,
int end)
Deprecated.
Returns a range of all the resource type permissions where roleId = ?.
|
static List<ResourceTypePermission> |
findByRoleId(long roleId,
int start,
int end,
OrderByComparator<ResourceTypePermission> orderByComparator)
Deprecated.
Returns an ordered range of all the resource type permissions where roleId = ?.
|
static List<ResourceTypePermission> |
findByRoleId(long roleId,
int start,
int end,
OrderByComparator<ResourceTypePermission> orderByComparator,
boolean useFinderCache)
Deprecated.
Returns an ordered range of all the resource type permissions where roleId = ?.
|
static List<ResourceTypePermission> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
Deprecated.
|
static List<ResourceTypePermission> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Deprecated.
|
static List<ResourceTypePermission> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<ResourceTypePermission> orderByComparator)
Deprecated.
|
static ResourceTypePermissionPersistence |
getPersistence()
Deprecated.
|
static ResourceTypePermission |
remove(long resourceTypePermissionId)
Deprecated.
Removes the resource type permission with the primary key from the database.
|
static void |
removeAll()
Deprecated.
Removes all the resource type permissions from the database.
|
static ResourceTypePermission |
removeByC_G_N_R(long companyId,
long groupId,
String name,
long roleId)
Deprecated.
Removes the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? from the database.
|
static void |
removeByC_N_R(long companyId,
String name,
long roleId)
Deprecated.
Removes all the resource type permissions where companyId = ? and name = ? and roleId = ? from the database.
|
static void |
removeByRoleId(long roleId)
Deprecated.
Removes all the resource type permissions where roleId = ? from the database.
|
static ResourceTypePermission |
update(ResourceTypePermission resourceTypePermission)
Deprecated.
|
static ResourceTypePermission |
update(ResourceTypePermission resourceTypePermission,
ServiceContext serviceContext)
Deprecated.
|
static ResourceTypePermission |
updateImpl(ResourceTypePermission resourceTypePermission)
Deprecated.
|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ResourceTypePermission resourceTypePermission)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static Map<Serializable,ResourceTypePermission> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static List<ResourceTypePermission> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<ResourceTypePermission> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<ResourceTypePermission> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<ResourceTypePermission> orderByComparator)
public static ResourceTypePermission update(ResourceTypePermission resourceTypePermission)
public static ResourceTypePermission update(ResourceTypePermission resourceTypePermission, ServiceContext serviceContext)
public static List<ResourceTypePermission> findByRoleId(long roleId)
roleId
- the role IDpublic static List<ResourceTypePermission> findByRoleId(long roleId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ResourceTypePermissionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
roleId
- the role IDstart
- the lower bound of the range of resource type permissionsend
- the upper bound of the range of resource type permissions (not inclusive)public static List<ResourceTypePermission> findByRoleId(long roleId, int start, int end, OrderByComparator<ResourceTypePermission> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ResourceTypePermissionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
roleId
- the role IDstart
- the lower bound of the range of resource type permissionsend
- the upper bound of the range of resource type permissions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<ResourceTypePermission> findByRoleId(long roleId, int start, int end, OrderByComparator<ResourceTypePermission> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ResourceTypePermissionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
roleId
- the role IDstart
- the lower bound of the range of resource type permissionsend
- the upper bound of the range of resource type permissions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ResourceTypePermission findByRoleId_First(long roleId, OrderByComparator<ResourceTypePermission> orderByComparator) throws NoSuchResourceTypePermissionException
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceTypePermissionException
- if a matching resource type permission could not be foundpublic static ResourceTypePermission fetchByRoleId_First(long roleId, OrderByComparator<ResourceTypePermission> orderByComparator)
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching resource type permission could not be foundpublic static ResourceTypePermission findByRoleId_Last(long roleId, OrderByComparator<ResourceTypePermission> orderByComparator) throws NoSuchResourceTypePermissionException
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceTypePermissionException
- if a matching resource type permission could not be foundpublic static ResourceTypePermission fetchByRoleId_Last(long roleId, OrderByComparator<ResourceTypePermission> orderByComparator)
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching resource type permission could not be foundpublic static ResourceTypePermission[] findByRoleId_PrevAndNext(long resourceTypePermissionId, long roleId, OrderByComparator<ResourceTypePermission> orderByComparator) throws NoSuchResourceTypePermissionException
resourceTypePermissionId
- the primary key of the current resource type permissionroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceTypePermissionException
- if a resource type permission with the primary key could not be foundpublic static void removeByRoleId(long roleId)
roleId
- the role IDpublic static int countByRoleId(long roleId)
roleId
- the role IDpublic static List<ResourceTypePermission> findByC_N_R(long companyId, String name, long roleId)
companyId
- the company IDname
- the nameroleId
- the role IDpublic static List<ResourceTypePermission> findByC_N_R(long companyId, String name, long roleId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ResourceTypePermissionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDname
- the nameroleId
- the role IDstart
- the lower bound of the range of resource type permissionsend
- the upper bound of the range of resource type permissions (not inclusive)public static List<ResourceTypePermission> findByC_N_R(long companyId, String name, long roleId, int start, int end, OrderByComparator<ResourceTypePermission> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ResourceTypePermissionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDname
- the nameroleId
- the role IDstart
- the lower bound of the range of resource type permissionsend
- the upper bound of the range of resource type permissions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<ResourceTypePermission> findByC_N_R(long companyId, String name, long roleId, int start, int end, OrderByComparator<ResourceTypePermission> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ResourceTypePermissionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDname
- the nameroleId
- the role IDstart
- the lower bound of the range of resource type permissionsend
- the upper bound of the range of resource type permissions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static ResourceTypePermission findByC_N_R_First(long companyId, String name, long roleId, OrderByComparator<ResourceTypePermission> orderByComparator) throws NoSuchResourceTypePermissionException
companyId
- the company IDname
- the nameroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceTypePermissionException
- if a matching resource type permission could not be foundpublic static ResourceTypePermission fetchByC_N_R_First(long companyId, String name, long roleId, OrderByComparator<ResourceTypePermission> orderByComparator)
companyId
- the company IDname
- the nameroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching resource type permission could not be foundpublic static ResourceTypePermission findByC_N_R_Last(long companyId, String name, long roleId, OrderByComparator<ResourceTypePermission> orderByComparator) throws NoSuchResourceTypePermissionException
companyId
- the company IDname
- the nameroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceTypePermissionException
- if a matching resource type permission could not be foundpublic static ResourceTypePermission fetchByC_N_R_Last(long companyId, String name, long roleId, OrderByComparator<ResourceTypePermission> orderByComparator)
companyId
- the company IDname
- the nameroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching resource type permission could not be foundpublic static ResourceTypePermission[] findByC_N_R_PrevAndNext(long resourceTypePermissionId, long companyId, String name, long roleId, OrderByComparator<ResourceTypePermission> orderByComparator) throws NoSuchResourceTypePermissionException
resourceTypePermissionId
- the primary key of the current resource type permissioncompanyId
- the company IDname
- the nameroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceTypePermissionException
- if a resource type permission with the primary key could not be foundpublic static void removeByC_N_R(long companyId, String name, long roleId)
companyId
- the company IDname
- the nameroleId
- the role IDpublic static int countByC_N_R(long companyId, String name, long roleId)
companyId
- the company IDname
- the nameroleId
- the role IDpublic static ResourceTypePermission findByC_G_N_R(long companyId, long groupId, String name, long roleId) throws NoSuchResourceTypePermissionException
NoSuchResourceTypePermissionException
if it could not be found.companyId
- the company IDgroupId
- the group IDname
- the nameroleId
- the role IDNoSuchResourceTypePermissionException
- if a matching resource type permission could not be foundpublic static ResourceTypePermission fetchByC_G_N_R(long companyId, long groupId, String name, long roleId)
null
if it could not be found. Uses the finder cache.companyId
- the company IDgroupId
- the group IDname
- the nameroleId
- the role IDnull
if a matching resource type permission could not be foundpublic static ResourceTypePermission fetchByC_G_N_R(long companyId, long groupId, String name, long roleId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDgroupId
- the group IDname
- the nameroleId
- the role IDuseFinderCache
- whether to use the finder cachenull
if a matching resource type permission could not be foundpublic static ResourceTypePermission removeByC_G_N_R(long companyId, long groupId, String name, long roleId) throws NoSuchResourceTypePermissionException
companyId
- the company IDgroupId
- the group IDname
- the nameroleId
- the role IDNoSuchResourceTypePermissionException
public static int countByC_G_N_R(long companyId, long groupId, String name, long roleId)
companyId
- the company IDgroupId
- the group IDname
- the nameroleId
- the role IDpublic static void cacheResult(ResourceTypePermission resourceTypePermission)
resourceTypePermission
- the resource type permissionpublic static void cacheResult(List<ResourceTypePermission> resourceTypePermissions)
resourceTypePermissions
- the resource type permissionspublic static ResourceTypePermission create(long resourceTypePermissionId)
resourceTypePermissionId
- the primary key for the new resource type permissionpublic static ResourceTypePermission remove(long resourceTypePermissionId) throws NoSuchResourceTypePermissionException
resourceTypePermissionId
- the primary key of the resource type permissionNoSuchResourceTypePermissionException
- if a resource type permission with the primary key could not be foundpublic static ResourceTypePermission updateImpl(ResourceTypePermission resourceTypePermission)
public static ResourceTypePermission findByPrimaryKey(long resourceTypePermissionId) throws NoSuchResourceTypePermissionException
NoSuchResourceTypePermissionException
if it could not be found.resourceTypePermissionId
- the primary key of the resource type permissionNoSuchResourceTypePermissionException
- if a resource type permission with the primary key could not be foundpublic static ResourceTypePermission fetchByPrimaryKey(long resourceTypePermissionId)
null
if it could not be found.resourceTypePermissionId
- the primary key of the resource type permissionnull
if a resource type permission with the primary key could not be foundpublic static List<ResourceTypePermission> findAll()
public static List<ResourceTypePermission> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ResourceTypePermissionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of resource type permissionsend
- the upper bound of the range of resource type permissions (not inclusive)public static List<ResourceTypePermission> findAll(int start, int end, OrderByComparator<ResourceTypePermission> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ResourceTypePermissionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of resource type permissionsend
- the upper bound of the range of resource type permissions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<ResourceTypePermission> findAll(int start, int end, OrderByComparator<ResourceTypePermission> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ResourceTypePermissionModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of resource type permissionsend
- the upper bound of the range of resource type permissions (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 ResourceTypePermissionPersistence getPersistence()