@ProviderType
public class MDRActionUtil
extends java.lang.Object
com.liferay.mobile.device.rules.service.persistence.impl.MDRActionPersistenceImpl
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
MDRActionPersistence
,
com.liferay.mobile.device.rules.service.persistence.impl.MDRActionPersistenceImpl
Constructor and Description |
---|
MDRActionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<MDRAction> mdrActions)
Caches the mdr actions in the entity cache if it is enabled.
|
static void |
cacheResult(MDRAction mdrAction)
Caches the mdr action in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(MDRAction mdrAction) |
static int |
countAll()
Returns the number of mdr actions.
|
static int |
countByRuleGroupInstanceId(long ruleGroupInstanceId)
Returns the number of mdr actions where ruleGroupInstanceId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of mdr actions where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of mdr actions where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of mdr actions where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static MDRAction |
create(long actionId)
Creates a new mdr action with the primary key.
|
static MDRAction |
fetchByPrimaryKey(long actionId)
Returns the mdr action with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,MDRAction> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static MDRAction |
fetchByRuleGroupInstanceId_First(long ruleGroupInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns the first mdr action in the ordered set where ruleGroupInstanceId = ?.
|
static MDRAction |
fetchByRuleGroupInstanceId_Last(long ruleGroupInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns the last mdr action in the ordered set where ruleGroupInstanceId = ?.
|
static MDRAction |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns the first mdr action in the ordered set where uuid = ? and companyId = ?.
|
static MDRAction |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns the last mdr action in the ordered set where uuid = ? and companyId = ?.
|
static MDRAction |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns the first mdr action in the ordered set where uuid = ?.
|
static MDRAction |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the mdr action where uuid = ? and groupId = ? or returns
null if it could not be found. |
static MDRAction |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
Returns the mdr action where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static MDRAction |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns the last mdr action in the ordered set where uuid = ?.
|
static java.util.List<MDRAction> |
findAll()
Returns all the mdr actions.
|
static java.util.List<MDRAction> |
findAll(int start,
int end)
Returns a range of all the mdr actions.
|
static java.util.List<MDRAction> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns an ordered range of all the mdr actions.
|
static java.util.List<MDRAction> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the mdr actions.
|
static MDRAction |
findByPrimaryKey(long actionId)
Returns the mdr action with the primary key or throws a
NoSuchActionException if it could not be found. |
static MDRAction |
findByRuleGroupInstanceId_First(long ruleGroupInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns the first mdr action in the ordered set where ruleGroupInstanceId = ?.
|
static MDRAction |
findByRuleGroupInstanceId_Last(long ruleGroupInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns the last mdr action in the ordered set where ruleGroupInstanceId = ?.
|
static MDRAction[] |
findByRuleGroupInstanceId_PrevAndNext(long actionId,
long ruleGroupInstanceId,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns the mdr actions before and after the current mdr action in the ordered set where ruleGroupInstanceId = ?.
|
static java.util.List<MDRAction> |
findByRuleGroupInstanceId(long ruleGroupInstanceId)
Returns all the mdr actions where ruleGroupInstanceId = ?.
|
static java.util.List<MDRAction> |
findByRuleGroupInstanceId(long ruleGroupInstanceId,
int start,
int end)
Returns a range of all the mdr actions where ruleGroupInstanceId = ?.
|
static java.util.List<MDRAction> |
findByRuleGroupInstanceId(long ruleGroupInstanceId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns an ordered range of all the mdr actions where ruleGroupInstanceId = ?.
|
static java.util.List<MDRAction> |
findByRuleGroupInstanceId(long ruleGroupInstanceId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the mdr actions where ruleGroupInstanceId = ?.
|
static MDRAction |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns the first mdr action in the ordered set where uuid = ? and companyId = ?.
|
static MDRAction |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns the last mdr action in the ordered set where uuid = ? and companyId = ?.
|
static MDRAction[] |
findByUuid_C_PrevAndNext(long actionId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns the mdr actions before and after the current mdr action in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<MDRAction> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the mdr actions where uuid = ? and companyId = ?.
|
static java.util.List<MDRAction> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the mdr actions where uuid = ? and companyId = ?.
|
static java.util.List<MDRAction> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns an ordered range of all the mdr actions where uuid = ? and companyId = ?.
|
static java.util.List<MDRAction> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the mdr actions where uuid = ? and companyId = ?.
|
static MDRAction |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns the first mdr action in the ordered set where uuid = ?.
|
static MDRAction |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the mdr action where uuid = ? and groupId = ? or throws a
NoSuchActionException if it could not be found. |
static MDRAction |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns the last mdr action in the ordered set where uuid = ?.
|
static MDRAction[] |
findByUuid_PrevAndNext(long actionId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns the mdr actions before and after the current mdr action in the ordered set where uuid = ?.
|
static java.util.List<MDRAction> |
findByUuid(java.lang.String uuid)
Returns all the mdr actions where uuid = ?.
|
static java.util.List<MDRAction> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the mdr actions where uuid = ?.
|
static java.util.List<MDRAction> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
Returns an ordered range of all the mdr actions where uuid = ?.
|
static java.util.List<MDRAction> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the mdr actions where uuid = ?.
|
static java.util.List<MDRAction> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<MDRAction> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<MDRAction> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static MDRActionPersistence |
getPersistence() |
static MDRAction |
remove(long actionId)
Removes the mdr action with the primary key from the database.
|
static void |
removeAll()
Removes all the mdr actions from the database.
|
static void |
removeByRuleGroupInstanceId(long ruleGroupInstanceId)
Removes all the mdr actions where ruleGroupInstanceId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the mdr actions where uuid = ? and companyId = ? from the database.
|
static MDRAction |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the mdr action where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the mdr actions where uuid = ? from the database.
|
static MDRAction |
update(MDRAction mdrAction) |
static MDRAction |
update(MDRAction mdrAction,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static MDRAction |
updateImpl(MDRAction mdrAction) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(MDRAction mdrAction)
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<MDRAction> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<MDRAction> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<MDRAction> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static MDRAction update(MDRAction mdrAction)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static MDRAction update(MDRAction mdrAction, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<MDRAction> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<MDRAction> 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 MDRActionModelImpl
. 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 actionsend
- the upper bound of the range of mdr actions (not inclusive)public static java.util.List<MDRAction> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> 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 MDRActionModelImpl
. 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 actionsend
- the upper bound of the range of mdr actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<MDRAction> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> 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 MDRActionModelImpl
. 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 actionsend
- the upper bound of the range of mdr actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static MDRAction findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator) throws NoSuchActionException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActionException
- if a matching mdr action could not be foundpublic static MDRAction fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching mdr action could not be foundpublic static MDRAction findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator) throws NoSuchActionException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActionException
- if a matching mdr action could not be foundpublic static MDRAction fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching mdr action could not be foundpublic static MDRAction[] findByUuid_PrevAndNext(long actionId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator) throws NoSuchActionException
actionId
- the primary key of the current mdr actionuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActionException
- if a mdr action 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 MDRAction findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchActionException
NoSuchActionException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchActionException
- if a matching mdr action could not be foundpublic static MDRAction 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 action could not be foundpublic static MDRAction 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 action could not be foundpublic static MDRAction removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchActionException
uuid
- the uuidgroupId
- the group IDNoSuchActionException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<MDRAction> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<MDRAction> 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 MDRActionModelImpl
. 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 actionsend
- the upper bound of the range of mdr actions (not inclusive)public static java.util.List<MDRAction> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> 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 MDRActionModelImpl
. 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 actionsend
- the upper bound of the range of mdr actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<MDRAction> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> 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 MDRActionModelImpl
. 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 actionsend
- the upper bound of the range of mdr actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static MDRAction findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator) throws NoSuchActionException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActionException
- if a matching mdr action could not be foundpublic static MDRAction fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching mdr action could not be foundpublic static MDRAction findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator) throws NoSuchActionException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActionException
- if a matching mdr action could not be foundpublic static MDRAction fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching mdr action could not be foundpublic static MDRAction[] findByUuid_C_PrevAndNext(long actionId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator) throws NoSuchActionException
actionId
- the primary key of the current mdr actionuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActionException
- if a mdr action 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<MDRAction> findByRuleGroupInstanceId(long ruleGroupInstanceId)
ruleGroupInstanceId
- the rule group instance IDpublic static java.util.List<MDRAction> findByRuleGroupInstanceId(long ruleGroupInstanceId, 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 MDRActionModelImpl
. 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.
ruleGroupInstanceId
- the rule group instance IDstart
- the lower bound of the range of mdr actionsend
- the upper bound of the range of mdr actions (not inclusive)public static java.util.List<MDRAction> findByRuleGroupInstanceId(long ruleGroupInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> 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 MDRActionModelImpl
. 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.
ruleGroupInstanceId
- the rule group instance IDstart
- the lower bound of the range of mdr actionsend
- the upper bound of the range of mdr actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<MDRAction> findByRuleGroupInstanceId(long ruleGroupInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> 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 MDRActionModelImpl
. 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.
ruleGroupInstanceId
- the rule group instance IDstart
- the lower bound of the range of mdr actionsend
- the upper bound of the range of mdr actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static MDRAction findByRuleGroupInstanceId_First(long ruleGroupInstanceId, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator) throws NoSuchActionException
ruleGroupInstanceId
- the rule group instance IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActionException
- if a matching mdr action could not be foundpublic static MDRAction fetchByRuleGroupInstanceId_First(long ruleGroupInstanceId, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
ruleGroupInstanceId
- the rule group instance IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching mdr action could not be foundpublic static MDRAction findByRuleGroupInstanceId_Last(long ruleGroupInstanceId, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator) throws NoSuchActionException
ruleGroupInstanceId
- the rule group instance IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActionException
- if a matching mdr action could not be foundpublic static MDRAction fetchByRuleGroupInstanceId_Last(long ruleGroupInstanceId, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator)
ruleGroupInstanceId
- the rule group instance IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching mdr action could not be foundpublic static MDRAction[] findByRuleGroupInstanceId_PrevAndNext(long actionId, long ruleGroupInstanceId, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> orderByComparator) throws NoSuchActionException
actionId
- the primary key of the current mdr actionruleGroupInstanceId
- the rule group instance IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchActionException
- if a mdr action with the primary key could not be foundpublic static void removeByRuleGroupInstanceId(long ruleGroupInstanceId)
ruleGroupInstanceId
- the rule group instance IDpublic static int countByRuleGroupInstanceId(long ruleGroupInstanceId)
ruleGroupInstanceId
- the rule group instance IDpublic static void cacheResult(MDRAction mdrAction)
mdrAction
- the mdr actionpublic static void cacheResult(java.util.List<MDRAction> mdrActions)
mdrActions
- the mdr actionspublic static MDRAction create(long actionId)
actionId
- the primary key for the new mdr actionpublic static MDRAction remove(long actionId) throws NoSuchActionException
actionId
- the primary key of the mdr actionNoSuchActionException
- if a mdr action with the primary key could not be foundpublic static MDRAction findByPrimaryKey(long actionId) throws NoSuchActionException
NoSuchActionException
if it could not be found.actionId
- the primary key of the mdr actionNoSuchActionException
- if a mdr action with the primary key could not be foundpublic static MDRAction fetchByPrimaryKey(long actionId)
null
if it could not be found.actionId
- the primary key of the mdr actionnull
if a mdr action with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,MDRAction> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<MDRAction> findAll()
public static java.util.List<MDRAction> 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 MDRActionModelImpl
. 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 actionsend
- the upper bound of the range of mdr actions (not inclusive)public static java.util.List<MDRAction> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> 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 MDRActionModelImpl
. 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 actionsend
- the upper bound of the range of mdr actions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<MDRAction> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<MDRAction> 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 MDRActionModelImpl
. 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 actionsend
- the upper bound of the range of mdr actions (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 MDRActionPersistence getPersistence()