001 /** 002 * Copyright (c) 2000-2012 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.dynamicdatalists.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion; 020 021 /** 022 * The persistence interface for the d d l record version service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see DDLRecordVersionPersistenceImpl 030 * @see DDLRecordVersionUtil 031 * @generated 032 */ 033 public interface DDLRecordVersionPersistence extends BasePersistence<DDLRecordVersion> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link DDLRecordVersionUtil} to access the d d l record version persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the d d l record version in the entity cache if it is enabled. 042 * 043 * @param ddlRecordVersion the d d l record version 044 */ 045 public void cacheResult( 046 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion); 047 048 /** 049 * Caches the d d l record versions in the entity cache if it is enabled. 050 * 051 * @param ddlRecordVersions the d d l record versions 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> ddlRecordVersions); 055 056 /** 057 * Creates a new d d l record version with the primary key. Does not add the d d l record version to the database. 058 * 059 * @param recordVersionId the primary key for the new d d l record version 060 * @return the new d d l record version 061 */ 062 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion create( 063 long recordVersionId); 064 065 /** 066 * Removes the d d l record version with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param recordVersionId the primary key of the d d l record version 069 * @return the d d l record version that was removed 070 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion remove( 074 long recordVersionId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 077 078 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion updateImpl( 079 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion) 080 throws com.liferay.portal.kernel.exception.SystemException; 081 082 /** 083 * Returns the d d l record version with the primary key or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException} if it could not be found. 084 * 085 * @param recordVersionId the primary key of the d d l record version 086 * @return the d d l record version 087 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 088 * @throws SystemException if a system exception occurred 089 */ 090 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByPrimaryKey( 091 long recordVersionId) 092 throws com.liferay.portal.kernel.exception.SystemException, 093 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 094 095 /** 096 * Returns the d d l record version with the primary key or returns <code>null</code> if it could not be found. 097 * 098 * @param recordVersionId the primary key of the d d l record version 099 * @return the d d l record version, or <code>null</code> if a d d l record version with the primary key could not be found 100 * @throws SystemException if a system exception occurred 101 */ 102 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByPrimaryKey( 103 long recordVersionId) 104 throws com.liferay.portal.kernel.exception.SystemException; 105 106 /** 107 * Returns all the d d l record versions where recordId = ?. 108 * 109 * @param recordId the record ID 110 * @return the matching d d l record versions 111 * @throws SystemException if a system exception occurred 112 */ 113 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId( 114 long recordId) 115 throws com.liferay.portal.kernel.exception.SystemException; 116 117 /** 118 * Returns a range of all the d d l record versions where recordId = ?. 119 * 120 * <p> 121 * 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. 122 * </p> 123 * 124 * @param recordId the record ID 125 * @param start the lower bound of the range of d d l record versions 126 * @param end the upper bound of the range of d d l record versions (not inclusive) 127 * @return the range of matching d d l record versions 128 * @throws SystemException if a system exception occurred 129 */ 130 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId( 131 long recordId, int start, int end) 132 throws com.liferay.portal.kernel.exception.SystemException; 133 134 /** 135 * Returns an ordered range of all the d d l record versions where recordId = ?. 136 * 137 * <p> 138 * 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. 139 * </p> 140 * 141 * @param recordId the record ID 142 * @param start the lower bound of the range of d d l record versions 143 * @param end the upper bound of the range of d d l record versions (not inclusive) 144 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 145 * @return the ordered range of matching d d l record versions 146 * @throws SystemException if a system exception occurred 147 */ 148 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId( 149 long recordId, int start, int end, 150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 151 throws com.liferay.portal.kernel.exception.SystemException; 152 153 /** 154 * Returns the first d d l record version in the ordered set where recordId = ?. 155 * 156 * @param recordId the record ID 157 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 158 * @return the first matching d d l record version 159 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 160 * @throws SystemException if a system exception occurred 161 */ 162 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_First( 163 long recordId, 164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 165 throws com.liferay.portal.kernel.exception.SystemException, 166 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 167 168 /** 169 * Returns the first d d l record version in the ordered set where recordId = ?. 170 * 171 * @param recordId the record ID 172 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 173 * @return the first matching d d l record version, or <code>null</code> if a matching d d l record version could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_First( 177 long recordId, 178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns the last d d l record version in the ordered set where recordId = ?. 183 * 184 * @param recordId the record ID 185 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 186 * @return the last matching d d l record version 187 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_Last( 191 long recordId, 192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 193 throws com.liferay.portal.kernel.exception.SystemException, 194 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 195 196 /** 197 * Returns the last d d l record version in the ordered set where recordId = ?. 198 * 199 * @param recordId the record ID 200 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 201 * @return the last matching d d l record version, or <code>null</code> if a matching d d l record version could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_Last( 205 long recordId, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException; 208 209 /** 210 * Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = ?. 211 * 212 * @param recordVersionId the primary key of the current d d l record version 213 * @param recordId the record ID 214 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 215 * @return the previous, current, and next d d l record version 216 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 217 * @throws SystemException if a system exception occurred 218 */ 219 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByRecordId_PrevAndNext( 220 long recordVersionId, long recordId, 221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 222 throws com.liferay.portal.kernel.exception.SystemException, 223 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 224 225 /** 226 * Returns the d d l record version where recordId = ? and version = ? or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException} if it could not be found. 227 * 228 * @param recordId the record ID 229 * @param version the version 230 * @return the matching d d l record version 231 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 232 * @throws SystemException if a system exception occurred 233 */ 234 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_V( 235 long recordId, java.lang.String version) 236 throws com.liferay.portal.kernel.exception.SystemException, 237 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 238 239 /** 240 * Returns the d d l record version where recordId = ? and version = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 241 * 242 * @param recordId the record ID 243 * @param version the version 244 * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found 245 * @throws SystemException if a system exception occurred 246 */ 247 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V( 248 long recordId, java.lang.String version) 249 throws com.liferay.portal.kernel.exception.SystemException; 250 251 /** 252 * Returns the d d l record version where recordId = ? and version = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 253 * 254 * @param recordId the record ID 255 * @param version the version 256 * @param retrieveFromCache whether to use the finder cache 257 * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found 258 * @throws SystemException if a system exception occurred 259 */ 260 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V( 261 long recordId, java.lang.String version, boolean retrieveFromCache) 262 throws com.liferay.portal.kernel.exception.SystemException; 263 264 /** 265 * Returns all the d d l record versions where recordId = ? and status = ?. 266 * 267 * @param recordId the record ID 268 * @param status the status 269 * @return the matching d d l record versions 270 * @throws SystemException if a system exception occurred 271 */ 272 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S( 273 long recordId, int status) 274 throws com.liferay.portal.kernel.exception.SystemException; 275 276 /** 277 * Returns a range of all the d d l record versions where recordId = ? and status = ?. 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 recordId the record ID 284 * @param status the status 285 * @param start the lower bound of the range of d d l record versions 286 * @param end the upper bound of the range of d d l record versions (not inclusive) 287 * @return the range of matching d d l record versions 288 * @throws SystemException if a system exception occurred 289 */ 290 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S( 291 long recordId, int status, int start, int end) 292 throws com.liferay.portal.kernel.exception.SystemException; 293 294 /** 295 * Returns an ordered range of all the d d l record versions where recordId = ? and status = ?. 296 * 297 * <p> 298 * 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. 299 * </p> 300 * 301 * @param recordId the record ID 302 * @param status the status 303 * @param start the lower bound of the range of d d l record versions 304 * @param end the upper bound of the range of d d l record versions (not inclusive) 305 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 306 * @return the ordered range of matching d d l record versions 307 * @throws SystemException if a system exception occurred 308 */ 309 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S( 310 long recordId, int status, int start, int end, 311 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 312 throws com.liferay.portal.kernel.exception.SystemException; 313 314 /** 315 * Returns the first d d l record version in the ordered set where recordId = ? and status = ?. 316 * 317 * @param recordId the record ID 318 * @param status the status 319 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 320 * @return the first matching d d l record version 321 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 322 * @throws SystemException if a system exception occurred 323 */ 324 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_First( 325 long recordId, int status, 326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 327 throws com.liferay.portal.kernel.exception.SystemException, 328 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 329 330 /** 331 * Returns the first d d l record version in the ordered set where recordId = ? and status = ?. 332 * 333 * @param recordId the record ID 334 * @param status the status 335 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 336 * @return the first matching d d l record version, or <code>null</code> if a matching d d l record version could not be found 337 * @throws SystemException if a system exception occurred 338 */ 339 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_First( 340 long recordId, int status, 341 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 342 throws com.liferay.portal.kernel.exception.SystemException; 343 344 /** 345 * Returns the last d d l record version in the ordered set where recordId = ? and status = ?. 346 * 347 * @param recordId the record ID 348 * @param status the status 349 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 350 * @return the last matching d d l record version 351 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 352 * @throws SystemException if a system exception occurred 353 */ 354 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_Last( 355 long recordId, int status, 356 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 357 throws com.liferay.portal.kernel.exception.SystemException, 358 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 359 360 /** 361 * Returns the last d d l record version in the ordered set where recordId = ? and status = ?. 362 * 363 * @param recordId the record ID 364 * @param status the status 365 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 366 * @return the last matching d d l record version, or <code>null</code> if a matching d d l record version could not be found 367 * @throws SystemException if a system exception occurred 368 */ 369 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_Last( 370 long recordId, int status, 371 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 372 throws com.liferay.portal.kernel.exception.SystemException; 373 374 /** 375 * Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = ? and status = ?. 376 * 377 * @param recordVersionId the primary key of the current d d l record version 378 * @param recordId the record ID 379 * @param status the status 380 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 381 * @return the previous, current, and next d d l record version 382 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 383 * @throws SystemException if a system exception occurred 384 */ 385 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByR_S_PrevAndNext( 386 long recordVersionId, long recordId, int status, 387 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 388 throws com.liferay.portal.kernel.exception.SystemException, 389 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 390 391 /** 392 * Returns all the d d l record versions. 393 * 394 * @return the d d l record versions 395 * @throws SystemException if a system exception occurred 396 */ 397 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll() 398 throws com.liferay.portal.kernel.exception.SystemException; 399 400 /** 401 * Returns a range of all the d d l record versions. 402 * 403 * <p> 404 * 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. 405 * </p> 406 * 407 * @param start the lower bound of the range of d d l record versions 408 * @param end the upper bound of the range of d d l record versions (not inclusive) 409 * @return the range of d d l record versions 410 * @throws SystemException if a system exception occurred 411 */ 412 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll( 413 int start, int end) 414 throws com.liferay.portal.kernel.exception.SystemException; 415 416 /** 417 * Returns an ordered range of all the d d l record versions. 418 * 419 * <p> 420 * 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. 421 * </p> 422 * 423 * @param start the lower bound of the range of d d l record versions 424 * @param end the upper bound of the range of d d l record versions (not inclusive) 425 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 426 * @return the ordered range of d d l record versions 427 * @throws SystemException if a system exception occurred 428 */ 429 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll( 430 int start, int end, 431 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 432 throws com.liferay.portal.kernel.exception.SystemException; 433 434 /** 435 * Removes all the d d l record versions where recordId = ? from the database. 436 * 437 * @param recordId the record ID 438 * @throws SystemException if a system exception occurred 439 */ 440 public void removeByRecordId(long recordId) 441 throws com.liferay.portal.kernel.exception.SystemException; 442 443 /** 444 * Removes the d d l record version where recordId = ? and version = ? from the database. 445 * 446 * @param recordId the record ID 447 * @param version the version 448 * @return the d d l record version that was removed 449 * @throws SystemException if a system exception occurred 450 */ 451 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion removeByR_V( 452 long recordId, java.lang.String version) 453 throws com.liferay.portal.kernel.exception.SystemException, 454 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 455 456 /** 457 * Removes all the d d l record versions where recordId = ? and status = ? from the database. 458 * 459 * @param recordId the record ID 460 * @param status the status 461 * @throws SystemException if a system exception occurred 462 */ 463 public void removeByR_S(long recordId, int status) 464 throws com.liferay.portal.kernel.exception.SystemException; 465 466 /** 467 * Removes all the d d l record versions from the database. 468 * 469 * @throws SystemException if a system exception occurred 470 */ 471 public void removeAll() 472 throws com.liferay.portal.kernel.exception.SystemException; 473 474 /** 475 * Returns the number of d d l record versions where recordId = ?. 476 * 477 * @param recordId the record ID 478 * @return the number of matching d d l record versions 479 * @throws SystemException if a system exception occurred 480 */ 481 public int countByRecordId(long recordId) 482 throws com.liferay.portal.kernel.exception.SystemException; 483 484 /** 485 * Returns the number of d d l record versions where recordId = ? and version = ?. 486 * 487 * @param recordId the record ID 488 * @param version the version 489 * @return the number of matching d d l record versions 490 * @throws SystemException if a system exception occurred 491 */ 492 public int countByR_V(long recordId, java.lang.String version) 493 throws com.liferay.portal.kernel.exception.SystemException; 494 495 /** 496 * Returns the number of d d l record versions where recordId = ? and status = ?. 497 * 498 * @param recordId the record ID 499 * @param status the status 500 * @return the number of matching d d l record versions 501 * @throws SystemException if a system exception occurred 502 */ 503 public int countByR_S(long recordId, int status) 504 throws com.liferay.portal.kernel.exception.SystemException; 505 506 /** 507 * Returns the number of d d l record versions. 508 * 509 * @return the number of d d l record versions 510 * @throws SystemException if a system exception occurred 511 */ 512 public int countAll() 513 throws com.liferay.portal.kernel.exception.SystemException; 514 }