001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.mobiledevicerules.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.mobiledevicerules.model.MDRAction; 020 021 /** 022 * The persistence interface for the m d r action service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Edward C. Han 029 * @see MDRActionPersistenceImpl 030 * @see MDRActionUtil 031 * @generated 032 */ 033 public interface MDRActionPersistence extends BasePersistence<MDRAction> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link MDRActionUtil} to access the m d r action persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the m d r action in the entity cache if it is enabled. 042 * 043 * @param mdrAction the m d r action 044 */ 045 public void cacheResult( 046 com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction); 047 048 /** 049 * Caches the m d r actions in the entity cache if it is enabled. 050 * 051 * @param mdrActions the m d r actions 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> mdrActions); 055 056 /** 057 * Creates a new m d r action with the primary key. Does not add the m d r action to the database. 058 * 059 * @param actionId the primary key for the new m d r action 060 * @return the new m d r action 061 */ 062 public com.liferay.portlet.mobiledevicerules.model.MDRAction create( 063 long actionId); 064 065 /** 066 * Removes the m d r action with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param actionId the primary key of the m d r action 069 * @return the m d r action that was removed 070 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.mobiledevicerules.model.MDRAction remove( 074 long actionId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.mobiledevicerules.NoSuchActionException; 077 078 public com.liferay.portlet.mobiledevicerules.model.MDRAction updateImpl( 079 com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction, 080 boolean merge) 081 throws com.liferay.portal.kernel.exception.SystemException; 082 083 /** 084 * Returns the m d r action with the primary key or throws a {@link com.liferay.portlet.mobiledevicerules.NoSuchActionException} if it could not be found. 085 * 086 * @param actionId the primary key of the m d r action 087 * @return the m d r action 088 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found 089 * @throws SystemException if a system exception occurred 090 */ 091 public com.liferay.portlet.mobiledevicerules.model.MDRAction findByPrimaryKey( 092 long actionId) 093 throws com.liferay.portal.kernel.exception.SystemException, 094 com.liferay.portlet.mobiledevicerules.NoSuchActionException; 095 096 /** 097 * Returns the m d r action with the primary key or returns <code>null</code> if it could not be found. 098 * 099 * @param actionId the primary key of the m d r action 100 * @return the m d r action, or <code>null</code> if a m d r action with the primary key could not be found 101 * @throws SystemException if a system exception occurred 102 */ 103 public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByPrimaryKey( 104 long actionId) 105 throws com.liferay.portal.kernel.exception.SystemException; 106 107 /** 108 * Returns all the m d r actions where uuid = ?. 109 * 110 * @param uuid the uuid 111 * @return the matching m d r actions 112 * @throws SystemException if a system exception occurred 113 */ 114 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid( 115 java.lang.String uuid) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns a range of all the m d r actions where uuid = ?. 120 * 121 * <p> 122 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 123 * </p> 124 * 125 * @param uuid the uuid 126 * @param start the lower bound of the range of m d r actions 127 * @param end the upper bound of the range of m d r actions (not inclusive) 128 * @return the range of matching m d r actions 129 * @throws SystemException if a system exception occurred 130 */ 131 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid( 132 java.lang.String uuid, int start, int end) 133 throws com.liferay.portal.kernel.exception.SystemException; 134 135 /** 136 * Returns an ordered range of all the m d r actions where uuid = ?. 137 * 138 * <p> 139 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 140 * </p> 141 * 142 * @param uuid the uuid 143 * @param start the lower bound of the range of m d r actions 144 * @param end the upper bound of the range of m d r actions (not inclusive) 145 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 146 * @return the ordered range of matching m d r actions 147 * @throws SystemException if a system exception occurred 148 */ 149 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid( 150 java.lang.String uuid, int start, int end, 151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 152 throws com.liferay.portal.kernel.exception.SystemException; 153 154 /** 155 * Returns the first m d r action in the ordered set where uuid = ?. 156 * 157 * @param uuid the uuid 158 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 159 * @return the first matching m d r action 160 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 161 * @throws SystemException if a system exception occurred 162 */ 163 public com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_First( 164 java.lang.String uuid, 165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 166 throws com.liferay.portal.kernel.exception.SystemException, 167 com.liferay.portlet.mobiledevicerules.NoSuchActionException; 168 169 /** 170 * Returns the first m d r action in the ordered set where uuid = ?. 171 * 172 * @param uuid the uuid 173 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 174 * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found 175 * @throws SystemException if a system exception occurred 176 */ 177 public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_First( 178 java.lang.String uuid, 179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 180 throws com.liferay.portal.kernel.exception.SystemException; 181 182 /** 183 * Returns the last m d r action in the ordered set where uuid = ?. 184 * 185 * @param uuid the uuid 186 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 187 * @return the last matching m d r action 188 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 189 * @throws SystemException if a system exception occurred 190 */ 191 public com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_Last( 192 java.lang.String uuid, 193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 194 throws com.liferay.portal.kernel.exception.SystemException, 195 com.liferay.portlet.mobiledevicerules.NoSuchActionException; 196 197 /** 198 * Returns the last m d r action in the ordered set where uuid = ?. 199 * 200 * @param uuid the uuid 201 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 202 * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found 203 * @throws SystemException if a system exception occurred 204 */ 205 public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_Last( 206 java.lang.String uuid, 207 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 208 throws com.liferay.portal.kernel.exception.SystemException; 209 210 /** 211 * Returns the m d r actions before and after the current m d r action in the ordered set where uuid = ?. 212 * 213 * @param actionId the primary key of the current m d r action 214 * @param uuid the uuid 215 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 216 * @return the previous, current, and next m d r action 217 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found 218 * @throws SystemException if a system exception occurred 219 */ 220 public com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByUuid_PrevAndNext( 221 long actionId, java.lang.String uuid, 222 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 223 throws com.liferay.portal.kernel.exception.SystemException, 224 com.liferay.portlet.mobiledevicerules.NoSuchActionException; 225 226 /** 227 * Returns the m d r action where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.mobiledevicerules.NoSuchActionException} if it could not be found. 228 * 229 * @param uuid the uuid 230 * @param groupId the group ID 231 * @return the matching m d r action 232 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 233 * @throws SystemException if a system exception occurred 234 */ 235 public com.liferay.portlet.mobiledevicerules.model.MDRAction findByUUID_G( 236 java.lang.String uuid, long groupId) 237 throws com.liferay.portal.kernel.exception.SystemException, 238 com.liferay.portlet.mobiledevicerules.NoSuchActionException; 239 240 /** 241 * Returns the m d r action where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 242 * 243 * @param uuid the uuid 244 * @param groupId the group ID 245 * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found 246 * @throws SystemException if a system exception occurred 247 */ 248 public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUUID_G( 249 java.lang.String uuid, long groupId) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Returns the m d r action where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 254 * 255 * @param uuid the uuid 256 * @param groupId the group ID 257 * @param retrieveFromCache whether to use the finder cache 258 * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found 259 * @throws SystemException if a system exception occurred 260 */ 261 public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUUID_G( 262 java.lang.String uuid, long groupId, boolean retrieveFromCache) 263 throws com.liferay.portal.kernel.exception.SystemException; 264 265 /** 266 * Returns all the m d r actions where ruleGroupInstanceId = ?. 267 * 268 * @param ruleGroupInstanceId the rule group instance ID 269 * @return the matching m d r actions 270 * @throws SystemException if a system exception occurred 271 */ 272 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId( 273 long ruleGroupInstanceId) 274 throws com.liferay.portal.kernel.exception.SystemException; 275 276 /** 277 * Returns a range of all the m d r actions where ruleGroupInstanceId = ?. 278 * 279 * <p> 280 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 281 * </p> 282 * 283 * @param ruleGroupInstanceId the rule group instance ID 284 * @param start the lower bound of the range of m d r actions 285 * @param end the upper bound of the range of m d r actions (not inclusive) 286 * @return the range of matching m d r actions 287 * @throws SystemException if a system exception occurred 288 */ 289 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId( 290 long ruleGroupInstanceId, int start, int end) 291 throws com.liferay.portal.kernel.exception.SystemException; 292 293 /** 294 * Returns an ordered range of all the m d r actions where ruleGroupInstanceId = ?. 295 * 296 * <p> 297 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 298 * </p> 299 * 300 * @param ruleGroupInstanceId the rule group instance ID 301 * @param start the lower bound of the range of m d r actions 302 * @param end the upper bound of the range of m d r actions (not inclusive) 303 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 304 * @return the ordered range of matching m d r actions 305 * @throws SystemException if a system exception occurred 306 */ 307 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId( 308 long ruleGroupInstanceId, int start, int end, 309 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 310 throws com.liferay.portal.kernel.exception.SystemException; 311 312 /** 313 * Returns the first m d r action in the ordered set where ruleGroupInstanceId = ?. 314 * 315 * @param ruleGroupInstanceId the rule group instance ID 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the first matching m d r action 318 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public com.liferay.portlet.mobiledevicerules.model.MDRAction findByRuleGroupInstanceId_First( 322 long ruleGroupInstanceId, 323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.mobiledevicerules.NoSuchActionException; 326 327 /** 328 * Returns the first m d r action in the ordered set where ruleGroupInstanceId = ?. 329 * 330 * @param ruleGroupInstanceId the rule group instance ID 331 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 332 * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found 333 * @throws SystemException if a system exception occurred 334 */ 335 public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByRuleGroupInstanceId_First( 336 long ruleGroupInstanceId, 337 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 338 throws com.liferay.portal.kernel.exception.SystemException; 339 340 /** 341 * Returns the last m d r action in the ordered set where ruleGroupInstanceId = ?. 342 * 343 * @param ruleGroupInstanceId the rule group instance ID 344 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 345 * @return the last matching m d r action 346 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found 347 * @throws SystemException if a system exception occurred 348 */ 349 public com.liferay.portlet.mobiledevicerules.model.MDRAction findByRuleGroupInstanceId_Last( 350 long ruleGroupInstanceId, 351 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 352 throws com.liferay.portal.kernel.exception.SystemException, 353 com.liferay.portlet.mobiledevicerules.NoSuchActionException; 354 355 /** 356 * Returns the last m d r action in the ordered set where ruleGroupInstanceId = ?. 357 * 358 * @param ruleGroupInstanceId the rule group instance ID 359 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 360 * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found 361 * @throws SystemException if a system exception occurred 362 */ 363 public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByRuleGroupInstanceId_Last( 364 long ruleGroupInstanceId, 365 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 366 throws com.liferay.portal.kernel.exception.SystemException; 367 368 /** 369 * Returns the m d r actions before and after the current m d r action in the ordered set where ruleGroupInstanceId = ?. 370 * 371 * @param actionId the primary key of the current m d r action 372 * @param ruleGroupInstanceId the rule group instance ID 373 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 374 * @return the previous, current, and next m d r action 375 * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found 376 * @throws SystemException if a system exception occurred 377 */ 378 public com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByRuleGroupInstanceId_PrevAndNext( 379 long actionId, long ruleGroupInstanceId, 380 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 381 throws com.liferay.portal.kernel.exception.SystemException, 382 com.liferay.portlet.mobiledevicerules.NoSuchActionException; 383 384 /** 385 * Returns all the m d r actions. 386 * 387 * @return the m d r actions 388 * @throws SystemException if a system exception occurred 389 */ 390 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll() 391 throws com.liferay.portal.kernel.exception.SystemException; 392 393 /** 394 * Returns a range of all the m d r actions. 395 * 396 * <p> 397 * 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. 398 * </p> 399 * 400 * @param start the lower bound of the range of m d r actions 401 * @param end the upper bound of the range of m d r actions (not inclusive) 402 * @return the range of m d r actions 403 * @throws SystemException if a system exception occurred 404 */ 405 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll( 406 int start, int end) 407 throws com.liferay.portal.kernel.exception.SystemException; 408 409 /** 410 * Returns an ordered range of all the m d r actions. 411 * 412 * <p> 413 * 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. 414 * </p> 415 * 416 * @param start the lower bound of the range of m d r actions 417 * @param end the upper bound of the range of m d r actions (not inclusive) 418 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 419 * @return the ordered range of m d r actions 420 * @throws SystemException if a system exception occurred 421 */ 422 public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll( 423 int start, int end, 424 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 425 throws com.liferay.portal.kernel.exception.SystemException; 426 427 /** 428 * Removes all the m d r actions where uuid = ? from the database. 429 * 430 * @param uuid the uuid 431 * @throws SystemException if a system exception occurred 432 */ 433 public void removeByUuid(java.lang.String uuid) 434 throws com.liferay.portal.kernel.exception.SystemException; 435 436 /** 437 * Removes the m d r action where uuid = ? and groupId = ? from the database. 438 * 439 * @param uuid the uuid 440 * @param groupId the group ID 441 * @return the m d r action that was removed 442 * @throws SystemException if a system exception occurred 443 */ 444 public com.liferay.portlet.mobiledevicerules.model.MDRAction removeByUUID_G( 445 java.lang.String uuid, long groupId) 446 throws com.liferay.portal.kernel.exception.SystemException, 447 com.liferay.portlet.mobiledevicerules.NoSuchActionException; 448 449 /** 450 * Removes all the m d r actions where ruleGroupInstanceId = ? from the database. 451 * 452 * @param ruleGroupInstanceId the rule group instance ID 453 * @throws SystemException if a system exception occurred 454 */ 455 public void removeByRuleGroupInstanceId(long ruleGroupInstanceId) 456 throws com.liferay.portal.kernel.exception.SystemException; 457 458 /** 459 * Removes all the m d r actions from the database. 460 * 461 * @throws SystemException if a system exception occurred 462 */ 463 public void removeAll() 464 throws com.liferay.portal.kernel.exception.SystemException; 465 466 /** 467 * Returns the number of m d r actions where uuid = ?. 468 * 469 * @param uuid the uuid 470 * @return the number of matching m d r actions 471 * @throws SystemException if a system exception occurred 472 */ 473 public int countByUuid(java.lang.String uuid) 474 throws com.liferay.portal.kernel.exception.SystemException; 475 476 /** 477 * Returns the number of m d r actions where uuid = ? and groupId = ?. 478 * 479 * @param uuid the uuid 480 * @param groupId the group ID 481 * @return the number of matching m d r actions 482 * @throws SystemException if a system exception occurred 483 */ 484 public int countByUUID_G(java.lang.String uuid, long groupId) 485 throws com.liferay.portal.kernel.exception.SystemException; 486 487 /** 488 * Returns the number of m d r actions where ruleGroupInstanceId = ?. 489 * 490 * @param ruleGroupInstanceId the rule group instance ID 491 * @return the number of matching m d r actions 492 * @throws SystemException if a system exception occurred 493 */ 494 public int countByRuleGroupInstanceId(long ruleGroupInstanceId) 495 throws com.liferay.portal.kernel.exception.SystemException; 496 497 /** 498 * Returns the number of m d r actions. 499 * 500 * @return the number of m d r actions 501 * @throws SystemException if a system exception occurred 502 */ 503 public int countAll() 504 throws com.liferay.portal.kernel.exception.SystemException; 505 }