@ProviderType public interface MDRRulePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<MDRRule>
Caching information and settings can be found in portal.properties
com.liferay.mobile.device.rules.service.persistence.impl.MDRRulePersistenceImpl
,
MDRRuleUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<MDRRule> mdrRules)
Caches the mdr rules in the entity cache if it is enabled.
|
void |
cacheResult(MDRRule mdrRule)
Caches the mdr rule in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of mdr rules.
|
int |
countByRuleGroupId(long ruleGroupId)
Returns the number of mdr rules where ruleGroupId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of mdr rules where uuid = ? and companyId = ?.
|
int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of mdr rules where uuid = ? and groupId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of mdr rules where uuid = ?.
|
MDRRule |
create(long ruleId)
Creates a new mdr rule with the primary key.
|
MDRRule |
fetchByPrimaryKey(long ruleId)
Returns the mdr rule with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,MDRRule> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
MDRRule |
fetchByRuleGroupId_First(long ruleGroupId,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the first mdr rule in the ordered set where ruleGroupId = ?.
|
MDRRule |
fetchByRuleGroupId_Last(long ruleGroupId,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the last mdr rule in the ordered set where ruleGroupId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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. |
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. |
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 = ?.
|
java.util.List<MDRRule> |
findAll()
Returns all the mdr rules.
|
java.util.List<MDRRule> |
findAll(int start,
int end)
Returns a range of all the mdr rules.
|
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.
|
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.
|
MDRRule |
findByPrimaryKey(long ruleId)
Returns the mdr rule with the primary key or throws a
NoSuchRuleException if it could not be found. |
MDRRule |
findByRuleGroupId_First(long ruleGroupId,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the first mdr rule in the ordered set where ruleGroupId = ?.
|
MDRRule |
findByRuleGroupId_Last(long ruleGroupId,
com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator)
Returns the last mdr rule in the ordered set where ruleGroupId = ?.
|
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 = ?.
|
java.util.List<MDRRule> |
findByRuleGroupId(long ruleGroupId)
Returns all the mdr rules where ruleGroupId = ?.
|
java.util.List<MDRRule> |
findByRuleGroupId(long ruleGroupId,
int start,
int end)
Returns a range of all the mdr rules where ruleGroupId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<MDRRule> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the mdr rules where uuid = ? and companyId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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. |
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 = ?.
|
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 = ?.
|
java.util.List<MDRRule> |
findByUuid(java.lang.String uuid)
Returns all the mdr rules where uuid = ?.
|
java.util.List<MDRRule> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the mdr rules where uuid = ?.
|
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 = ?.
|
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 = ?.
|
java.util.Set<java.lang.String> |
getBadColumnNames() |
MDRRule |
remove(long ruleId)
Removes the mdr rule with the primary key from the database.
|
void |
removeAll()
Removes all the mdr rules from the database.
|
void |
removeByRuleGroupId(long ruleGroupId)
Removes all the mdr rules where ruleGroupId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the mdr rules where uuid = ? and companyId = ? from the database.
|
MDRRule |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the mdr rule where uuid = ? and groupId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the mdr rules where uuid = ? from the database.
|
MDRRule |
updateImpl(MDRRule mdrRule) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<MDRRule> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.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)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
)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 cacheMDRRule 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 foundMDRRule 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 foundMDRRule 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 foundMDRRule 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 foundMDRRule[] 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 foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidMDRRule 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 foundMDRRule 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 foundMDRRule 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 foundMDRRule removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchRuleException
uuid
- the uuidgroupId
- the group IDNoSuchRuleException
int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDjava.util.List<MDRRule> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.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)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
)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 cacheMDRRule 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 foundMDRRule 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 foundMDRRule 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 foundMDRRule 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 foundMDRRule[] 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 foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<MDRRule> findByRuleGroupId(long ruleGroupId)
ruleGroupId
- the rule group IDjava.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)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
)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 cacheMDRRule 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 foundMDRRule 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 foundMDRRule 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 foundMDRRule 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 foundMDRRule[] 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 foundvoid removeByRuleGroupId(long ruleGroupId)
ruleGroupId
- the rule group IDint countByRuleGroupId(long ruleGroupId)
ruleGroupId
- the rule group IDvoid cacheResult(MDRRule mdrRule)
mdrRule
- the mdr rulevoid cacheResult(java.util.List<MDRRule> mdrRules)
mdrRules
- the mdr rulesMDRRule create(long ruleId)
ruleId
- the primary key for the new mdr ruleMDRRule remove(long ruleId) throws NoSuchRuleException
ruleId
- the primary key of the mdr ruleNoSuchRuleException
- if a mdr rule with the primary key could not be foundMDRRule 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 foundMDRRule 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 foundjava.util.Map<java.io.Serializable,MDRRule> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<MDRRule>
java.util.List<MDRRule> findAll()
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)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
)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 cachevoid removeAll()
int countAll()
java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<MDRRule>