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