All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.mobile.device.rules.service.persistence.MDRRuleGroupInstanceUtil Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.mobile.device.rules.service.persistence;

import aQute.bnd.annotation.ProviderType;

import com.liferay.mobile.device.rules.model.MDRRuleGroupInstance;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.OrderByComparator;

import java.io.Serializable;

import java.util.List;
import java.util.Map;
import java.util.Set;

import org.osgi.framework.Bundle;
import org.osgi.framework.FrameworkUtil;
import org.osgi.util.tracker.ServiceTracker;

/**
 * The persistence utility for the mdr rule group instance service. This utility wraps com.liferay.mobile.device.rules.service.persistence.impl.MDRRuleGroupInstancePersistenceImpl 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 *

* * @author Edward C. Han * @see MDRRuleGroupInstancePersistence * @generated */ @ProviderType public class MDRRuleGroupInstanceUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class. */ /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache() */ public static void clearCache() { getPersistence().clearCache(); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache(com.liferay.portal.kernel.model.BaseModel) */ public static void clearCache(MDRRuleGroupInstance mdrRuleGroupInstance) { getPersistence().clearCache(mdrRuleGroupInstance); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) */ public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { return getPersistence().countWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#fetchByPrimaryKeys(Set) */ public static Map fetchByPrimaryKeys( Set primaryKeys) { return getPersistence().fetchByPrimaryKeys(primaryKeys); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) */ public static List findWithDynamicQuery( DynamicQuery dynamicQuery) { return getPersistence().findWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) */ public static List findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end) { return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) */ public static List findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findWithDynamicQuery( dynamicQuery, start, end, orderByComparator); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel) */ public static MDRRuleGroupInstance update( MDRRuleGroupInstance mdrRuleGroupInstance) { return getPersistence().update(mdrRuleGroupInstance); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext) */ public static MDRRuleGroupInstance update( MDRRuleGroupInstance mdrRuleGroupInstance, ServiceContext serviceContext) { return getPersistence().update(mdrRuleGroupInstance, serviceContext); } /** * Returns all the mdr rule group instances where uuid = ?. * * @param uuid the uuid * @return the matching mdr rule group instances */ public static List findByUuid(String uuid) { return getPersistence().findByUuid(uuid); } /** * Returns a range of all the mdr rule group instances where uuid = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param uuid the uuid * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @return the range of matching mdr rule group instances */ public static List findByUuid( String uuid, int start, int end) { return getPersistence().findByUuid(uuid, start, end); } /** * Returns an ordered range of all the mdr rule group instances where uuid = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param uuid the uuid * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching mdr rule group instances */ public static List findByUuid( String uuid, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByUuid(uuid, start, end, orderByComparator); } /** * Returns an ordered range of all the mdr rule group instances where uuid = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param uuid the uuid * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching mdr rule group instances */ public static List findByUuid( String uuid, int start, int end, OrderByComparator orderByComparator, boolean retrieveFromCache) { return getPersistence().findByUuid( uuid, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first mdr rule group instance in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance findByUuid_First( String uuid, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByUuid_First(uuid, orderByComparator); } /** * Returns the first mdr rule group instance in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByUuid_First( String uuid, OrderByComparator orderByComparator) { return getPersistence().fetchByUuid_First(uuid, orderByComparator); } /** * Returns the last mdr rule group instance in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance findByUuid_Last( String uuid, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByUuid_Last(uuid, orderByComparator); } /** * Returns the last mdr rule group instance in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByUuid_Last( String uuid, OrderByComparator orderByComparator) { return getPersistence().fetchByUuid_Last(uuid, orderByComparator); } /** * Returns the mdr rule group instances before and after the current mdr rule group instance in the ordered set where uuid = ?. * * @param ruleGroupInstanceId the primary key of the current mdr rule group instance * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a mdr rule group instance with the primary key could not be found */ public static MDRRuleGroupInstance[] findByUuid_PrevAndNext( long ruleGroupInstanceId, String uuid, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByUuid_PrevAndNext( ruleGroupInstanceId, uuid, orderByComparator); } /** * Removes all the mdr rule group instances where uuid = ? from the database. * * @param uuid the uuid */ public static void removeByUuid(String uuid) { getPersistence().removeByUuid(uuid); } /** * Returns the number of mdr rule group instances where uuid = ?. * * @param uuid the uuid * @return the number of matching mdr rule group instances */ public static int countByUuid(String uuid) { return getPersistence().countByUuid(uuid); } /** * Returns the mdr rule group instance where uuid = ? and groupId = ? or throws a NoSuchRuleGroupInstanceException if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @return the matching mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance findByUUID_G(String uuid, long groupId) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByUUID_G(uuid, groupId); } /** * Returns the mdr rule group instance where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. * * @param uuid the uuid * @param groupId the group ID * @return the matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByUUID_G( String uuid, long groupId) { return getPersistence().fetchByUUID_G(uuid, groupId); } /** * Returns the mdr rule group instance where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. * * @param uuid the uuid * @param groupId the group ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByUUID_G( String uuid, long groupId, boolean retrieveFromCache) { return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); } /** * Removes the mdr rule group instance where uuid = ? and groupId = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @return the mdr rule group instance that was removed */ public static MDRRuleGroupInstance removeByUUID_G(String uuid, long groupId) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().removeByUUID_G(uuid, groupId); } /** * Returns the number of mdr rule group instances where uuid = ? and groupId = ?. * * @param uuid the uuid * @param groupId the group ID * @return the number of matching mdr rule group instances */ public static int countByUUID_G(String uuid, long groupId) { return getPersistence().countByUUID_G(uuid, groupId); } /** * Returns all the mdr rule group instances where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching mdr rule group instances */ public static List findByUuid_C( String uuid, long companyId) { return getPersistence().findByUuid_C(uuid, companyId); } /** * Returns a range of all the mdr rule group instances where uuid = ? and companyId = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @return the range of matching mdr rule group instances */ public static List findByUuid_C( String uuid, long companyId, int start, int end) { return getPersistence().findByUuid_C(uuid, companyId, start, end); } /** * Returns an ordered range of all the mdr rule group instances where uuid = ? and companyId = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching mdr rule group instances */ public static List findByUuid_C( String uuid, long companyId, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByUuid_C( uuid, companyId, start, end, orderByComparator); } /** * Returns an ordered range of all the mdr rule group instances where uuid = ? and companyId = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching mdr rule group instances */ public static List findByUuid_C( String uuid, long companyId, int start, int end, OrderByComparator orderByComparator, boolean retrieveFromCache) { return getPersistence().findByUuid_C( uuid, companyId, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first mdr rule group instance in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance findByUuid_C_First( String uuid, long companyId, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByUuid_C_First( uuid, companyId, orderByComparator); } /** * Returns the first mdr rule group instance in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByUuid_C_First( String uuid, long companyId, OrderByComparator orderByComparator) { return getPersistence().fetchByUuid_C_First( uuid, companyId, orderByComparator); } /** * Returns the last mdr rule group instance in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance findByUuid_C_Last( String uuid, long companyId, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByUuid_C_Last( uuid, companyId, orderByComparator); } /** * Returns the last mdr rule group instance in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByUuid_C_Last( String uuid, long companyId, OrderByComparator orderByComparator) { return getPersistence().fetchByUuid_C_Last( uuid, companyId, orderByComparator); } /** * Returns the mdr rule group instances before and after the current mdr rule group instance in the ordered set where uuid = ? and companyId = ?. * * @param ruleGroupInstanceId the primary key of the current mdr rule group instance * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a mdr rule group instance with the primary key could not be found */ public static MDRRuleGroupInstance[] findByUuid_C_PrevAndNext( long ruleGroupInstanceId, String uuid, long companyId, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByUuid_C_PrevAndNext( ruleGroupInstanceId, uuid, companyId, orderByComparator); } /** * Removes all the mdr rule group instances where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID */ public static void removeByUuid_C(String uuid, long companyId) { getPersistence().removeByUuid_C(uuid, companyId); } /** * Returns the number of mdr rule group instances where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching mdr rule group instances */ public static int countByUuid_C(String uuid, long companyId) { return getPersistence().countByUuid_C(uuid, companyId); } /** * Returns all the mdr rule group instances where groupId = ?. * * @param groupId the group ID * @return the matching mdr rule group instances */ public static List findByGroupId(long groupId) { return getPersistence().findByGroupId(groupId); } /** * Returns a range of all the mdr rule group instances where groupId = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param groupId the group ID * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @return the range of matching mdr rule group instances */ public static List findByGroupId( long groupId, int start, int end) { return getPersistence().findByGroupId(groupId, start, end); } /** * Returns an ordered range of all the mdr rule group instances where groupId = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param groupId the group ID * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching mdr rule group instances */ public static List findByGroupId( long groupId, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByGroupId( groupId, start, end, orderByComparator); } /** * Returns an ordered range of all the mdr rule group instances where groupId = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param groupId the group ID * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching mdr rule group instances */ public static List findByGroupId( long groupId, int start, int end, OrderByComparator orderByComparator, boolean retrieveFromCache) { return getPersistence().findByGroupId( groupId, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first mdr rule group instance in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance findByGroupId_First( long groupId, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByGroupId_First(groupId, orderByComparator); } /** * Returns the first mdr rule group instance in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByGroupId_First( long groupId, OrderByComparator orderByComparator) { return getPersistence().fetchByGroupId_First( groupId, orderByComparator); } /** * Returns the last mdr rule group instance in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance findByGroupId_Last( long groupId, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByGroupId_Last(groupId, orderByComparator); } /** * Returns the last mdr rule group instance in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByGroupId_Last( long groupId, OrderByComparator orderByComparator) { return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); } /** * Returns the mdr rule group instances before and after the current mdr rule group instance in the ordered set where groupId = ?. * * @param ruleGroupInstanceId the primary key of the current mdr rule group instance * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a mdr rule group instance with the primary key could not be found */ public static MDRRuleGroupInstance[] findByGroupId_PrevAndNext( long ruleGroupInstanceId, long groupId, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByGroupId_PrevAndNext( ruleGroupInstanceId, groupId, orderByComparator); } /** * Returns all the mdr rule group instances that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the matching mdr rule group instances that the user has permission to view */ public static List filterFindByGroupId(long groupId) { return getPersistence().filterFindByGroupId(groupId); } /** * Returns a range of all the mdr rule group instances that the user has permission to view where groupId = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param groupId the group ID * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @return the range of matching mdr rule group instances that the user has permission to view */ public static List filterFindByGroupId( long groupId, int start, int end) { return getPersistence().filterFindByGroupId(groupId, start, end); } /** * Returns an ordered range of all the mdr rule group instances that the user has permissions to view where groupId = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param groupId the group ID * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching mdr rule group instances that the user has permission to view */ public static List filterFindByGroupId( long groupId, int start, int end, OrderByComparator orderByComparator) { return getPersistence().filterFindByGroupId( groupId, start, end, orderByComparator); } /** * Returns the mdr rule group instances before and after the current mdr rule group instance in the ordered set of mdr rule group instances that the user has permission to view where groupId = ?. * * @param ruleGroupInstanceId the primary key of the current mdr rule group instance * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a mdr rule group instance with the primary key could not be found */ public static MDRRuleGroupInstance[] filterFindByGroupId_PrevAndNext( long ruleGroupInstanceId, long groupId, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().filterFindByGroupId_PrevAndNext( ruleGroupInstanceId, groupId, orderByComparator); } /** * Removes all the mdr rule group instances where groupId = ? from the database. * * @param groupId the group ID */ public static void removeByGroupId(long groupId) { getPersistence().removeByGroupId(groupId); } /** * Returns the number of mdr rule group instances where groupId = ?. * * @param groupId the group ID * @return the number of matching mdr rule group instances */ public static int countByGroupId(long groupId) { return getPersistence().countByGroupId(groupId); } /** * Returns the number of mdr rule group instances that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the number of matching mdr rule group instances that the user has permission to view */ public static int filterCountByGroupId(long groupId) { return getPersistence().filterCountByGroupId(groupId); } /** * Returns all the mdr rule group instances where ruleGroupId = ?. * * @param ruleGroupId the rule group ID * @return the matching mdr rule group instances */ public static List findByRuleGroupId( long ruleGroupId) { return getPersistence().findByRuleGroupId(ruleGroupId); } /** * Returns a range of all the mdr rule group instances where ruleGroupId = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param ruleGroupId the rule group ID * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @return the range of matching mdr rule group instances */ public static List findByRuleGroupId( long ruleGroupId, int start, int end) { return getPersistence().findByRuleGroupId(ruleGroupId, start, end); } /** * Returns an ordered range of all the mdr rule group instances where ruleGroupId = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param ruleGroupId the rule group ID * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching mdr rule group instances */ public static List findByRuleGroupId( long ruleGroupId, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByRuleGroupId( ruleGroupId, start, end, orderByComparator); } /** * Returns an ordered range of all the mdr rule group instances where ruleGroupId = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param ruleGroupId the rule group ID * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching mdr rule group instances */ public static List findByRuleGroupId( long ruleGroupId, int start, int end, OrderByComparator orderByComparator, boolean retrieveFromCache) { return getPersistence().findByRuleGroupId( ruleGroupId, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first mdr rule group instance in the ordered set where ruleGroupId = ?. * * @param ruleGroupId the rule group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance findByRuleGroupId_First( long ruleGroupId, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByRuleGroupId_First( ruleGroupId, orderByComparator); } /** * Returns the first mdr rule group instance in the ordered set where ruleGroupId = ?. * * @param ruleGroupId the rule group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByRuleGroupId_First( long ruleGroupId, OrderByComparator orderByComparator) { return getPersistence().fetchByRuleGroupId_First( ruleGroupId, orderByComparator); } /** * Returns the last mdr rule group instance in the ordered set where ruleGroupId = ?. * * @param ruleGroupId the rule group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance findByRuleGroupId_Last( long ruleGroupId, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByRuleGroupId_Last( ruleGroupId, orderByComparator); } /** * Returns the last mdr rule group instance in the ordered set where ruleGroupId = ?. * * @param ruleGroupId the rule group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByRuleGroupId_Last( long ruleGroupId, OrderByComparator orderByComparator) { return getPersistence().fetchByRuleGroupId_Last( ruleGroupId, orderByComparator); } /** * Returns the mdr rule group instances before and after the current mdr rule group instance in the ordered set where ruleGroupId = ?. * * @param ruleGroupInstanceId the primary key of the current mdr rule group instance * @param ruleGroupId the rule group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a mdr rule group instance with the primary key could not be found */ public static MDRRuleGroupInstance[] findByRuleGroupId_PrevAndNext( long ruleGroupInstanceId, long ruleGroupId, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByRuleGroupId_PrevAndNext( ruleGroupInstanceId, ruleGroupId, orderByComparator); } /** * Removes all the mdr rule group instances where ruleGroupId = ? from the database. * * @param ruleGroupId the rule group ID */ public static void removeByRuleGroupId(long ruleGroupId) { getPersistence().removeByRuleGroupId(ruleGroupId); } /** * Returns the number of mdr rule group instances where ruleGroupId = ?. * * @param ruleGroupId the rule group ID * @return the number of matching mdr rule group instances */ public static int countByRuleGroupId(long ruleGroupId) { return getPersistence().countByRuleGroupId(ruleGroupId); } /** * Returns all the mdr rule group instances where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @return the matching mdr rule group instances */ public static List findByC_C( long classNameId, long classPK) { return getPersistence().findByC_C(classNameId, classPK); } /** * Returns a range of all the mdr rule group instances where classNameId = ? and classPK = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @return the range of matching mdr rule group instances */ public static List findByC_C( long classNameId, long classPK, int start, int end) { return getPersistence().findByC_C(classNameId, classPK, start, end); } /** * Returns an ordered range of all the mdr rule group instances where classNameId = ? and classPK = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching mdr rule group instances */ public static List findByC_C( long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByC_C( classNameId, classPK, start, end, orderByComparator); } /** * Returns an ordered range of all the mdr rule group instances where classNameId = ? and classPK = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching mdr rule group instances */ public static List findByC_C( long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator, boolean retrieveFromCache) { return getPersistence().findByC_C( classNameId, classPK, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first mdr rule group instance in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance findByC_C_First( long classNameId, long classPK, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByC_C_First( classNameId, classPK, orderByComparator); } /** * Returns the first mdr rule group instance in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByC_C_First( long classNameId, long classPK, OrderByComparator orderByComparator) { return getPersistence().fetchByC_C_First( classNameId, classPK, orderByComparator); } /** * Returns the last mdr rule group instance in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance findByC_C_Last( long classNameId, long classPK, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByC_C_Last( classNameId, classPK, orderByComparator); } /** * Returns the last mdr rule group instance in the ordered set where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByC_C_Last( long classNameId, long classPK, OrderByComparator orderByComparator) { return getPersistence().fetchByC_C_Last( classNameId, classPK, orderByComparator); } /** * Returns the mdr rule group instances before and after the current mdr rule group instance in the ordered set where classNameId = ? and classPK = ?. * * @param ruleGroupInstanceId the primary key of the current mdr rule group instance * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a mdr rule group instance with the primary key could not be found */ public static MDRRuleGroupInstance[] findByC_C_PrevAndNext( long ruleGroupInstanceId, long classNameId, long classPK, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByC_C_PrevAndNext( ruleGroupInstanceId, classNameId, classPK, orderByComparator); } /** * Removes all the mdr rule group instances where classNameId = ? and classPK = ? from the database. * * @param classNameId the class name ID * @param classPK the class pk */ public static void removeByC_C(long classNameId, long classPK) { getPersistence().removeByC_C(classNameId, classPK); } /** * Returns the number of mdr rule group instances where classNameId = ? and classPK = ?. * * @param classNameId the class name ID * @param classPK the class pk * @return the number of matching mdr rule group instances */ public static int countByC_C(long classNameId, long classPK) { return getPersistence().countByC_C(classNameId, classPK); } /** * Returns all the mdr rule group instances where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @return the matching mdr rule group instances */ public static List findByG_C_C( long groupId, long classNameId, long classPK) { return getPersistence().findByG_C_C(groupId, classNameId, classPK); } /** * Returns a range of all the mdr rule group instances where groupId = ? and classNameId = ? and classPK = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @return the range of matching mdr rule group instances */ public static List findByG_C_C( long groupId, long classNameId, long classPK, int start, int end) { return getPersistence().findByG_C_C( groupId, classNameId, classPK, start, end); } /** * Returns an ordered range of all the mdr rule group instances where groupId = ? and classNameId = ? and classPK = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching mdr rule group instances */ public static List findByG_C_C( long groupId, long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByG_C_C( groupId, classNameId, classPK, start, end, orderByComparator); } /** * Returns an ordered range of all the mdr rule group instances where groupId = ? and classNameId = ? and classPK = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching mdr rule group instances */ public static List findByG_C_C( long groupId, long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator, boolean retrieveFromCache) { return getPersistence().findByG_C_C( groupId, classNameId, classPK, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first mdr rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance findByG_C_C_First( long groupId, long classNameId, long classPK, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByG_C_C_First( groupId, classNameId, classPK, orderByComparator); } /** * Returns the first mdr rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByG_C_C_First( long groupId, long classNameId, long classPK, OrderByComparator orderByComparator) { return getPersistence().fetchByG_C_C_First( groupId, classNameId, classPK, orderByComparator); } /** * Returns the last mdr rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance findByG_C_C_Last( long groupId, long classNameId, long classPK, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByG_C_C_Last( groupId, classNameId, classPK, orderByComparator); } /** * Returns the last mdr rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByG_C_C_Last( long groupId, long classNameId, long classPK, OrderByComparator orderByComparator) { return getPersistence().fetchByG_C_C_Last( groupId, classNameId, classPK, orderByComparator); } /** * Returns the mdr rule group instances before and after the current mdr rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. * * @param ruleGroupInstanceId the primary key of the current mdr rule group instance * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a mdr rule group instance with the primary key could not be found */ public static MDRRuleGroupInstance[] findByG_C_C_PrevAndNext( long ruleGroupInstanceId, long groupId, long classNameId, long classPK, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByG_C_C_PrevAndNext( ruleGroupInstanceId, groupId, classNameId, classPK, orderByComparator); } /** * Returns all the mdr rule group instances that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @return the matching mdr rule group instances that the user has permission to view */ public static List filterFindByG_C_C( long groupId, long classNameId, long classPK) { return getPersistence().filterFindByG_C_C( groupId, classNameId, classPK); } /** * Returns a range of all the mdr rule group instances that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @return the range of matching mdr rule group instances that the user has permission to view */ public static List filterFindByG_C_C( long groupId, long classNameId, long classPK, int start, int end) { return getPersistence().filterFindByG_C_C( groupId, classNameId, classPK, start, end); } /** * Returns an ordered range of all the mdr rule group instances that the user has permissions to view where groupId = ? and classNameId = ? and classPK = ?. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching mdr rule group instances that the user has permission to view */ public static List filterFindByG_C_C( long groupId, long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator) { return getPersistence().filterFindByG_C_C( groupId, classNameId, classPK, start, end, orderByComparator); } /** * Returns the mdr rule group instances before and after the current mdr rule group instance in the ordered set of mdr rule group instances that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. * * @param ruleGroupInstanceId the primary key of the current mdr rule group instance * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a mdr rule group instance with the primary key could not be found */ public static MDRRuleGroupInstance[] filterFindByG_C_C_PrevAndNext( long ruleGroupInstanceId, long groupId, long classNameId, long classPK, OrderByComparator orderByComparator) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().filterFindByG_C_C_PrevAndNext( ruleGroupInstanceId, groupId, classNameId, classPK, orderByComparator); } /** * Removes all the mdr rule group instances where groupId = ? and classNameId = ? and classPK = ? from the database. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk */ public static void removeByG_C_C( long groupId, long classNameId, long classPK) { getPersistence().removeByG_C_C(groupId, classNameId, classPK); } /** * Returns the number of mdr rule group instances where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @return the number of matching mdr rule group instances */ public static int countByG_C_C( long groupId, long classNameId, long classPK) { return getPersistence().countByG_C_C(groupId, classNameId, classPK); } /** * Returns the number of mdr rule group instances that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. * * @param groupId the group ID * @param classNameId the class name ID * @param classPK the class pk * @return the number of matching mdr rule group instances that the user has permission to view */ public static int filterCountByG_C_C( long groupId, long classNameId, long classPK) { return getPersistence().filterCountByG_C_C( groupId, classNameId, classPK); } /** * Returns the mdr rule group instance where classNameId = ? and classPK = ? and ruleGroupId = ? or throws a NoSuchRuleGroupInstanceException if it could not be found. * * @param classNameId the class name ID * @param classPK the class pk * @param ruleGroupId the rule group ID * @return the matching mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance findByC_C_R( long classNameId, long classPK, long ruleGroupId) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByC_C_R(classNameId, classPK, ruleGroupId); } /** * Returns the mdr rule group instance where classNameId = ? and classPK = ? and ruleGroupId = ? or returns null if it could not be found. Uses the finder cache. * * @param classNameId the class name ID * @param classPK the class pk * @param ruleGroupId the rule group ID * @return the matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByC_C_R( long classNameId, long classPK, long ruleGroupId) { return getPersistence().fetchByC_C_R(classNameId, classPK, ruleGroupId); } /** * Returns the mdr rule group instance where classNameId = ? and classPK = ? and ruleGroupId = ? or returns null if it could not be found, optionally using the finder cache. * * @param classNameId the class name ID * @param classPK the class pk * @param ruleGroupId the rule group ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching mdr rule group instance, or null if a matching mdr rule group instance could not be found */ public static MDRRuleGroupInstance fetchByC_C_R( long classNameId, long classPK, long ruleGroupId, boolean retrieveFromCache) { return getPersistence().fetchByC_C_R( classNameId, classPK, ruleGroupId, retrieveFromCache); } /** * Removes the mdr rule group instance where classNameId = ? and classPK = ? and ruleGroupId = ? from the database. * * @param classNameId the class name ID * @param classPK the class pk * @param ruleGroupId the rule group ID * @return the mdr rule group instance that was removed */ public static MDRRuleGroupInstance removeByC_C_R( long classNameId, long classPK, long ruleGroupId) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().removeByC_C_R( classNameId, classPK, ruleGroupId); } /** * Returns the number of mdr rule group instances where classNameId = ? and classPK = ? and ruleGroupId = ?. * * @param classNameId the class name ID * @param classPK the class pk * @param ruleGroupId the rule group ID * @return the number of matching mdr rule group instances */ public static int countByC_C_R( long classNameId, long classPK, long ruleGroupId) { return getPersistence().countByC_C_R(classNameId, classPK, ruleGroupId); } /** * Caches the mdr rule group instance in the entity cache if it is enabled. * * @param mdrRuleGroupInstance the mdr rule group instance */ public static void cacheResult(MDRRuleGroupInstance mdrRuleGroupInstance) { getPersistence().cacheResult(mdrRuleGroupInstance); } /** * Caches the mdr rule group instances in the entity cache if it is enabled. * * @param mdrRuleGroupInstances the mdr rule group instances */ public static void cacheResult( List mdrRuleGroupInstances) { getPersistence().cacheResult(mdrRuleGroupInstances); } /** * Creates a new mdr rule group instance with the primary key. Does not add the mdr rule group instance to the database. * * @param ruleGroupInstanceId the primary key for the new mdr rule group instance * @return the new mdr rule group instance */ public static MDRRuleGroupInstance create(long ruleGroupInstanceId) { return getPersistence().create(ruleGroupInstanceId); } /** * Removes the mdr rule group instance with the primary key from the database. Also notifies the appropriate model listeners. * * @param ruleGroupInstanceId the primary key of the mdr rule group instance * @return the mdr rule group instance that was removed * @throws NoSuchRuleGroupInstanceException if a mdr rule group instance with the primary key could not be found */ public static MDRRuleGroupInstance remove(long ruleGroupInstanceId) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().remove(ruleGroupInstanceId); } public static MDRRuleGroupInstance updateImpl( MDRRuleGroupInstance mdrRuleGroupInstance) { return getPersistence().updateImpl(mdrRuleGroupInstance); } /** * Returns the mdr rule group instance with the primary key or throws a NoSuchRuleGroupInstanceException if it could not be found. * * @param ruleGroupInstanceId the primary key of the mdr rule group instance * @return the mdr rule group instance * @throws NoSuchRuleGroupInstanceException if a mdr rule group instance with the primary key could not be found */ public static MDRRuleGroupInstance findByPrimaryKey( long ruleGroupInstanceId) throws com.liferay.mobile.device.rules.exception. NoSuchRuleGroupInstanceException { return getPersistence().findByPrimaryKey(ruleGroupInstanceId); } /** * Returns the mdr rule group instance with the primary key or returns null if it could not be found. * * @param ruleGroupInstanceId the primary key of the mdr rule group instance * @return the mdr rule group instance, or null if a mdr rule group instance with the primary key could not be found */ public static MDRRuleGroupInstance fetchByPrimaryKey( long ruleGroupInstanceId) { return getPersistence().fetchByPrimaryKey(ruleGroupInstanceId); } /** * Returns all the mdr rule group instances. * * @return the mdr rule group instances */ public static List findAll() { return getPersistence().findAll(); } /** * Returns a range of all the mdr rule group instances. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @return the range of mdr rule group instances */ public static List findAll(int start, int end) { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the mdr rule group instances. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of mdr rule group instances */ public static List findAll( int start, int end, OrderByComparator orderByComparator) { return getPersistence().findAll(start, end, orderByComparator); } /** * Returns an ordered range of all the mdr rule group instances. * *

* 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 MDRRuleGroupInstanceModelImpl. 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. *

* * @param start the lower bound of the range of mdr rule group instances * @param end the upper bound of the range of mdr rule group instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of mdr rule group instances */ public static List findAll( int start, int end, OrderByComparator orderByComparator, boolean retrieveFromCache) { return getPersistence().findAll( start, end, orderByComparator, retrieveFromCache); } /** * Removes all the mdr rule group instances from the database. */ public static void removeAll() { getPersistence().removeAll(); } /** * Returns the number of mdr rule group instances. * * @return the number of mdr rule group instances */ public static int countAll() { return getPersistence().countAll(); } public static Set getBadColumnNames() { return getPersistence().getBadColumnNames(); } public static MDRRuleGroupInstancePersistence getPersistence() { return _serviceTracker.getService(); } private static ServiceTracker _serviceTracker; static { Bundle bundle = FrameworkUtil.getBundle( MDRRuleGroupInstancePersistence.class); ServiceTracker serviceTracker = new ServiceTracker ( bundle.getBundleContext(), MDRRuleGroupInstancePersistence.class, null); serviceTracker.open(); _serviceTracker = serviceTracker; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy