001 /** 002 * Copyright (c) 2000-2012 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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance; 025 026 import java.util.List; 027 028 /** 029 * 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. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Edward C. Han 036 * @see MDRRuleGroupInstancePersistence 037 * @see MDRRuleGroupInstancePersistenceImpl 038 * @generated 039 */ 040 public class MDRRuleGroupInstanceUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(MDRRuleGroupInstance mdrRuleGroupInstance) { 058 getPersistence().clearCache(mdrRuleGroupInstance); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<MDRRuleGroupInstance> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<MDRRuleGroupInstance> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 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 orderByComparator) throws SystemException { 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, boolean) 099 */ 100 public static MDRRuleGroupInstance update( 101 MDRRuleGroupInstance mdrRuleGroupInstance, boolean merge) 102 throws SystemException { 103 return getPersistence().update(mdrRuleGroupInstance, merge); 104 } 105 106 /** 107 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 108 */ 109 public static MDRRuleGroupInstance update( 110 MDRRuleGroupInstance mdrRuleGroupInstance, boolean merge, 111 ServiceContext serviceContext) throws SystemException { 112 return getPersistence() 113 .update(mdrRuleGroupInstance, merge, serviceContext); 114 } 115 116 /** 117 * Caches the m d r rule group instance in the entity cache if it is enabled. 118 * 119 * @param mdrRuleGroupInstance the m d r rule group instance 120 */ 121 public static void cacheResult( 122 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance) { 123 getPersistence().cacheResult(mdrRuleGroupInstance); 124 } 125 126 /** 127 * Caches the m d r rule group instances in the entity cache if it is enabled. 128 * 129 * @param mdrRuleGroupInstances the m d r rule group instances 130 */ 131 public static void cacheResult( 132 java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> mdrRuleGroupInstances) { 133 getPersistence().cacheResult(mdrRuleGroupInstances); 134 } 135 136 /** 137 * 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. 138 * 139 * @param ruleGroupInstanceId the primary key for the new m d r rule group instance 140 * @return the new m d r rule group instance 141 */ 142 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance create( 143 long ruleGroupInstanceId) { 144 return getPersistence().create(ruleGroupInstanceId); 145 } 146 147 /** 148 * Removes the m d r rule group instance with the primary key from the database. Also notifies the appropriate model listeners. 149 * 150 * @param ruleGroupInstanceId the primary key of the m d r rule group instance 151 * @return the m d r rule group instance that was removed 152 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 153 * @throws SystemException if a system exception occurred 154 */ 155 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance remove( 156 long ruleGroupInstanceId) 157 throws com.liferay.portal.kernel.exception.SystemException, 158 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 159 return getPersistence().remove(ruleGroupInstanceId); 160 } 161 162 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateImpl( 163 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance, 164 boolean merge) 165 throws com.liferay.portal.kernel.exception.SystemException { 166 return getPersistence().updateImpl(mdrRuleGroupInstance, merge); 167 } 168 169 /** 170 * 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. 171 * 172 * @param ruleGroupInstanceId the primary key of the m d r rule group instance 173 * @return the m d r rule group instance 174 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 175 * @throws SystemException if a system exception occurred 176 */ 177 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByPrimaryKey( 178 long ruleGroupInstanceId) 179 throws com.liferay.portal.kernel.exception.SystemException, 180 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 181 return getPersistence().findByPrimaryKey(ruleGroupInstanceId); 182 } 183 184 /** 185 * Returns the m d r rule group instance with the primary key or returns <code>null</code> if it could not be found. 186 * 187 * @param ruleGroupInstanceId the primary key of the m d r rule group instance 188 * @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 189 * @throws SystemException if a system exception occurred 190 */ 191 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByPrimaryKey( 192 long ruleGroupInstanceId) 193 throws com.liferay.portal.kernel.exception.SystemException { 194 return getPersistence().fetchByPrimaryKey(ruleGroupInstanceId); 195 } 196 197 /** 198 * Returns all the m d r rule group instances where uuid = ?. 199 * 200 * @param uuid the uuid 201 * @return the matching m d r rule group instances 202 * @throws SystemException if a system exception occurred 203 */ 204 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid( 205 java.lang.String uuid) 206 throws com.liferay.portal.kernel.exception.SystemException { 207 return getPersistence().findByUuid(uuid); 208 } 209 210 /** 211 * Returns a range of all the m d r rule group instances where uuid = ?. 212 * 213 * <p> 214 * 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. 215 * </p> 216 * 217 * @param uuid the uuid 218 * @param start the lower bound of the range of m d r rule group instances 219 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 220 * @return the range of matching m d r rule group instances 221 * @throws SystemException if a system exception occurred 222 */ 223 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid( 224 java.lang.String uuid, int start, int end) 225 throws com.liferay.portal.kernel.exception.SystemException { 226 return getPersistence().findByUuid(uuid, start, end); 227 } 228 229 /** 230 * Returns an ordered range of all the m d r rule group instances where uuid = ?. 231 * 232 * <p> 233 * 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. 234 * </p> 235 * 236 * @param uuid the uuid 237 * @param start the lower bound of the range of m d r rule group instances 238 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 239 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 240 * @return the ordered range of matching m d r rule group instances 241 * @throws SystemException if a system exception occurred 242 */ 243 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid( 244 java.lang.String uuid, int start, int end, 245 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 246 throws com.liferay.portal.kernel.exception.SystemException { 247 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 248 } 249 250 /** 251 * Returns the first m d r rule group instance in the ordered set where uuid = ?. 252 * 253 * <p> 254 * 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. 255 * </p> 256 * 257 * @param uuid the uuid 258 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 259 * @return the first matching m d r rule group instance 260 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 261 * @throws SystemException if a system exception occurred 262 */ 263 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUuid_First( 264 java.lang.String uuid, 265 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 266 throws com.liferay.portal.kernel.exception.SystemException, 267 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 268 return getPersistence().findByUuid_First(uuid, orderByComparator); 269 } 270 271 /** 272 * Returns the last m d r rule group instance in the ordered set where uuid = ?. 273 * 274 * <p> 275 * 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. 276 * </p> 277 * 278 * @param uuid the uuid 279 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 280 * @return the last matching m d r rule group instance 281 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 282 * @throws SystemException if a system exception occurred 283 */ 284 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUuid_Last( 285 java.lang.String uuid, 286 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 287 throws com.liferay.portal.kernel.exception.SystemException, 288 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 289 return getPersistence().findByUuid_Last(uuid, orderByComparator); 290 } 291 292 /** 293 * 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 = ?. 294 * 295 * <p> 296 * 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. 297 * </p> 298 * 299 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 300 * @param uuid the uuid 301 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 302 * @return the previous, current, and next m d r rule group instance 303 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 304 * @throws SystemException if a system exception occurred 305 */ 306 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByUuid_PrevAndNext( 307 long ruleGroupInstanceId, java.lang.String uuid, 308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 309 throws com.liferay.portal.kernel.exception.SystemException, 310 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 311 return getPersistence() 312 .findByUuid_PrevAndNext(ruleGroupInstanceId, uuid, 313 orderByComparator); 314 } 315 316 /** 317 * 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. 318 * 319 * @param uuid the uuid 320 * @param groupId the group ID 321 * @return the matching m d r rule group instance 322 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 323 * @throws SystemException if a system exception occurred 324 */ 325 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUUID_G( 326 java.lang.String uuid, long groupId) 327 throws com.liferay.portal.kernel.exception.SystemException, 328 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 329 return getPersistence().findByUUID_G(uuid, groupId); 330 } 331 332 /** 333 * 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. 334 * 335 * @param uuid the uuid 336 * @param groupId the group ID 337 * @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 338 * @throws SystemException if a system exception occurred 339 */ 340 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUUID_G( 341 java.lang.String uuid, long groupId) 342 throws com.liferay.portal.kernel.exception.SystemException { 343 return getPersistence().fetchByUUID_G(uuid, groupId); 344 } 345 346 /** 347 * 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. 348 * 349 * @param uuid the uuid 350 * @param groupId the group ID 351 * @param retrieveFromCache whether to use the finder cache 352 * @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 353 * @throws SystemException if a system exception occurred 354 */ 355 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUUID_G( 356 java.lang.String uuid, long groupId, boolean retrieveFromCache) 357 throws com.liferay.portal.kernel.exception.SystemException { 358 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 359 } 360 361 /** 362 * Returns all the m d r rule group instances where ruleGroupId = ?. 363 * 364 * @param ruleGroupId the rule group ID 365 * @return the matching m d r rule group instances 366 * @throws SystemException if a system exception occurred 367 */ 368 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByRuleGroupId( 369 long ruleGroupId) 370 throws com.liferay.portal.kernel.exception.SystemException { 371 return getPersistence().findByRuleGroupId(ruleGroupId); 372 } 373 374 /** 375 * Returns a range of all the m d r rule group instances where ruleGroupId = ?. 376 * 377 * <p> 378 * 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. 379 * </p> 380 * 381 * @param ruleGroupId the rule group ID 382 * @param start the lower bound of the range of m d r rule group instances 383 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 384 * @return the range of matching m d r rule group instances 385 * @throws SystemException if a system exception occurred 386 */ 387 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByRuleGroupId( 388 long ruleGroupId, int start, int end) 389 throws com.liferay.portal.kernel.exception.SystemException { 390 return getPersistence().findByRuleGroupId(ruleGroupId, start, end); 391 } 392 393 /** 394 * Returns an ordered range of all the m d r rule group instances where ruleGroupId = ?. 395 * 396 * <p> 397 * 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. 398 * </p> 399 * 400 * @param ruleGroupId the rule group ID 401 * @param start the lower bound of the range of m d r rule group instances 402 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 403 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 404 * @return the ordered range of matching m d r rule group instances 405 * @throws SystemException if a system exception occurred 406 */ 407 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByRuleGroupId( 408 long ruleGroupId, int start, int end, 409 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 410 throws com.liferay.portal.kernel.exception.SystemException { 411 return getPersistence() 412 .findByRuleGroupId(ruleGroupId, start, end, orderByComparator); 413 } 414 415 /** 416 * Returns the first m d r rule group instance in the ordered set where ruleGroupId = ?. 417 * 418 * <p> 419 * 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. 420 * </p> 421 * 422 * @param ruleGroupId the rule group ID 423 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 424 * @return the first matching m d r rule group instance 425 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 426 * @throws SystemException if a system exception occurred 427 */ 428 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByRuleGroupId_First( 429 long ruleGroupId, 430 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 431 throws com.liferay.portal.kernel.exception.SystemException, 432 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 433 return getPersistence() 434 .findByRuleGroupId_First(ruleGroupId, orderByComparator); 435 } 436 437 /** 438 * Returns the last m d r rule group instance in the ordered set where ruleGroupId = ?. 439 * 440 * <p> 441 * 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. 442 * </p> 443 * 444 * @param ruleGroupId the rule group ID 445 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 446 * @return the last matching m d r rule group instance 447 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 448 * @throws SystemException if a system exception occurred 449 */ 450 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByRuleGroupId_Last( 451 long ruleGroupId, 452 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 453 throws com.liferay.portal.kernel.exception.SystemException, 454 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 455 return getPersistence() 456 .findByRuleGroupId_Last(ruleGroupId, orderByComparator); 457 } 458 459 /** 460 * 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 = ?. 461 * 462 * <p> 463 * 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. 464 * </p> 465 * 466 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 467 * @param ruleGroupId the rule group ID 468 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 469 * @return the previous, current, and next m d r rule group instance 470 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 471 * @throws SystemException if a system exception occurred 472 */ 473 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByRuleGroupId_PrevAndNext( 474 long ruleGroupInstanceId, long ruleGroupId, 475 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 476 throws com.liferay.portal.kernel.exception.SystemException, 477 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 478 return getPersistence() 479 .findByRuleGroupId_PrevAndNext(ruleGroupInstanceId, 480 ruleGroupId, orderByComparator); 481 } 482 483 /** 484 * Returns all the m d r rule group instances where classNameId = ? and classPK = ?. 485 * 486 * @param classNameId the class name ID 487 * @param classPK the class p k 488 * @return the matching m d r rule group instances 489 * @throws SystemException if a system exception occurred 490 */ 491 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByC_C( 492 long classNameId, long classPK) 493 throws com.liferay.portal.kernel.exception.SystemException { 494 return getPersistence().findByC_C(classNameId, classPK); 495 } 496 497 /** 498 * Returns a range of all the m d r rule group instances where classNameId = ? and classPK = ?. 499 * 500 * <p> 501 * 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. 502 * </p> 503 * 504 * @param classNameId the class name ID 505 * @param classPK the class p k 506 * @param start the lower bound of the range of m d r rule group instances 507 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 508 * @return the range of matching m d r rule group instances 509 * @throws SystemException if a system exception occurred 510 */ 511 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByC_C( 512 long classNameId, long classPK, int start, int end) 513 throws com.liferay.portal.kernel.exception.SystemException { 514 return getPersistence().findByC_C(classNameId, classPK, start, end); 515 } 516 517 /** 518 * Returns an ordered range of all the m d r rule group instances where classNameId = ? and classPK = ?. 519 * 520 * <p> 521 * 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. 522 * </p> 523 * 524 * @param classNameId the class name ID 525 * @param classPK the class p k 526 * @param start the lower bound of the range of m d r rule group instances 527 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 528 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 529 * @return the ordered range of matching m d r rule group instances 530 * @throws SystemException if a system exception occurred 531 */ 532 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByC_C( 533 long classNameId, long classPK, int start, int end, 534 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 535 throws com.liferay.portal.kernel.exception.SystemException { 536 return getPersistence() 537 .findByC_C(classNameId, classPK, start, end, 538 orderByComparator); 539 } 540 541 /** 542 * Returns the first m d r rule group instance in the ordered set where classNameId = ? and classPK = ?. 543 * 544 * <p> 545 * 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. 546 * </p> 547 * 548 * @param classNameId the class name ID 549 * @param classPK the class p k 550 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 551 * @return the first matching m d r rule group instance 552 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 553 * @throws SystemException if a system exception occurred 554 */ 555 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByC_C_First( 556 long classNameId, long classPK, 557 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 558 throws com.liferay.portal.kernel.exception.SystemException, 559 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 560 return getPersistence() 561 .findByC_C_First(classNameId, classPK, orderByComparator); 562 } 563 564 /** 565 * Returns the last m d r rule group instance in the ordered set where classNameId = ? and classPK = ?. 566 * 567 * <p> 568 * 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. 569 * </p> 570 * 571 * @param classNameId the class name ID 572 * @param classPK the class p k 573 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 574 * @return the last matching m d r rule group instance 575 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 576 * @throws SystemException if a system exception occurred 577 */ 578 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByC_C_Last( 579 long classNameId, long classPK, 580 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 581 throws com.liferay.portal.kernel.exception.SystemException, 582 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 583 return getPersistence() 584 .findByC_C_Last(classNameId, classPK, orderByComparator); 585 } 586 587 /** 588 * 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 = ?. 589 * 590 * <p> 591 * 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. 592 * </p> 593 * 594 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 595 * @param classNameId the class name ID 596 * @param classPK the class p k 597 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 598 * @return the previous, current, and next m d r rule group instance 599 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 600 * @throws SystemException if a system exception occurred 601 */ 602 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByC_C_PrevAndNext( 603 long ruleGroupInstanceId, long classNameId, long classPK, 604 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 605 throws com.liferay.portal.kernel.exception.SystemException, 606 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 607 return getPersistence() 608 .findByC_C_PrevAndNext(ruleGroupInstanceId, classNameId, 609 classPK, orderByComparator); 610 } 611 612 /** 613 * Returns all the m d r rule group instances where groupId = ? and classNameId = ? and classPK = ?. 614 * 615 * @param groupId the group ID 616 * @param classNameId the class name ID 617 * @param classPK the class p k 618 * @return the matching m d r rule group instances 619 * @throws SystemException if a system exception occurred 620 */ 621 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByG_C_C( 622 long groupId, long classNameId, long classPK) 623 throws com.liferay.portal.kernel.exception.SystemException { 624 return getPersistence().findByG_C_C(groupId, classNameId, classPK); 625 } 626 627 /** 628 * Returns a range of all the m d r rule group instances where groupId = ? and classNameId = ? and classPK = ?. 629 * 630 * <p> 631 * 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. 632 * </p> 633 * 634 * @param groupId the group ID 635 * @param classNameId the class name ID 636 * @param classPK the class p k 637 * @param start the lower bound of the range of m d r rule group instances 638 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 639 * @return the range of matching m d r rule group instances 640 * @throws SystemException if a system exception occurred 641 */ 642 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByG_C_C( 643 long groupId, long classNameId, long classPK, int start, int end) 644 throws com.liferay.portal.kernel.exception.SystemException { 645 return getPersistence() 646 .findByG_C_C(groupId, classNameId, classPK, start, end); 647 } 648 649 /** 650 * Returns an ordered range of all the m d r rule group instances where groupId = ? and classNameId = ? and classPK = ?. 651 * 652 * <p> 653 * 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. 654 * </p> 655 * 656 * @param groupId the group ID 657 * @param classNameId the class name ID 658 * @param classPK the class p k 659 * @param start the lower bound of the range of m d r rule group instances 660 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 661 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 662 * @return the ordered range of matching m d r rule group instances 663 * @throws SystemException if a system exception occurred 664 */ 665 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByG_C_C( 666 long groupId, long classNameId, long classPK, int start, int end, 667 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 668 throws com.liferay.portal.kernel.exception.SystemException { 669 return getPersistence() 670 .findByG_C_C(groupId, classNameId, classPK, start, end, 671 orderByComparator); 672 } 673 674 /** 675 * Returns the first m d r rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 676 * 677 * <p> 678 * 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. 679 * </p> 680 * 681 * @param groupId the group ID 682 * @param classNameId the class name ID 683 * @param classPK the class p k 684 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 685 * @return the first matching m d r rule group instance 686 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 687 * @throws SystemException if a system exception occurred 688 */ 689 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByG_C_C_First( 690 long groupId, long classNameId, long classPK, 691 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 692 throws com.liferay.portal.kernel.exception.SystemException, 693 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 694 return getPersistence() 695 .findByG_C_C_First(groupId, classNameId, classPK, 696 orderByComparator); 697 } 698 699 /** 700 * Returns the last m d r rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 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. 704 * </p> 705 * 706 * @param groupId the group ID 707 * @param classNameId the class name ID 708 * @param classPK the class p k 709 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 710 * @return the last matching m d r rule group instance 711 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 712 * @throws SystemException if a system exception occurred 713 */ 714 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByG_C_C_Last( 715 long groupId, long classNameId, long classPK, 716 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 717 throws com.liferay.portal.kernel.exception.SystemException, 718 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 719 return getPersistence() 720 .findByG_C_C_Last(groupId, classNameId, classPK, 721 orderByComparator); 722 } 723 724 /** 725 * 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 = ?. 726 * 727 * <p> 728 * 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. 729 * </p> 730 * 731 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 732 * @param groupId the group ID 733 * @param classNameId the class name ID 734 * @param classPK the class p k 735 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 736 * @return the previous, current, and next m d r rule group instance 737 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 738 * @throws SystemException if a system exception occurred 739 */ 740 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByG_C_C_PrevAndNext( 741 long ruleGroupInstanceId, long groupId, long classNameId, long classPK, 742 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 743 throws com.liferay.portal.kernel.exception.SystemException, 744 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 745 return getPersistence() 746 .findByG_C_C_PrevAndNext(ruleGroupInstanceId, groupId, 747 classNameId, classPK, orderByComparator); 748 } 749 750 /** 751 * Returns all the m d r rule group instances that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. 752 * 753 * @param groupId the group ID 754 * @param classNameId the class name ID 755 * @param classPK the class p k 756 * @return the matching m d r rule group instances that the user has permission to view 757 * @throws SystemException if a system exception occurred 758 */ 759 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByG_C_C( 760 long groupId, long classNameId, long classPK) 761 throws com.liferay.portal.kernel.exception.SystemException { 762 return getPersistence().filterFindByG_C_C(groupId, classNameId, classPK); 763 } 764 765 /** 766 * 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 = ?. 767 * 768 * <p> 769 * 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. 770 * </p> 771 * 772 * @param groupId the group ID 773 * @param classNameId the class name ID 774 * @param classPK the class p k 775 * @param start the lower bound of the range of m d r rule group instances 776 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 777 * @return the range of matching m d r rule group instances that the user has permission to view 778 * @throws SystemException if a system exception occurred 779 */ 780 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByG_C_C( 781 long groupId, long classNameId, long classPK, int start, int end) 782 throws com.liferay.portal.kernel.exception.SystemException { 783 return getPersistence() 784 .filterFindByG_C_C(groupId, classNameId, classPK, start, end); 785 } 786 787 /** 788 * 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 = ?. 789 * 790 * <p> 791 * 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. 792 * </p> 793 * 794 * @param groupId the group ID 795 * @param classNameId the class name ID 796 * @param classPK the class p k 797 * @param start the lower bound of the range of m d r rule group instances 798 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 799 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 800 * @return the ordered range of matching m d r rule group instances that the user has permission to view 801 * @throws SystemException if a system exception occurred 802 */ 803 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByG_C_C( 804 long groupId, long classNameId, long classPK, int start, int end, 805 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 806 throws com.liferay.portal.kernel.exception.SystemException { 807 return getPersistence() 808 .filterFindByG_C_C(groupId, classNameId, classPK, start, 809 end, orderByComparator); 810 } 811 812 /** 813 * 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 = ?. 814 * 815 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 816 * @param groupId the group ID 817 * @param classNameId the class name ID 818 * @param classPK the class p k 819 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 820 * @return the previous, current, and next m d r rule group instance 821 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 822 * @throws SystemException if a system exception occurred 823 */ 824 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] filterFindByG_C_C_PrevAndNext( 825 long ruleGroupInstanceId, long groupId, long classNameId, long classPK, 826 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 827 throws com.liferay.portal.kernel.exception.SystemException, 828 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 829 return getPersistence() 830 .filterFindByG_C_C_PrevAndNext(ruleGroupInstanceId, groupId, 831 classNameId, classPK, orderByComparator); 832 } 833 834 /** 835 * 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. 836 * 837 * @param classNameId the class name ID 838 * @param classPK the class p k 839 * @param ruleGroupId the rule group ID 840 * @return the matching m d r rule group instance 841 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 842 * @throws SystemException if a system exception occurred 843 */ 844 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByC_C_R( 845 long classNameId, long classPK, long ruleGroupId) 846 throws com.liferay.portal.kernel.exception.SystemException, 847 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 848 return getPersistence().findByC_C_R(classNameId, classPK, ruleGroupId); 849 } 850 851 /** 852 * 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. 853 * 854 * @param classNameId the class name ID 855 * @param classPK the class p k 856 * @param ruleGroupId the rule group ID 857 * @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 858 * @throws SystemException if a system exception occurred 859 */ 860 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByC_C_R( 861 long classNameId, long classPK, long ruleGroupId) 862 throws com.liferay.portal.kernel.exception.SystemException { 863 return getPersistence().fetchByC_C_R(classNameId, classPK, ruleGroupId); 864 } 865 866 /** 867 * 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. 868 * 869 * @param classNameId the class name ID 870 * @param classPK the class p k 871 * @param ruleGroupId the rule group ID 872 * @param retrieveFromCache whether to use the finder cache 873 * @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 874 * @throws SystemException if a system exception occurred 875 */ 876 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByC_C_R( 877 long classNameId, long classPK, long ruleGroupId, 878 boolean retrieveFromCache) 879 throws com.liferay.portal.kernel.exception.SystemException { 880 return getPersistence() 881 .fetchByC_C_R(classNameId, classPK, ruleGroupId, 882 retrieveFromCache); 883 } 884 885 /** 886 * Returns all the m d r rule group instances. 887 * 888 * @return the m d r rule group instances 889 * @throws SystemException if a system exception occurred 890 */ 891 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findAll() 892 throws com.liferay.portal.kernel.exception.SystemException { 893 return getPersistence().findAll(); 894 } 895 896 /** 897 * Returns a range of all the m d r rule group instances. 898 * 899 * <p> 900 * 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. 901 * </p> 902 * 903 * @param start the lower bound of the range of m d r rule group instances 904 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 905 * @return the range of m d r rule group instances 906 * @throws SystemException if a system exception occurred 907 */ 908 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findAll( 909 int start, int end) 910 throws com.liferay.portal.kernel.exception.SystemException { 911 return getPersistence().findAll(start, end); 912 } 913 914 /** 915 * Returns an ordered range of all the m d r rule group instances. 916 * 917 * <p> 918 * 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. 919 * </p> 920 * 921 * @param start the lower bound of the range of m d r rule group instances 922 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 923 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 924 * @return the ordered range of m d r rule group instances 925 * @throws SystemException if a system exception occurred 926 */ 927 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findAll( 928 int start, int end, 929 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 930 throws com.liferay.portal.kernel.exception.SystemException { 931 return getPersistence().findAll(start, end, orderByComparator); 932 } 933 934 /** 935 * Removes all the m d r rule group instances where uuid = ? from the database. 936 * 937 * @param uuid the uuid 938 * @throws SystemException if a system exception occurred 939 */ 940 public static void removeByUuid(java.lang.String uuid) 941 throws com.liferay.portal.kernel.exception.SystemException { 942 getPersistence().removeByUuid(uuid); 943 } 944 945 /** 946 * Removes the m d r rule group instance where uuid = ? and groupId = ? from the database. 947 * 948 * @param uuid the uuid 949 * @param groupId the group ID 950 * @throws SystemException if a system exception occurred 951 */ 952 public static void removeByUUID_G(java.lang.String uuid, long groupId) 953 throws com.liferay.portal.kernel.exception.SystemException, 954 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 955 getPersistence().removeByUUID_G(uuid, groupId); 956 } 957 958 /** 959 * Removes all the m d r rule group instances where ruleGroupId = ? from the database. 960 * 961 * @param ruleGroupId the rule group ID 962 * @throws SystemException if a system exception occurred 963 */ 964 public static void removeByRuleGroupId(long ruleGroupId) 965 throws com.liferay.portal.kernel.exception.SystemException { 966 getPersistence().removeByRuleGroupId(ruleGroupId); 967 } 968 969 /** 970 * Removes all the m d r rule group instances where classNameId = ? and classPK = ? from the database. 971 * 972 * @param classNameId the class name ID 973 * @param classPK the class p k 974 * @throws SystemException if a system exception occurred 975 */ 976 public static void removeByC_C(long classNameId, long classPK) 977 throws com.liferay.portal.kernel.exception.SystemException { 978 getPersistence().removeByC_C(classNameId, classPK); 979 } 980 981 /** 982 * Removes all the m d r rule group instances where groupId = ? and classNameId = ? and classPK = ? from the database. 983 * 984 * @param groupId the group ID 985 * @param classNameId the class name ID 986 * @param classPK the class p k 987 * @throws SystemException if a system exception occurred 988 */ 989 public static void removeByG_C_C(long groupId, long classNameId, 990 long classPK) 991 throws com.liferay.portal.kernel.exception.SystemException { 992 getPersistence().removeByG_C_C(groupId, classNameId, classPK); 993 } 994 995 /** 996 * Removes the m d r rule group instance where classNameId = ? and classPK = ? and ruleGroupId = ? from the database. 997 * 998 * @param classNameId the class name ID 999 * @param classPK the class p k 1000 * @param ruleGroupId the rule group ID 1001 * @throws SystemException if a system exception occurred 1002 */ 1003 public static void removeByC_C_R(long classNameId, long classPK, 1004 long ruleGroupId) 1005 throws com.liferay.portal.kernel.exception.SystemException, 1006 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException { 1007 getPersistence().removeByC_C_R(classNameId, classPK, ruleGroupId); 1008 } 1009 1010 /** 1011 * Removes all the m d r rule group instances from the database. 1012 * 1013 * @throws SystemException if a system exception occurred 1014 */ 1015 public static void removeAll() 1016 throws com.liferay.portal.kernel.exception.SystemException { 1017 getPersistence().removeAll(); 1018 } 1019 1020 /** 1021 * Returns the number of m d r rule group instances where uuid = ?. 1022 * 1023 * @param uuid the uuid 1024 * @return the number of matching m d r rule group instances 1025 * @throws SystemException if a system exception occurred 1026 */ 1027 public static int countByUuid(java.lang.String uuid) 1028 throws com.liferay.portal.kernel.exception.SystemException { 1029 return getPersistence().countByUuid(uuid); 1030 } 1031 1032 /** 1033 * Returns the number of m d r rule group instances where uuid = ? and groupId = ?. 1034 * 1035 * @param uuid the uuid 1036 * @param groupId the group ID 1037 * @return the number of matching m d r rule group instances 1038 * @throws SystemException if a system exception occurred 1039 */ 1040 public static int countByUUID_G(java.lang.String uuid, long groupId) 1041 throws com.liferay.portal.kernel.exception.SystemException { 1042 return getPersistence().countByUUID_G(uuid, groupId); 1043 } 1044 1045 /** 1046 * Returns the number of m d r rule group instances where ruleGroupId = ?. 1047 * 1048 * @param ruleGroupId the rule group ID 1049 * @return the number of matching m d r rule group instances 1050 * @throws SystemException if a system exception occurred 1051 */ 1052 public static int countByRuleGroupId(long ruleGroupId) 1053 throws com.liferay.portal.kernel.exception.SystemException { 1054 return getPersistence().countByRuleGroupId(ruleGroupId); 1055 } 1056 1057 /** 1058 * Returns the number of m d r rule group instances where classNameId = ? and classPK = ?. 1059 * 1060 * @param classNameId the class name ID 1061 * @param classPK the class p k 1062 * @return the number of matching m d r rule group instances 1063 * @throws SystemException if a system exception occurred 1064 */ 1065 public static int countByC_C(long classNameId, long classPK) 1066 throws com.liferay.portal.kernel.exception.SystemException { 1067 return getPersistence().countByC_C(classNameId, classPK); 1068 } 1069 1070 /** 1071 * Returns the number of m d r rule group instances where groupId = ? and classNameId = ? and classPK = ?. 1072 * 1073 * @param groupId the group ID 1074 * @param classNameId the class name ID 1075 * @param classPK the class p k 1076 * @return the number of matching m d r rule group instances 1077 * @throws SystemException if a system exception occurred 1078 */ 1079 public static int countByG_C_C(long groupId, long classNameId, long classPK) 1080 throws com.liferay.portal.kernel.exception.SystemException { 1081 return getPersistence().countByG_C_C(groupId, classNameId, classPK); 1082 } 1083 1084 /** 1085 * Returns the number of m d r rule group instances that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. 1086 * 1087 * @param groupId the group ID 1088 * @param classNameId the class name ID 1089 * @param classPK the class p k 1090 * @return the number of matching m d r rule group instances that the user has permission to view 1091 * @throws SystemException if a system exception occurred 1092 */ 1093 public static int filterCountByG_C_C(long groupId, long classNameId, 1094 long classPK) 1095 throws com.liferay.portal.kernel.exception.SystemException { 1096 return getPersistence().filterCountByG_C_C(groupId, classNameId, classPK); 1097 } 1098 1099 /** 1100 * Returns the number of m d r rule group instances where classNameId = ? and classPK = ? and ruleGroupId = ?. 1101 * 1102 * @param classNameId the class name ID 1103 * @param classPK the class p k 1104 * @param ruleGroupId the rule group ID 1105 * @return the number of matching m d r rule group instances 1106 * @throws SystemException if a system exception occurred 1107 */ 1108 public static int countByC_C_R(long classNameId, long classPK, 1109 long ruleGroupId) 1110 throws com.liferay.portal.kernel.exception.SystemException { 1111 return getPersistence().countByC_C_R(classNameId, classPK, ruleGroupId); 1112 } 1113 1114 /** 1115 * Returns the number of m d r rule group instances. 1116 * 1117 * @return the number of m d r rule group instances 1118 * @throws SystemException if a system exception occurred 1119 */ 1120 public static int countAll() 1121 throws com.liferay.portal.kernel.exception.SystemException { 1122 return getPersistence().countAll(); 1123 } 1124 1125 public static MDRRuleGroupInstancePersistence getPersistence() { 1126 if (_persistence == null) { 1127 _persistence = (MDRRuleGroupInstancePersistence)PortalBeanLocatorUtil.locate(MDRRuleGroupInstancePersistence.class.getName()); 1128 1129 ReferenceRegistry.registerReference(MDRRuleGroupInstanceUtil.class, 1130 "_persistence"); 1131 } 1132 1133 return _persistence; 1134 } 1135 1136 public void setPersistence(MDRRuleGroupInstancePersistence persistence) { 1137 _persistence = persistence; 1138 1139 ReferenceRegistry.registerReference(MDRRuleGroupInstanceUtil.class, 1140 "_persistence"); 1141 } 1142 1143 private static MDRRuleGroupInstancePersistence _persistence; 1144 }