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