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.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance; 020 021 /** 022 * The persistence interface for the m d r rule group instance service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Edward C. Han 029 * @see MDRRuleGroupInstancePersistenceImpl 030 * @see MDRRuleGroupInstanceUtil 031 * @generated 032 */ 033 public interface MDRRuleGroupInstancePersistence extends BasePersistence<MDRRuleGroupInstance> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link MDRRuleGroupInstanceUtil} to access the m d r rule group instance persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the m d r rule group instance in the entity cache if it is enabled. 042 * 043 * @param mdrRuleGroupInstance the m d r rule group instance 044 */ 045 public void cacheResult( 046 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance); 047 048 /** 049 * Caches the m d r rule group instances in the entity cache if it is enabled. 050 * 051 * @param mdrRuleGroupInstances the m d r rule group instances 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> mdrRuleGroupInstances); 055 056 /** 057 * Creates a new m d r rule group instance with the primary key. Does not add the m d r rule group instance to the database. 058 * 059 * @param ruleGroupInstanceId the primary key for the new m d r rule group instance 060 * @return the new m d r rule group instance 061 */ 062 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance create( 063 long ruleGroupInstanceId); 064 065 /** 066 * Removes the m d r rule group instance with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param ruleGroupInstanceId the primary key of the m d r rule group instance 069 * @return the m d r rule group instance that was removed 070 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance remove( 074 long ruleGroupInstanceId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 077 078 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateImpl( 079 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance, 080 boolean merge) 081 throws com.liferay.portal.kernel.exception.SystemException; 082 083 /** 084 * Returns the m d r rule group instance with the primary key or throws a {@link com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException} if it could not be found. 085 * 086 * @param ruleGroupInstanceId the primary key of the m d r rule group instance 087 * @return the m d r rule group instance 088 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 089 * @throws SystemException if a system exception occurred 090 */ 091 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByPrimaryKey( 092 long ruleGroupInstanceId) 093 throws com.liferay.portal.kernel.exception.SystemException, 094 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 095 096 /** 097 * Returns the m d r rule group instance with the primary key or returns <code>null</code> if it could not be found. 098 * 099 * @param ruleGroupInstanceId the primary key of the m d r rule group instance 100 * @return the m d r rule group instance, or <code>null</code> if a m d r rule group instance with the primary key could not be found 101 * @throws SystemException if a system exception occurred 102 */ 103 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByPrimaryKey( 104 long ruleGroupInstanceId) 105 throws com.liferay.portal.kernel.exception.SystemException; 106 107 /** 108 * Returns all the m d r rule group instances where uuid = ?. 109 * 110 * @param uuid the uuid 111 * @return the matching m d r rule group instances 112 * @throws SystemException if a system exception occurred 113 */ 114 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid( 115 java.lang.String uuid) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns a range of all the m d r rule group instances where uuid = ?. 120 * 121 * <p> 122 * 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. 123 * </p> 124 * 125 * @param uuid the uuid 126 * @param start the lower bound of the range of m d r rule group instances 127 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 128 * @return the range of matching m d r rule group instances 129 * @throws SystemException if a system exception occurred 130 */ 131 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid( 132 java.lang.String uuid, int start, int end) 133 throws com.liferay.portal.kernel.exception.SystemException; 134 135 /** 136 * Returns an ordered range of all the m d r rule group instances where uuid = ?. 137 * 138 * <p> 139 * 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. 140 * </p> 141 * 142 * @param uuid the uuid 143 * @param start the lower bound of the range of m d r rule group instances 144 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 145 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 146 * @return the ordered range of matching m d r rule group instances 147 * @throws SystemException if a system exception occurred 148 */ 149 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid( 150 java.lang.String uuid, int start, int end, 151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 152 throws com.liferay.portal.kernel.exception.SystemException; 153 154 /** 155 * Returns the first m d r rule group instance in the ordered set where uuid = ?. 156 * 157 * @param uuid the uuid 158 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 159 * @return the first matching m d r rule group instance 160 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 161 * @throws SystemException if a system exception occurred 162 */ 163 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUuid_First( 164 java.lang.String uuid, 165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 166 throws com.liferay.portal.kernel.exception.SystemException, 167 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 168 169 /** 170 * Returns the first m d r rule group instance in the ordered set where uuid = ?. 171 * 172 * @param uuid the uuid 173 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 174 * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 175 * @throws SystemException if a system exception occurred 176 */ 177 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUuid_First( 178 java.lang.String uuid, 179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 180 throws com.liferay.portal.kernel.exception.SystemException; 181 182 /** 183 * Returns the last m d r rule group instance 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 last matching m d r rule group instance 188 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 189 * @throws SystemException if a system exception occurred 190 */ 191 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUuid_Last( 192 java.lang.String uuid, 193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 194 throws com.liferay.portal.kernel.exception.SystemException, 195 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 196 197 /** 198 * Returns the last m d r rule group instance 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 group instance, or <code>null</code> if a matching m d r rule group instance could not be found 203 * @throws SystemException if a system exception occurred 204 */ 205 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUuid_Last( 206 java.lang.String uuid, 207 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 208 throws com.liferay.portal.kernel.exception.SystemException; 209 210 /** 211 * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where uuid = ?. 212 * 213 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 214 * @param uuid the uuid 215 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 216 * @return the previous, current, and next m d r rule group instance 217 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 218 * @throws SystemException if a system exception occurred 219 */ 220 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByUuid_PrevAndNext( 221 long ruleGroupInstanceId, java.lang.String uuid, 222 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 223 throws com.liferay.portal.kernel.exception.SystemException, 224 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 225 226 /** 227 * Returns the m d r rule group instance where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException} if it could not be found. 228 * 229 * @param uuid the uuid 230 * @param groupId the group ID 231 * @return the matching m d r rule group instance 232 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 233 * @throws SystemException if a system exception occurred 234 */ 235 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUUID_G( 236 java.lang.String uuid, long groupId) 237 throws com.liferay.portal.kernel.exception.SystemException, 238 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 239 240 /** 241 * Returns the m d r rule group instance where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 242 * 243 * @param uuid the uuid 244 * @param groupId the group ID 245 * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 246 * @throws SystemException if a system exception occurred 247 */ 248 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUUID_G( 249 java.lang.String uuid, long groupId) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Returns the m d r rule group instance where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 254 * 255 * @param uuid the uuid 256 * @param groupId the group ID 257 * @param retrieveFromCache whether to use the finder cache 258 * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 259 * @throws SystemException if a system exception occurred 260 */ 261 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUUID_G( 262 java.lang.String uuid, long groupId, boolean retrieveFromCache) 263 throws com.liferay.portal.kernel.exception.SystemException; 264 265 /** 266 * Returns all the m d r rule group instances where groupId = ?. 267 * 268 * @param groupId the group ID 269 * @return the matching m d r rule group instances 270 * @throws SystemException if a system exception occurred 271 */ 272 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByGroupId( 273 long groupId) 274 throws com.liferay.portal.kernel.exception.SystemException; 275 276 /** 277 * Returns a range of all the m d r rule group instances where groupId = ?. 278 * 279 * <p> 280 * 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. 281 * </p> 282 * 283 * @param groupId the group ID 284 * @param start the lower bound of the range of m d r rule group instances 285 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 286 * @return the range of matching m d r rule group instances 287 * @throws SystemException if a system exception occurred 288 */ 289 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByGroupId( 290 long groupId, int start, int end) 291 throws com.liferay.portal.kernel.exception.SystemException; 292 293 /** 294 * Returns an ordered range of all the m d r rule group instances where groupId = ?. 295 * 296 * <p> 297 * 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. 298 * </p> 299 * 300 * @param groupId the group ID 301 * @param start the lower bound of the range of m d r rule group instances 302 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 303 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 304 * @return the ordered range of matching m d r rule group instances 305 * @throws SystemException if a system exception occurred 306 */ 307 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByGroupId( 308 long groupId, int start, int end, 309 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 310 throws com.liferay.portal.kernel.exception.SystemException; 311 312 /** 313 * Returns the first m d r rule group instance in the ordered set where groupId = ?. 314 * 315 * @param groupId the group ID 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the first matching m d r rule group instance 318 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByGroupId_First( 322 long groupId, 323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 326 327 /** 328 * Returns the first m d r rule group instance in the ordered set where groupId = ?. 329 * 330 * @param groupId the group ID 331 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 332 * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 333 * @throws SystemException if a system exception occurred 334 */ 335 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByGroupId_First( 336 long groupId, 337 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 338 throws com.liferay.portal.kernel.exception.SystemException; 339 340 /** 341 * Returns the last m d r rule group instance in the ordered set where groupId = ?. 342 * 343 * @param groupId the group ID 344 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 345 * @return the last matching m d r rule group instance 346 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 347 * @throws SystemException if a system exception occurred 348 */ 349 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByGroupId_Last( 350 long groupId, 351 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 352 throws com.liferay.portal.kernel.exception.SystemException, 353 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 354 355 /** 356 * Returns the last m d r rule group instance in the ordered set where groupId = ?. 357 * 358 * @param groupId the group ID 359 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 360 * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 361 * @throws SystemException if a system exception occurred 362 */ 363 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByGroupId_Last( 364 long groupId, 365 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 366 throws com.liferay.portal.kernel.exception.SystemException; 367 368 /** 369 * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where groupId = ?. 370 * 371 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 372 * @param groupId the group ID 373 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 374 * @return the previous, current, and next m d r rule group instance 375 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 376 * @throws SystemException if a system exception occurred 377 */ 378 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByGroupId_PrevAndNext( 379 long ruleGroupInstanceId, long groupId, 380 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 381 throws com.liferay.portal.kernel.exception.SystemException, 382 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 383 384 /** 385 * Returns all the m d r rule group instances that the user has permission to view where groupId = ?. 386 * 387 * @param groupId the group ID 388 * @return the matching m d r rule group instances that the user has permission to view 389 * @throws SystemException if a system exception occurred 390 */ 391 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByGroupId( 392 long groupId) 393 throws com.liferay.portal.kernel.exception.SystemException; 394 395 /** 396 * Returns a range of all the m d r rule group instances that the user has permission to view where groupId = ?. 397 * 398 * <p> 399 * 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. 400 * </p> 401 * 402 * @param groupId the group ID 403 * @param start the lower bound of the range of m d r rule group instances 404 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 405 * @return the range of matching m d r rule group instances that the user has permission to view 406 * @throws SystemException if a system exception occurred 407 */ 408 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByGroupId( 409 long groupId, int start, int end) 410 throws com.liferay.portal.kernel.exception.SystemException; 411 412 /** 413 * Returns an ordered range of all the m d r rule group instances that the user has permissions to view where groupId = ?. 414 * 415 * <p> 416 * 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. 417 * </p> 418 * 419 * @param groupId the group ID 420 * @param start the lower bound of the range of m d r rule group instances 421 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 422 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 423 * @return the ordered range of matching m d r rule group instances that the user has permission to view 424 * @throws SystemException if a system exception occurred 425 */ 426 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByGroupId( 427 long groupId, int start, int end, 428 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 429 throws com.liferay.portal.kernel.exception.SystemException; 430 431 /** 432 * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set of m d r rule group instances that the user has permission to view where groupId = ?. 433 * 434 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 435 * @param groupId the group ID 436 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 437 * @return the previous, current, and next m d r rule group instance 438 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 439 * @throws SystemException if a system exception occurred 440 */ 441 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] filterFindByGroupId_PrevAndNext( 442 long ruleGroupInstanceId, long groupId, 443 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 444 throws com.liferay.portal.kernel.exception.SystemException, 445 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 446 447 /** 448 * Returns all the m d r rule group instances where ruleGroupId = ?. 449 * 450 * @param ruleGroupId the rule group ID 451 * @return the matching m d r rule group instances 452 * @throws SystemException if a system exception occurred 453 */ 454 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByRuleGroupId( 455 long ruleGroupId) 456 throws com.liferay.portal.kernel.exception.SystemException; 457 458 /** 459 * Returns a range of all the m d r rule group instances where ruleGroupId = ?. 460 * 461 * <p> 462 * 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. 463 * </p> 464 * 465 * @param ruleGroupId the rule group ID 466 * @param start the lower bound of the range of m d r rule group instances 467 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 468 * @return the range of matching m d r rule group instances 469 * @throws SystemException if a system exception occurred 470 */ 471 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByRuleGroupId( 472 long ruleGroupId, int start, int end) 473 throws com.liferay.portal.kernel.exception.SystemException; 474 475 /** 476 * Returns an ordered range of all the m d r rule group instances where ruleGroupId = ?. 477 * 478 * <p> 479 * 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. 480 * </p> 481 * 482 * @param ruleGroupId the rule group ID 483 * @param start the lower bound of the range of m d r rule group instances 484 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 485 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 486 * @return the ordered range of matching m d r rule group instances 487 * @throws SystemException if a system exception occurred 488 */ 489 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByRuleGroupId( 490 long ruleGroupId, int start, int end, 491 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 492 throws com.liferay.portal.kernel.exception.SystemException; 493 494 /** 495 * Returns the first m d r rule group instance in the ordered set where ruleGroupId = ?. 496 * 497 * @param ruleGroupId the rule group ID 498 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 499 * @return the first matching m d r rule group instance 500 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 501 * @throws SystemException if a system exception occurred 502 */ 503 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByRuleGroupId_First( 504 long ruleGroupId, 505 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 506 throws com.liferay.portal.kernel.exception.SystemException, 507 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 508 509 /** 510 * Returns the first m d r rule group instance in the ordered set where ruleGroupId = ?. 511 * 512 * @param ruleGroupId the rule group ID 513 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 514 * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 515 * @throws SystemException if a system exception occurred 516 */ 517 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByRuleGroupId_First( 518 long ruleGroupId, 519 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 520 throws com.liferay.portal.kernel.exception.SystemException; 521 522 /** 523 * Returns the last m d r rule group instance in the ordered set where ruleGroupId = ?. 524 * 525 * @param ruleGroupId the rule group ID 526 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 527 * @return the last matching m d r rule group instance 528 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 529 * @throws SystemException if a system exception occurred 530 */ 531 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByRuleGroupId_Last( 532 long ruleGroupId, 533 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 534 throws com.liferay.portal.kernel.exception.SystemException, 535 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 536 537 /** 538 * Returns the last m d r rule group instance in the ordered set where ruleGroupId = ?. 539 * 540 * @param ruleGroupId the rule group ID 541 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 542 * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 543 * @throws SystemException if a system exception occurred 544 */ 545 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByRuleGroupId_Last( 546 long ruleGroupId, 547 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 548 throws com.liferay.portal.kernel.exception.SystemException; 549 550 /** 551 * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where ruleGroupId = ?. 552 * 553 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 554 * @param ruleGroupId the rule group ID 555 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 556 * @return the previous, current, and next m d r rule group instance 557 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 558 * @throws SystemException if a system exception occurred 559 */ 560 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByRuleGroupId_PrevAndNext( 561 long ruleGroupInstanceId, long ruleGroupId, 562 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 563 throws com.liferay.portal.kernel.exception.SystemException, 564 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 565 566 /** 567 * Returns all the m d r rule group instances where classNameId = ? and classPK = ?. 568 * 569 * @param classNameId the class name ID 570 * @param classPK the class p k 571 * @return the matching m d r rule group instances 572 * @throws SystemException if a system exception occurred 573 */ 574 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByC_C( 575 long classNameId, long classPK) 576 throws com.liferay.portal.kernel.exception.SystemException; 577 578 /** 579 * Returns a range of all the m d r rule group instances where classNameId = ? and classPK = ?. 580 * 581 * <p> 582 * 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. 583 * </p> 584 * 585 * @param classNameId the class name ID 586 * @param classPK the class p k 587 * @param start the lower bound of the range of m d r rule group instances 588 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 589 * @return the range of matching m d r rule group instances 590 * @throws SystemException if a system exception occurred 591 */ 592 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByC_C( 593 long classNameId, long classPK, int start, int end) 594 throws com.liferay.portal.kernel.exception.SystemException; 595 596 /** 597 * Returns an ordered range of all the m d r rule group instances where classNameId = ? and classPK = ?. 598 * 599 * <p> 600 * 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. 601 * </p> 602 * 603 * @param classNameId the class name ID 604 * @param classPK the class p k 605 * @param start the lower bound of the range of m d r rule group instances 606 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 607 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 608 * @return the ordered range of matching m d r rule group instances 609 * @throws SystemException if a system exception occurred 610 */ 611 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByC_C( 612 long classNameId, long classPK, int start, int end, 613 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 614 throws com.liferay.portal.kernel.exception.SystemException; 615 616 /** 617 * Returns the first m d r rule group instance in the ordered set where classNameId = ? and classPK = ?. 618 * 619 * @param classNameId the class name ID 620 * @param classPK the class p k 621 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 622 * @return the first matching m d r rule group instance 623 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 624 * @throws SystemException if a system exception occurred 625 */ 626 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByC_C_First( 627 long classNameId, long classPK, 628 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 629 throws com.liferay.portal.kernel.exception.SystemException, 630 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 631 632 /** 633 * Returns the first m d r rule group instance in the ordered set where classNameId = ? and classPK = ?. 634 * 635 * @param classNameId the class name ID 636 * @param classPK the class p k 637 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 638 * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 639 * @throws SystemException if a system exception occurred 640 */ 641 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByC_C_First( 642 long classNameId, long classPK, 643 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 644 throws com.liferay.portal.kernel.exception.SystemException; 645 646 /** 647 * Returns the last m d r rule group instance in the ordered set where classNameId = ? and classPK = ?. 648 * 649 * @param classNameId the class name ID 650 * @param classPK the class p k 651 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 652 * @return the last matching m d r rule group instance 653 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 654 * @throws SystemException if a system exception occurred 655 */ 656 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByC_C_Last( 657 long classNameId, long classPK, 658 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 659 throws com.liferay.portal.kernel.exception.SystemException, 660 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 661 662 /** 663 * Returns the last m d r rule group instance in the ordered set where classNameId = ? and classPK = ?. 664 * 665 * @param classNameId the class name ID 666 * @param classPK the class p k 667 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 668 * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 669 * @throws SystemException if a system exception occurred 670 */ 671 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByC_C_Last( 672 long classNameId, long classPK, 673 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 674 throws com.liferay.portal.kernel.exception.SystemException; 675 676 /** 677 * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where classNameId = ? and classPK = ?. 678 * 679 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 680 * @param classNameId the class name ID 681 * @param classPK the class p k 682 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 683 * @return the previous, current, and next m d r rule group instance 684 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 685 * @throws SystemException if a system exception occurred 686 */ 687 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByC_C_PrevAndNext( 688 long ruleGroupInstanceId, long classNameId, long classPK, 689 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 690 throws com.liferay.portal.kernel.exception.SystemException, 691 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 692 693 /** 694 * Returns all the m d r rule group instances where groupId = ? and classNameId = ? and classPK = ?. 695 * 696 * @param groupId the group ID 697 * @param classNameId the class name ID 698 * @param classPK the class p k 699 * @return the matching m d r rule group instances 700 * @throws SystemException if a system exception occurred 701 */ 702 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByG_C_C( 703 long groupId, long classNameId, long classPK) 704 throws com.liferay.portal.kernel.exception.SystemException; 705 706 /** 707 * Returns a range of all the m d r rule group instances where groupId = ? and classNameId = ? and classPK = ?. 708 * 709 * <p> 710 * 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. 711 * </p> 712 * 713 * @param groupId the group ID 714 * @param classNameId the class name ID 715 * @param classPK the class p k 716 * @param start the lower bound of the range of m d r rule group instances 717 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 718 * @return the range of matching m d r rule group instances 719 * @throws SystemException if a system exception occurred 720 */ 721 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByG_C_C( 722 long groupId, long classNameId, long classPK, int start, int end) 723 throws com.liferay.portal.kernel.exception.SystemException; 724 725 /** 726 * Returns an ordered range of all the m d r rule group instances where groupId = ? and classNameId = ? and classPK = ?. 727 * 728 * <p> 729 * 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. 730 * </p> 731 * 732 * @param groupId the group ID 733 * @param classNameId the class name ID 734 * @param classPK the class p k 735 * @param start the lower bound of the range of m d r rule group instances 736 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 737 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 738 * @return the ordered range of matching m d r rule group instances 739 * @throws SystemException if a system exception occurred 740 */ 741 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByG_C_C( 742 long groupId, long classNameId, long classPK, int start, int end, 743 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 744 throws com.liferay.portal.kernel.exception.SystemException; 745 746 /** 747 * Returns the first m d r rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 748 * 749 * @param groupId the group ID 750 * @param classNameId the class name ID 751 * @param classPK the class p k 752 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 753 * @return the first matching m d r rule group instance 754 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 755 * @throws SystemException if a system exception occurred 756 */ 757 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByG_C_C_First( 758 long groupId, long classNameId, long classPK, 759 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 760 throws com.liferay.portal.kernel.exception.SystemException, 761 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 762 763 /** 764 * Returns the first m d r rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 765 * 766 * @param groupId the group ID 767 * @param classNameId the class name ID 768 * @param classPK the class p k 769 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 770 * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 771 * @throws SystemException if a system exception occurred 772 */ 773 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByG_C_C_First( 774 long groupId, long classNameId, long classPK, 775 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 776 throws com.liferay.portal.kernel.exception.SystemException; 777 778 /** 779 * Returns the last m d r rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 780 * 781 * @param groupId the group ID 782 * @param classNameId the class name ID 783 * @param classPK the class p k 784 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 785 * @return the last matching m d r rule group instance 786 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 787 * @throws SystemException if a system exception occurred 788 */ 789 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByG_C_C_Last( 790 long groupId, long classNameId, long classPK, 791 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 792 throws com.liferay.portal.kernel.exception.SystemException, 793 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 794 795 /** 796 * Returns the last m d r rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 797 * 798 * @param groupId the group ID 799 * @param classNameId the class name ID 800 * @param classPK the class p k 801 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 802 * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 803 * @throws SystemException if a system exception occurred 804 */ 805 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByG_C_C_Last( 806 long groupId, long classNameId, long classPK, 807 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 808 throws com.liferay.portal.kernel.exception.SystemException; 809 810 /** 811 * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where groupId = ? and classNameId = ? and classPK = ?. 812 * 813 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 814 * @param groupId the group ID 815 * @param classNameId the class name ID 816 * @param classPK the class p k 817 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 818 * @return the previous, current, and next m d r rule group instance 819 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 820 * @throws SystemException if a system exception occurred 821 */ 822 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByG_C_C_PrevAndNext( 823 long ruleGroupInstanceId, long groupId, long classNameId, long classPK, 824 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 825 throws com.liferay.portal.kernel.exception.SystemException, 826 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 827 828 /** 829 * Returns all the m d r rule group instances that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. 830 * 831 * @param groupId the group ID 832 * @param classNameId the class name ID 833 * @param classPK the class p k 834 * @return the matching m d r rule group instances that the user has permission to view 835 * @throws SystemException if a system exception occurred 836 */ 837 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByG_C_C( 838 long groupId, long classNameId, long classPK) 839 throws com.liferay.portal.kernel.exception.SystemException; 840 841 /** 842 * Returns a range of all the m d r rule group instances that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. 843 * 844 * <p> 845 * 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. 846 * </p> 847 * 848 * @param groupId the group ID 849 * @param classNameId the class name ID 850 * @param classPK the class p k 851 * @param start the lower bound of the range of m d r rule group instances 852 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 853 * @return the range of matching m d r rule group instances that the user has permission to view 854 * @throws SystemException if a system exception occurred 855 */ 856 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByG_C_C( 857 long groupId, long classNameId, long classPK, int start, int end) 858 throws com.liferay.portal.kernel.exception.SystemException; 859 860 /** 861 * Returns an ordered range of all the m d r rule group instances that the user has permissions to view where groupId = ? and classNameId = ? and classPK = ?. 862 * 863 * <p> 864 * 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. 865 * </p> 866 * 867 * @param groupId the group ID 868 * @param classNameId the class name ID 869 * @param classPK the class p k 870 * @param start the lower bound of the range of m d r rule group instances 871 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 872 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 873 * @return the ordered range of matching m d r rule group instances that the user has permission to view 874 * @throws SystemException if a system exception occurred 875 */ 876 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByG_C_C( 877 long groupId, long classNameId, long classPK, int start, int end, 878 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 879 throws com.liferay.portal.kernel.exception.SystemException; 880 881 /** 882 * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set of m d r rule group instances that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. 883 * 884 * @param ruleGroupInstanceId the primary key of the current m d r rule group instance 885 * @param groupId the group ID 886 * @param classNameId the class name ID 887 * @param classPK the class p k 888 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 889 * @return the previous, current, and next m d r rule group instance 890 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found 891 * @throws SystemException if a system exception occurred 892 */ 893 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] filterFindByG_C_C_PrevAndNext( 894 long ruleGroupInstanceId, long groupId, long classNameId, long classPK, 895 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 896 throws com.liferay.portal.kernel.exception.SystemException, 897 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 898 899 /** 900 * Returns the m d r rule group instance where classNameId = ? and classPK = ? and ruleGroupId = ? or throws a {@link com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException} if it could not be found. 901 * 902 * @param classNameId the class name ID 903 * @param classPK the class p k 904 * @param ruleGroupId the rule group ID 905 * @return the matching m d r rule group instance 906 * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found 907 * @throws SystemException if a system exception occurred 908 */ 909 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByC_C_R( 910 long classNameId, long classPK, long ruleGroupId) 911 throws com.liferay.portal.kernel.exception.SystemException, 912 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 913 914 /** 915 * Returns the m d r rule group instance where classNameId = ? and classPK = ? and ruleGroupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 916 * 917 * @param classNameId the class name ID 918 * @param classPK the class p k 919 * @param ruleGroupId the rule group ID 920 * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 921 * @throws SystemException if a system exception occurred 922 */ 923 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByC_C_R( 924 long classNameId, long classPK, long ruleGroupId) 925 throws com.liferay.portal.kernel.exception.SystemException; 926 927 /** 928 * Returns the m d r rule group instance where classNameId = ? and classPK = ? and ruleGroupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 929 * 930 * @param classNameId the class name ID 931 * @param classPK the class p k 932 * @param ruleGroupId the rule group ID 933 * @param retrieveFromCache whether to use the finder cache 934 * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found 935 * @throws SystemException if a system exception occurred 936 */ 937 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByC_C_R( 938 long classNameId, long classPK, long ruleGroupId, 939 boolean retrieveFromCache) 940 throws com.liferay.portal.kernel.exception.SystemException; 941 942 /** 943 * Returns all the m d r rule group instances. 944 * 945 * @return the m d r rule group instances 946 * @throws SystemException if a system exception occurred 947 */ 948 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findAll() 949 throws com.liferay.portal.kernel.exception.SystemException; 950 951 /** 952 * Returns a range of all the m d r rule group instances. 953 * 954 * <p> 955 * 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. 956 * </p> 957 * 958 * @param start the lower bound of the range of m d r rule group instances 959 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 960 * @return the range of m d r rule group instances 961 * @throws SystemException if a system exception occurred 962 */ 963 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findAll( 964 int start, int end) 965 throws com.liferay.portal.kernel.exception.SystemException; 966 967 /** 968 * Returns an ordered range of all the m d r rule group instances. 969 * 970 * <p> 971 * 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. 972 * </p> 973 * 974 * @param start the lower bound of the range of m d r rule group instances 975 * @param end the upper bound of the range of m d r rule group instances (not inclusive) 976 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 977 * @return the ordered range of m d r rule group instances 978 * @throws SystemException if a system exception occurred 979 */ 980 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findAll( 981 int start, int end, 982 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 983 throws com.liferay.portal.kernel.exception.SystemException; 984 985 /** 986 * Removes all the m d r rule group instances where uuid = ? from the database. 987 * 988 * @param uuid the uuid 989 * @throws SystemException if a system exception occurred 990 */ 991 public void removeByUuid(java.lang.String uuid) 992 throws com.liferay.portal.kernel.exception.SystemException; 993 994 /** 995 * Removes the m d r rule group instance where uuid = ? and groupId = ? from the database. 996 * 997 * @param uuid the uuid 998 * @param groupId the group ID 999 * @return the m d r rule group instance that was removed 1000 * @throws SystemException if a system exception occurred 1001 */ 1002 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance removeByUUID_G( 1003 java.lang.String uuid, long groupId) 1004 throws com.liferay.portal.kernel.exception.SystemException, 1005 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 1006 1007 /** 1008 * Removes all the m d r rule group instances where groupId = ? from the database. 1009 * 1010 * @param groupId the group ID 1011 * @throws SystemException if a system exception occurred 1012 */ 1013 public void removeByGroupId(long groupId) 1014 throws com.liferay.portal.kernel.exception.SystemException; 1015 1016 /** 1017 * Removes all the m d r rule group instances where ruleGroupId = ? from the database. 1018 * 1019 * @param ruleGroupId the rule group ID 1020 * @throws SystemException if a system exception occurred 1021 */ 1022 public void removeByRuleGroupId(long ruleGroupId) 1023 throws com.liferay.portal.kernel.exception.SystemException; 1024 1025 /** 1026 * Removes all the m d r rule group instances where classNameId = ? and classPK = ? from the database. 1027 * 1028 * @param classNameId the class name ID 1029 * @param classPK the class p k 1030 * @throws SystemException if a system exception occurred 1031 */ 1032 public void removeByC_C(long classNameId, long classPK) 1033 throws com.liferay.portal.kernel.exception.SystemException; 1034 1035 /** 1036 * Removes all the m d r rule group instances where groupId = ? and classNameId = ? and classPK = ? from the database. 1037 * 1038 * @param groupId the group ID 1039 * @param classNameId the class name ID 1040 * @param classPK the class p k 1041 * @throws SystemException if a system exception occurred 1042 */ 1043 public void removeByG_C_C(long groupId, long classNameId, long classPK) 1044 throws com.liferay.portal.kernel.exception.SystemException; 1045 1046 /** 1047 * Removes the m d r rule group instance where classNameId = ? and classPK = ? and ruleGroupId = ? from the database. 1048 * 1049 * @param classNameId the class name ID 1050 * @param classPK the class p k 1051 * @param ruleGroupId the rule group ID 1052 * @return the m d r rule group instance that was removed 1053 * @throws SystemException if a system exception occurred 1054 */ 1055 public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance removeByC_C_R( 1056 long classNameId, long classPK, long ruleGroupId) 1057 throws com.liferay.portal.kernel.exception.SystemException, 1058 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException; 1059 1060 /** 1061 * Removes all the m d r rule group instances from the database. 1062 * 1063 * @throws SystemException if a system exception occurred 1064 */ 1065 public void removeAll() 1066 throws com.liferay.portal.kernel.exception.SystemException; 1067 1068 /** 1069 * Returns the number of m d r rule group instances where uuid = ?. 1070 * 1071 * @param uuid the uuid 1072 * @return the number of matching m d r rule group instances 1073 * @throws SystemException if a system exception occurred 1074 */ 1075 public int countByUuid(java.lang.String uuid) 1076 throws com.liferay.portal.kernel.exception.SystemException; 1077 1078 /** 1079 * Returns the number of m d r rule group instances where uuid = ? and groupId = ?. 1080 * 1081 * @param uuid the uuid 1082 * @param groupId the group ID 1083 * @return the number of matching m d r rule group instances 1084 * @throws SystemException if a system exception occurred 1085 */ 1086 public int countByUUID_G(java.lang.String uuid, long groupId) 1087 throws com.liferay.portal.kernel.exception.SystemException; 1088 1089 /** 1090 * Returns the number of m d r rule group instances where groupId = ?. 1091 * 1092 * @param groupId the group ID 1093 * @return the number of matching m d r rule group instances 1094 * @throws SystemException if a system exception occurred 1095 */ 1096 public int countByGroupId(long groupId) 1097 throws com.liferay.portal.kernel.exception.SystemException; 1098 1099 /** 1100 * Returns the number of m d r rule group instances that the user has permission to view where groupId = ?. 1101 * 1102 * @param groupId the group ID 1103 * @return the number of matching m d r rule group instances that the user has permission to view 1104 * @throws SystemException if a system exception occurred 1105 */ 1106 public int filterCountByGroupId(long groupId) 1107 throws com.liferay.portal.kernel.exception.SystemException; 1108 1109 /** 1110 * Returns the number of m d r rule group instances where ruleGroupId = ?. 1111 * 1112 * @param ruleGroupId the rule group ID 1113 * @return the number of matching m d r rule group instances 1114 * @throws SystemException if a system exception occurred 1115 */ 1116 public int countByRuleGroupId(long ruleGroupId) 1117 throws com.liferay.portal.kernel.exception.SystemException; 1118 1119 /** 1120 * Returns the number of m d r rule group instances where classNameId = ? and classPK = ?. 1121 * 1122 * @param classNameId the class name ID 1123 * @param classPK the class p k 1124 * @return the number of matching m d r rule group instances 1125 * @throws SystemException if a system exception occurred 1126 */ 1127 public int countByC_C(long classNameId, long classPK) 1128 throws com.liferay.portal.kernel.exception.SystemException; 1129 1130 /** 1131 * Returns the number of m d r rule group instances where groupId = ? and classNameId = ? and classPK = ?. 1132 * 1133 * @param groupId the group ID 1134 * @param classNameId the class name ID 1135 * @param classPK the class p k 1136 * @return the number of matching m d r rule group instances 1137 * @throws SystemException if a system exception occurred 1138 */ 1139 public int countByG_C_C(long groupId, long classNameId, long classPK) 1140 throws com.liferay.portal.kernel.exception.SystemException; 1141 1142 /** 1143 * Returns the number of m d r rule group instances that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?. 1144 * 1145 * @param groupId the group ID 1146 * @param classNameId the class name ID 1147 * @param classPK the class p k 1148 * @return the number of matching m d r rule group instances that the user has permission to view 1149 * @throws SystemException if a system exception occurred 1150 */ 1151 public int filterCountByG_C_C(long groupId, long classNameId, long classPK) 1152 throws com.liferay.portal.kernel.exception.SystemException; 1153 1154 /** 1155 * Returns the number of m d r rule group instances where classNameId = ? and classPK = ? and ruleGroupId = ?. 1156 * 1157 * @param classNameId the class name ID 1158 * @param classPK the class p k 1159 * @param ruleGroupId the rule group ID 1160 * @return the number of matching m d r rule group instances 1161 * @throws SystemException if a system exception occurred 1162 */ 1163 public int countByC_C_R(long classNameId, long classPK, long ruleGroupId) 1164 throws com.liferay.portal.kernel.exception.SystemException; 1165 1166 /** 1167 * Returns the number of m d r rule group instances. 1168 * 1169 * @return the number of m d r rule group instances 1170 * @throws SystemException if a system exception occurred 1171 */ 1172 public int countAll() 1173 throws com.liferay.portal.kernel.exception.SystemException; 1174 }