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