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