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