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.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the d d l record version service. This utility wraps {@link DDLRecordVersionPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see DDLRecordVersionPersistence 037 * @see DDLRecordVersionPersistenceImpl 038 * @generated 039 */ 040 public class DDLRecordVersionUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(DDLRecordVersion ddlRecordVersion) { 058 getPersistence().clearCache(ddlRecordVersion); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<DDLRecordVersion> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<DDLRecordVersion> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<DDLRecordVersion> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 099 */ 100 public static DDLRecordVersion update(DDLRecordVersion ddlRecordVersion, 101 boolean merge) throws SystemException { 102 return getPersistence().update(ddlRecordVersion, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static DDLRecordVersion update(DDLRecordVersion ddlRecordVersion, 109 boolean merge, ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(ddlRecordVersion, merge, serviceContext); 111 } 112 113 /** 114 * Caches the d d l record version in the entity cache if it is enabled. 115 * 116 * @param ddlRecordVersion the d d l record version 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion) { 120 getPersistence().cacheResult(ddlRecordVersion); 121 } 122 123 /** 124 * Caches the d d l record versions in the entity cache if it is enabled. 125 * 126 * @param ddlRecordVersions the d d l record versions 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> ddlRecordVersions) { 130 getPersistence().cacheResult(ddlRecordVersions); 131 } 132 133 /** 134 * Creates a new d d l record version with the primary key. Does not add the d d l record version to the database. 135 * 136 * @param recordVersionId the primary key for the new d d l record version 137 * @return the new d d l record version 138 */ 139 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion create( 140 long recordVersionId) { 141 return getPersistence().create(recordVersionId); 142 } 143 144 /** 145 * Removes the d d l record version with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param recordVersionId the primary key of the d d l record version 148 * @return the d d l record version that was removed 149 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion remove( 153 long recordVersionId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 156 return getPersistence().remove(recordVersionId); 157 } 158 159 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion updateImpl( 160 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion, 161 boolean merge) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(ddlRecordVersion, merge); 164 } 165 166 /** 167 * 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. 168 * 169 * @param recordVersionId the primary key of the d d l record version 170 * @return the d d l record version 171 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByPrimaryKey( 175 long recordVersionId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 178 return getPersistence().findByPrimaryKey(recordVersionId); 179 } 180 181 /** 182 * Returns the d d l record version with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param recordVersionId the primary key of the d d l record version 185 * @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 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByPrimaryKey( 189 long recordVersionId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(recordVersionId); 192 } 193 194 /** 195 * Returns all the d d l record versions where recordId = ?. 196 * 197 * @param recordId the record ID 198 * @return the matching d d l record versions 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId( 202 long recordId) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByRecordId(recordId); 205 } 206 207 /** 208 * Returns a range of all the d d l record versions where recordId = ?. 209 * 210 * <p> 211 * 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. 212 * </p> 213 * 214 * @param recordId the record ID 215 * @param start the lower bound of the range of d d l record versions 216 * @param end the upper bound of the range of d d l record versions (not inclusive) 217 * @return the range of matching d d l record versions 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId( 221 long recordId, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByRecordId(recordId, start, end); 224 } 225 226 /** 227 * Returns an ordered range of all the d d l record versions where recordId = ?. 228 * 229 * <p> 230 * 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. 231 * </p> 232 * 233 * @param recordId the record ID 234 * @param start the lower bound of the range of d d l record versions 235 * @param end the upper bound of the range of d d l record versions (not inclusive) 236 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 237 * @return the ordered range of matching d d l record versions 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId( 241 long recordId, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence() 245 .findByRecordId(recordId, start, end, orderByComparator); 246 } 247 248 /** 249 * Returns the first d d l record version in the ordered set where recordId = ?. 250 * 251 * @param recordId the record ID 252 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 253 * @return the first matching d d l record version 254 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 255 * @throws SystemException if a system exception occurred 256 */ 257 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_First( 258 long recordId, 259 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 260 throws com.liferay.portal.kernel.exception.SystemException, 261 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 262 return getPersistence().findByRecordId_First(recordId, orderByComparator); 263 } 264 265 /** 266 * Returns the first d d l record version in the ordered set where recordId = ?. 267 * 268 * @param recordId the record ID 269 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 270 * @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 271 * @throws SystemException if a system exception occurred 272 */ 273 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_First( 274 long recordId, 275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 276 throws com.liferay.portal.kernel.exception.SystemException { 277 return getPersistence() 278 .fetchByRecordId_First(recordId, orderByComparator); 279 } 280 281 /** 282 * Returns the last d d l record version in the ordered set where recordId = ?. 283 * 284 * @param recordId the record ID 285 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 286 * @return the last matching d d l record version 287 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 288 * @throws SystemException if a system exception occurred 289 */ 290 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_Last( 291 long recordId, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.kernel.exception.SystemException, 294 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 295 return getPersistence().findByRecordId_Last(recordId, orderByComparator); 296 } 297 298 /** 299 * Returns the last d d l record version in the ordered set where recordId = ?. 300 * 301 * @param recordId the record ID 302 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 303 * @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 304 * @throws SystemException if a system exception occurred 305 */ 306 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_Last( 307 long recordId, 308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 309 throws com.liferay.portal.kernel.exception.SystemException { 310 return getPersistence().fetchByRecordId_Last(recordId, orderByComparator); 311 } 312 313 /** 314 * Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = ?. 315 * 316 * @param recordVersionId the primary key of the current d d l record version 317 * @param recordId the record ID 318 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 319 * @return the previous, current, and next d d l record version 320 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 321 * @throws SystemException if a system exception occurred 322 */ 323 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByRecordId_PrevAndNext( 324 long recordVersionId, long recordId, 325 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 326 throws com.liferay.portal.kernel.exception.SystemException, 327 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 328 return getPersistence() 329 .findByRecordId_PrevAndNext(recordVersionId, recordId, 330 orderByComparator); 331 } 332 333 /** 334 * 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. 335 * 336 * @param recordId the record ID 337 * @param version the version 338 * @return the matching d d l record version 339 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 340 * @throws SystemException if a system exception occurred 341 */ 342 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_V( 343 long recordId, java.lang.String version) 344 throws com.liferay.portal.kernel.exception.SystemException, 345 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 346 return getPersistence().findByR_V(recordId, version); 347 } 348 349 /** 350 * 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. 351 * 352 * @param recordId the record ID 353 * @param version the version 354 * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found 355 * @throws SystemException if a system exception occurred 356 */ 357 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V( 358 long recordId, java.lang.String version) 359 throws com.liferay.portal.kernel.exception.SystemException { 360 return getPersistence().fetchByR_V(recordId, version); 361 } 362 363 /** 364 * 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. 365 * 366 * @param recordId the record ID 367 * @param version the version 368 * @param retrieveFromCache whether to use the finder cache 369 * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found 370 * @throws SystemException if a system exception occurred 371 */ 372 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V( 373 long recordId, java.lang.String version, boolean retrieveFromCache) 374 throws com.liferay.portal.kernel.exception.SystemException { 375 return getPersistence().fetchByR_V(recordId, version, retrieveFromCache); 376 } 377 378 /** 379 * Returns all the d d l record versions where recordId = ? and status = ?. 380 * 381 * @param recordId the record ID 382 * @param status the status 383 * @return the matching d d l record versions 384 * @throws SystemException if a system exception occurred 385 */ 386 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S( 387 long recordId, int status) 388 throws com.liferay.portal.kernel.exception.SystemException { 389 return getPersistence().findByR_S(recordId, status); 390 } 391 392 /** 393 * Returns a range of all the d d l record versions where recordId = ? and status = ?. 394 * 395 * <p> 396 * 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. 397 * </p> 398 * 399 * @param recordId the record ID 400 * @param status the status 401 * @param start the lower bound of the range of d d l record versions 402 * @param end the upper bound of the range of d d l record versions (not inclusive) 403 * @return the range of matching d d l record versions 404 * @throws SystemException if a system exception occurred 405 */ 406 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S( 407 long recordId, int status, int start, int end) 408 throws com.liferay.portal.kernel.exception.SystemException { 409 return getPersistence().findByR_S(recordId, status, start, end); 410 } 411 412 /** 413 * Returns an ordered range of all the d d l record versions where recordId = ? and status = ?. 414 * 415 * <p> 416 * 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. 417 * </p> 418 * 419 * @param recordId the record ID 420 * @param status the status 421 * @param start the lower bound of the range of d d l record versions 422 * @param end the upper bound of the range of d d l record versions (not inclusive) 423 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 424 * @return the ordered range of matching d d l record versions 425 * @throws SystemException if a system exception occurred 426 */ 427 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S( 428 long recordId, int status, int start, int end, 429 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 430 throws com.liferay.portal.kernel.exception.SystemException { 431 return getPersistence() 432 .findByR_S(recordId, status, start, end, orderByComparator); 433 } 434 435 /** 436 * Returns the first d d l record version in the ordered set where recordId = ? and status = ?. 437 * 438 * @param recordId the record ID 439 * @param status the status 440 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 441 * @return the first matching d d l record version 442 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 443 * @throws SystemException if a system exception occurred 444 */ 445 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_First( 446 long recordId, int status, 447 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 448 throws com.liferay.portal.kernel.exception.SystemException, 449 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 450 return getPersistence() 451 .findByR_S_First(recordId, status, orderByComparator); 452 } 453 454 /** 455 * Returns the first d d l record version in the ordered set where recordId = ? and status = ?. 456 * 457 * @param recordId the record ID 458 * @param status the status 459 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 460 * @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 461 * @throws SystemException if a system exception occurred 462 */ 463 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_First( 464 long recordId, int status, 465 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 466 throws com.liferay.portal.kernel.exception.SystemException { 467 return getPersistence() 468 .fetchByR_S_First(recordId, status, orderByComparator); 469 } 470 471 /** 472 * Returns the last d d l record version in the ordered set where recordId = ? and status = ?. 473 * 474 * @param recordId the record ID 475 * @param status the status 476 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 477 * @return the last matching d d l record version 478 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 479 * @throws SystemException if a system exception occurred 480 */ 481 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_Last( 482 long recordId, int status, 483 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 484 throws com.liferay.portal.kernel.exception.SystemException, 485 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 486 return getPersistence() 487 .findByR_S_Last(recordId, status, orderByComparator); 488 } 489 490 /** 491 * Returns the last d d l record version in the ordered set where recordId = ? and status = ?. 492 * 493 * @param recordId the record ID 494 * @param status the status 495 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 496 * @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 497 * @throws SystemException if a system exception occurred 498 */ 499 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_Last( 500 long recordId, int status, 501 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 502 throws com.liferay.portal.kernel.exception.SystemException { 503 return getPersistence() 504 .fetchByR_S_Last(recordId, status, orderByComparator); 505 } 506 507 /** 508 * 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 = ?. 509 * 510 * @param recordVersionId the primary key of the current d d l record version 511 * @param recordId the record ID 512 * @param status the status 513 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 514 * @return the previous, current, and next d d l record version 515 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 516 * @throws SystemException if a system exception occurred 517 */ 518 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByR_S_PrevAndNext( 519 long recordVersionId, long recordId, int status, 520 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 521 throws com.liferay.portal.kernel.exception.SystemException, 522 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 523 return getPersistence() 524 .findByR_S_PrevAndNext(recordVersionId, recordId, status, 525 orderByComparator); 526 } 527 528 /** 529 * Returns all the d d l record versions. 530 * 531 * @return the d d l record versions 532 * @throws SystemException if a system exception occurred 533 */ 534 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll() 535 throws com.liferay.portal.kernel.exception.SystemException { 536 return getPersistence().findAll(); 537 } 538 539 /** 540 * Returns a range of all the d d l record versions. 541 * 542 * <p> 543 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 544 * </p> 545 * 546 * @param start the lower bound of the range of d d l record versions 547 * @param end the upper bound of the range of d d l record versions (not inclusive) 548 * @return the range of d d l record versions 549 * @throws SystemException if a system exception occurred 550 */ 551 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll( 552 int start, int end) 553 throws com.liferay.portal.kernel.exception.SystemException { 554 return getPersistence().findAll(start, end); 555 } 556 557 /** 558 * Returns an ordered range of all the d d l record versions. 559 * 560 * <p> 561 * 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. 562 * </p> 563 * 564 * @param start the lower bound of the range of d d l record versions 565 * @param end the upper bound of the range of d d l record versions (not inclusive) 566 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 567 * @return the ordered range of d d l record versions 568 * @throws SystemException if a system exception occurred 569 */ 570 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll( 571 int start, int end, 572 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 573 throws com.liferay.portal.kernel.exception.SystemException { 574 return getPersistence().findAll(start, end, orderByComparator); 575 } 576 577 /** 578 * Removes all the d d l record versions where recordId = ? from the database. 579 * 580 * @param recordId the record ID 581 * @throws SystemException if a system exception occurred 582 */ 583 public static void removeByRecordId(long recordId) 584 throws com.liferay.portal.kernel.exception.SystemException { 585 getPersistence().removeByRecordId(recordId); 586 } 587 588 /** 589 * Removes the d d l record version where recordId = ? and version = ? from the database. 590 * 591 * @param recordId the record ID 592 * @param version the version 593 * @return the d d l record version that was removed 594 * @throws SystemException if a system exception occurred 595 */ 596 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion removeByR_V( 597 long recordId, java.lang.String version) 598 throws com.liferay.portal.kernel.exception.SystemException, 599 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 600 return getPersistence().removeByR_V(recordId, version); 601 } 602 603 /** 604 * Removes all the d d l record versions where recordId = ? and status = ? from the database. 605 * 606 * @param recordId the record ID 607 * @param status the status 608 * @throws SystemException if a system exception occurred 609 */ 610 public static void removeByR_S(long recordId, int status) 611 throws com.liferay.portal.kernel.exception.SystemException { 612 getPersistence().removeByR_S(recordId, status); 613 } 614 615 /** 616 * Removes all the d d l record versions from the database. 617 * 618 * @throws SystemException if a system exception occurred 619 */ 620 public static void removeAll() 621 throws com.liferay.portal.kernel.exception.SystemException { 622 getPersistence().removeAll(); 623 } 624 625 /** 626 * Returns the number of d d l record versions where recordId = ?. 627 * 628 * @param recordId the record ID 629 * @return the number of matching d d l record versions 630 * @throws SystemException if a system exception occurred 631 */ 632 public static int countByRecordId(long recordId) 633 throws com.liferay.portal.kernel.exception.SystemException { 634 return getPersistence().countByRecordId(recordId); 635 } 636 637 /** 638 * Returns the number of d d l record versions where recordId = ? and version = ?. 639 * 640 * @param recordId the record ID 641 * @param version the version 642 * @return the number of matching d d l record versions 643 * @throws SystemException if a system exception occurred 644 */ 645 public static int countByR_V(long recordId, java.lang.String version) 646 throws com.liferay.portal.kernel.exception.SystemException { 647 return getPersistence().countByR_V(recordId, version); 648 } 649 650 /** 651 * Returns the number of d d l record versions where recordId = ? and status = ?. 652 * 653 * @param recordId the record ID 654 * @param status the status 655 * @return the number of matching d d l record versions 656 * @throws SystemException if a system exception occurred 657 */ 658 public static int countByR_S(long recordId, int status) 659 throws com.liferay.portal.kernel.exception.SystemException { 660 return getPersistence().countByR_S(recordId, status); 661 } 662 663 /** 664 * Returns the number of d d l record versions. 665 * 666 * @return the number of d d l record versions 667 * @throws SystemException if a system exception occurred 668 */ 669 public static int countAll() 670 throws com.liferay.portal.kernel.exception.SystemException { 671 return getPersistence().countAll(); 672 } 673 674 public static DDLRecordVersionPersistence getPersistence() { 675 if (_persistence == null) { 676 _persistence = (DDLRecordVersionPersistence)PortalBeanLocatorUtil.locate(DDLRecordVersionPersistence.class.getName()); 677 678 ReferenceRegistry.registerReference(DDLRecordVersionUtil.class, 679 "_persistence"); 680 } 681 682 return _persistence; 683 } 684 685 /** 686 * @deprecated 687 */ 688 public void setPersistence(DDLRecordVersionPersistence persistence) { 689 } 690 691 private static DDLRecordVersionPersistence _persistence; 692 }