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.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 boolean merge) 081 throws com.liferay.portal.kernel.exception.SystemException; 082 083 /** 084 * 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. 085 * 086 * @param recordVersionId the primary key of the d d l record version 087 * @return the d d l record version 088 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 089 * @throws SystemException if a system exception occurred 090 */ 091 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByPrimaryKey( 092 long recordVersionId) 093 throws com.liferay.portal.kernel.exception.SystemException, 094 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 095 096 /** 097 * Returns the d d l record version with the primary key or returns <code>null</code> if it could not be found. 098 * 099 * @param recordVersionId the primary key of the d d l record version 100 * @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 101 * @throws SystemException if a system exception occurred 102 */ 103 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByPrimaryKey( 104 long recordVersionId) 105 throws com.liferay.portal.kernel.exception.SystemException; 106 107 /** 108 * Returns all the d d l record versions where recordId = ?. 109 * 110 * @param recordId the record ID 111 * @return the matching d d l record versions 112 * @throws SystemException if a system exception occurred 113 */ 114 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId( 115 long recordId) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns a range of all the d d l record versions where recordId = ?. 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 recordId the record ID 126 * @param start the lower bound of the range of d d l record versions 127 * @param end the upper bound of the range of d d l record versions (not inclusive) 128 * @return the range of matching d d l record versions 129 * @throws SystemException if a system exception occurred 130 */ 131 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId( 132 long recordId, int start, int end) 133 throws com.liferay.portal.kernel.exception.SystemException; 134 135 /** 136 * Returns an ordered range of all the d d l record versions where recordId = ?. 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 recordId the record ID 143 * @param start the lower bound of the range of d d l record versions 144 * @param end the upper bound of the range of d d l record versions (not inclusive) 145 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 146 * @return the ordered range of matching d d l record versions 147 * @throws SystemException if a system exception occurred 148 */ 149 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId( 150 long recordId, 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 d d l record version in the ordered set where recordId = ?. 156 * 157 * @param recordId the record ID 158 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 159 * @return the first matching d d l record version 160 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 161 * @throws SystemException if a system exception occurred 162 */ 163 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_First( 164 long recordId, 165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 166 throws com.liferay.portal.kernel.exception.SystemException, 167 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 168 169 /** 170 * Returns the first d d l record version in the ordered set where recordId = ?. 171 * 172 * @param recordId the record ID 173 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 174 * @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 175 * @throws SystemException if a system exception occurred 176 */ 177 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_First( 178 long recordId, 179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 180 throws com.liferay.portal.kernel.exception.SystemException; 181 182 /** 183 * Returns the last d d l record version in the ordered set where recordId = ?. 184 * 185 * @param recordId the record ID 186 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 187 * @return the last matching d d l record version 188 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 189 * @throws SystemException if a system exception occurred 190 */ 191 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_Last( 192 long recordId, 193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 194 throws com.liferay.portal.kernel.exception.SystemException, 195 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 196 197 /** 198 * Returns the last d d l record version in the ordered set where recordId = ?. 199 * 200 * @param recordId the record ID 201 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 202 * @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 203 * @throws SystemException if a system exception occurred 204 */ 205 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_Last( 206 long recordId, 207 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 208 throws com.liferay.portal.kernel.exception.SystemException; 209 210 /** 211 * Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = ?. 212 * 213 * @param recordVersionId the primary key of the current d d l record version 214 * @param recordId the record ID 215 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 216 * @return the previous, current, and next d d l record version 217 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 218 * @throws SystemException if a system exception occurred 219 */ 220 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByRecordId_PrevAndNext( 221 long recordVersionId, long recordId, 222 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 223 throws com.liferay.portal.kernel.exception.SystemException, 224 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 225 226 /** 227 * 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. 228 * 229 * @param recordId the record ID 230 * @param version the version 231 * @return the matching d d l record version 232 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 233 * @throws SystemException if a system exception occurred 234 */ 235 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_V( 236 long recordId, java.lang.String version) 237 throws com.liferay.portal.kernel.exception.SystemException, 238 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 239 240 /** 241 * 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. 242 * 243 * @param recordId the record ID 244 * @param version the version 245 * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found 246 * @throws SystemException if a system exception occurred 247 */ 248 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V( 249 long recordId, java.lang.String version) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * 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. 254 * 255 * @param recordId the record ID 256 * @param version the version 257 * @param retrieveFromCache whether to use the finder cache 258 * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found 259 * @throws SystemException if a system exception occurred 260 */ 261 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V( 262 long recordId, java.lang.String version, boolean retrieveFromCache) 263 throws com.liferay.portal.kernel.exception.SystemException; 264 265 /** 266 * Returns all the d d l record versions where recordId = ? and status = ?. 267 * 268 * @param recordId the record ID 269 * @param status the status 270 * @return the matching d d l record versions 271 * @throws SystemException if a system exception occurred 272 */ 273 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S( 274 long recordId, int status) 275 throws com.liferay.portal.kernel.exception.SystemException; 276 277 /** 278 * Returns a range of all the d d l record versions where recordId = ? and status = ?. 279 * 280 * <p> 281 * 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. 282 * </p> 283 * 284 * @param recordId the record ID 285 * @param status the status 286 * @param start the lower bound of the range of d d l record versions 287 * @param end the upper bound of the range of d d l record versions (not inclusive) 288 * @return the range of matching d d l record versions 289 * @throws SystemException if a system exception occurred 290 */ 291 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S( 292 long recordId, int status, int start, int end) 293 throws com.liferay.portal.kernel.exception.SystemException; 294 295 /** 296 * Returns an ordered range of all the d d l record versions where recordId = ? and status = ?. 297 * 298 * <p> 299 * 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. 300 * </p> 301 * 302 * @param recordId the record ID 303 * @param status the status 304 * @param start the lower bound of the range of d d l record versions 305 * @param end the upper bound of the range of d d l record versions (not inclusive) 306 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 307 * @return the ordered range of matching d d l record versions 308 * @throws SystemException if a system exception occurred 309 */ 310 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S( 311 long recordId, int status, int start, int end, 312 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 313 throws com.liferay.portal.kernel.exception.SystemException; 314 315 /** 316 * Returns the first d d l record version in the ordered set where recordId = ? and status = ?. 317 * 318 * @param recordId the record ID 319 * @param status the status 320 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 321 * @return the first matching d d l record version 322 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 323 * @throws SystemException if a system exception occurred 324 */ 325 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_First( 326 long recordId, int status, 327 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 328 throws com.liferay.portal.kernel.exception.SystemException, 329 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 330 331 /** 332 * Returns the first d d l record version in the ordered set where recordId = ? and status = ?. 333 * 334 * @param recordId the record ID 335 * @param status the status 336 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 337 * @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 338 * @throws SystemException if a system exception occurred 339 */ 340 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_First( 341 long recordId, int status, 342 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 343 throws com.liferay.portal.kernel.exception.SystemException; 344 345 /** 346 * Returns the last d d l record version in the ordered set where recordId = ? and status = ?. 347 * 348 * @param recordId the record ID 349 * @param status the status 350 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 351 * @return the last matching d d l record version 352 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 353 * @throws SystemException if a system exception occurred 354 */ 355 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_Last( 356 long recordId, int status, 357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 358 throws com.liferay.portal.kernel.exception.SystemException, 359 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 360 361 /** 362 * Returns the last d d l record version in the ordered set where recordId = ? and status = ?. 363 * 364 * @param recordId the record ID 365 * @param status the status 366 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 367 * @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 368 * @throws SystemException if a system exception occurred 369 */ 370 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_Last( 371 long recordId, int status, 372 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 373 throws com.liferay.portal.kernel.exception.SystemException; 374 375 /** 376 * 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 = ?. 377 * 378 * @param recordVersionId the primary key of the current d d l record version 379 * @param recordId the record ID 380 * @param status the status 381 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 382 * @return the previous, current, and next d d l record version 383 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 384 * @throws SystemException if a system exception occurred 385 */ 386 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByR_S_PrevAndNext( 387 long recordVersionId, long recordId, int status, 388 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 389 throws com.liferay.portal.kernel.exception.SystemException, 390 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 391 392 /** 393 * Returns all the d d l record versions. 394 * 395 * @return the d d l record versions 396 * @throws SystemException if a system exception occurred 397 */ 398 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll() 399 throws com.liferay.portal.kernel.exception.SystemException; 400 401 /** 402 * Returns a range of all the d d l record versions. 403 * 404 * <p> 405 * 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. 406 * </p> 407 * 408 * @param start the lower bound of the range of d d l record versions 409 * @param end the upper bound of the range of d d l record versions (not inclusive) 410 * @return the range of d d l record versions 411 * @throws SystemException if a system exception occurred 412 */ 413 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll( 414 int start, int end) 415 throws com.liferay.portal.kernel.exception.SystemException; 416 417 /** 418 * Returns an ordered range of all the d d l record versions. 419 * 420 * <p> 421 * 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. 422 * </p> 423 * 424 * @param start the lower bound of the range of d d l record versions 425 * @param end the upper bound of the range of d d l record versions (not inclusive) 426 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 427 * @return the ordered range of d d l record versions 428 * @throws SystemException if a system exception occurred 429 */ 430 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll( 431 int start, int end, 432 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 433 throws com.liferay.portal.kernel.exception.SystemException; 434 435 /** 436 * Removes all the d d l record versions where recordId = ? from the database. 437 * 438 * @param recordId the record ID 439 * @throws SystemException if a system exception occurred 440 */ 441 public void removeByRecordId(long recordId) 442 throws com.liferay.portal.kernel.exception.SystemException; 443 444 /** 445 * Removes the d d l record version where recordId = ? and version = ? from the database. 446 * 447 * @param recordId the record ID 448 * @param version the version 449 * @return the d d l record version that was removed 450 * @throws SystemException if a system exception occurred 451 */ 452 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion removeByR_V( 453 long recordId, java.lang.String version) 454 throws com.liferay.portal.kernel.exception.SystemException, 455 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 456 457 /** 458 * Removes all the d d l record versions where recordId = ? and status = ? from the database. 459 * 460 * @param recordId the record ID 461 * @param status the status 462 * @throws SystemException if a system exception occurred 463 */ 464 public void removeByR_S(long recordId, int status) 465 throws com.liferay.portal.kernel.exception.SystemException; 466 467 /** 468 * Removes all the d d l record versions from the database. 469 * 470 * @throws SystemException if a system exception occurred 471 */ 472 public void removeAll() 473 throws com.liferay.portal.kernel.exception.SystemException; 474 475 /** 476 * Returns the number of d d l record versions where recordId = ?. 477 * 478 * @param recordId the record ID 479 * @return the number of matching d d l record versions 480 * @throws SystemException if a system exception occurred 481 */ 482 public int countByRecordId(long recordId) 483 throws com.liferay.portal.kernel.exception.SystemException; 484 485 /** 486 * Returns the number of d d l record versions where recordId = ? and version = ?. 487 * 488 * @param recordId the record ID 489 * @param version the version 490 * @return the number of matching d d l record versions 491 * @throws SystemException if a system exception occurred 492 */ 493 public int countByR_V(long recordId, java.lang.String version) 494 throws com.liferay.portal.kernel.exception.SystemException; 495 496 /** 497 * Returns the number of d d l record versions where recordId = ? and status = ?. 498 * 499 * @param recordId the record ID 500 * @param status the status 501 * @return the number of matching d d l record versions 502 * @throws SystemException if a system exception occurred 503 */ 504 public int countByR_S(long recordId, int status) 505 throws com.liferay.portal.kernel.exception.SystemException; 506 507 /** 508 * Returns the number of d d l record versions. 509 * 510 * @return the number of d d l record versions 511 * @throws SystemException if a system exception occurred 512 */ 513 public int countAll() 514 throws com.liferay.portal.kernel.exception.SystemException; 515 }