001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.mobiledevicerules.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 021 import com.liferay.portal.kernel.util.OrderByComparator; 022 import com.liferay.portal.kernel.util.ReferenceRegistry; 023 import com.liferay.portal.service.ServiceContext; 024 025 import com.liferay.portlet.mobiledevicerules.model.MDRAction; 026 027 import java.util.List; 028 029 /** 030 * 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. 031 * 032 * <p> 033 * Caching information and settings can be found in <code>portal.properties</code> 034 * </p> 035 * 036 * @author Edward C. Han 037 * @see MDRActionPersistence 038 * @see MDRActionPersistenceImpl 039 * @generated 040 */ 041 @ProviderType 042 public class MDRActionUtil { 043 /* 044 * NOTE FOR DEVELOPERS: 045 * 046 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 047 */ 048 049 /** 050 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 051 */ 052 public static void clearCache() { 053 getPersistence().clearCache(); 054 } 055 056 /** 057 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 058 */ 059 public static void clearCache(MDRAction mdrAction) { 060 getPersistence().clearCache(mdrAction); 061 } 062 063 /** 064 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 065 */ 066 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { 067 return getPersistence().countWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 072 */ 073 public static List<MDRAction> findWithDynamicQuery( 074 DynamicQuery dynamicQuery) { 075 return getPersistence().findWithDynamicQuery(dynamicQuery); 076 } 077 078 /** 079 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 080 */ 081 public static List<MDRAction> findWithDynamicQuery( 082 DynamicQuery dynamicQuery, int start, int end) { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<MDRAction> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator<MDRAction> orderByComparator) { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 099 */ 100 public static MDRAction update(MDRAction mdrAction) { 101 return getPersistence().update(mdrAction); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 106 */ 107 public static MDRAction update(MDRAction mdrAction, 108 ServiceContext serviceContext) { 109 return getPersistence().update(mdrAction, serviceContext); 110 } 111 112 /** 113 * Returns all the m d r actions where uuid = ?. 114 * 115 * @param uuid the uuid 116 * @return the matching m d r actions 117 */ 118 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid( 119 java.lang.String uuid) { 120 return getPersistence().findByUuid(uuid); 121 } 122 123 /** 124 * Returns a range of all the m d r actions where uuid = ?. 125 * 126 * <p> 127 * 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. 128 * </p> 129 * 130 * @param uuid the uuid 131 * @param start the lower bound of the range of m d r actions 132 * @param end the upper bound of the range of m d r actions (not inclusive) 133 * @return the range of matching m d r actions 134 */ 135 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid( 136 java.lang.String uuid, int start, int end) { 137 return getPersistence().findByUuid(uuid, start, end); 138 } 139 140 /** 141 * Returns an ordered range of all the m d r actions where uuid = ?. 142 * 143 * <p> 144 * 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. 145 * </p> 146 * 147 * @param uuid the uuid 148 * @param start the lower bound of the range of m d r actions 149 * @param end the upper bound of the range of m d r actions (not inclusive) 150 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 151 * @return the ordered range of matching m d r actions 152 */ 153 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid( 154 java.lang.String uuid, int start, int end, 155 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) { 156 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 157 } 158 159 /** 160 * Returns the first m d r action in the ordered set where uuid = ?. 161 * 162 * @param uuid the uuid 163 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 164 * @return the first matching m d r action 165 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 166 */ 167 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_First( 168 java.lang.String uuid, 169 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) 170 throws com.liferay.portlet.mobiledevicerules.NoSuchActionException { 171 return getPersistence().findByUuid_First(uuid, orderByComparator); 172 } 173 174 /** 175 * Returns the first m d r action in the ordered set where uuid = ?. 176 * 177 * @param uuid the uuid 178 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 179 * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found 180 */ 181 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_First( 182 java.lang.String uuid, 183 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) { 184 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 185 } 186 187 /** 188 * Returns the last m d r action in the ordered set where uuid = ?. 189 * 190 * @param uuid the uuid 191 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 192 * @return the last matching m d r action 193 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 194 */ 195 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_Last( 196 java.lang.String uuid, 197 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) 198 throws com.liferay.portlet.mobiledevicerules.NoSuchActionException { 199 return getPersistence().findByUuid_Last(uuid, orderByComparator); 200 } 201 202 /** 203 * Returns the last m d r action in the ordered set where uuid = ?. 204 * 205 * @param uuid the uuid 206 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 207 * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found 208 */ 209 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_Last( 210 java.lang.String uuid, 211 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) { 212 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 213 } 214 215 /** 216 * Returns the m d r actions before and after the current m d r action in the ordered set where uuid = ?. 217 * 218 * @param actionId the primary key of the current m d r action 219 * @param uuid the uuid 220 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 221 * @return the previous, current, and next m d r action 222 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found 223 */ 224 public static com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByUuid_PrevAndNext( 225 long actionId, java.lang.String uuid, 226 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) 227 throws com.liferay.portlet.mobiledevicerules.NoSuchActionException { 228 return getPersistence() 229 .findByUuid_PrevAndNext(actionId, uuid, orderByComparator); 230 } 231 232 /** 233 * Removes all the m d r actions where uuid = ? from the database. 234 * 235 * @param uuid the uuid 236 */ 237 public static void removeByUuid(java.lang.String uuid) { 238 getPersistence().removeByUuid(uuid); 239 } 240 241 /** 242 * Returns the number of m d r actions where uuid = ?. 243 * 244 * @param uuid the uuid 245 * @return the number of matching m d r actions 246 */ 247 public static int countByUuid(java.lang.String uuid) { 248 return getPersistence().countByUuid(uuid); 249 } 250 251 /** 252 * 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. 253 * 254 * @param uuid the uuid 255 * @param groupId the group ID 256 * @return the matching m d r action 257 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 258 */ 259 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUUID_G( 260 java.lang.String uuid, long groupId) 261 throws com.liferay.portlet.mobiledevicerules.NoSuchActionException { 262 return getPersistence().findByUUID_G(uuid, groupId); 263 } 264 265 /** 266 * 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. 267 * 268 * @param uuid the uuid 269 * @param groupId the group ID 270 * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found 271 */ 272 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUUID_G( 273 java.lang.String uuid, long groupId) { 274 return getPersistence().fetchByUUID_G(uuid, groupId); 275 } 276 277 /** 278 * 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. 279 * 280 * @param uuid the uuid 281 * @param groupId the group ID 282 * @param retrieveFromCache whether to use the finder cache 283 * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found 284 */ 285 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUUID_G( 286 java.lang.String uuid, long groupId, boolean retrieveFromCache) { 287 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 288 } 289 290 /** 291 * Removes the m d r action where uuid = ? and groupId = ? from the database. 292 * 293 * @param uuid the uuid 294 * @param groupId the group ID 295 * @return the m d r action that was removed 296 */ 297 public static com.liferay.portlet.mobiledevicerules.model.MDRAction removeByUUID_G( 298 java.lang.String uuid, long groupId) 299 throws com.liferay.portlet.mobiledevicerules.NoSuchActionException { 300 return getPersistence().removeByUUID_G(uuid, groupId); 301 } 302 303 /** 304 * Returns the number of m d r actions where uuid = ? and groupId = ?. 305 * 306 * @param uuid the uuid 307 * @param groupId the group ID 308 * @return the number of matching m d r actions 309 */ 310 public static int countByUUID_G(java.lang.String uuid, long groupId) { 311 return getPersistence().countByUUID_G(uuid, groupId); 312 } 313 314 /** 315 * Returns all the m d r actions where uuid = ? and companyId = ?. 316 * 317 * @param uuid the uuid 318 * @param companyId the company ID 319 * @return the matching m d r actions 320 */ 321 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid_C( 322 java.lang.String uuid, long companyId) { 323 return getPersistence().findByUuid_C(uuid, companyId); 324 } 325 326 /** 327 * Returns a range of all the m d r actions where uuid = ? and companyId = ?. 328 * 329 * <p> 330 * 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. 331 * </p> 332 * 333 * @param uuid the uuid 334 * @param companyId the company ID 335 * @param start the lower bound of the range of m d r actions 336 * @param end the upper bound of the range of m d r actions (not inclusive) 337 * @return the range of matching m d r actions 338 */ 339 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid_C( 340 java.lang.String uuid, long companyId, int start, int end) { 341 return getPersistence().findByUuid_C(uuid, companyId, start, end); 342 } 343 344 /** 345 * Returns an ordered range of all the m d r actions where uuid = ? and companyId = ?. 346 * 347 * <p> 348 * 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. 349 * </p> 350 * 351 * @param uuid the uuid 352 * @param companyId the company ID 353 * @param start the lower bound of the range of m d r actions 354 * @param end the upper bound of the range of m d r actions (not inclusive) 355 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 356 * @return the ordered range of matching m d r actions 357 */ 358 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid_C( 359 java.lang.String uuid, long companyId, int start, int end, 360 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) { 361 return getPersistence() 362 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 363 } 364 365 /** 366 * Returns the first m d r action in the ordered set where uuid = ? and companyId = ?. 367 * 368 * @param uuid the uuid 369 * @param companyId the company ID 370 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 371 * @return the first matching m d r action 372 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 373 */ 374 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_C_First( 375 java.lang.String uuid, long companyId, 376 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) 377 throws com.liferay.portlet.mobiledevicerules.NoSuchActionException { 378 return getPersistence() 379 .findByUuid_C_First(uuid, companyId, orderByComparator); 380 } 381 382 /** 383 * Returns the first m d r action in the ordered set where uuid = ? and companyId = ?. 384 * 385 * @param uuid the uuid 386 * @param companyId the company ID 387 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 388 * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found 389 */ 390 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_C_First( 391 java.lang.String uuid, long companyId, 392 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) { 393 return getPersistence() 394 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 395 } 396 397 /** 398 * Returns the last m d r action in the ordered set where uuid = ? and companyId = ?. 399 * 400 * @param uuid the uuid 401 * @param companyId the company ID 402 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 403 * @return the last matching m d r action 404 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 405 */ 406 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_C_Last( 407 java.lang.String uuid, long companyId, 408 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) 409 throws com.liferay.portlet.mobiledevicerules.NoSuchActionException { 410 return getPersistence() 411 .findByUuid_C_Last(uuid, companyId, orderByComparator); 412 } 413 414 /** 415 * Returns the last m d r action in the ordered set where uuid = ? and companyId = ?. 416 * 417 * @param uuid the uuid 418 * @param companyId the company ID 419 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 420 * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found 421 */ 422 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_C_Last( 423 java.lang.String uuid, long companyId, 424 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) { 425 return getPersistence() 426 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 427 } 428 429 /** 430 * Returns the m d r actions before and after the current m d r action in the ordered set where uuid = ? and companyId = ?. 431 * 432 * @param actionId the primary key of the current m d r action 433 * @param uuid the uuid 434 * @param companyId the company ID 435 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 436 * @return the previous, current, and next m d r action 437 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found 438 */ 439 public static com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByUuid_C_PrevAndNext( 440 long actionId, java.lang.String uuid, long companyId, 441 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) 442 throws com.liferay.portlet.mobiledevicerules.NoSuchActionException { 443 return getPersistence() 444 .findByUuid_C_PrevAndNext(actionId, uuid, companyId, 445 orderByComparator); 446 } 447 448 /** 449 * Removes all the m d r actions where uuid = ? and companyId = ? from the database. 450 * 451 * @param uuid the uuid 452 * @param companyId the company ID 453 */ 454 public static void removeByUuid_C(java.lang.String uuid, long companyId) { 455 getPersistence().removeByUuid_C(uuid, companyId); 456 } 457 458 /** 459 * Returns the number of m d r actions where uuid = ? and companyId = ?. 460 * 461 * @param uuid the uuid 462 * @param companyId the company ID 463 * @return the number of matching m d r actions 464 */ 465 public static int countByUuid_C(java.lang.String uuid, long companyId) { 466 return getPersistence().countByUuid_C(uuid, companyId); 467 } 468 469 /** 470 * Returns all the m d r actions where ruleGroupInstanceId = ?. 471 * 472 * @param ruleGroupInstanceId the rule group instance ID 473 * @return the matching m d r actions 474 */ 475 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId( 476 long ruleGroupInstanceId) { 477 return getPersistence().findByRuleGroupInstanceId(ruleGroupInstanceId); 478 } 479 480 /** 481 * Returns a range of all the m d r actions where ruleGroupInstanceId = ?. 482 * 483 * <p> 484 * 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. 485 * </p> 486 * 487 * @param ruleGroupInstanceId the rule group instance ID 488 * @param start the lower bound of the range of m d r actions 489 * @param end the upper bound of the range of m d r actions (not inclusive) 490 * @return the range of matching m d r actions 491 */ 492 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId( 493 long ruleGroupInstanceId, int start, int end) { 494 return getPersistence() 495 .findByRuleGroupInstanceId(ruleGroupInstanceId, start, end); 496 } 497 498 /** 499 * Returns an ordered range of all the m d r actions where ruleGroupInstanceId = ?. 500 * 501 * <p> 502 * 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. 503 * </p> 504 * 505 * @param ruleGroupInstanceId the rule group instance ID 506 * @param start the lower bound of the range of m d r actions 507 * @param end the upper bound of the range of m d r actions (not inclusive) 508 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 509 * @return the ordered range of matching m d r actions 510 */ 511 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId( 512 long ruleGroupInstanceId, int start, int end, 513 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) { 514 return getPersistence() 515 .findByRuleGroupInstanceId(ruleGroupInstanceId, start, end, 516 orderByComparator); 517 } 518 519 /** 520 * Returns the first m d r action in the ordered set where ruleGroupInstanceId = ?. 521 * 522 * @param ruleGroupInstanceId the rule group instance ID 523 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 524 * @return the first matching m d r action 525 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 526 */ 527 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByRuleGroupInstanceId_First( 528 long ruleGroupInstanceId, 529 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) 530 throws com.liferay.portlet.mobiledevicerules.NoSuchActionException { 531 return getPersistence() 532 .findByRuleGroupInstanceId_First(ruleGroupInstanceId, 533 orderByComparator); 534 } 535 536 /** 537 * Returns the first m d r action in the ordered set where ruleGroupInstanceId = ?. 538 * 539 * @param ruleGroupInstanceId the rule group instance ID 540 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 541 * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found 542 */ 543 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByRuleGroupInstanceId_First( 544 long ruleGroupInstanceId, 545 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) { 546 return getPersistence() 547 .fetchByRuleGroupInstanceId_First(ruleGroupInstanceId, 548 orderByComparator); 549 } 550 551 /** 552 * Returns the last m d r action in the ordered set where ruleGroupInstanceId = ?. 553 * 554 * @param ruleGroupInstanceId the rule group instance ID 555 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 556 * @return the last matching m d r action 557 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 558 */ 559 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByRuleGroupInstanceId_Last( 560 long ruleGroupInstanceId, 561 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) 562 throws com.liferay.portlet.mobiledevicerules.NoSuchActionException { 563 return getPersistence() 564 .findByRuleGroupInstanceId_Last(ruleGroupInstanceId, 565 orderByComparator); 566 } 567 568 /** 569 * Returns the last m d r action in the ordered set where ruleGroupInstanceId = ?. 570 * 571 * @param ruleGroupInstanceId the rule group instance ID 572 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 573 * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found 574 */ 575 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByRuleGroupInstanceId_Last( 576 long ruleGroupInstanceId, 577 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) { 578 return getPersistence() 579 .fetchByRuleGroupInstanceId_Last(ruleGroupInstanceId, 580 orderByComparator); 581 } 582 583 /** 584 * Returns the m d r actions before and after the current m d r action in the ordered set where ruleGroupInstanceId = ?. 585 * 586 * @param actionId the primary key of the current m d r action 587 * @param ruleGroupInstanceId the rule group instance ID 588 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 589 * @return the previous, current, and next m d r action 590 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found 591 */ 592 public static com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByRuleGroupInstanceId_PrevAndNext( 593 long actionId, long ruleGroupInstanceId, 594 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) 595 throws com.liferay.portlet.mobiledevicerules.NoSuchActionException { 596 return getPersistence() 597 .findByRuleGroupInstanceId_PrevAndNext(actionId, 598 ruleGroupInstanceId, orderByComparator); 599 } 600 601 /** 602 * Removes all the m d r actions where ruleGroupInstanceId = ? from the database. 603 * 604 * @param ruleGroupInstanceId the rule group instance ID 605 */ 606 public static void removeByRuleGroupInstanceId(long ruleGroupInstanceId) { 607 getPersistence().removeByRuleGroupInstanceId(ruleGroupInstanceId); 608 } 609 610 /** 611 * Returns the number of m d r actions where ruleGroupInstanceId = ?. 612 * 613 * @param ruleGroupInstanceId the rule group instance ID 614 * @return the number of matching m d r actions 615 */ 616 public static int countByRuleGroupInstanceId(long ruleGroupInstanceId) { 617 return getPersistence().countByRuleGroupInstanceId(ruleGroupInstanceId); 618 } 619 620 /** 621 * Caches the m d r action in the entity cache if it is enabled. 622 * 623 * @param mdrAction the m d r action 624 */ 625 public static void cacheResult( 626 com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction) { 627 getPersistence().cacheResult(mdrAction); 628 } 629 630 /** 631 * Caches the m d r actions in the entity cache if it is enabled. 632 * 633 * @param mdrActions the m d r actions 634 */ 635 public static void cacheResult( 636 java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> mdrActions) { 637 getPersistence().cacheResult(mdrActions); 638 } 639 640 /** 641 * Creates a new m d r action with the primary key. Does not add the m d r action to the database. 642 * 643 * @param actionId the primary key for the new m d r action 644 * @return the new m d r action 645 */ 646 public static com.liferay.portlet.mobiledevicerules.model.MDRAction create( 647 long actionId) { 648 return getPersistence().create(actionId); 649 } 650 651 /** 652 * Removes the m d r action with the primary key from the database. Also notifies the appropriate model listeners. 653 * 654 * @param actionId the primary key of the m d r action 655 * @return the m d r action that was removed 656 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found 657 */ 658 public static com.liferay.portlet.mobiledevicerules.model.MDRAction remove( 659 long actionId) 660 throws com.liferay.portlet.mobiledevicerules.NoSuchActionException { 661 return getPersistence().remove(actionId); 662 } 663 664 public static com.liferay.portlet.mobiledevicerules.model.MDRAction updateImpl( 665 com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction) { 666 return getPersistence().updateImpl(mdrAction); 667 } 668 669 /** 670 * 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. 671 * 672 * @param actionId the primary key of the m d r action 673 * @return the m d r action 674 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found 675 */ 676 public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByPrimaryKey( 677 long actionId) 678 throws com.liferay.portlet.mobiledevicerules.NoSuchActionException { 679 return getPersistence().findByPrimaryKey(actionId); 680 } 681 682 /** 683 * Returns the m d r action with the primary key or returns <code>null</code> if it could not be found. 684 * 685 * @param actionId the primary key of the m d r action 686 * @return the m d r action, or <code>null</code> if a m d r action with the primary key could not be found 687 */ 688 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByPrimaryKey( 689 long actionId) { 690 return getPersistence().fetchByPrimaryKey(actionId); 691 } 692 693 public static java.util.Map<java.io.Serializable, com.liferay.portlet.mobiledevicerules.model.MDRAction> fetchByPrimaryKeys( 694 java.util.Set<java.io.Serializable> primaryKeys) { 695 return getPersistence().fetchByPrimaryKeys(primaryKeys); 696 } 697 698 /** 699 * Returns all the m d r actions. 700 * 701 * @return the m d r actions 702 */ 703 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll() { 704 return getPersistence().findAll(); 705 } 706 707 /** 708 * Returns a range of all the m d r actions. 709 * 710 * <p> 711 * 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. 712 * </p> 713 * 714 * @param start the lower bound of the range of m d r actions 715 * @param end the upper bound of the range of m d r actions (not inclusive) 716 * @return the range of m d r actions 717 */ 718 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll( 719 int start, int end) { 720 return getPersistence().findAll(start, end); 721 } 722 723 /** 724 * Returns an ordered range of all the m d r actions. 725 * 726 * <p> 727 * 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. 728 * </p> 729 * 730 * @param start the lower bound of the range of m d r actions 731 * @param end the upper bound of the range of m d r actions (not inclusive) 732 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 733 * @return the ordered range of m d r actions 734 */ 735 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll( 736 int start, int end, 737 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator) { 738 return getPersistence().findAll(start, end, orderByComparator); 739 } 740 741 /** 742 * Removes all the m d r actions from the database. 743 */ 744 public static void removeAll() { 745 getPersistence().removeAll(); 746 } 747 748 /** 749 * Returns the number of m d r actions. 750 * 751 * @return the number of m d r actions 752 */ 753 public static int countAll() { 754 return getPersistence().countAll(); 755 } 756 757 public static MDRActionPersistence getPersistence() { 758 if (_persistence == null) { 759 _persistence = (MDRActionPersistence)PortalBeanLocatorUtil.locate(MDRActionPersistence.class.getName()); 760 761 ReferenceRegistry.registerReference(MDRActionUtil.class, 762 "_persistence"); 763 } 764 765 return _persistence; 766 } 767 768 /** 769 * @deprecated As of 6.2.0 770 */ 771 @Deprecated 772 public void setPersistence(MDRActionPersistence persistence) { 773 } 774 775 private static MDRActionPersistence _persistence; 776 }