|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 orderByComparator)
Returns the first m d r rule group in the ordered set where groupId = ?. |
static MDRRuleGroup |
fetchByGroupId_Last(long groupId,
OrderByComparator 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 MDRRuleGroup |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator 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 orderByComparator)
Returns the last m d r rule group in the ordered set where uuid = ? and companyId = ?. |
static MDRRuleGroup |
fetchByUuid_First(String uuid,
OrderByComparator 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 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 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 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 orderByComparator)
Returns an ordered range of all the m d r rule groups. |
static MDRRuleGroup |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first m d r rule group in the ordered set where groupId = ?. |
static MDRRuleGroup |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last m d r rule group in the ordered set where groupId = ?. |
static MDRRuleGroup[] |
findByGroupId_PrevAndNext(long ruleGroupId,
long groupId,
OrderByComparator 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 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 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 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 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 orderByComparator)
Returns an ordered range of all the m d r rule groups where uuid = ? and companyId = ?. |
static MDRRuleGroup |
findByUuid_First(String uuid,
OrderByComparator 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 orderByComparator)
Returns the last m d r rule group in the ordered set where uuid = ?. |
static MDRRuleGroup[] |
findByUuid_PrevAndNext(long ruleGroupId,
String uuid,
OrderByComparator 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 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 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) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<MDRRuleGroup> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<MDRRuleGroup> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<MDRRuleGroup> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static MDRRuleGroup update(MDRRuleGroup mdrRuleGroup) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static MDRRuleGroup update(MDRRuleGroup mdrRuleGroup, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)
public static List<MDRRuleGroup> findByUuid(String uuid) throws SystemException
uuid
- the uuid
SystemException
- if a system exception occurredpublic static List<MDRRuleGroup> findByUuid(String uuid, int start, int end) throws SystemException
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 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)
SystemException
- if a system exception occurredpublic static List<MDRRuleGroup> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 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
)
SystemException
- if a system exception occurredpublic static MDRRuleGroup findByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException, 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
SystemException
- if a system exception occurredpublic static MDRRuleGroup fetchByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException
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
SystemException
- if a system exception occurredpublic static MDRRuleGroup findByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException, 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
SystemException
- if a system exception occurredpublic static MDRRuleGroup fetchByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException
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
SystemException
- if a system exception occurredpublic static MDRRuleGroup[] findByUuid_PrevAndNext(long ruleGroupId, String uuid, OrderByComparator orderByComparator) throws SystemException, 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 found
SystemException
- if a system exception occurredpublic static void removeByUuid(String uuid) throws SystemException
uuid
- the uuid
SystemException
- if a system exception occurredpublic static int countByUuid(String uuid) throws SystemException
uuid
- the uuid
SystemException
- if a system exception occurredpublic static MDRRuleGroup findByUUID_G(String uuid, long groupId) throws SystemException, 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
SystemException
- if a system exception occurredpublic static MDRRuleGroup fetchByUUID_G(String uuid, long groupId) throws SystemException
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
SystemException
- if a system exception occurredpublic static MDRRuleGroup fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache) throws SystemException
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
SystemException
- if a system exception occurredpublic static MDRRuleGroup removeByUUID_G(String uuid, long groupId) throws SystemException, NoSuchRuleGroupException
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurred
NoSuchRuleGroupException
public static int countByUUID_G(String uuid, long groupId) throws SystemException
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurredpublic static List<MDRRuleGroup> findByUuid_C(String uuid, long companyId) throws SystemException
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredpublic static List<MDRRuleGroup> findByUuid_C(String uuid, long companyId, int start, int end) throws SystemException
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 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)
SystemException
- if a system exception occurredpublic static List<MDRRuleGroup> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 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
)
SystemException
- if a system exception occurredpublic static MDRRuleGroup findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException, 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
SystemException
- if a system exception occurredpublic static MDRRuleGroup fetchByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
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
SystemException
- if a system exception occurredpublic static MDRRuleGroup findByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException, 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
SystemException
- if a system exception occurredpublic static MDRRuleGroup fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
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
SystemException
- if a system exception occurredpublic static MDRRuleGroup[] findByUuid_C_PrevAndNext(long ruleGroupId, String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException, 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
SystemException
- if a system exception occurredpublic static void removeByUuid_C(String uuid, long companyId) throws SystemException
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredpublic static int countByUuid_C(String uuid, long companyId) throws SystemException
uuid
- the uuidcompanyId
- the company ID
SystemException
- if a system exception occurredpublic static List<MDRRuleGroup> findByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static List<MDRRuleGroup> findByGroupId(long groupId, int start, int end) throws SystemException
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 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)
SystemException
- if a system exception occurredpublic static List<MDRRuleGroup> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 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
)
SystemException
- if a system exception occurredpublic static MDRRuleGroup findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException, 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
SystemException
- if a system exception occurredpublic static MDRRuleGroup fetchByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException
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
SystemException
- if a system exception occurredpublic static MDRRuleGroup findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException, 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
SystemException
- if a system exception occurredpublic static MDRRuleGroup fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException
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
SystemException
- if a system exception occurredpublic static MDRRuleGroup[] findByGroupId_PrevAndNext(long ruleGroupId, long groupId, OrderByComparator orderByComparator) throws SystemException, 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 found
SystemException
- if a system exception occurredpublic static List<MDRRuleGroup> filterFindByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static List<MDRRuleGroup> filterFindByGroupId(long groupId, int start, int end) throws SystemException
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 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)
SystemException
- if a system exception occurredpublic static List<MDRRuleGroup> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 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
)
SystemException
- if a system exception occurredpublic static MDRRuleGroup[] filterFindByGroupId_PrevAndNext(long ruleGroupId, long groupId, OrderByComparator orderByComparator) throws SystemException, 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 found
SystemException
- if a system exception occurredpublic static void removeByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static int countByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static int filterCountByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic 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 SystemException, 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 found
SystemException
- if a system exception occurredpublic static MDRRuleGroup updateImpl(MDRRuleGroup mdrRuleGroup) throws SystemException
SystemException
public static MDRRuleGroup findByPrimaryKey(long ruleGroupId) throws SystemException, 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 found
SystemException
- if a system exception occurredpublic static MDRRuleGroup fetchByPrimaryKey(long ruleGroupId) throws SystemException
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 found
SystemException
- if a system exception occurredpublic static List<MDRRuleGroup> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<MDRRuleGroup> findAll(int start, int end) throws SystemException
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 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)
SystemException
- if a system exception occurredpublic static List<MDRRuleGroup> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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 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
)
SystemException
- if a system exception occurredpublic static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static MDRRuleGroupPersistence getPersistence()
public void setPersistence(MDRRuleGroupPersistence persistence)
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |