|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupUtil
@ProviderType public class MDRRuleGroupUtil
The persistence utility for the m d r rule group service. This utility wraps MDRRuleGroupPersistenceImpl 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
MDRRuleGroupPersistence,
MDRRuleGroupPersistenceImpl| Constructor Summary | |
|---|---|
MDRRuleGroupUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(List<MDRRuleGroup> mdrRuleGroups)
Caches the m d r rule groups in the entity cache if it is enabled. |
static void |
cacheResult(MDRRuleGroup mdrRuleGroup)
Caches the m d r rule group in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(MDRRuleGroup mdrRuleGroup)
|
static int |
countAll()
Returns the number of m d r rule groups. |
static int |
countByGroupId(long groupId)
Returns the number of m d r rule groups where groupId = ?. |
static int |
countByUuid_C(String uuid,
long companyId)
Returns the number of m d r rule groups where uuid = ? and companyId = ?. |
static int |
countByUUID_G(String uuid,
long groupId)
Returns the number of m d r rule groups where uuid = ? and groupId = ?. |
static int |
countByUuid(String uuid)
Returns the number of m d r rule groups where uuid = ?. |
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static MDRRuleGroup |
create(long ruleGroupId)
Creates a new m d r rule group with the primary key. |
static MDRRuleGroup |
fetchByGroupId_First(long groupId,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the first m d r rule group in the ordered set where groupId = ?. |
static MDRRuleGroup |
fetchByGroupId_Last(long groupId,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the last m d r rule group in the ordered set where groupId = ?. |
static MDRRuleGroup |
fetchByPrimaryKey(long ruleGroupId)
Returns the m d r rule group with the primary key or returns null if it could not be found. |
static Map<Serializable,MDRRuleGroup> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
static MDRRuleGroup |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the first m d r rule group in the ordered set where uuid = ? and companyId = ?. |
static MDRRuleGroup |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the last m d r rule group in the ordered set where uuid = ? and companyId = ?. |
static MDRRuleGroup |
fetchByUuid_First(String uuid,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the first m d r rule group in the ordered set where uuid = ?. |
static MDRRuleGroup |
fetchByUUID_G(String uuid,
long groupId)
Returns the m d r rule group where uuid = ? and groupId = ? or returns null if it could not be found. |
static MDRRuleGroup |
fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
Returns the m d r rule group where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. |
static MDRRuleGroup |
fetchByUuid_Last(String uuid,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the last m d r rule group in the ordered set where uuid = ?. |
static int |
filterCountByGroupId(long groupId)
Returns the number of m d r rule groups that the user has permission to view where groupId = ?. |
static MDRRuleGroup[] |
filterFindByGroupId_PrevAndNext(long ruleGroupId,
long groupId,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the m d r rule groups before and after the current m d r rule group in the ordered set of m d r rule groups that the user has permission to view where groupId = ?. |
static List<MDRRuleGroup> |
filterFindByGroupId(long groupId)
Returns all the m d r rule groups that the user has permission to view where groupId = ?. |
static List<MDRRuleGroup> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the m d r rule groups that the user has permission to view where groupId = ?. |
static List<MDRRuleGroup> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns an ordered range of all the m d r rule groups that the user has permissions to view where groupId = ?. |
static List<MDRRuleGroup> |
findAll()
Returns all the m d r rule groups. |
static List<MDRRuleGroup> |
findAll(int start,
int end)
Returns a range of all the m d r rule groups. |
static List<MDRRuleGroup> |
findAll(int start,
int end,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns an ordered range of all the m d r rule groups. |
static MDRRuleGroup |
findByGroupId_First(long groupId,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the first m d r rule group in the ordered set where groupId = ?. |
static MDRRuleGroup |
findByGroupId_Last(long groupId,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the last m d r rule group in the ordered set where groupId = ?. |
static MDRRuleGroup[] |
findByGroupId_PrevAndNext(long ruleGroupId,
long groupId,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the m d r rule groups before and after the current m d r rule group in the ordered set where groupId = ?. |
static List<MDRRuleGroup> |
findByGroupId(long groupId)
Returns all the m d r rule groups where groupId = ?. |
static List<MDRRuleGroup> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the m d r rule groups where groupId = ?. |
static List<MDRRuleGroup> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns an ordered range of all the m d r rule groups where groupId = ?. |
static MDRRuleGroup |
findByPrimaryKey(long ruleGroupId)
Returns the m d r rule group with the primary key or throws a NoSuchRuleGroupException if it could not be found. |
static MDRRuleGroup |
findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the first m d r rule group in the ordered set where uuid = ? and companyId = ?. |
static MDRRuleGroup |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the last m d r rule group in the ordered set where uuid = ? and companyId = ?. |
static MDRRuleGroup[] |
findByUuid_C_PrevAndNext(long ruleGroupId,
String uuid,
long companyId,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the m d r rule groups before and after the current m d r rule group in the ordered set where uuid = ? and companyId = ?. |
static List<MDRRuleGroup> |
findByUuid_C(String uuid,
long companyId)
Returns all the m d r rule groups where uuid = ? and companyId = ?. |
static List<MDRRuleGroup> |
findByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the m d r rule groups where uuid = ? and companyId = ?. |
static List<MDRRuleGroup> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns an ordered range of all the m d r rule groups where uuid = ? and companyId = ?. |
static MDRRuleGroup |
findByUuid_First(String uuid,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the first m d r rule group in the ordered set where uuid = ?. |
static MDRRuleGroup |
findByUUID_G(String uuid,
long groupId)
Returns the m d r rule group where uuid = ? and groupId = ? or throws a NoSuchRuleGroupException if it could not be found. |
static MDRRuleGroup |
findByUuid_Last(String uuid,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the last m d r rule group in the ordered set where uuid = ?. |
static MDRRuleGroup[] |
findByUuid_PrevAndNext(long ruleGroupId,
String uuid,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns the m d r rule groups before and after the current m d r rule group in the ordered set where uuid = ?. |
static List<MDRRuleGroup> |
findByUuid(String uuid)
Returns all the m d r rule groups where uuid = ?. |
static List<MDRRuleGroup> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the m d r rule groups where uuid = ?. |
static List<MDRRuleGroup> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<MDRRuleGroup> orderByComparator)
Returns an ordered range of all the m d r rule groups where uuid = ?. |
static List<MDRRuleGroup> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<MDRRuleGroup> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<MDRRuleGroup> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<MDRRuleGroup> orderByComparator)
|
static MDRRuleGroupPersistence |
getPersistence()
|
static MDRRuleGroup |
remove(long ruleGroupId)
Removes the m d r rule group with the primary key from the database. |
static void |
removeAll()
Removes all the m d r rule groups from the database. |
static void |
removeByGroupId(long groupId)
Removes all the m d r rule groups where groupId = ? from the database. |
static void |
removeByUuid_C(String uuid,
long companyId)
Removes all the m d r rule groups where uuid = ? and companyId = ? from the database. |
static MDRRuleGroup |
removeByUUID_G(String uuid,
long groupId)
Removes the m d r rule group where uuid = ? and groupId = ? from the database. |
static void |
removeByUuid(String uuid)
Removes all the m d r rule groups where uuid = ? from the database. |
void |
setPersistence(MDRRuleGroupPersistence persistence)
Deprecated. As of 6.2.0 |
static MDRRuleGroup |
update(MDRRuleGroup mdrRuleGroup)
|
static MDRRuleGroup |
update(MDRRuleGroup mdrRuleGroup,
ServiceContext serviceContext)
|
static MDRRuleGroup |
updateImpl(MDRRuleGroup mdrRuleGroup)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MDRRuleGroupUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(MDRRuleGroup mdrRuleGroup)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static List<MDRRuleGroup> findWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<MDRRuleGroup> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<MDRRuleGroup> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<MDRRuleGroup> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static MDRRuleGroup update(MDRRuleGroup mdrRuleGroup)
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static MDRRuleGroup update(MDRRuleGroup mdrRuleGroup,
ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)public static List<MDRRuleGroup> findByUuid(String uuid)
uuid - the uuid
public static List<MDRRuleGroup> findByUuid(String uuid,
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 com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupModelImpl. 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.
uuid - the uuidstart - the lower bound of the range of m d r rule groupsend - the upper bound of the range of m d r rule groups (not inclusive)
public static List<MDRRuleGroup> findByUuid(String uuid,
int start,
int end,
OrderByComparator<MDRRuleGroup> 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 com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupModelImpl. 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.
uuid - the uuidstart - the lower bound of the range of m d r rule groupsend - the upper bound of the range of m d r rule groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static MDRRuleGroup findByUuid_First(String uuid,
OrderByComparator<MDRRuleGroup> orderByComparator)
throws NoSuchRuleGroupException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleGroupException - if a matching m d r rule group could not be found
public static MDRRuleGroup fetchByUuid_First(String uuid,
OrderByComparator<MDRRuleGroup> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
null if a matching m d r rule group could not be found
public static MDRRuleGroup findByUuid_Last(String uuid,
OrderByComparator<MDRRuleGroup> orderByComparator)
throws NoSuchRuleGroupException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleGroupException - if a matching m d r rule group could not be found
public static MDRRuleGroup fetchByUuid_Last(String uuid,
OrderByComparator<MDRRuleGroup> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
null if a matching m d r rule group could not be found
public static MDRRuleGroup[] findByUuid_PrevAndNext(long ruleGroupId,
String uuid,
OrderByComparator<MDRRuleGroup> orderByComparator)
throws NoSuchRuleGroupException
ruleGroupId - the primary key of the current m d r rule groupuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleGroupException - if a m d r rule group with the primary key could not be foundpublic static void removeByUuid(String uuid)
uuid - the uuidpublic static int countByUuid(String uuid)
uuid - the uuid
public static MDRRuleGroup findByUUID_G(String uuid,
long groupId)
throws NoSuchRuleGroupException
NoSuchRuleGroupException if it could not be found.
uuid - the uuidgroupId - the group ID
NoSuchRuleGroupException - if a matching m d r rule group could not be found
public static MDRRuleGroup fetchByUUID_G(String uuid,
long groupId)
null if it could not be found. Uses the finder cache.
uuid - the uuidgroupId - the group ID
null if a matching m d r rule group could not be found
public static MDRRuleGroup fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
uuid - the uuidgroupId - the group IDretrieveFromCache - whether to use the finder cache
null if a matching m d r rule group could not be found
public static MDRRuleGroup removeByUUID_G(String uuid,
long groupId)
throws NoSuchRuleGroupException
uuid - the uuidgroupId - the group ID
NoSuchRuleGroupException
public static int countByUUID_G(String uuid,
long groupId)
uuid - the uuidgroupId - the group ID
public static List<MDRRuleGroup> findByUuid_C(String uuid,
long companyId)
uuid - the uuidcompanyId - the company ID
public static List<MDRRuleGroup> findByUuid_C(String uuid,
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupModelImpl. 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.
uuid - the uuidcompanyId - the company IDstart - the lower bound of the range of m d r rule groupsend - the upper bound of the range of m d r rule groups (not inclusive)
public static List<MDRRuleGroup> findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<MDRRuleGroup> 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 com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupModelImpl. 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.
uuid - the uuidcompanyId - the company IDstart - the lower bound of the range of m d r rule groupsend - the upper bound of the range of m d r rule groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static MDRRuleGroup findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<MDRRuleGroup> orderByComparator)
throws NoSuchRuleGroupException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleGroupException - if a matching m d r rule group could not be found
public static MDRRuleGroup fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<MDRRuleGroup> orderByComparator)
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching m d r rule group could not be found
public static MDRRuleGroup findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<MDRRuleGroup> orderByComparator)
throws NoSuchRuleGroupException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleGroupException - if a matching m d r rule group could not be found
public static MDRRuleGroup fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<MDRRuleGroup> orderByComparator)
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching m d r rule group could not be found
public static MDRRuleGroup[] findByUuid_C_PrevAndNext(long ruleGroupId,
String uuid,
long companyId,
OrderByComparator<MDRRuleGroup> orderByComparator)
throws NoSuchRuleGroupException
ruleGroupId - the primary key of the current m d r rule groupuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleGroupException - if a m d r rule group with the primary key could not be found
public static void removeByUuid_C(String uuid,
long companyId)
uuid - the uuidcompanyId - the company ID
public static int countByUuid_C(String uuid,
long companyId)
uuid - the uuidcompanyId - the company ID
public static List<MDRRuleGroup> findByGroupId(long groupId)
groupId - the group ID
public static List<MDRRuleGroup> findByGroupId(long groupId,
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 com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupModelImpl. 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.
groupId - the group IDstart - the lower bound of the range of m d r rule groupsend - the upper bound of the range of m d r rule groups (not inclusive)
public static List<MDRRuleGroup> findByGroupId(long groupId,
int start,
int end,
OrderByComparator<MDRRuleGroup> 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 com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupModelImpl. 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.
groupId - the group IDstart - the lower bound of the range of m d r rule groupsend - the upper bound of the range of m d r rule groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static MDRRuleGroup findByGroupId_First(long groupId,
OrderByComparator<MDRRuleGroup> orderByComparator)
throws NoSuchRuleGroupException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleGroupException - if a matching m d r rule group could not be found
public static MDRRuleGroup fetchByGroupId_First(long groupId,
OrderByComparator<MDRRuleGroup> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching m d r rule group could not be found
public static MDRRuleGroup findByGroupId_Last(long groupId,
OrderByComparator<MDRRuleGroup> orderByComparator)
throws NoSuchRuleGroupException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleGroupException - if a matching m d r rule group could not be found
public static MDRRuleGroup fetchByGroupId_Last(long groupId,
OrderByComparator<MDRRuleGroup> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching m d r rule group could not be found
public static MDRRuleGroup[] findByGroupId_PrevAndNext(long ruleGroupId,
long groupId,
OrderByComparator<MDRRuleGroup> orderByComparator)
throws NoSuchRuleGroupException
ruleGroupId - the primary key of the current m d r rule groupgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleGroupException - if a m d r rule group with the primary key could not be foundpublic static List<MDRRuleGroup> filterFindByGroupId(long groupId)
groupId - the group ID
public static List<MDRRuleGroup> filterFindByGroupId(long groupId,
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 com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupModelImpl. 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.
groupId - the group IDstart - the lower bound of the range of m d r rule groupsend - the upper bound of the range of m d r rule groups (not inclusive)
public static List<MDRRuleGroup> filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator<MDRRuleGroup> 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 com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupModelImpl. 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.
groupId - the group IDstart - the lower bound of the range of m d r rule groupsend - the upper bound of the range of m d r rule groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static MDRRuleGroup[] filterFindByGroupId_PrevAndNext(long ruleGroupId,
long groupId,
OrderByComparator<MDRRuleGroup> orderByComparator)
throws NoSuchRuleGroupException
ruleGroupId - the primary key of the current m d r rule groupgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRuleGroupException - if a m d r rule group with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId - the group IDpublic static int countByGroupId(long groupId)
groupId - the group ID
public static int filterCountByGroupId(long groupId)
groupId - the group ID
public static void cacheResult(MDRRuleGroup mdrRuleGroup)
mdrRuleGroup - the m d r rule grouppublic static void cacheResult(List<MDRRuleGroup> mdrRuleGroups)
mdrRuleGroups - the m d r rule groupspublic static MDRRuleGroup create(long ruleGroupId)
ruleGroupId - the primary key for the new m d r rule group
public static MDRRuleGroup remove(long ruleGroupId)
throws NoSuchRuleGroupException
ruleGroupId - the primary key of the m d r rule group
NoSuchRuleGroupException - if a m d r rule group with the primary key could not be foundpublic static MDRRuleGroup updateImpl(MDRRuleGroup mdrRuleGroup)
public static MDRRuleGroup findByPrimaryKey(long ruleGroupId)
throws NoSuchRuleGroupException
NoSuchRuleGroupException if it could not be found.
ruleGroupId - the primary key of the m d r rule group
NoSuchRuleGroupException - if a m d r rule group with the primary key could not be foundpublic static MDRRuleGroup fetchByPrimaryKey(long ruleGroupId)
null if it could not be found.
ruleGroupId - the primary key of the m d r rule group
null if a m d r rule group with the primary key could not be foundpublic static Map<Serializable,MDRRuleGroup> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<MDRRuleGroup> findAll()
public static List<MDRRuleGroup> 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 com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupModelImpl. 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 m d r rule groupsend - the upper bound of the range of m d r rule groups (not inclusive)
public static List<MDRRuleGroup> findAll(int start,
int end,
OrderByComparator<MDRRuleGroup> 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 com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupModelImpl. 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 m d r rule groupsend - the upper bound of the range of m d r rule groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static void removeAll()
public static int countAll()
public static MDRRuleGroupPersistence getPersistence()
@Deprecated public void setPersistence(MDRRuleGroupPersistence persistence)
|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||