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.MDRAction; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the m d r action service. This utility wraps {@link MDRActionPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 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 MDRActionPersistence 037 * @see MDRActionPersistenceImpl 038 * @generated 039 */ 040 public class MDRActionUtil { 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(MDRAction mdrAction) { 058 getPersistence().clearCache(mdrAction); 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<MDRAction> 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<MDRAction> 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<MDRAction> 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) 099 */ 100 public static MDRAction update(MDRAction mdrAction) 101 throws SystemException { 102 return getPersistence().update(mdrAction); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static MDRAction update(MDRAction mdrAction, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(mdrAction, serviceContext); 111 } 112 113 /** 114 * Caches the m d r action in the entity cache if it is enabled. 115 * 116 * @param mdrAction the m d r action 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction) { 120 getPersistence().cacheResult(mdrAction); 121 } 122 123 /** 124 * Caches the m d r actions in the entity cache if it is enabled. 125 * 126 * @param mdrActions the m d r actions 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> mdrActions) { 130 getPersistence().cacheResult(mdrActions); 131 } 132 133 /** 134 * Creates a new m d r action with the primary key. Does not add the m d r action to the database. 135 * 136 * @param actionId the primary key for the new m d r action 137 * @return the new m d r action 138 */ 139 public static com.liferay.portlet.mobiledevicerules.model.MDRAction create( 140 long actionId) { 141 return getPersistence().create(actionId); 142 } 143 144 /** 145 * Removes the m d r action with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param actionId the primary key of the m d r action 148 * @return the m d r action that was removed 149 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.mobiledevicerules.model.MDRAction remove( 153 long actionId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.mobiledevicerules.NoSuchActionException { 156 return getPersistence().remove(actionId); 157 } 158 159 public static com.liferay.portlet.mobiledevicerules.model.MDRAction updateImpl( 160 com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().updateImpl(mdrAction); 163 } 164 165 /** 166 * Returns the m d r action with the primary key or throws a {@link com.liferay.portlet.mobiledevicerules.NoSuchActionException} if it could not be found. 167 * 168 * @param actionId the primary key of the m d r action 169 * @return the m d r action 170 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByPrimaryKey( 174 long actionId) 175 throws com.liferay.portal.kernel.exception.SystemException, 176 com.liferay.portlet.mobiledevicerules.NoSuchActionException { 177 return getPersistence().findByPrimaryKey(actionId); 178 } 179 180 /** 181 * Returns the m d r action with the primary key or returns <code>null</code> if it could not be found. 182 * 183 * @param actionId the primary key of the m d r action 184 * @return the m d r action, or <code>null</code> if a m d r action with the primary key could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByPrimaryKey( 188 long actionId) 189 throws com.liferay.portal.kernel.exception.SystemException { 190 return getPersistence().fetchByPrimaryKey(actionId); 191 } 192 193 /** 194 * Returns all the m d r actions where uuid = ?. 195 * 196 * @param uuid the uuid 197 * @return the matching m d r actions 198 * @throws SystemException if a system exception occurred 199 */ 200 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid( 201 java.lang.String uuid) 202 throws com.liferay.portal.kernel.exception.SystemException { 203 return getPersistence().findByUuid(uuid); 204 } 205 206 /** 207 * Returns a range of all the m d r actions where uuid = ?. 208 * 209 * <p> 210 * 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. 211 * </p> 212 * 213 * @param uuid the uuid 214 * @param start the lower bound of the range of m d r actions 215 * @param end the upper bound of the range of m d r actions (not inclusive) 216 * @return the range of matching m d r actions 217 * @throws SystemException if a system exception occurred 218 */ 219 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid( 220 java.lang.String uuid, int start, int end) 221 throws com.liferay.portal.kernel.exception.SystemException { 222 return getPersistence().findByUuid(uuid, start, end); 223 } 224 225 /** 226 * Returns an ordered range of all the m d r actions where uuid = ?. 227 * 228 * <p> 229 * 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. 230 * </p> 231 * 232 * @param uuid the uuid 233 * @param start the lower bound of the range of m d r actions 234 * @param end the upper bound of the range of m d r actions (not inclusive) 235 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 236 * @return the ordered range of matching m d r actions 237 * @throws SystemException if a system exception occurred 238 */ 239 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid( 240 java.lang.String uuid, int start, int end, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException { 243 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 244 } 245 246 /** 247 * Returns the first m d r action in the ordered set where uuid = ?. 248 * 249 * @param uuid the uuid 250 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 251 * @return the first matching m d r action 252 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 253 * @throws SystemException if a system exception occurred 254 */ 255 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_First( 256 java.lang.String uuid, 257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 258 throws com.liferay.portal.kernel.exception.SystemException, 259 com.liferay.portlet.mobiledevicerules.NoSuchActionException { 260 return getPersistence().findByUuid_First(uuid, orderByComparator); 261 } 262 263 /** 264 * Returns the first m d r action in the ordered set where uuid = ?. 265 * 266 * @param uuid the uuid 267 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 268 * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found 269 * @throws SystemException if a system exception occurred 270 */ 271 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_First( 272 java.lang.String uuid, 273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 274 throws com.liferay.portal.kernel.exception.SystemException { 275 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 276 } 277 278 /** 279 * Returns the last m d r action in the ordered set where uuid = ?. 280 * 281 * @param uuid the uuid 282 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 283 * @return the last matching m d r action 284 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 285 * @throws SystemException if a system exception occurred 286 */ 287 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_Last( 288 java.lang.String uuid, 289 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 290 throws com.liferay.portal.kernel.exception.SystemException, 291 com.liferay.portlet.mobiledevicerules.NoSuchActionException { 292 return getPersistence().findByUuid_Last(uuid, orderByComparator); 293 } 294 295 /** 296 * Returns the last m d r action in the ordered set where uuid = ?. 297 * 298 * @param uuid the uuid 299 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 300 * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found 301 * @throws SystemException if a system exception occurred 302 */ 303 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_Last( 304 java.lang.String uuid, 305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 306 throws com.liferay.portal.kernel.exception.SystemException { 307 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 308 } 309 310 /** 311 * Returns the m d r actions before and after the current m d r action in the ordered set where uuid = ?. 312 * 313 * @param actionId the primary key of the current m d r action 314 * @param uuid the uuid 315 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 316 * @return the previous, current, and next m d r action 317 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found 318 * @throws SystemException if a system exception occurred 319 */ 320 public static com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByUuid_PrevAndNext( 321 long actionId, java.lang.String uuid, 322 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 323 throws com.liferay.portal.kernel.exception.SystemException, 324 com.liferay.portlet.mobiledevicerules.NoSuchActionException { 325 return getPersistence() 326 .findByUuid_PrevAndNext(actionId, uuid, orderByComparator); 327 } 328 329 /** 330 * Returns the m d r action where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.mobiledevicerules.NoSuchActionException} if it could not be found. 331 * 332 * @param uuid the uuid 333 * @param groupId the group ID 334 * @return the matching m d r action 335 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUUID_G( 339 java.lang.String uuid, long groupId) 340 throws com.liferay.portal.kernel.exception.SystemException, 341 com.liferay.portlet.mobiledevicerules.NoSuchActionException { 342 return getPersistence().findByUUID_G(uuid, groupId); 343 } 344 345 /** 346 * Returns the m d r action where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 347 * 348 * @param uuid the uuid 349 * @param groupId the group ID 350 * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found 351 * @throws SystemException if a system exception occurred 352 */ 353 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUUID_G( 354 java.lang.String uuid, long groupId) 355 throws com.liferay.portal.kernel.exception.SystemException { 356 return getPersistence().fetchByUUID_G(uuid, groupId); 357 } 358 359 /** 360 * Returns the m d r action where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 361 * 362 * @param uuid the uuid 363 * @param groupId the group ID 364 * @param retrieveFromCache whether to use the finder cache 365 * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found 366 * @throws SystemException if a system exception occurred 367 */ 368 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUUID_G( 369 java.lang.String uuid, long groupId, boolean retrieveFromCache) 370 throws com.liferay.portal.kernel.exception.SystemException { 371 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 372 } 373 374 /** 375 * Returns all the m d r actions where uuid = ? and companyId = ?. 376 * 377 * @param uuid the uuid 378 * @param companyId the company ID 379 * @return the matching m d r actions 380 * @throws SystemException if a system exception occurred 381 */ 382 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid_C( 383 java.lang.String uuid, long companyId) 384 throws com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence().findByUuid_C(uuid, companyId); 386 } 387 388 /** 389 * Returns a range of all the m d r actions where uuid = ? and companyId = ?. 390 * 391 * <p> 392 * 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. 393 * </p> 394 * 395 * @param uuid the uuid 396 * @param companyId the company ID 397 * @param start the lower bound of the range of m d r actions 398 * @param end the upper bound of the range of m d r actions (not inclusive) 399 * @return the range of matching m d r actions 400 * @throws SystemException if a system exception occurred 401 */ 402 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid_C( 403 java.lang.String uuid, long companyId, int start, int end) 404 throws com.liferay.portal.kernel.exception.SystemException { 405 return getPersistence().findByUuid_C(uuid, companyId, start, end); 406 } 407 408 /** 409 * Returns an ordered range of all the m d r actions where uuid = ? and companyId = ?. 410 * 411 * <p> 412 * 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. 413 * </p> 414 * 415 * @param uuid the uuid 416 * @param companyId the company ID 417 * @param start the lower bound of the range of m d r actions 418 * @param end the upper bound of the range of m d r actions (not inclusive) 419 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 420 * @return the ordered range of matching m d r actions 421 * @throws SystemException if a system exception occurred 422 */ 423 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid_C( 424 java.lang.String uuid, long companyId, int start, int end, 425 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 426 throws com.liferay.portal.kernel.exception.SystemException { 427 return getPersistence() 428 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 429 } 430 431 /** 432 * Returns the first m d r action in the ordered set where uuid = ? and companyId = ?. 433 * 434 * @param uuid the uuid 435 * @param companyId the company ID 436 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 437 * @return the first matching m d r action 438 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 439 * @throws SystemException if a system exception occurred 440 */ 441 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_C_First( 442 java.lang.String uuid, long companyId, 443 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 444 throws com.liferay.portal.kernel.exception.SystemException, 445 com.liferay.portlet.mobiledevicerules.NoSuchActionException { 446 return getPersistence() 447 .findByUuid_C_First(uuid, companyId, orderByComparator); 448 } 449 450 /** 451 * Returns the first m d r action in the ordered set where uuid = ? and companyId = ?. 452 * 453 * @param uuid the uuid 454 * @param companyId the company ID 455 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 456 * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found 457 * @throws SystemException if a system exception occurred 458 */ 459 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_C_First( 460 java.lang.String uuid, long companyId, 461 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 462 throws com.liferay.portal.kernel.exception.SystemException { 463 return getPersistence() 464 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 465 } 466 467 /** 468 * Returns the last m d r action in the ordered set where uuid = ? and companyId = ?. 469 * 470 * @param uuid the uuid 471 * @param companyId the company ID 472 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 473 * @return the last matching m d r action 474 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 475 * @throws SystemException if a system exception occurred 476 */ 477 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_C_Last( 478 java.lang.String uuid, long companyId, 479 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 480 throws com.liferay.portal.kernel.exception.SystemException, 481 com.liferay.portlet.mobiledevicerules.NoSuchActionException { 482 return getPersistence() 483 .findByUuid_C_Last(uuid, companyId, orderByComparator); 484 } 485 486 /** 487 * Returns the last m d r action in the ordered set where uuid = ? and companyId = ?. 488 * 489 * @param uuid the uuid 490 * @param companyId the company ID 491 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 492 * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found 493 * @throws SystemException if a system exception occurred 494 */ 495 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_C_Last( 496 java.lang.String uuid, long companyId, 497 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 498 throws com.liferay.portal.kernel.exception.SystemException { 499 return getPersistence() 500 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 501 } 502 503 /** 504 * Returns the m d r actions before and after the current m d r action in the ordered set where uuid = ? and companyId = ?. 505 * 506 * @param actionId the primary key of the current m d r action 507 * @param uuid the uuid 508 * @param companyId the company ID 509 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 510 * @return the previous, current, and next m d r action 511 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found 512 * @throws SystemException if a system exception occurred 513 */ 514 public static com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByUuid_C_PrevAndNext( 515 long actionId, java.lang.String uuid, long companyId, 516 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 517 throws com.liferay.portal.kernel.exception.SystemException, 518 com.liferay.portlet.mobiledevicerules.NoSuchActionException { 519 return getPersistence() 520 .findByUuid_C_PrevAndNext(actionId, uuid, companyId, 521 orderByComparator); 522 } 523 524 /** 525 * Returns all the m d r actions where ruleGroupInstanceId = ?. 526 * 527 * @param ruleGroupInstanceId the rule group instance ID 528 * @return the matching m d r actions 529 * @throws SystemException if a system exception occurred 530 */ 531 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId( 532 long ruleGroupInstanceId) 533 throws com.liferay.portal.kernel.exception.SystemException { 534 return getPersistence().findByRuleGroupInstanceId(ruleGroupInstanceId); 535 } 536 537 /** 538 * Returns a range of all the m d r actions where ruleGroupInstanceId = ?. 539 * 540 * <p> 541 * 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. 542 * </p> 543 * 544 * @param ruleGroupInstanceId the rule group instance ID 545 * @param start the lower bound of the range of m d r actions 546 * @param end the upper bound of the range of m d r actions (not inclusive) 547 * @return the range of matching m d r actions 548 * @throws SystemException if a system exception occurred 549 */ 550 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId( 551 long ruleGroupInstanceId, int start, int end) 552 throws com.liferay.portal.kernel.exception.SystemException { 553 return getPersistence() 554 .findByRuleGroupInstanceId(ruleGroupInstanceId, start, end); 555 } 556 557 /** 558 * Returns an ordered range of all the m d r actions where ruleGroupInstanceId = ?. 559 * 560 * <p> 561 * 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. 562 * </p> 563 * 564 * @param ruleGroupInstanceId the rule group instance ID 565 * @param start the lower bound of the range of m d r actions 566 * @param end the upper bound of the range of m d r actions (not inclusive) 567 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 568 * @return the ordered range of matching m d r actions 569 * @throws SystemException if a system exception occurred 570 */ 571 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId( 572 long ruleGroupInstanceId, int start, int end, 573 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 574 throws com.liferay.portal.kernel.exception.SystemException { 575 return getPersistence() 576 .findByRuleGroupInstanceId(ruleGroupInstanceId, start, end, 577 orderByComparator); 578 } 579 580 /** 581 * Returns the first m d r action in the ordered set where ruleGroupInstanceId = ?. 582 * 583 * @param ruleGroupInstanceId the rule group instance ID 584 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 585 * @return the first matching m d r action 586 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 587 * @throws SystemException if a system exception occurred 588 */ 589 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByRuleGroupInstanceId_First( 590 long ruleGroupInstanceId, 591 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 592 throws com.liferay.portal.kernel.exception.SystemException, 593 com.liferay.portlet.mobiledevicerules.NoSuchActionException { 594 return getPersistence() 595 .findByRuleGroupInstanceId_First(ruleGroupInstanceId, 596 orderByComparator); 597 } 598 599 /** 600 * Returns the first m d r action in the ordered set where ruleGroupInstanceId = ?. 601 * 602 * @param ruleGroupInstanceId the rule group instance ID 603 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 604 * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found 605 * @throws SystemException if a system exception occurred 606 */ 607 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByRuleGroupInstanceId_First( 608 long ruleGroupInstanceId, 609 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 610 throws com.liferay.portal.kernel.exception.SystemException { 611 return getPersistence() 612 .fetchByRuleGroupInstanceId_First(ruleGroupInstanceId, 613 orderByComparator); 614 } 615 616 /** 617 * Returns the last m d r action in the ordered set where ruleGroupInstanceId = ?. 618 * 619 * @param ruleGroupInstanceId the rule group instance ID 620 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 621 * @return the last matching m d r action 622 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 623 * @throws SystemException if a system exception occurred 624 */ 625 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByRuleGroupInstanceId_Last( 626 long ruleGroupInstanceId, 627 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 628 throws com.liferay.portal.kernel.exception.SystemException, 629 com.liferay.portlet.mobiledevicerules.NoSuchActionException { 630 return getPersistence() 631 .findByRuleGroupInstanceId_Last(ruleGroupInstanceId, 632 orderByComparator); 633 } 634 635 /** 636 * Returns the last m d r action in the ordered set where ruleGroupInstanceId = ?. 637 * 638 * @param ruleGroupInstanceId the rule group instance ID 639 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 640 * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found 641 * @throws SystemException if a system exception occurred 642 */ 643 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByRuleGroupInstanceId_Last( 644 long ruleGroupInstanceId, 645 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 646 throws com.liferay.portal.kernel.exception.SystemException { 647 return getPersistence() 648 .fetchByRuleGroupInstanceId_Last(ruleGroupInstanceId, 649 orderByComparator); 650 } 651 652 /** 653 * Returns the m d r actions before and after the current m d r action in the ordered set where ruleGroupInstanceId = ?. 654 * 655 * @param actionId the primary key of the current m d r action 656 * @param ruleGroupInstanceId the rule group instance ID 657 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 658 * @return the previous, current, and next m d r action 659 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found 660 * @throws SystemException if a system exception occurred 661 */ 662 public static com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByRuleGroupInstanceId_PrevAndNext( 663 long actionId, long ruleGroupInstanceId, 664 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 665 throws com.liferay.portal.kernel.exception.SystemException, 666 com.liferay.portlet.mobiledevicerules.NoSuchActionException { 667 return getPersistence() 668 .findByRuleGroupInstanceId_PrevAndNext(actionId, 669 ruleGroupInstanceId, orderByComparator); 670 } 671 672 /** 673 * Returns all the m d r actions. 674 * 675 * @return the m d r actions 676 * @throws SystemException if a system exception occurred 677 */ 678 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll() 679 throws com.liferay.portal.kernel.exception.SystemException { 680 return getPersistence().findAll(); 681 } 682 683 /** 684 * Returns a range of all the m d r actions. 685 * 686 * <p> 687 * 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. 688 * </p> 689 * 690 * @param start the lower bound of the range of m d r actions 691 * @param end the upper bound of the range of m d r actions (not inclusive) 692 * @return the range of m d r actions 693 * @throws SystemException if a system exception occurred 694 */ 695 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll( 696 int start, int end) 697 throws com.liferay.portal.kernel.exception.SystemException { 698 return getPersistence().findAll(start, end); 699 } 700 701 /** 702 * Returns an ordered range of all the m d r actions. 703 * 704 * <p> 705 * 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. 706 * </p> 707 * 708 * @param start the lower bound of the range of m d r actions 709 * @param end the upper bound of the range of m d r actions (not inclusive) 710 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 711 * @return the ordered range of m d r actions 712 * @throws SystemException if a system exception occurred 713 */ 714 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll( 715 int start, int end, 716 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 717 throws com.liferay.portal.kernel.exception.SystemException { 718 return getPersistence().findAll(start, end, orderByComparator); 719 } 720 721 /** 722 * Removes all the m d r actions where uuid = ? from the database. 723 * 724 * @param uuid the uuid 725 * @throws SystemException if a system exception occurred 726 */ 727 public static void removeByUuid(java.lang.String uuid) 728 throws com.liferay.portal.kernel.exception.SystemException { 729 getPersistence().removeByUuid(uuid); 730 } 731 732 /** 733 * Removes the m d r action where uuid = ? and groupId = ? from the database. 734 * 735 * @param uuid the uuid 736 * @param groupId the group ID 737 * @return the m d r action that was removed 738 * @throws SystemException if a system exception occurred 739 */ 740 public static com.liferay.portlet.mobiledevicerules.model.MDRAction removeByUUID_G( 741 java.lang.String uuid, long groupId) 742 throws com.liferay.portal.kernel.exception.SystemException, 743 com.liferay.portlet.mobiledevicerules.NoSuchActionException { 744 return getPersistence().removeByUUID_G(uuid, groupId); 745 } 746 747 /** 748 * Removes all the m d r actions where uuid = ? and companyId = ? from the database. 749 * 750 * @param uuid the uuid 751 * @param companyId the company ID 752 * @throws SystemException if a system exception occurred 753 */ 754 public static void removeByUuid_C(java.lang.String uuid, long companyId) 755 throws com.liferay.portal.kernel.exception.SystemException { 756 getPersistence().removeByUuid_C(uuid, companyId); 757 } 758 759 /** 760 * Removes all the m d r actions where ruleGroupInstanceId = ? from the database. 761 * 762 * @param ruleGroupInstanceId the rule group instance ID 763 * @throws SystemException if a system exception occurred 764 */ 765 public static void removeByRuleGroupInstanceId(long ruleGroupInstanceId) 766 throws com.liferay.portal.kernel.exception.SystemException { 767 getPersistence().removeByRuleGroupInstanceId(ruleGroupInstanceId); 768 } 769 770 /** 771 * Removes all the m d r actions from the database. 772 * 773 * @throws SystemException if a system exception occurred 774 */ 775 public static void removeAll() 776 throws com.liferay.portal.kernel.exception.SystemException { 777 getPersistence().removeAll(); 778 } 779 780 /** 781 * Returns the number of m d r actions where uuid = ?. 782 * 783 * @param uuid the uuid 784 * @return the number of matching m d r actions 785 * @throws SystemException if a system exception occurred 786 */ 787 public static int countByUuid(java.lang.String uuid) 788 throws com.liferay.portal.kernel.exception.SystemException { 789 return getPersistence().countByUuid(uuid); 790 } 791 792 /** 793 * Returns the number of m d r actions where uuid = ? and groupId = ?. 794 * 795 * @param uuid the uuid 796 * @param groupId the group ID 797 * @return the number of matching m d r actions 798 * @throws SystemException if a system exception occurred 799 */ 800 public static int countByUUID_G(java.lang.String uuid, long groupId) 801 throws com.liferay.portal.kernel.exception.SystemException { 802 return getPersistence().countByUUID_G(uuid, groupId); 803 } 804 805 /** 806 * Returns the number of m d r actions where uuid = ? and companyId = ?. 807 * 808 * @param uuid the uuid 809 * @param companyId the company ID 810 * @return the number of matching m d r actions 811 * @throws SystemException if a system exception occurred 812 */ 813 public static int countByUuid_C(java.lang.String uuid, long companyId) 814 throws com.liferay.portal.kernel.exception.SystemException { 815 return getPersistence().countByUuid_C(uuid, companyId); 816 } 817 818 /** 819 * Returns the number of m d r actions where ruleGroupInstanceId = ?. 820 * 821 * @param ruleGroupInstanceId the rule group instance ID 822 * @return the number of matching m d r actions 823 * @throws SystemException if a system exception occurred 824 */ 825 public static int countByRuleGroupInstanceId(long ruleGroupInstanceId) 826 throws com.liferay.portal.kernel.exception.SystemException { 827 return getPersistence().countByRuleGroupInstanceId(ruleGroupInstanceId); 828 } 829 830 /** 831 * Returns the number of m d r actions. 832 * 833 * @return the number of m d r actions 834 * @throws SystemException if a system exception occurred 835 */ 836 public static int countAll() 837 throws com.liferay.portal.kernel.exception.SystemException { 838 return getPersistence().countAll(); 839 } 840 841 public static MDRActionPersistence getPersistence() { 842 if (_persistence == null) { 843 _persistence = (MDRActionPersistence)PortalBeanLocatorUtil.locate(MDRActionPersistence.class.getName()); 844 845 ReferenceRegistry.registerReference(MDRActionUtil.class, 846 "_persistence"); 847 } 848 849 return _persistence; 850 } 851 852 /** 853 * @deprecated 854 */ 855 public void setPersistence(MDRActionPersistence persistence) { 856 } 857 858 private static MDRActionPersistence _persistence; 859 }