001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.mobiledevicerules.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 021 import com.liferay.portal.kernel.util.OrderByComparator; 022 import com.liferay.portal.kernel.util.ReferenceRegistry; 023 import com.liferay.portal.service.ServiceContext; 024 025 import com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance; 026 027 import java.util.List; 028 029 /** 030 * The persistence utility for the m d r rule group instance service. This utility wraps {@link 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. 031 * 032 * <p> 033 * Caching information and settings can be found in <code>portal.properties</code> 034 * </p> 035 * 036 * @author Edward C. Han 037 * @see MDRRuleGroupInstancePersistence 038 * @see MDRRuleGroupInstancePersistenceImpl 039 * @generated 040 */ 041 @ProviderType 042 public class MDRRuleGroupInstanceUtil { 043 /* 044 * NOTE FOR DEVELOPERS: 045 * 046 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 047 */ 048 049 /** 050 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 051 */ 052 public static void clearCache() { 053 getPersistence().clearCache(); 054 } 055 056 /** 057 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 058 */ 059 public static void clearCache(MDRRuleGroupInstance mdrRuleGroupInstance) { 060 getPersistence().clearCache(mdrRuleGroupInstance); 061 } 062 063 /** 064 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 065 */ 066 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { 067 return getPersistence().countWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 072 */ 073 public static List<MDRRuleGroupInstance> findWithDynamicQuery( 074 DynamicQuery dynamicQuery) { 075 return getPersistence().findWithDynamicQuery(dynamicQuery); 076 } 077 078 /** 079 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 080 */ 081 public static List<MDRRuleGroupInstance> findWithDynamicQuery( 082 DynamicQuery dynamicQuery, int start, int end) { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<MDRRuleGroupInstance> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator<MDRRuleGroupInstance> orderByComparator) { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 099 */ 100 public static MDRRuleGroupInstance update( 101 MDRRuleGroupInstance mdrRuleGroupInstance) { 102 return getPersistence().update(mdrRuleGroupInstance); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static MDRRuleGroupInstance update( 109 MDRRuleGroupInstance mdrRuleGroupInstance, ServiceContext serviceContext) { 110 return getPersistence().update(mdrRuleGroupInstance, serviceContext); 111 } 112 113 /** 114 * Returns all the m d r rule group instances where uuid = ?. 115 * 116 * @param uuid the uuid 117 * @return the matching m d r rule group instances 118 */ 119 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid( 120 java.lang.String uuid) { 121 return getPersistence().findByUuid(uuid); 122 } 123 124 /** 125 * Returns a range of all the m d r rule group instances where uuid = ?. 126 * 127 * <p> 128 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 129 * </p> 130 * 131 * @param uuid the uuid 132 * @param start the lower bound of the range of m d r rule group instances 133 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 134 * @return the range of matching m d r rule group instances 135 */ 136 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid( 137 java.lang.String uuid, int start, int end) { 138 return getPersistence().findByUuid(uuid, start, end); 139 } 140 141 /** 142 * Returns an ordered range of all the m d r rule group instances where uuid = ?. 143 * 144 * <p> 145 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 146 * </p> 147 * 148 * @param uuid the uuid 149 * @param start the lower bound of the range of m d r rule group instances 150 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 151 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 152 * @return the ordered range of matching m d r rule group instances 153 */ 154 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid( 155 java.lang.String uuid, int start, int end, 156 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 157 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 158 } 159 160 /** 161 * Returns the first m d r rule group instance in the ordered set where uuid = ?. 162 * 163 * @param uuid the uuid 164 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 165 * @return the first matching m d r rule group instance 166 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 167 */ 168 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUuid_First( 169 java.lang.String uuid, 170 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 171 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 172 return getPersistence().findByUuid_First(uuid, orderByComparator); 173 } 174 175 /** 176 * Returns the first m d r rule group instance in the ordered set where uuid = ?. 177 * 178 * @param uuid the uuid 179 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 180 * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 181 */ 182 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUuid_First( 183 java.lang.String uuid, 184 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 185 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 186 } 187 188 /** 189 * Returns the last m d r rule group instance in the ordered set where uuid = ?. 190 * 191 * @param uuid the uuid 192 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 193 * @return the last matching m d r rule group instance 194 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 195 */ 196 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUuid_Last( 197 java.lang.String uuid, 198 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 199 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 200 return getPersistence().findByUuid_Last(uuid, orderByComparator); 201 } 202 203 /** 204 * Returns the last m d r rule group instance in the ordered set where uuid = ?. 205 * 206 * @param uuid the uuid 207 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 208 * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 209 */ 210 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUuid_Last( 211 java.lang.String uuid, 212 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 213 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 214 } 215 216 /** 217 * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where uuid = ?. 218 * 219 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 220 * @param uuid the uuid 221 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 222 * @return the previous, current, and next m d r rule group instance 223 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 224 */ 225 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByUuid_PrevAndNext( 226 long ruleGroupInstanceId, java.lang.String uuid, 227 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 228 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 229 return getPersistence() 230 .findByUuid_PrevAndNext(ruleGroupInstanceId, uuid, 231 orderByComparator); 232 } 233 234 /** 235 * Removes all the m d r rule group instances where uuid = ? from the database. 236 * 237 * @param uuid the uuid 238 */ 239 public static void removeByUuid(java.lang.String uuid) { 240 getPersistence().removeByUuid(uuid); 241 } 242 243 /** 244 * Returns the number of m d r rule group instances where uuid = ?. 245 * 246 * @param uuid the uuid 247 * @return the number of matching m d r rule group instances 248 */ 249 public static int countByUuid(java.lang.String uuid) { 250 return getPersistence().countByUuid(uuid); 251 } 252 253 /** 254 * Returns the m d r rule group instance where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException} if it could not be found. 255 * 256 * @param uuid the uuid 257 * @param groupId the group ID 258 * @return the matching m d r rule group instance 259 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 260 */ 261 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUUID_G( 262 java.lang.String uuid, long groupId) 263 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 264 return getPersistence().findByUUID_G(uuid, groupId); 265 } 266 267 /** 268 * Returns the m d r rule group instance where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 269 * 270 * @param uuid the uuid 271 * @param groupId the group ID 272 * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 273 */ 274 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUUID_G( 275 java.lang.String uuid, long groupId) { 276 return getPersistence().fetchByUUID_G(uuid, groupId); 277 } 278 279 /** 280 * Returns the m d r rule group instance where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 281 * 282 * @param uuid the uuid 283 * @param groupId the group ID 284 * @param retrieveFromCache whether to use the finder cache 285 * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 286 */ 287 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUUID_G( 288 java.lang.String uuid, long groupId, boolean retrieveFromCache) { 289 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 290 } 291 292 /** 293 * Removes the m d r rule group instance where uuid = ? and groupId = ? from the database. 294 * 295 * @param uuid the uuid 296 * @param groupId the group ID 297 * @return the m d r rule group instance that was removed 298 */ 299 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance removeByUUID_G( 300 java.lang.String uuid, long groupId) 301 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 302 return getPersistence().removeByUUID_G(uuid, groupId); 303 } 304 305 /** 306 * Returns the number of m d r rule group instances where uuid = ? and groupId = ?. 307 * 308 * @param uuid the uuid 309 * @param groupId the group ID 310 * @return the number of matching m d r rule group instances 311 */ 312 public static int countByUUID_G(java.lang.String uuid, long groupId) { 313 return getPersistence().countByUUID_G(uuid, groupId); 314 } 315 316 /** 317 * Returns all the m d r rule group instances where uuid = ? and companyId = ?. 318 * 319 * @param uuid the uuid 320 * @param companyId the company ID 321 * @return the matching m d r rule group instances 322 */ 323 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid_C( 324 java.lang.String uuid, long companyId) { 325 return getPersistence().findByUuid_C(uuid, companyId); 326 } 327 328 /** 329 * Returns a range of all the m d r rule group instances where uuid = ? and companyId = ?. 330 * 331 * <p> 332 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 333 * </p> 334 * 335 * @param uuid the uuid 336 * @param companyId the company ID 337 * @param start the lower bound of the range of m d r rule group instances 338 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 339 * @return the range of matching m d r rule group instances 340 */ 341 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid_C( 342 java.lang.String uuid, long companyId, int start, int end) { 343 return getPersistence().findByUuid_C(uuid, companyId, start, end); 344 } 345 346 /** 347 * Returns an ordered range of all the m d r rule group instances where uuid = ? and companyId = ?. 348 * 349 * <p> 350 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 351 * </p> 352 * 353 * @param uuid the uuid 354 * @param companyId the company ID 355 * @param start the lower bound of the range of m d r rule group instances 356 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 357 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 358 * @return the ordered range of matching m d r rule group instances 359 */ 360 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid_C( 361 java.lang.String uuid, long companyId, int start, int end, 362 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 363 return getPersistence() 364 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 365 } 366 367 /** 368 * Returns the first m d r rule group instance in the ordered set where uuid = ? and companyId = ?. 369 * 370 * @param uuid the uuid 371 * @param companyId the company ID 372 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 373 * @return the first matching m d r rule group instance 374 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 375 */ 376 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUuid_C_First( 377 java.lang.String uuid, long companyId, 378 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 379 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 380 return getPersistence() 381 .findByUuid_C_First(uuid, companyId, orderByComparator); 382 } 383 384 /** 385 * Returns the first m d r rule group instance in the ordered set where uuid = ? and companyId = ?. 386 * 387 * @param uuid the uuid 388 * @param companyId the company ID 389 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 390 * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 391 */ 392 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUuid_C_First( 393 java.lang.String uuid, long companyId, 394 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 395 return getPersistence() 396 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 397 } 398 399 /** 400 * Returns the last m d r rule group instance in the ordered set where uuid = ? and companyId = ?. 401 * 402 * @param uuid the uuid 403 * @param companyId the company ID 404 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 405 * @return the last matching m d r rule group instance 406 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 407 */ 408 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUuid_C_Last( 409 java.lang.String uuid, long companyId, 410 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 411 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 412 return getPersistence() 413 .findByUuid_C_Last(uuid, companyId, orderByComparator); 414 } 415 416 /** 417 * Returns the last m d r rule group instance in the ordered set where uuid = ? and companyId = ?. 418 * 419 * @param uuid the uuid 420 * @param companyId the company ID 421 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 422 * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 423 */ 424 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUuid_C_Last( 425 java.lang.String uuid, long companyId, 426 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 427 return getPersistence() 428 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 429 } 430 431 /** 432 * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where uuid = ? and companyId = ?. 433 * 434 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 435 * @param uuid the uuid 436 * @param companyId the company ID 437 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 438 * @return the previous, current, and next m d r rule group instance 439 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 440 */ 441 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByUuid_C_PrevAndNext( 442 long ruleGroupInstanceId, java.lang.String uuid, long companyId, 443 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 444 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 445 return getPersistence() 446 .findByUuid_C_PrevAndNext(ruleGroupInstanceId, uuid, 447 companyId, orderByComparator); 448 } 449 450 /** 451 * Removes all the m d r rule group instances where uuid = ? and companyId = ? from the database. 452 * 453 * @param uuid the uuid 454 * @param companyId the company ID 455 */ 456 public static void removeByUuid_C(java.lang.String uuid, long companyId) { 457 getPersistence().removeByUuid_C(uuid, companyId); 458 } 459 460 /** 461 * Returns the number of m d r rule group instances where uuid = ? and companyId = ?. 462 * 463 * @param uuid the uuid 464 * @param companyId the company ID 465 * @return the number of matching m d r rule group instances 466 */ 467 public static int countByUuid_C(java.lang.String uuid, long companyId) { 468 return getPersistence().countByUuid_C(uuid, companyId); 469 } 470 471 /** 472 * Returns all the m d r rule group instances where groupId = ?. 473 * 474 * @param groupId the group ID 475 * @return the matching m d r rule group instances 476 */ 477 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByGroupId( 478 long groupId) { 479 return getPersistence().findByGroupId(groupId); 480 } 481 482 /** 483 * Returns a range of all the m d r rule group instances where groupId = ?. 484 * 485 * <p> 486 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 487 * </p> 488 * 489 * @param groupId the group ID 490 * @param start the lower bound of the range of m d r rule group instances 491 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 492 * @return the range of matching m d r rule group instances 493 */ 494 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByGroupId( 495 long groupId, int start, int end) { 496 return getPersistence().findByGroupId(groupId, start, end); 497 } 498 499 /** 500 * Returns an ordered range of all the m d r rule group instances where groupId = ?. 501 * 502 * <p> 503 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 504 * </p> 505 * 506 * @param groupId the group ID 507 * @param start the lower bound of the range of m d r rule group instances 508 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 509 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 510 * @return the ordered range of matching m d r rule group instances 511 */ 512 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByGroupId( 513 long groupId, int start, int end, 514 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 515 return getPersistence() 516 .findByGroupId(groupId, start, end, orderByComparator); 517 } 518 519 /** 520 * Returns the first m d r rule group instance in the ordered set where groupId = ?. 521 * 522 * @param groupId the group ID 523 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 524 * @return the first matching m d r rule group instance 525 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 526 */ 527 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByGroupId_First( 528 long groupId, 529 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 530 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 531 return getPersistence().findByGroupId_First(groupId, orderByComparator); 532 } 533 534 /** 535 * Returns the first m d r rule group instance in the ordered set where groupId = ?. 536 * 537 * @param groupId the group ID 538 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 539 * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 540 */ 541 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByGroupId_First( 542 long groupId, 543 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 544 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 545 } 546 547 /** 548 * Returns the last m d r rule group instance in the ordered set where groupId = ?. 549 * 550 * @param groupId the group ID 551 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 552 * @return the last matching m d r rule group instance 553 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 554 */ 555 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByGroupId_Last( 556 long groupId, 557 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 558 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 559 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 560 } 561 562 /** 563 * Returns the last m d r rule group instance in the ordered set where groupId = ?. 564 * 565 * @param groupId the group ID 566 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 567 * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 568 */ 569 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByGroupId_Last( 570 long groupId, 571 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 572 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 573 } 574 575 /** 576 * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where groupId = ?. 577 * 578 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 579 * @param groupId the group ID 580 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 581 * @return the previous, current, and next m d r rule group instance 582 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 583 */ 584 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByGroupId_PrevAndNext( 585 long ruleGroupInstanceId, long groupId, 586 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 587 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 588 return getPersistence() 589 .findByGroupId_PrevAndNext(ruleGroupInstanceId, groupId, 590 orderByComparator); 591 } 592 593 /** 594 * Returns all the m d r rule group instances that the user has permission to view where groupId = ?. 595 * 596 * @param groupId the group ID 597 * @return the matching m d r rule group instances that the user has permission to view 598 */ 599 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByGroupId( 600 long groupId) { 601 return getPersistence().filterFindByGroupId(groupId); 602 } 603 604 /** 605 * Returns a range of all the m d r rule group instances that the user has permission to view where groupId = ?. 606 * 607 * <p> 608 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 609 * </p> 610 * 611 * @param groupId the group ID 612 * @param start the lower bound of the range of m d r rule group instances 613 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 614 * @return the range of matching m d r rule group instances that the user has permission to view 615 */ 616 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByGroupId( 617 long groupId, int start, int end) { 618 return getPersistence().filterFindByGroupId(groupId, start, end); 619 } 620 621 /** 622 * Returns an ordered range of all the m d r rule group instances that the user has permissions to view where groupId = ?. 623 * 624 * <p> 625 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 626 * </p> 627 * 628 * @param groupId the group ID 629 * @param start the lower bound of the range of m d r rule group instances 630 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 631 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 632 * @return the ordered range of matching m d r rule group instances that the user has permission to view 633 */ 634 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByGroupId( 635 long groupId, int start, int end, 636 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 637 return getPersistence() 638 .filterFindByGroupId(groupId, start, end, orderByComparator); 639 } 640 641 /** 642 * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set of m d r rule group instances that the user has permission to view where groupId = ?. 643 * 644 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 645 * @param groupId the group ID 646 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 647 * @return the previous, current, and next m d r rule group instance 648 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 649 */ 650 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] filterFindByGroupId_PrevAndNext( 651 long ruleGroupInstanceId, long groupId, 652 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 653 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 654 return getPersistence() 655 .filterFindByGroupId_PrevAndNext(ruleGroupInstanceId, 656 groupId, orderByComparator); 657 } 658 659 /** 660 * Removes all the m d r rule group instances where groupId = ? from the database. 661 * 662 * @param groupId the group ID 663 */ 664 public static void removeByGroupId(long groupId) { 665 getPersistence().removeByGroupId(groupId); 666 } 667 668 /** 669 * Returns the number of m d r rule group instances where groupId = ?. 670 * 671 * @param groupId the group ID 672 * @return the number of matching m d r rule group instances 673 */ 674 public static int countByGroupId(long groupId) { 675 return getPersistence().countByGroupId(groupId); 676 } 677 678 /** 679 * Returns the number of m d r rule group instances that the user has permission to view where groupId = ?. 680 * 681 * @param groupId the group ID 682 * @return the number of matching m d r rule group instances that the user has permission to view 683 */ 684 public static int filterCountByGroupId(long groupId) { 685 return getPersistence().filterCountByGroupId(groupId); 686 } 687 688 /** 689 * Returns all the m d r rule group instances where ruleGroupId = ?. 690 * 691 * @param ruleGroupId the rule group ID 692 * @return the matching m d r rule group instances 693 */ 694 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByRuleGroupId( 695 long ruleGroupId) { 696 return getPersistence().findByRuleGroupId(ruleGroupId); 697 } 698 699 /** 700 * Returns a range of all the m d r rule group instances where ruleGroupId = ?. 701 * 702 * <p> 703 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 704 * </p> 705 * 706 * @param ruleGroupId the rule group ID 707 * @param start the lower bound of the range of m d r rule group instances 708 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 709 * @return the range of matching m d r rule group instances 710 */ 711 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByRuleGroupId( 712 long ruleGroupId, int start, int end) { 713 return getPersistence().findByRuleGroupId(ruleGroupId, start, end); 714 } 715 716 /** 717 * Returns an ordered range of all the m d r rule group instances where ruleGroupId = ?. 718 * 719 * <p> 720 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 721 * </p> 722 * 723 * @param ruleGroupId the rule group ID 724 * @param start the lower bound of the range of m d r rule group instances 725 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 726 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 727 * @return the ordered range of matching m d r rule group instances 728 */ 729 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByRuleGroupId( 730 long ruleGroupId, int start, int end, 731 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 732 return getPersistence() 733 .findByRuleGroupId(ruleGroupId, start, end, orderByComparator); 734 } 735 736 /** 737 * Returns the first m d r rule group instance in the ordered set where ruleGroupId = ?. 738 * 739 * @param ruleGroupId the rule group ID 740 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 741 * @return the first matching m d r rule group instance 742 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 743 */ 744 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByRuleGroupId_First( 745 long ruleGroupId, 746 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 747 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 748 return getPersistence() 749 .findByRuleGroupId_First(ruleGroupId, orderByComparator); 750 } 751 752 /** 753 * Returns the first m d r rule group instance in the ordered set where ruleGroupId = ?. 754 * 755 * @param ruleGroupId the rule group ID 756 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 757 * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 758 */ 759 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByRuleGroupId_First( 760 long ruleGroupId, 761 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 762 return getPersistence() 763 .fetchByRuleGroupId_First(ruleGroupId, orderByComparator); 764 } 765 766 /** 767 * Returns the last m d r rule group instance in the ordered set where ruleGroupId = ?. 768 * 769 * @param ruleGroupId the rule group ID 770 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 771 * @return the last matching m d r rule group instance 772 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 773 */ 774 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByRuleGroupId_Last( 775 long ruleGroupId, 776 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 777 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 778 return getPersistence() 779 .findByRuleGroupId_Last(ruleGroupId, orderByComparator); 780 } 781 782 /** 783 * Returns the last m d r rule group instance in the ordered set where ruleGroupId = ?. 784 * 785 * @param ruleGroupId the rule group ID 786 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 787 * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 788 */ 789 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByRuleGroupId_Last( 790 long ruleGroupId, 791 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 792 return getPersistence() 793 .fetchByRuleGroupId_Last(ruleGroupId, orderByComparator); 794 } 795 796 /** 797 * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where ruleGroupId = ?. 798 * 799 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 800 * @param ruleGroupId the rule group ID 801 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 802 * @return the previous, current, and next m d r rule group instance 803 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 804 */ 805 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByRuleGroupId_PrevAndNext( 806 long ruleGroupInstanceId, long ruleGroupId, 807 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 808 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 809 return getPersistence() 810 .findByRuleGroupId_PrevAndNext(ruleGroupInstanceId, 811 ruleGroupId, orderByComparator); 812 } 813 814 /** 815 * Removes all the m d r rule group instances where ruleGroupId = ? from the database. 816 * 817 * @param ruleGroupId the rule group ID 818 */ 819 public static void removeByRuleGroupId(long ruleGroupId) { 820 getPersistence().removeByRuleGroupId(ruleGroupId); 821 } 822 823 /** 824 * Returns the number of m d r rule group instances where ruleGroupId = ?. 825 * 826 * @param ruleGroupId the rule group ID 827 * @return the number of matching m d r rule group instances 828 */ 829 public static int countByRuleGroupId(long ruleGroupId) { 830 return getPersistence().countByRuleGroupId(ruleGroupId); 831 } 832 833 /** 834 * Returns all the m d r rule group instances where classNameId = ? and classPK = ?. 835 * 836 * @param classNameId the class name ID 837 * @param classPK the class p k 838 * @return the matching m d r rule group instances 839 */ 840 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByC_C( 841 long classNameId, long classPK) { 842 return getPersistence().findByC_C(classNameId, classPK); 843 } 844 845 /** 846 * Returns a range of all the m d r rule group instances where classNameId = ? and classPK = ?. 847 * 848 * <p> 849 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 850 * </p> 851 * 852 * @param classNameId the class name ID 853 * @param classPK the class p k 854 * @param start the lower bound of the range of m d r rule group instances 855 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 856 * @return the range of matching m d r rule group instances 857 */ 858 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByC_C( 859 long classNameId, long classPK, int start, int end) { 860 return getPersistence().findByC_C(classNameId, classPK, start, end); 861 } 862 863 /** 864 * Returns an ordered range of all the m d r rule group instances where classNameId = ? and classPK = ?. 865 * 866 * <p> 867 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 868 * </p> 869 * 870 * @param classNameId the class name ID 871 * @param classPK the class p k 872 * @param start the lower bound of the range of m d r rule group instances 873 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 874 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 875 * @return the ordered range of matching m d r rule group instances 876 */ 877 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByC_C( 878 long classNameId, long classPK, int start, int end, 879 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 880 return getPersistence() 881 .findByC_C(classNameId, classPK, start, end, 882 orderByComparator); 883 } 884 885 /** 886 * Returns the first m d r rule group instance in the ordered set where classNameId = ? and classPK = ?. 887 * 888 * @param classNameId the class name ID 889 * @param classPK the class p k 890 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 891 * @return the first matching m d r rule group instance 892 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 893 */ 894 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByC_C_First( 895 long classNameId, long classPK, 896 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 897 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 898 return getPersistence() 899 .findByC_C_First(classNameId, classPK, orderByComparator); 900 } 901 902 /** 903 * Returns the first m d r rule group instance in the ordered set where classNameId = ? and classPK = ?. 904 * 905 * @param classNameId the class name ID 906 * @param classPK the class p k 907 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 908 * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 909 */ 910 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByC_C_First( 911 long classNameId, long classPK, 912 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 913 return getPersistence() 914 .fetchByC_C_First(classNameId, classPK, orderByComparator); 915 } 916 917 /** 918 * Returns the last m d r rule group instance in the ordered set where classNameId = ? and classPK = ?. 919 * 920 * @param classNameId the class name ID 921 * @param classPK the class p k 922 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 923 * @return the last matching m d r rule group instance 924 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 925 */ 926 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByC_C_Last( 927 long classNameId, long classPK, 928 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 929 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 930 return getPersistence() 931 .findByC_C_Last(classNameId, classPK, orderByComparator); 932 } 933 934 /** 935 * Returns the last m d r rule group instance in the ordered set where classNameId = ? and classPK = ?. 936 * 937 * @param classNameId the class name ID 938 * @param classPK the class p k 939 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 940 * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 941 */ 942 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByC_C_Last( 943 long classNameId, long classPK, 944 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 945 return getPersistence() 946 .fetchByC_C_Last(classNameId, classPK, orderByComparator); 947 } 948 949 /** 950 * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where classNameId = ? and classPK = ?. 951 * 952 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 953 * @param classNameId the class name ID 954 * @param classPK the class p k 955 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 956 * @return the previous, current, and next m d r rule group instance 957 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 958 */ 959 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByC_C_PrevAndNext( 960 long ruleGroupInstanceId, long classNameId, long classPK, 961 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 962 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 963 return getPersistence() 964 .findByC_C_PrevAndNext(ruleGroupInstanceId, classNameId, 965 classPK, orderByComparator); 966 } 967 968 /** 969 * Removes all the m d r rule group instances where classNameId = ? and classPK = ? from the database. 970 * 971 * @param classNameId the class name ID 972 * @param classPK the class p k 973 */ 974 public static void removeByC_C(long classNameId, long classPK) { 975 getPersistence().removeByC_C(classNameId, classPK); 976 } 977 978 /** 979 * Returns the number of m d r rule group instances where classNameId = ? and classPK = ?. 980 * 981 * @param classNameId the class name ID 982 * @param classPK the class p k 983 * @return the number of matching m d r rule group instances 984 */ 985 public static int countByC_C(long classNameId, long classPK) { 986 return getPersistence().countByC_C(classNameId, classPK); 987 } 988 989 /** 990 * Returns all the m d r rule group instances where groupId = ? and classNameId = ? and classPK = ?. 991 * 992 * @param groupId the group ID 993 * @param classNameId the class name ID 994 * @param classPK the class p k 995 * @return the matching m d r rule group instances 996 */ 997 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByG_C_C( 998 long groupId, long classNameId, long classPK) { 999 return getPersistence().findByG_C_C(groupId, classNameId, classPK); 1000 } 1001 1002 /** 1003 * Returns a range of all the m d r rule group instances where groupId = ? and classNameId = ? and classPK = ?. 1004 * 1005 * <p> 1006 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 1007 * </p> 1008 * 1009 * @param groupId the group ID 1010 * @param classNameId the class name ID 1011 * @param classPK the class p k 1012 * @param start the lower bound of the range of m d r rule group instances 1013 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 1014 * @return the range of matching m d r rule group instances 1015 */ 1016 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByG_C_C( 1017 long groupId, long classNameId, long classPK, int start, int end) { 1018 return getPersistence() 1019 .findByG_C_C(groupId, classNameId, classPK, start, end); 1020 } 1021 1022 /** 1023 * Returns an ordered range of all the m d r rule group instances where groupId = ? and classNameId = ? and classPK = ?. 1024 * 1025 * <p> 1026 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 1027 * </p> 1028 * 1029 * @param groupId the group ID 1030 * @param classNameId the class name ID 1031 * @param classPK the class p k 1032 * @param start the lower bound of the range of m d r rule group instances 1033 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 1034 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1035 * @return the ordered range of matching m d r rule group instances 1036 */ 1037 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByG_C_C( 1038 long groupId, long classNameId, long classPK, int start, int end, 1039 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 1040 return getPersistence() 1041 .findByG_C_C(groupId, classNameId, classPK, start, end, 1042 orderByComparator); 1043 } 1044 1045 /** 1046 * Returns the first m d r rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 1047 * 1048 * @param groupId the group ID 1049 * @param classNameId the class name ID 1050 * @param classPK the class p k 1051 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1052 * @return the first matching m d r rule group instance 1053 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 1054 */ 1055 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByG_C_C_First( 1056 long groupId, long classNameId, long classPK, 1057 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 1058 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 1059 return getPersistence() 1060 .findByG_C_C_First(groupId, classNameId, classPK, 1061 orderByComparator); 1062 } 1063 1064 /** 1065 * Returns the first m d r rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 1066 * 1067 * @param groupId the group ID 1068 * @param classNameId the class name ID 1069 * @param classPK the class p k 1070 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1071 * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 1072 */ 1073 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByG_C_C_First( 1074 long groupId, long classNameId, long classPK, 1075 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 1076 return getPersistence() 1077 .fetchByG_C_C_First(groupId, classNameId, classPK, 1078 orderByComparator); 1079 } 1080 1081 /** 1082 * Returns the last m d r rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 1083 * 1084 * @param groupId the group ID 1085 * @param classNameId the class name ID 1086 * @param classPK the class p k 1087 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1088 * @return the last matching m d r rule group instance 1089 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 1090 */ 1091 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByG_C_C_Last( 1092 long groupId, long classNameId, long classPK, 1093 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 1094 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 1095 return getPersistence() 1096 .findByG_C_C_Last(groupId, classNameId, classPK, 1097 orderByComparator); 1098 } 1099 1100 /** 1101 * Returns the last m d r rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 1102 * 1103 * @param groupId the group ID 1104 * @param classNameId the class name ID 1105 * @param classPK the class p k 1106 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1107 * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 1108 */ 1109 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByG_C_C_Last( 1110 long groupId, long classNameId, long classPK, 1111 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 1112 return getPersistence() 1113 .fetchByG_C_C_Last(groupId, classNameId, classPK, 1114 orderByComparator); 1115 } 1116 1117 /** 1118 * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 1119 * 1120 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 1121 * @param groupId the group ID 1122 * @param classNameId the class name ID 1123 * @param classPK the class p k 1124 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1125 * @return the previous, current, and next m d r rule group instance 1126 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 1127 */ 1128 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByG_C_C_PrevAndNext( 1129 long ruleGroupInstanceId, long groupId, long classNameId, long classPK, 1130 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 1131 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 1132 return getPersistence() 1133 .findByG_C_C_PrevAndNext(ruleGroupInstanceId, groupId, 1134 classNameId, classPK, orderByComparator); 1135 } 1136 1137 /** 1138 * Returns all the m d r rule group instances that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. 1139 * 1140 * @param groupId the group ID 1141 * @param classNameId the class name ID 1142 * @param classPK the class p k 1143 * @return the matching m d r rule group instances that the user has permission to view 1144 */ 1145 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByG_C_C( 1146 long groupId, long classNameId, long classPK) { 1147 return getPersistence().filterFindByG_C_C(groupId, classNameId, classPK); 1148 } 1149 1150 /** 1151 * Returns a range of all the m d r rule group instances that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. 1152 * 1153 * <p> 1154 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 1155 * </p> 1156 * 1157 * @param groupId the group ID 1158 * @param classNameId the class name ID 1159 * @param classPK the class p k 1160 * @param start the lower bound of the range of m d r rule group instances 1161 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 1162 * @return the range of matching m d r rule group instances that the user has permission to view 1163 */ 1164 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByG_C_C( 1165 long groupId, long classNameId, long classPK, int start, int end) { 1166 return getPersistence() 1167 .filterFindByG_C_C(groupId, classNameId, classPK, start, end); 1168 } 1169 1170 /** 1171 * Returns an ordered range of all the m d r rule group instances that the user has permissions to view where groupId = ? and classNameId = ? and classPK = ?. 1172 * 1173 * <p> 1174 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 1175 * </p> 1176 * 1177 * @param groupId the group ID 1178 * @param classNameId the class name ID 1179 * @param classPK the class p k 1180 * @param start the lower bound of the range of m d r rule group instances 1181 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 1182 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1183 * @return the ordered range of matching m d r rule group instances that the user has permission to view 1184 */ 1185 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByG_C_C( 1186 long groupId, long classNameId, long classPK, int start, int end, 1187 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 1188 return getPersistence() 1189 .filterFindByG_C_C(groupId, classNameId, classPK, start, 1190 end, orderByComparator); 1191 } 1192 1193 /** 1194 * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set of m d r rule group instances that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. 1195 * 1196 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 1197 * @param groupId the group ID 1198 * @param classNameId the class name ID 1199 * @param classPK the class p k 1200 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1201 * @return the previous, current, and next m d r rule group instance 1202 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 1203 */ 1204 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] filterFindByG_C_C_PrevAndNext( 1205 long ruleGroupInstanceId, long groupId, long classNameId, long classPK, 1206 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) 1207 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 1208 return getPersistence() 1209 .filterFindByG_C_C_PrevAndNext(ruleGroupInstanceId, groupId, 1210 classNameId, classPK, orderByComparator); 1211 } 1212 1213 /** 1214 * Removes all the m d r rule group instances where groupId = ? and classNameId = ? and classPK = ? from the database. 1215 * 1216 * @param groupId the group ID 1217 * @param classNameId the class name ID 1218 * @param classPK the class p k 1219 */ 1220 public static void removeByG_C_C(long groupId, long classNameId, 1221 long classPK) { 1222 getPersistence().removeByG_C_C(groupId, classNameId, classPK); 1223 } 1224 1225 /** 1226 * Returns the number of m d r rule group instances where groupId = ? and classNameId = ? and classPK = ?. 1227 * 1228 * @param groupId the group ID 1229 * @param classNameId the class name ID 1230 * @param classPK the class p k 1231 * @return the number of matching m d r rule group instances 1232 */ 1233 public static int countByG_C_C(long groupId, long classNameId, long classPK) { 1234 return getPersistence().countByG_C_C(groupId, classNameId, classPK); 1235 } 1236 1237 /** 1238 * Returns the number of m d r rule group instances that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. 1239 * 1240 * @param groupId the group ID 1241 * @param classNameId the class name ID 1242 * @param classPK the class p k 1243 * @return the number of matching m d r rule group instances that the user has permission to view 1244 */ 1245 public static int filterCountByG_C_C(long groupId, long classNameId, 1246 long classPK) { 1247 return getPersistence().filterCountByG_C_C(groupId, classNameId, classPK); 1248 } 1249 1250 /** 1251 * Returns the m d r rule group instance where classNameId = ? and classPK = ? and ruleGroupId = ? or throws a {@link com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException} if it could not be found. 1252 * 1253 * @param classNameId the class name ID 1254 * @param classPK the class p k 1255 * @param ruleGroupId the rule group ID 1256 * @return the matching m d r rule group instance 1257 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 1258 */ 1259 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByC_C_R( 1260 long classNameId, long classPK, long ruleGroupId) 1261 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 1262 return getPersistence().findByC_C_R(classNameId, classPK, ruleGroupId); 1263 } 1264 1265 /** 1266 * Returns the m d r rule group instance where classNameId = ? and classPK = ? and ruleGroupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1267 * 1268 * @param classNameId the class name ID 1269 * @param classPK the class p k 1270 * @param ruleGroupId the rule group ID 1271 * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 1272 */ 1273 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByC_C_R( 1274 long classNameId, long classPK, long ruleGroupId) { 1275 return getPersistence().fetchByC_C_R(classNameId, classPK, ruleGroupId); 1276 } 1277 1278 /** 1279 * Returns the m d r rule group instance where classNameId = ? and classPK = ? and ruleGroupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1280 * 1281 * @param classNameId the class name ID 1282 * @param classPK the class p k 1283 * @param ruleGroupId the rule group ID 1284 * @param retrieveFromCache whether to use the finder cache 1285 * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 1286 */ 1287 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByC_C_R( 1288 long classNameId, long classPK, long ruleGroupId, 1289 boolean retrieveFromCache) { 1290 return getPersistence() 1291 .fetchByC_C_R(classNameId, classPK, ruleGroupId, 1292 retrieveFromCache); 1293 } 1294 1295 /** 1296 * Removes the m d r rule group instance where classNameId = ? and classPK = ? and ruleGroupId = ? from the database. 1297 * 1298 * @param classNameId the class name ID 1299 * @param classPK the class p k 1300 * @param ruleGroupId the rule group ID 1301 * @return the m d r rule group instance that was removed 1302 */ 1303 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance removeByC_C_R( 1304 long classNameId, long classPK, long ruleGroupId) 1305 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 1306 return getPersistence().removeByC_C_R(classNameId, classPK, ruleGroupId); 1307 } 1308 1309 /** 1310 * Returns the number of m d r rule group instances where classNameId = ? and classPK = ? and ruleGroupId = ?. 1311 * 1312 * @param classNameId the class name ID 1313 * @param classPK the class p k 1314 * @param ruleGroupId the rule group ID 1315 * @return the number of matching m d r rule group instances 1316 */ 1317 public static int countByC_C_R(long classNameId, long classPK, 1318 long ruleGroupId) { 1319 return getPersistence().countByC_C_R(classNameId, classPK, ruleGroupId); 1320 } 1321 1322 /** 1323 * Caches the m d r rule group instance in the entity cache if it is enabled. 1324 * 1325 * @param mdrRuleGroupInstance the m d r rule group instance 1326 */ 1327 public static void cacheResult( 1328 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance) { 1329 getPersistence().cacheResult(mdrRuleGroupInstance); 1330 } 1331 1332 /** 1333 * Caches the m d r rule group instances in the entity cache if it is enabled. 1334 * 1335 * @param mdrRuleGroupInstances the m d r rule group instances 1336 */ 1337 public static void cacheResult( 1338 java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> mdrRuleGroupInstances) { 1339 getPersistence().cacheResult(mdrRuleGroupInstances); 1340 } 1341 1342 /** 1343 * Creates a new m d r rule group instance with the primary key. Does not add the m d r rule group instance to the database. 1344 * 1345 * @param ruleGroupInstanceId the primary key for the new m d r rule group instance 1346 * @return the new m d r rule group instance 1347 */ 1348 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance create( 1349 long ruleGroupInstanceId) { 1350 return getPersistence().create(ruleGroupInstanceId); 1351 } 1352 1353 /** 1354 * Removes the m d r rule group instance with the primary key from the database. Also notifies the appropriate model listeners. 1355 * 1356 * @param ruleGroupInstanceId the primary key of the m d r rule group instance 1357 * @return the m d r rule group instance that was removed 1358 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 1359 */ 1360 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance remove( 1361 long ruleGroupInstanceId) 1362 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 1363 return getPersistence().remove(ruleGroupInstanceId); 1364 } 1365 1366 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateImpl( 1367 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance) { 1368 return getPersistence().updateImpl(mdrRuleGroupInstance); 1369 } 1370 1371 /** 1372 * Returns the m d r rule group instance with the primary key or throws a {@link com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException} if it could not be found. 1373 * 1374 * @param ruleGroupInstanceId the primary key of the m d r rule group instance 1375 * @return the m d r rule group instance 1376 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 1377 */ 1378 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByPrimaryKey( 1379 long ruleGroupInstanceId) 1380 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 1381 return getPersistence().findByPrimaryKey(ruleGroupInstanceId); 1382 } 1383 1384 /** 1385 * Returns the m d r rule group instance with the primary key or returns <code>null</code> if it could not be found. 1386 * 1387 * @param ruleGroupInstanceId the primary key of the m d r rule group instance 1388 * @return the m d r rule group instance, or <code>null</code> if a m d r rule group instance with the primary key could not be found 1389 */ 1390 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByPrimaryKey( 1391 long ruleGroupInstanceId) { 1392 return getPersistence().fetchByPrimaryKey(ruleGroupInstanceId); 1393 } 1394 1395 public static java.util.Map<java.io.Serializable, com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> fetchByPrimaryKeys( 1396 java.util.Set<java.io.Serializable> primaryKeys) { 1397 return getPersistence().fetchByPrimaryKeys(primaryKeys); 1398 } 1399 1400 /** 1401 * Returns all the m d r rule group instances. 1402 * 1403 * @return the m d r rule group instances 1404 */ 1405 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findAll() { 1406 return getPersistence().findAll(); 1407 } 1408 1409 /** 1410 * Returns a range of all the m d r rule group instances. 1411 * 1412 * <p> 1413 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 1414 * </p> 1415 * 1416 * @param start the lower bound of the range of m d r rule group instances 1417 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 1418 * @return the range of m d r rule group instances 1419 */ 1420 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findAll( 1421 int start, int end) { 1422 return getPersistence().findAll(start, end); 1423 } 1424 1425 /** 1426 * Returns an ordered range of all the m d r rule group instances. 1427 * 1428 * <p> 1429 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> 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. 1430 * </p> 1431 * 1432 * @param start the lower bound of the range of m d r rule group instances 1433 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 1434 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1435 * @return the ordered range of m d r rule group instances 1436 */ 1437 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findAll( 1438 int start, int end, 1439 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) { 1440 return getPersistence().findAll(start, end, orderByComparator); 1441 } 1442 1443 /** 1444 * Removes all the m d r rule group instances from the database. 1445 */ 1446 public static void removeAll() { 1447 getPersistence().removeAll(); 1448 } 1449 1450 /** 1451 * Returns the number of m d r rule group instances. 1452 * 1453 * @return the number of m d r rule group instances 1454 */ 1455 public static int countAll() { 1456 return getPersistence().countAll(); 1457 } 1458 1459 public static MDRRuleGroupInstancePersistence getPersistence() { 1460 if (_persistence == null) { 1461 _persistence = (MDRRuleGroupInstancePersistence)PortalBeanLocatorUtil.locate(MDRRuleGroupInstancePersistence.class.getName()); 1462 1463 ReferenceRegistry.registerReference(MDRRuleGroupInstanceUtil.class, 1464 "_persistence"); 1465 } 1466 1467 return _persistence; 1468 } 1469 1470 /** 1471 * @deprecated As of 6.2.0 1472 */ 1473 @Deprecated 1474 public void setPersistence(MDRRuleGroupInstancePersistence persistence) { 1475 } 1476 1477 private static MDRRuleGroupInstancePersistence _persistence; 1478 }