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.MDRRule; 022 023 /** 024 * The persistence interface for the m d r rule 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.MDRRulePersistenceImpl 032 * @see MDRRuleUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface MDRRulePersistence extends BasePersistence<MDRRule> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link MDRRuleUtil} to access the m d r rule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the m d r rules where uuid = ?. 045 * 046 * @param uuid the uuid 047 * @return the matching m d r rules 048 */ 049 public java.util.List<MDRRule> findByUuid(java.lang.String uuid); 050 051 /** 052 * Returns a range of all the m d r rules 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 MDRRuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 056 * </p> 057 * 058 * @param uuid the uuid 059 * @param start the lower bound of the range of m d r rules 060 * @param end the upper bound of the range of m d r rules (not inclusive) 061 * @return the range of matching m d r rules 062 */ 063 public java.util.List<MDRRule> findByUuid(java.lang.String uuid, int start, 064 int end); 065 066 /** 067 * Returns an ordered range of all the m d r rules 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 MDRRuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 071 * </p> 072 * 073 * @param uuid the uuid 074 * @param start the lower bound of the range of m d r rules 075 * @param end the upper bound of the range of m d r rules (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 rules 078 */ 079 public java.util.List<MDRRule> findByUuid(java.lang.String uuid, int start, 080 int end, 081 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator); 082 083 /** 084 * Returns the first m d r rule 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 089 * @throws NoSuchRuleException if a matching m d r rule could not be found 090 */ 091 public MDRRule findByUuid_First(java.lang.String uuid, 092 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) 093 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException; 094 095 /** 096 * Returns the first m d r rule 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, or <code>null</code> if a matching m d r rule could not be found 101 */ 102 public MDRRule fetchByUuid_First(java.lang.String uuid, 103 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator); 104 105 /** 106 * Returns the last m d r rule 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 111 * @throws NoSuchRuleException if a matching m d r rule could not be found 112 */ 113 public MDRRule findByUuid_Last(java.lang.String uuid, 114 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) 115 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException; 116 117 /** 118 * Returns the last m d r rule 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, or <code>null</code> if a matching m d r rule could not be found 123 */ 124 public MDRRule fetchByUuid_Last(java.lang.String uuid, 125 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator); 126 127 /** 128 * Returns the m d r rules before and after the current m d r rule in the ordered set where uuid = ?. 129 * 130 * @param ruleId the primary key of the current m d r rule 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 134 * @throws NoSuchRuleException if a m d r rule with the primary key could not be found 135 */ 136 public MDRRule[] findByUuid_PrevAndNext(long ruleId, java.lang.String uuid, 137 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) 138 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException; 139 140 /** 141 * Removes all the m d r rules where uuid = ? from the database. 142 * 143 * @param uuid the uuid 144 */ 145 public void removeByUuid(java.lang.String uuid); 146 147 /** 148 * Returns the number of m d r rules where uuid = ?. 149 * 150 * @param uuid the uuid 151 * @return the number of matching m d r rules 152 */ 153 public int countByUuid(java.lang.String uuid); 154 155 /** 156 * Returns the m d r rule where uuid = ? and groupId = ? or throws a {@link NoSuchRuleException} if it could not be found. 157 * 158 * @param uuid the uuid 159 * @param groupId the group ID 160 * @return the matching m d r rule 161 * @throws NoSuchRuleException if a matching m d r rule could not be found 162 */ 163 public MDRRule findByUUID_G(java.lang.String uuid, long groupId) 164 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException; 165 166 /** 167 * Returns the m d r rule where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 168 * 169 * @param uuid the uuid 170 * @param groupId the group ID 171 * @return the matching m d r rule, or <code>null</code> if a matching m d r rule could not be found 172 */ 173 public MDRRule fetchByUUID_G(java.lang.String uuid, long groupId); 174 175 /** 176 * Returns the m d r rule where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 177 * 178 * @param uuid the uuid 179 * @param groupId the group ID 180 * @param retrieveFromCache whether to use the finder cache 181 * @return the matching m d r rule, or <code>null</code> if a matching m d r rule could not be found 182 */ 183 public MDRRule fetchByUUID_G(java.lang.String uuid, long groupId, 184 boolean retrieveFromCache); 185 186 /** 187 * Removes the m d r rule where uuid = ? and groupId = ? from the database. 188 * 189 * @param uuid the uuid 190 * @param groupId the group ID 191 * @return the m d r rule that was removed 192 */ 193 public MDRRule removeByUUID_G(java.lang.String uuid, long groupId) 194 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException; 195 196 /** 197 * Returns the number of m d r rules where uuid = ? and groupId = ?. 198 * 199 * @param uuid the uuid 200 * @param groupId the group ID 201 * @return the number of matching m d r rules 202 */ 203 public int countByUUID_G(java.lang.String uuid, long groupId); 204 205 /** 206 * Returns all the m d r rules where uuid = ? and companyId = ?. 207 * 208 * @param uuid the uuid 209 * @param companyId the company ID 210 * @return the matching m d r rules 211 */ 212 public java.util.List<MDRRule> findByUuid_C(java.lang.String uuid, 213 long companyId); 214 215 /** 216 * Returns a range of all the m d r rules where uuid = ? and companyId = ?. 217 * 218 * <p> 219 * 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 MDRRuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 220 * </p> 221 * 222 * @param uuid the uuid 223 * @param companyId the company ID 224 * @param start the lower bound of the range of m d r rules 225 * @param end the upper bound of the range of m d r rules (not inclusive) 226 * @return the range of matching m d r rules 227 */ 228 public java.util.List<MDRRule> findByUuid_C(java.lang.String uuid, 229 long companyId, int start, int end); 230 231 /** 232 * Returns an ordered range of all the m d r rules where uuid = ? and companyId = ?. 233 * 234 * <p> 235 * 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 MDRRuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 236 * </p> 237 * 238 * @param uuid the uuid 239 * @param companyId the company ID 240 * @param start the lower bound of the range of m d r rules 241 * @param end the upper bound of the range of m d r rules (not inclusive) 242 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 243 * @return the ordered range of matching m d r rules 244 */ 245 public java.util.List<MDRRule> findByUuid_C(java.lang.String uuid, 246 long companyId, int start, int end, 247 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator); 248 249 /** 250 * Returns the first m d r rule in the ordered set where uuid = ? and companyId = ?. 251 * 252 * @param uuid the uuid 253 * @param companyId the company ID 254 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 255 * @return the first matching m d r rule 256 * @throws NoSuchRuleException if a matching m d r rule could not be found 257 */ 258 public MDRRule findByUuid_C_First(java.lang.String uuid, long companyId, 259 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) 260 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException; 261 262 /** 263 * Returns the first m d r rule in the ordered set where uuid = ? and companyId = ?. 264 * 265 * @param uuid the uuid 266 * @param companyId the company ID 267 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 268 * @return the first matching m d r rule, or <code>null</code> if a matching m d r rule could not be found 269 */ 270 public MDRRule fetchByUuid_C_First(java.lang.String uuid, long companyId, 271 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator); 272 273 /** 274 * Returns the last m d r rule in the ordered set where uuid = ? and companyId = ?. 275 * 276 * @param uuid the uuid 277 * @param companyId the company ID 278 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 279 * @return the last matching m d r rule 280 * @throws NoSuchRuleException if a matching m d r rule could not be found 281 */ 282 public MDRRule findByUuid_C_Last(java.lang.String uuid, long companyId, 283 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) 284 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException; 285 286 /** 287 * Returns the last m d r rule in the ordered set where uuid = ? and companyId = ?. 288 * 289 * @param uuid the uuid 290 * @param companyId the company ID 291 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 292 * @return the last matching m d r rule, or <code>null</code> if a matching m d r rule could not be found 293 */ 294 public MDRRule fetchByUuid_C_Last(java.lang.String uuid, long companyId, 295 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator); 296 297 /** 298 * Returns the m d r rules before and after the current m d r rule in the ordered set where uuid = ? and companyId = ?. 299 * 300 * @param ruleId the primary key of the current m d r rule 301 * @param uuid the uuid 302 * @param companyId the company ID 303 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 304 * @return the previous, current, and next m d r rule 305 * @throws NoSuchRuleException if a m d r rule with the primary key could not be found 306 */ 307 public MDRRule[] findByUuid_C_PrevAndNext(long ruleId, 308 java.lang.String uuid, long companyId, 309 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) 310 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException; 311 312 /** 313 * Removes all the m d r rules where uuid = ? and companyId = ? from the database. 314 * 315 * @param uuid the uuid 316 * @param companyId the company ID 317 */ 318 public void removeByUuid_C(java.lang.String uuid, long companyId); 319 320 /** 321 * Returns the number of m d r rules where uuid = ? and companyId = ?. 322 * 323 * @param uuid the uuid 324 * @param companyId the company ID 325 * @return the number of matching m d r rules 326 */ 327 public int countByUuid_C(java.lang.String uuid, long companyId); 328 329 /** 330 * Returns all the m d r rules where ruleGroupId = ?. 331 * 332 * @param ruleGroupId the rule group ID 333 * @return the matching m d r rules 334 */ 335 public java.util.List<MDRRule> findByRuleGroupId(long ruleGroupId); 336 337 /** 338 * Returns a range of all the m d r rules where ruleGroupId = ?. 339 * 340 * <p> 341 * 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 MDRRuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 342 * </p> 343 * 344 * @param ruleGroupId the rule group ID 345 * @param start the lower bound of the range of m d r rules 346 * @param end the upper bound of the range of m d r rules (not inclusive) 347 * @return the range of matching m d r rules 348 */ 349 public java.util.List<MDRRule> findByRuleGroupId(long ruleGroupId, 350 int start, int end); 351 352 /** 353 * Returns an ordered range of all the m d r rules where ruleGroupId = ?. 354 * 355 * <p> 356 * 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 MDRRuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 357 * </p> 358 * 359 * @param ruleGroupId the rule group ID 360 * @param start the lower bound of the range of m d r rules 361 * @param end the upper bound of the range of m d r rules (not inclusive) 362 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 363 * @return the ordered range of matching m d r rules 364 */ 365 public java.util.List<MDRRule> findByRuleGroupId(long ruleGroupId, 366 int start, int end, 367 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator); 368 369 /** 370 * Returns the first m d r rule in the ordered set where ruleGroupId = ?. 371 * 372 * @param ruleGroupId the rule group ID 373 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 374 * @return the first matching m d r rule 375 * @throws NoSuchRuleException if a matching m d r rule could not be found 376 */ 377 public MDRRule findByRuleGroupId_First(long ruleGroupId, 378 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) 379 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException; 380 381 /** 382 * Returns the first m d r rule in the ordered set where ruleGroupId = ?. 383 * 384 * @param ruleGroupId the rule group ID 385 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 386 * @return the first matching m d r rule, or <code>null</code> if a matching m d r rule could not be found 387 */ 388 public MDRRule fetchByRuleGroupId_First(long ruleGroupId, 389 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator); 390 391 /** 392 * Returns the last m d r rule in the ordered set where ruleGroupId = ?. 393 * 394 * @param ruleGroupId the rule group ID 395 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 396 * @return the last matching m d r rule 397 * @throws NoSuchRuleException if a matching m d r rule could not be found 398 */ 399 public MDRRule findByRuleGroupId_Last(long ruleGroupId, 400 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) 401 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException; 402 403 /** 404 * Returns the last m d r rule in the ordered set where ruleGroupId = ?. 405 * 406 * @param ruleGroupId the rule group ID 407 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 408 * @return the last matching m d r rule, or <code>null</code> if a matching m d r rule could not be found 409 */ 410 public MDRRule fetchByRuleGroupId_Last(long ruleGroupId, 411 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator); 412 413 /** 414 * Returns the m d r rules before and after the current m d r rule in the ordered set where ruleGroupId = ?. 415 * 416 * @param ruleId the primary key of the current m d r rule 417 * @param ruleGroupId the rule group ID 418 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 419 * @return the previous, current, and next m d r rule 420 * @throws NoSuchRuleException if a m d r rule with the primary key could not be found 421 */ 422 public MDRRule[] findByRuleGroupId_PrevAndNext(long ruleId, 423 long ruleGroupId, 424 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator) 425 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException; 426 427 /** 428 * Removes all the m d r rules where ruleGroupId = ? from the database. 429 * 430 * @param ruleGroupId the rule group ID 431 */ 432 public void removeByRuleGroupId(long ruleGroupId); 433 434 /** 435 * Returns the number of m d r rules where ruleGroupId = ?. 436 * 437 * @param ruleGroupId the rule group ID 438 * @return the number of matching m d r rules 439 */ 440 public int countByRuleGroupId(long ruleGroupId); 441 442 /** 443 * Caches the m d r rule in the entity cache if it is enabled. 444 * 445 * @param mdrRule the m d r rule 446 */ 447 public void cacheResult(MDRRule mdrRule); 448 449 /** 450 * Caches the m d r rules in the entity cache if it is enabled. 451 * 452 * @param mdrRules the m d r rules 453 */ 454 public void cacheResult(java.util.List<MDRRule> mdrRules); 455 456 /** 457 * Creates a new m d r rule with the primary key. Does not add the m d r rule to the database. 458 * 459 * @param ruleId the primary key for the new m d r rule 460 * @return the new m d r rule 461 */ 462 public MDRRule create(long ruleId); 463 464 /** 465 * Removes the m d r rule with the primary key from the database. Also notifies the appropriate model listeners. 466 * 467 * @param ruleId the primary key of the m d r rule 468 * @return the m d r rule that was removed 469 * @throws NoSuchRuleException if a m d r rule with the primary key could not be found 470 */ 471 public MDRRule remove(long ruleId) 472 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException; 473 474 public MDRRule updateImpl(MDRRule mdrRule); 475 476 /** 477 * Returns the m d r rule with the primary key or throws a {@link NoSuchRuleException} if it could not be found. 478 * 479 * @param ruleId the primary key of the m d r rule 480 * @return the m d r rule 481 * @throws NoSuchRuleException if a m d r rule with the primary key could not be found 482 */ 483 public MDRRule findByPrimaryKey(long ruleId) 484 throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException; 485 486 /** 487 * Returns the m d r rule with the primary key or returns <code>null</code> if it could not be found. 488 * 489 * @param ruleId the primary key of the m d r rule 490 * @return the m d r rule, or <code>null</code> if a m d r rule with the primary key could not be found 491 */ 492 public MDRRule fetchByPrimaryKey(long ruleId); 493 494 @Override 495 public java.util.Map<java.io.Serializable, MDRRule> fetchByPrimaryKeys( 496 java.util.Set<java.io.Serializable> primaryKeys); 497 498 /** 499 * Returns all the m d r rules. 500 * 501 * @return the m d r rules 502 */ 503 public java.util.List<MDRRule> findAll(); 504 505 /** 506 * Returns a range of all the m d r rules. 507 * 508 * <p> 509 * 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 MDRRuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 510 * </p> 511 * 512 * @param start the lower bound of the range of m d r rules 513 * @param end the upper bound of the range of m d r rules (not inclusive) 514 * @return the range of m d r rules 515 */ 516 public java.util.List<MDRRule> findAll(int start, int end); 517 518 /** 519 * Returns an ordered range of all the m d r rules. 520 * 521 * <p> 522 * 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 MDRRuleModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 523 * </p> 524 * 525 * @param start the lower bound of the range of m d r rules 526 * @param end the upper bound of the range of m d r rules (not inclusive) 527 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 528 * @return the ordered range of m d r rules 529 */ 530 public java.util.List<MDRRule> findAll(int start, int end, 531 com.liferay.portal.kernel.util.OrderByComparator<MDRRule> orderByComparator); 532 533 /** 534 * Removes all the m d r rules from the database. 535 */ 536 public void removeAll(); 537 538 /** 539 * Returns the number of m d r rules. 540 * 541 * @return the number of m d r rules 542 */ 543 public int countAll(); 544 }