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.MDRRuleGroup; 022 023 /** 024 * The persistence interface for the m d r rule group 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.MDRRuleGroupPersistenceImpl 032 * @see MDRRuleGroupUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface MDRRuleGroupPersistence extends BasePersistence<MDRRuleGroup> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link MDRRuleGroupUtil} to access the m d r rule group persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the m d r rule groups where uuid = ?. 045 * 046 * @param uuid the uuid 047 * @return the matching m d r rule groups 048 */ 049 public java.util.List<MDRRuleGroup> findByUuid(java.lang.String uuid); 050 051 /** 052 * Returns a range of all the m d r rule groups where uuid = ?. 053 * 054 * <p> 055 * 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 MDRRuleGroupModelImpl}. 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. 056 * </p> 057 * 058 * @param uuid the uuid 059 * @param start the lower bound of the range of m d r rule groups 060 * @param end the upper bound of the range of m d r rule groups (not inclusive) 061 * @return the range of matching m d r rule groups 062 */ 063 public java.util.List<MDRRuleGroup> findByUuid(java.lang.String uuid, 064 int start, int end); 065 066 /** 067 * Returns an ordered range of all the m d r rule groups where uuid = ?. 068 * 069 * <p> 070 * 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 MDRRuleGroupModelImpl}. 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. 071 * </p> 072 * 073 * @param uuid the uuid 074 * @param start the lower bound of the range of m d r rule groups 075 * @param end the upper bound of the range of m d r rule groups (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching m d r rule groups 078 */ 079 public java.util.List<MDRRuleGroup> findByUuid(java.lang.String uuid, 080 int start, int end, 081 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator); 082 083 /** 084 * Returns the first m d r rule group in the ordered set where uuid = ?. 085 * 086 * @param uuid the uuid 087 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 088 * @return the first matching m d r rule group 089 * @throws NoSuchRuleGroupException if a matching m d r rule group could not be found 090 */ 091 public MDRRuleGroup findByUuid_First(java.lang.String uuid, 092 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator) 093 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupException; 094 095 /** 096 * Returns the first m d r rule group in the ordered set where uuid = ?. 097 * 098 * @param uuid the uuid 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching m d r rule group, or <code>null</code> if a matching m d r rule group could not be found 101 */ 102 public MDRRuleGroup fetchByUuid_First(java.lang.String uuid, 103 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator); 104 105 /** 106 * Returns the last m d r rule group in the ordered set where uuid = ?. 107 * 108 * @param uuid the uuid 109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 110 * @return the last matching m d r rule group 111 * @throws NoSuchRuleGroupException if a matching m d r rule group could not be found 112 */ 113 public MDRRuleGroup findByUuid_Last(java.lang.String uuid, 114 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator) 115 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupException; 116 117 /** 118 * Returns the last m d r rule group in the ordered set where uuid = ?. 119 * 120 * @param uuid the uuid 121 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 122 * @return the last matching m d r rule group, or <code>null</code> if a matching m d r rule group could not be found 123 */ 124 public MDRRuleGroup fetchByUuid_Last(java.lang.String uuid, 125 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator); 126 127 /** 128 * Returns the m d r rule groups before and after the current m d r rule group in the ordered set where uuid = ?. 129 * 130 * @param ruleGroupId the primary key of the current m d r rule group 131 * @param uuid the uuid 132 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 133 * @return the previous, current, and next m d r rule group 134 * @throws NoSuchRuleGroupException if a m d r rule group with the primary key could not be found 135 */ 136 public MDRRuleGroup[] findByUuid_PrevAndNext(long ruleGroupId, 137 java.lang.String uuid, 138 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator) 139 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupException; 140 141 /** 142 * Removes all the m d r rule groups where uuid = ? from the database. 143 * 144 * @param uuid the uuid 145 */ 146 public void removeByUuid(java.lang.String uuid); 147 148 /** 149 * Returns the number of m d r rule groups where uuid = ?. 150 * 151 * @param uuid the uuid 152 * @return the number of matching m d r rule groups 153 */ 154 public int countByUuid(java.lang.String uuid); 155 156 /** 157 * Returns the m d r rule group where uuid = ? and groupId = ? or throws a {@link NoSuchRuleGroupException} if it could not be found. 158 * 159 * @param uuid the uuid 160 * @param groupId the group ID 161 * @return the matching m d r rule group 162 * @throws NoSuchRuleGroupException if a matching m d r rule group could not be found 163 */ 164 public MDRRuleGroup findByUUID_G(java.lang.String uuid, long groupId) 165 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupException; 166 167 /** 168 * Returns the m d r rule group where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 169 * 170 * @param uuid the uuid 171 * @param groupId the group ID 172 * @return the matching m d r rule group, or <code>null</code> if a matching m d r rule group could not be found 173 */ 174 public MDRRuleGroup fetchByUUID_G(java.lang.String uuid, long groupId); 175 176 /** 177 * Returns the m d r rule group where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 178 * 179 * @param uuid the uuid 180 * @param groupId the group ID 181 * @param retrieveFromCache whether to use the finder cache 182 * @return the matching m d r rule group, or <code>null</code> if a matching m d r rule group could not be found 183 */ 184 public MDRRuleGroup fetchByUUID_G(java.lang.String uuid, long groupId, 185 boolean retrieveFromCache); 186 187 /** 188 * Removes the m d r rule group where uuid = ? and groupId = ? from the database. 189 * 190 * @param uuid the uuid 191 * @param groupId the group ID 192 * @return the m d r rule group that was removed 193 */ 194 public MDRRuleGroup removeByUUID_G(java.lang.String uuid, long groupId) 195 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupException; 196 197 /** 198 * Returns the number of m d r rule groups where uuid = ? and groupId = ?. 199 * 200 * @param uuid the uuid 201 * @param groupId the group ID 202 * @return the number of matching m d r rule groups 203 */ 204 public int countByUUID_G(java.lang.String uuid, long groupId); 205 206 /** 207 * Returns all the m d r rule groups where uuid = ? and companyId = ?. 208 * 209 * @param uuid the uuid 210 * @param companyId the company ID 211 * @return the matching m d r rule groups 212 */ 213 public java.util.List<MDRRuleGroup> findByUuid_C(java.lang.String uuid, 214 long companyId); 215 216 /** 217 * Returns a range of all the m d r rule groups where uuid = ? and companyId = ?. 218 * 219 * <p> 220 * 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 MDRRuleGroupModelImpl}. 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. 221 * </p> 222 * 223 * @param uuid the uuid 224 * @param companyId the company ID 225 * @param start the lower bound of the range of m d r rule groups 226 * @param end the upper bound of the range of m d r rule groups (not inclusive) 227 * @return the range of matching m d r rule groups 228 */ 229 public java.util.List<MDRRuleGroup> findByUuid_C(java.lang.String uuid, 230 long companyId, int start, int end); 231 232 /** 233 * Returns an ordered range of all the m d r rule groups where uuid = ? and companyId = ?. 234 * 235 * <p> 236 * 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 MDRRuleGroupModelImpl}. 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. 237 * </p> 238 * 239 * @param uuid the uuid 240 * @param companyId the company ID 241 * @param start the lower bound of the range of m d r rule groups 242 * @param end the upper bound of the range of m d r rule groups (not inclusive) 243 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 244 * @return the ordered range of matching m d r rule groups 245 */ 246 public java.util.List<MDRRuleGroup> findByUuid_C(java.lang.String uuid, 247 long companyId, int start, int end, 248 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator); 249 250 /** 251 * Returns the first m d r rule group in the ordered set where uuid = ? and companyId = ?. 252 * 253 * @param uuid the uuid 254 * @param companyId the company ID 255 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 256 * @return the first matching m d r rule group 257 * @throws NoSuchRuleGroupException if a matching m d r rule group could not be found 258 */ 259 public MDRRuleGroup findByUuid_C_First(java.lang.String uuid, 260 long companyId, 261 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator) 262 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupException; 263 264 /** 265 * Returns the first m d r rule group in the ordered set where uuid = ? and companyId = ?. 266 * 267 * @param uuid the uuid 268 * @param companyId the company ID 269 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 270 * @return the first matching m d r rule group, or <code>null</code> if a matching m d r rule group could not be found 271 */ 272 public MDRRuleGroup fetchByUuid_C_First(java.lang.String uuid, 273 long companyId, 274 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator); 275 276 /** 277 * Returns the last m d r rule group in the ordered set where uuid = ? and companyId = ?. 278 * 279 * @param uuid the uuid 280 * @param companyId the company ID 281 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 282 * @return the last matching m d r rule group 283 * @throws NoSuchRuleGroupException if a matching m d r rule group could not be found 284 */ 285 public MDRRuleGroup findByUuid_C_Last(java.lang.String uuid, 286 long companyId, 287 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator) 288 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupException; 289 290 /** 291 * Returns the last m d r rule group in the ordered set where uuid = ? and companyId = ?. 292 * 293 * @param uuid the uuid 294 * @param companyId the company ID 295 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 296 * @return the last matching m d r rule group, or <code>null</code> if a matching m d r rule group could not be found 297 */ 298 public MDRRuleGroup fetchByUuid_C_Last(java.lang.String uuid, 299 long companyId, 300 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator); 301 302 /** 303 * Returns the m d r rule groups before and after the current m d r rule group in the ordered set where uuid = ? and companyId = ?. 304 * 305 * @param ruleGroupId the primary key of the current m d r rule group 306 * @param uuid the uuid 307 * @param companyId the company ID 308 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 309 * @return the previous, current, and next m d r rule group 310 * @throws NoSuchRuleGroupException if a m d r rule group with the primary key could not be found 311 */ 312 public MDRRuleGroup[] findByUuid_C_PrevAndNext(long ruleGroupId, 313 java.lang.String uuid, long companyId, 314 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator) 315 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupException; 316 317 /** 318 * Removes all the m d r rule groups where uuid = ? and companyId = ? from the database. 319 * 320 * @param uuid the uuid 321 * @param companyId the company ID 322 */ 323 public void removeByUuid_C(java.lang.String uuid, long companyId); 324 325 /** 326 * Returns the number of m d r rule groups where uuid = ? and companyId = ?. 327 * 328 * @param uuid the uuid 329 * @param companyId the company ID 330 * @return the number of matching m d r rule groups 331 */ 332 public int countByUuid_C(java.lang.String uuid, long companyId); 333 334 /** 335 * Returns all the m d r rule groups where groupId = ?. 336 * 337 * @param groupId the group ID 338 * @return the matching m d r rule groups 339 */ 340 public java.util.List<MDRRuleGroup> findByGroupId(long groupId); 341 342 /** 343 * Returns a range of all the m d r rule groups where groupId = ?. 344 * 345 * <p> 346 * 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 MDRRuleGroupModelImpl}. 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. 347 * </p> 348 * 349 * @param groupId the group ID 350 * @param start the lower bound of the range of m d r rule groups 351 * @param end the upper bound of the range of m d r rule groups (not inclusive) 352 * @return the range of matching m d r rule groups 353 */ 354 public java.util.List<MDRRuleGroup> findByGroupId(long groupId, int start, 355 int end); 356 357 /** 358 * Returns an ordered range of all the m d r rule groups where groupId = ?. 359 * 360 * <p> 361 * 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 MDRRuleGroupModelImpl}. 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. 362 * </p> 363 * 364 * @param groupId the group ID 365 * @param start the lower bound of the range of m d r rule groups 366 * @param end the upper bound of the range of m d r rule groups (not inclusive) 367 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 368 * @return the ordered range of matching m d r rule groups 369 */ 370 public java.util.List<MDRRuleGroup> findByGroupId(long groupId, int start, 371 int end, 372 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator); 373 374 /** 375 * Returns the first m d r rule group in the ordered set where groupId = ?. 376 * 377 * @param groupId the group ID 378 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 379 * @return the first matching m d r rule group 380 * @throws NoSuchRuleGroupException if a matching m d r rule group could not be found 381 */ 382 public MDRRuleGroup findByGroupId_First(long groupId, 383 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator) 384 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupException; 385 386 /** 387 * Returns the first m d r rule group in the ordered set where groupId = ?. 388 * 389 * @param groupId the group ID 390 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 391 * @return the first matching m d r rule group, or <code>null</code> if a matching m d r rule group could not be found 392 */ 393 public MDRRuleGroup fetchByGroupId_First(long groupId, 394 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator); 395 396 /** 397 * Returns the last m d r rule group in the ordered set where groupId = ?. 398 * 399 * @param groupId the group ID 400 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 401 * @return the last matching m d r rule group 402 * @throws NoSuchRuleGroupException if a matching m d r rule group could not be found 403 */ 404 public MDRRuleGroup findByGroupId_Last(long groupId, 405 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator) 406 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupException; 407 408 /** 409 * Returns the last m d r rule group in the ordered set where groupId = ?. 410 * 411 * @param groupId the group ID 412 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 413 * @return the last matching m d r rule group, or <code>null</code> if a matching m d r rule group could not be found 414 */ 415 public MDRRuleGroup fetchByGroupId_Last(long groupId, 416 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator); 417 418 /** 419 * Returns the m d r rule groups before and after the current m d r rule group in the ordered set where groupId = ?. 420 * 421 * @param ruleGroupId the primary key of the current m d r rule group 422 * @param groupId the group ID 423 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 424 * @return the previous, current, and next m d r rule group 425 * @throws NoSuchRuleGroupException if a m d r rule group with the primary key could not be found 426 */ 427 public MDRRuleGroup[] findByGroupId_PrevAndNext(long ruleGroupId, 428 long groupId, 429 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator) 430 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupException; 431 432 /** 433 * Returns all the m d r rule groups that the user has permission to view where groupId = ?. 434 * 435 * @param groupId the group ID 436 * @return the matching m d r rule groups that the user has permission to view 437 */ 438 public java.util.List<MDRRuleGroup> filterFindByGroupId(long groupId); 439 440 /** 441 * Returns a range of all the m d r rule groups that the user has permission to view where groupId = ?. 442 * 443 * <p> 444 * 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 MDRRuleGroupModelImpl}. 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. 445 * </p> 446 * 447 * @param groupId the group ID 448 * @param start the lower bound of the range of m d r rule groups 449 * @param end the upper bound of the range of m d r rule groups (not inclusive) 450 * @return the range of matching m d r rule groups that the user has permission to view 451 */ 452 public java.util.List<MDRRuleGroup> filterFindByGroupId(long groupId, 453 int start, int end); 454 455 /** 456 * Returns an ordered range of all the m d r rule groups that the user has permissions to view where groupId = ?. 457 * 458 * <p> 459 * 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 MDRRuleGroupModelImpl}. 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. 460 * </p> 461 * 462 * @param groupId the group ID 463 * @param start the lower bound of the range of m d r rule groups 464 * @param end the upper bound of the range of m d r rule groups (not inclusive) 465 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 466 * @return the ordered range of matching m d r rule groups that the user has permission to view 467 */ 468 public java.util.List<MDRRuleGroup> filterFindByGroupId(long groupId, 469 int start, int end, 470 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator); 471 472 /** 473 * Returns the m d r rule groups before and after the current m d r rule group in the ordered set of m d r rule groups that the user has permission to view where groupId = ?. 474 * 475 * @param ruleGroupId the primary key of the current m d r rule group 476 * @param groupId the group ID 477 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 478 * @return the previous, current, and next m d r rule group 479 * @throws NoSuchRuleGroupException if a m d r rule group with the primary key could not be found 480 */ 481 public MDRRuleGroup[] filterFindByGroupId_PrevAndNext(long ruleGroupId, 482 long groupId, 483 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator) 484 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupException; 485 486 /** 487 * Returns all the m d r rule groups that the user has permission to view where groupId = any ?. 488 * 489 * @param groupIds the group IDs 490 * @return the matching m d r rule groups that the user has permission to view 491 */ 492 public java.util.List<MDRRuleGroup> filterFindByGroupId(long[] groupIds); 493 494 /** 495 * Returns a range of all the m d r rule groups that the user has permission to view where groupId = any ?. 496 * 497 * <p> 498 * 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 MDRRuleGroupModelImpl}. 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. 499 * </p> 500 * 501 * @param groupIds the group IDs 502 * @param start the lower bound of the range of m d r rule groups 503 * @param end the upper bound of the range of m d r rule groups (not inclusive) 504 * @return the range of matching m d r rule groups that the user has permission to view 505 */ 506 public java.util.List<MDRRuleGroup> filterFindByGroupId(long[] groupIds, 507 int start, int end); 508 509 /** 510 * Returns an ordered range of all the m d r rule groups that the user has permission to view where groupId = any ?. 511 * 512 * <p> 513 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 MDRRuleGroupModelImpl}. 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. 514 * </p> 515 * 516 * @param groupIds the group IDs 517 * @param start the lower bound of the range of m d r rule groups 518 * @param end the upper bound of the range of m d r rule groups (not inclusive) 519 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 520 * @return the ordered range of matching m d r rule groups that the user has permission to view 521 */ 522 public java.util.List<MDRRuleGroup> filterFindByGroupId(long[] groupIds, 523 int start, int end, 524 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator); 525 526 /** 527 * Returns all the m d r rule groups where groupId = any ?. 528 * 529 * <p> 530 * 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 MDRRuleGroupModelImpl}. 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. 531 * </p> 532 * 533 * @param groupIds the group IDs 534 * @return the matching m d r rule groups 535 */ 536 public java.util.List<MDRRuleGroup> findByGroupId(long[] groupIds); 537 538 /** 539 * Returns a range of all the m d r rule groups where groupId = any ?. 540 * 541 * <p> 542 * 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 MDRRuleGroupModelImpl}. 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. 543 * </p> 544 * 545 * @param groupIds the group IDs 546 * @param start the lower bound of the range of m d r rule groups 547 * @param end the upper bound of the range of m d r rule groups (not inclusive) 548 * @return the range of matching m d r rule groups 549 */ 550 public java.util.List<MDRRuleGroup> findByGroupId(long[] groupIds, 551 int start, int end); 552 553 /** 554 * Returns an ordered range of all the m d r rule groups where groupId = any ?. 555 * 556 * <p> 557 * 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 MDRRuleGroupModelImpl}. 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. 558 * </p> 559 * 560 * @param groupIds the group IDs 561 * @param start the lower bound of the range of m d r rule groups 562 * @param end the upper bound of the range of m d r rule groups (not inclusive) 563 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 564 * @return the ordered range of matching m d r rule groups 565 */ 566 public java.util.List<MDRRuleGroup> findByGroupId(long[] groupIds, 567 int start, int end, 568 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator); 569 570 /** 571 * Removes all the m d r rule groups where groupId = ? from the database. 572 * 573 * @param groupId the group ID 574 */ 575 public void removeByGroupId(long groupId); 576 577 /** 578 * Returns the number of m d r rule groups where groupId = ?. 579 * 580 * @param groupId the group ID 581 * @return the number of matching m d r rule groups 582 */ 583 public int countByGroupId(long groupId); 584 585 /** 586 * Returns the number of m d r rule groups where groupId = any ?. 587 * 588 * @param groupIds the group IDs 589 * @return the number of matching m d r rule groups 590 */ 591 public int countByGroupId(long[] groupIds); 592 593 /** 594 * Returns the number of m d r rule groups that the user has permission to view where groupId = ?. 595 * 596 * @param groupId the group ID 597 * @return the number of matching m d r rule groups that the user has permission to view 598 */ 599 public int filterCountByGroupId(long groupId); 600 601 /** 602 * Returns the number of m d r rule groups that the user has permission to view where groupId = any ?. 603 * 604 * @param groupIds the group IDs 605 * @return the number of matching m d r rule groups that the user has permission to view 606 */ 607 public int filterCountByGroupId(long[] groupIds); 608 609 /** 610 * Caches the m d r rule group in the entity cache if it is enabled. 611 * 612 * @param mdrRuleGroup the m d r rule group 613 */ 614 public void cacheResult(MDRRuleGroup mdrRuleGroup); 615 616 /** 617 * Caches the m d r rule groups in the entity cache if it is enabled. 618 * 619 * @param mdrRuleGroups the m d r rule groups 620 */ 621 public void cacheResult(java.util.List<MDRRuleGroup> mdrRuleGroups); 622 623 /** 624 * Creates a new m d r rule group with the primary key. Does not add the m d r rule group to the database. 625 * 626 * @param ruleGroupId the primary key for the new m d r rule group 627 * @return the new m d r rule group 628 */ 629 public MDRRuleGroup create(long ruleGroupId); 630 631 /** 632 * Removes the m d r rule group with the primary key from the database. Also notifies the appropriate model listeners. 633 * 634 * @param ruleGroupId the primary key of the m d r rule group 635 * @return the m d r rule group that was removed 636 * @throws NoSuchRuleGroupException if a m d r rule group with the primary key could not be found 637 */ 638 public MDRRuleGroup remove(long ruleGroupId) 639 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupException; 640 641 public MDRRuleGroup updateImpl(MDRRuleGroup mdrRuleGroup); 642 643 /** 644 * Returns the m d r rule group with the primary key or throws a {@link NoSuchRuleGroupException} if it could not be found. 645 * 646 * @param ruleGroupId the primary key of the m d r rule group 647 * @return the m d r rule group 648 * @throws NoSuchRuleGroupException if a m d r rule group with the primary key could not be found 649 */ 650 public MDRRuleGroup findByPrimaryKey(long ruleGroupId) 651 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupException; 652 653 /** 654 * Returns the m d r rule group with the primary key or returns <code>null</code> if it could not be found. 655 * 656 * @param ruleGroupId the primary key of the m d r rule group 657 * @return the m d r rule group, or <code>null</code> if a m d r rule group with the primary key could not be found 658 */ 659 public MDRRuleGroup fetchByPrimaryKey(long ruleGroupId); 660 661 @Override 662 public java.util.Map<java.io.Serializable, MDRRuleGroup> fetchByPrimaryKeys( 663 java.util.Set<java.io.Serializable> primaryKeys); 664 665 /** 666 * Returns all the m d r rule groups. 667 * 668 * @return the m d r rule groups 669 */ 670 public java.util.List<MDRRuleGroup> findAll(); 671 672 /** 673 * Returns a range of all the m d r rule groups. 674 * 675 * <p> 676 * 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 MDRRuleGroupModelImpl}. 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. 677 * </p> 678 * 679 * @param start the lower bound of the range of m d r rule groups 680 * @param end the upper bound of the range of m d r rule groups (not inclusive) 681 * @return the range of m d r rule groups 682 */ 683 public java.util.List<MDRRuleGroup> findAll(int start, int end); 684 685 /** 686 * Returns an ordered range of all the m d r rule groups. 687 * 688 * <p> 689 * 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 MDRRuleGroupModelImpl}. 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. 690 * </p> 691 * 692 * @param start the lower bound of the range of m d r rule groups 693 * @param end the upper bound of the range of m d r rule groups (not inclusive) 694 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 695 * @return the ordered range of m d r rule groups 696 */ 697 public java.util.List<MDRRuleGroup> findAll(int start, int end, 698 com.liferay.portal.kernel.util.OrderByComparator<MDRRuleGroup> orderByComparator); 699 700 /** 701 * Removes all the m d r rule groups from the database. 702 */ 703 public void removeAll(); 704 705 /** 706 * Returns the number of m d r rule groups. 707 * 708 * @return the number of m d r rule groups 709 */ 710 public int countAll(); 711 }