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