@ProviderType
public class MDRRuleUtil
extends java.lang.Object
com.liferay.mobile.device.rules.service.persistence.impl.MDRRulePersistenceImpl
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
MDRRulePersistence
,
com.liferay.mobile.device.rules.service.persistence.impl.MDRRulePersistenceImpl
Constructor and Description |
---|
MDRRuleUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<MDRRule> mdrRules)
Caches the mdr rules in the entity cache if it is enabled.
|
static void |
cacheResult(MDRRule mdrRule)
Caches the mdr rule in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(MDRRule mdrRule) |
static int |
countAll()
Returns the number of mdr rules.
|
static int |
countByRuleGroupId(long ruleGroupId)
Returns the number of mdr rules where ruleGroupId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of mdr rules where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of mdr rules where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of mdr rules where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static MDRRule |
create(long ruleId)
Creates a new mdr rule with the primary key.
|
static MDRRule |
fetchByPrimaryKey(long ruleId)
Returns the mdr rule with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,MDRRule> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static MDRRule |
fetchByRuleGroupId_First(long ruleGroupId,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the first mdr rule in the ordered set where ruleGroupId = ?.
|
static MDRRule |
fetchByRuleGroupId_Last(long ruleGroupId,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the last mdr rule in the ordered set where ruleGroupId = ?.
|
static MDRRule |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the first mdr rule in the ordered set where uuid = ? and companyId = ?.
|
static MDRRule |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the last mdr rule in the ordered set where uuid = ? and companyId = ?.
|
static MDRRule |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the first mdr rule in the ordered set where uuid = ?.
|
static MDRRule |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the mdr rule where uuid = ? and groupId = ? or returns
null if it could not be found. |
static MDRRule |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
Returns the mdr rule where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static MDRRule |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the last mdr rule in the ordered set where uuid = ?.
|
static java.util.List<MDRRule> |
findAll()
Returns all the mdr rules.
|
static java.util.List<MDRRule> |
findAll(int start,
int end)
Returns a range of all the mdr rules.
|
static java.util.List<MDRRule> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns an ordered range of all the mdr rules.
|
static java.util.List<MDRRule> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the mdr rules.
|
static MDRRule |
findByPrimaryKey(long ruleId)
Returns the mdr rule with the primary key or throws a
NoSuchRuleException if it could not be found. |
static MDRRule |
findByRuleGroupId_First(long ruleGroupId,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the first mdr rule in the ordered set where ruleGroupId = ?.
|
static MDRRule |
findByRuleGroupId_Last(long ruleGroupId,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the last mdr rule in the ordered set where ruleGroupId = ?.
|
static MDRRule[] |
findByRuleGroupId_PrevAndNext(long ruleId,
long ruleGroupId,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the mdr rules before and after the current mdr rule in the ordered set where ruleGroupId = ?.
|
static java.util.List<MDRRule> |
findByRuleGroupId(long ruleGroupId)
Returns all the mdr rules where ruleGroupId = ?.
|
static java.util.List<MDRRule> |
findByRuleGroupId(long ruleGroupId,
int start,
int end)
Returns a range of all the mdr rules where ruleGroupId = ?.
|
static java.util.List<MDRRule> |
findByRuleGroupId(long ruleGroupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns an ordered range of all the mdr rules where ruleGroupId = ?.
|
static java.util.List<MDRRule> |
findByRuleGroupId(long ruleGroupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the mdr rules where ruleGroupId = ?.
|
static MDRRule |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the first mdr rule in the ordered set where uuid = ? and companyId = ?.
|
static MDRRule |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the last mdr rule in the ordered set where uuid = ? and companyId = ?.
|
static MDRRule[] |
findByUuid_C_PrevAndNext(long ruleId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the mdr rules before and after the current mdr rule in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<MDRRule> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the mdr rules where uuid = ? and companyId = ?.
|
static java.util.List<MDRRule> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the mdr rules where uuid = ? and companyId = ?.
|
static java.util.List<MDRRule> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns an ordered range of all the mdr rules where uuid = ? and companyId = ?.
|
static java.util.List<MDRRule> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the mdr rules where uuid = ? and companyId = ?.
|
static MDRRule |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the first mdr rule in the ordered set where uuid = ?.
|
static MDRRule |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the mdr rule where uuid = ? and groupId = ? or throws a
NoSuchRuleException if it could not be found. |
static MDRRule |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the last mdr rule in the ordered set where uuid = ?.
|
static MDRRule[] |
findByUuid_PrevAndNext(long ruleId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the mdr rules before and after the current mdr rule in the ordered set where uuid = ?.
|
static java.util.List<MDRRule> |
findByUuid(java.lang.String uuid)
Returns all the mdr rules where uuid = ?.
|
static java.util.List<MDRRule> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the mdr rules where uuid = ?.
|
static java.util.List<MDRRule> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns an ordered range of all the mdr rules where uuid = ?.
|
static java.util.List<MDRRule> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the mdr rules where uuid = ?.
|
static java.util.List<MDRRule> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<MDRRule> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<MDRRule> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static MDRRulePersistence |
getPersistence() |
static MDRRule |
remove(long ruleId)
Removes the mdr rule with the primary key from the database.
|
static void |
removeAll()
Removes all the mdr rules from the database.
|
static void |
removeByRuleGroupId(long ruleGroupId)
Removes all the mdr rules where ruleGroupId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the mdr rules where uuid = ? and companyId = ? from the database.
|
static MDRRule |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the mdr rule where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the mdr rules where uuid = ? from the database.
|
static MDRRule |
update(MDRRule mdrRule) |
static MDRRule |
update(MDRRule mdrRule,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static MDRRule |
updateImpl(MDRRule mdrRule) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(MDRRule mdrRule)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.List<MDRRule> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<MDRRule> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<MDRRule> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static MDRRule update(MDRRule mdrRule)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static MDRRule update(MDRRule mdrRule, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<MDRRule> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<MDRRule> findByUuid(java.lang.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 MDRRuleModelImpl
. 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 mdr rulesend
- the upper bound of the range of mdr rules (not inclusive)public static java.util.List<MDRRule> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> 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 MDRRuleModelImpl
. 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 mdr rulesend
- the upper bound of the range of mdr rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<MDRRule> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator, boolean retrieveFromCache)
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 MDRRuleModelImpl
. 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 mdr rulesend
- the upper bound of the range of mdr rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static MDRRule findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) throws NoSuchRuleException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRuleException
- if a matching mdr rule could not be foundpublic static MDRRule fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching mdr rule could not be foundpublic static MDRRule findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) throws NoSuchRuleException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRuleException
- if a matching mdr rule could not be foundpublic static MDRRule fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching mdr rule could not be foundpublic static MDRRule[] findByUuid_PrevAndNext(long ruleId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) throws NoSuchRuleException
ruleId
- the primary key of the current mdr ruleuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRuleException
- if a mdr rule with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static MDRRule findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchRuleException
NoSuchRuleException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchRuleException
- if a matching mdr rule could not be foundpublic static MDRRule fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching mdr rule could not be foundpublic static MDRRule fetchByUUID_G(java.lang.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 retrieve from the finder cachenull
if a matching mdr rule could not be foundpublic static MDRRule removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchRuleException
uuid
- the uuidgroupId
- the group IDNoSuchRuleException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<MDRRule> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<MDRRule> findByUuid_C(java.lang.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 MDRRuleModelImpl
. 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 mdr rulesend
- the upper bound of the range of mdr rules (not inclusive)public static java.util.List<MDRRule> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> 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 MDRRuleModelImpl
. 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 mdr rulesend
- the upper bound of the range of mdr rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<MDRRule> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator, boolean retrieveFromCache)
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 MDRRuleModelImpl
. 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 mdr rulesend
- the upper bound of the range of mdr rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static MDRRule findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) throws NoSuchRuleException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRuleException
- if a matching mdr rule could not be foundpublic static MDRRule fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching mdr rule could not be foundpublic static MDRRule findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) throws NoSuchRuleException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRuleException
- if a matching mdr rule could not be foundpublic static MDRRule fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching mdr rule could not be foundpublic static MDRRule[] findByUuid_C_PrevAndNext(long ruleId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) throws NoSuchRuleException
ruleId
- the primary key of the current mdr ruleuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRuleException
- if a mdr rule with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<MDRRule> findByRuleGroupId(long ruleGroupId)
ruleGroupId
- the rule group IDpublic static java.util.List<MDRRule> findByRuleGroupId(long ruleGroupId, 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 MDRRuleModelImpl
. 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.
ruleGroupId
- the rule group IDstart
- the lower bound of the range of mdr rulesend
- the upper bound of the range of mdr rules (not inclusive)public static java.util.List<MDRRule> findByRuleGroupId(long ruleGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> 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 MDRRuleModelImpl
. 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.
ruleGroupId
- the rule group IDstart
- the lower bound of the range of mdr rulesend
- the upper bound of the range of mdr rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<MDRRule> findByRuleGroupId(long ruleGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator, boolean retrieveFromCache)
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 MDRRuleModelImpl
. 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.
ruleGroupId
- the rule group IDstart
- the lower bound of the range of mdr rulesend
- the upper bound of the range of mdr rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static MDRRule findByRuleGroupId_First(long ruleGroupId, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) throws NoSuchRuleException
ruleGroupId
- the rule group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRuleException
- if a matching mdr rule could not be foundpublic static MDRRule fetchByRuleGroupId_First(long ruleGroupId, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
ruleGroupId
- the rule group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching mdr rule could not be foundpublic static MDRRule findByRuleGroupId_Last(long ruleGroupId, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) throws NoSuchRuleException
ruleGroupId
- the rule group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRuleException
- if a matching mdr rule could not be foundpublic static MDRRule fetchByRuleGroupId_Last(long ruleGroupId, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
ruleGroupId
- the rule group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching mdr rule could not be foundpublic static MDRRule[] findByRuleGroupId_PrevAndNext(long ruleId, long ruleGroupId, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) throws NoSuchRuleException
ruleId
- the primary key of the current mdr ruleruleGroupId
- the rule group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRuleException
- if a mdr rule with the primary key could not be foundpublic static void removeByRuleGroupId(long ruleGroupId)
ruleGroupId
- the rule group IDpublic static int countByRuleGroupId(long ruleGroupId)
ruleGroupId
- the rule group IDpublic static void cacheResult(MDRRule mdrRule)
mdrRule
- the mdr rulepublic static void cacheResult(java.util.List<MDRRule> mdrRules)
mdrRules
- the mdr rulespublic static MDRRule create(long ruleId)
ruleId
- the primary key for the new mdr rulepublic static MDRRule remove(long ruleId) throws NoSuchRuleException
ruleId
- the primary key of the mdr ruleNoSuchRuleException
- if a mdr rule with the primary key could not be foundpublic static MDRRule findByPrimaryKey(long ruleId) throws NoSuchRuleException
NoSuchRuleException
if it could not be found.ruleId
- the primary key of the mdr ruleNoSuchRuleException
- if a mdr rule with the primary key could not be foundpublic static MDRRule fetchByPrimaryKey(long ruleId)
null
if it could not be found.ruleId
- the primary key of the mdr rulenull
if a mdr rule with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,MDRRule> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<MDRRule> findAll()
public static java.util.List<MDRRule> 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 MDRRuleModelImpl
. 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 mdr rulesend
- the upper bound of the range of mdr rules (not inclusive)public static java.util.List<MDRRule> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> 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 MDRRuleModelImpl
. 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 mdr rulesend
- the upper bound of the range of mdr rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<MDRRule> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator, boolean retrieveFromCache)
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 MDRRuleModelImpl
. 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 mdr rulesend
- the upper bound of the range of mdr rules (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static java.util.Set<java.lang.String> getBadColumnNames()
public static MDRRulePersistence getPersistence()