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