001 /** 002 * Copyright (c) 2000-2011 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#remove(com.liferay.portal.model.BaseModel) 099 */ 100 public static DDLRecordVersion remove(DDLRecordVersion ddlRecordVersion) 101 throws SystemException { 102 return getPersistence().remove(ddlRecordVersion); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 107 */ 108 public static DDLRecordVersion update(DDLRecordVersion ddlRecordVersion, 109 boolean merge) throws SystemException { 110 return getPersistence().update(ddlRecordVersion, merge); 111 } 112 113 /** 114 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 115 */ 116 public static DDLRecordVersion update(DDLRecordVersion ddlRecordVersion, 117 boolean merge, ServiceContext serviceContext) throws SystemException { 118 return getPersistence().update(ddlRecordVersion, merge, serviceContext); 119 } 120 121 /** 122 * Caches the d d l record version in the entity cache if it is enabled. 123 * 124 * @param ddlRecordVersion the d d l record version 125 */ 126 public static void cacheResult( 127 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion) { 128 getPersistence().cacheResult(ddlRecordVersion); 129 } 130 131 /** 132 * Caches the d d l record versions in the entity cache if it is enabled. 133 * 134 * @param ddlRecordVersions the d d l record versions 135 */ 136 public static void cacheResult( 137 java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> ddlRecordVersions) { 138 getPersistence().cacheResult(ddlRecordVersions); 139 } 140 141 /** 142 * Creates a new d d l record version with the primary key. Does not add the d d l record version to the database. 143 * 144 * @param recordVersionId the primary key for the new d d l record version 145 * @return the new d d l record version 146 */ 147 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion create( 148 long recordVersionId) { 149 return getPersistence().create(recordVersionId); 150 } 151 152 /** 153 * Removes the d d l record version with the primary key from the database. Also notifies the appropriate model listeners. 154 * 155 * @param recordVersionId the primary key of the d d l record version 156 * @return the d d l record version that was removed 157 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 158 * @throws SystemException if a system exception occurred 159 */ 160 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion remove( 161 long recordVersionId) 162 throws com.liferay.portal.kernel.exception.SystemException, 163 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 164 return getPersistence().remove(recordVersionId); 165 } 166 167 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion updateImpl( 168 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion, 169 boolean merge) 170 throws com.liferay.portal.kernel.exception.SystemException { 171 return getPersistence().updateImpl(ddlRecordVersion, merge); 172 } 173 174 /** 175 * 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. 176 * 177 * @param recordVersionId the primary key of the d d l record version 178 * @return the d d l record version 179 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 180 * @throws SystemException if a system exception occurred 181 */ 182 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByPrimaryKey( 183 long recordVersionId) 184 throws com.liferay.portal.kernel.exception.SystemException, 185 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 186 return getPersistence().findByPrimaryKey(recordVersionId); 187 } 188 189 /** 190 * Returns the d d l record version with the primary key or returns <code>null</code> if it could not be found. 191 * 192 * @param recordVersionId the primary key of the d d l record version 193 * @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 194 * @throws SystemException if a system exception occurred 195 */ 196 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByPrimaryKey( 197 long recordVersionId) 198 throws com.liferay.portal.kernel.exception.SystemException { 199 return getPersistence().fetchByPrimaryKey(recordVersionId); 200 } 201 202 /** 203 * Returns all the d d l record versions where recordId = ?. 204 * 205 * @param recordId the record ID 206 * @return the matching d d l record versions 207 * @throws SystemException if a system exception occurred 208 */ 209 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId( 210 long recordId) 211 throws com.liferay.portal.kernel.exception.SystemException { 212 return getPersistence().findByRecordId(recordId); 213 } 214 215 /** 216 * Returns a range of all the d d l record versions where recordId = ?. 217 * 218 * <p> 219 * 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. 220 * </p> 221 * 222 * @param recordId the record ID 223 * @param start the lower bound of the range of d d l record versions 224 * @param end the upper bound of the range of d d l record versions (not inclusive) 225 * @return the range of matching d d l record versions 226 * @throws SystemException if a system exception occurred 227 */ 228 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId( 229 long recordId, int start, int end) 230 throws com.liferay.portal.kernel.exception.SystemException { 231 return getPersistence().findByRecordId(recordId, start, end); 232 } 233 234 /** 235 * Returns an ordered range of all the d d l record versions where recordId = ?. 236 * 237 * <p> 238 * 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. 239 * </p> 240 * 241 * @param recordId the record ID 242 * @param start the lower bound of the range of d d l record versions 243 * @param end the upper bound of the range of d d l record versions (not inclusive) 244 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 245 * @return the ordered range of matching d d l record versions 246 * @throws SystemException if a system exception occurred 247 */ 248 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId( 249 long recordId, int start, int end, 250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 251 throws com.liferay.portal.kernel.exception.SystemException { 252 return getPersistence() 253 .findByRecordId(recordId, start, end, orderByComparator); 254 } 255 256 /** 257 * Returns the first d d l record version in the ordered set where recordId = ?. 258 * 259 * <p> 260 * 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. 261 * </p> 262 * 263 * @param recordId the record ID 264 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 265 * @return the first matching d d l record version 266 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 267 * @throws SystemException if a system exception occurred 268 */ 269 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_First( 270 long recordId, 271 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 272 throws com.liferay.portal.kernel.exception.SystemException, 273 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 274 return getPersistence().findByRecordId_First(recordId, orderByComparator); 275 } 276 277 /** 278 * Returns the last d d l record version in the ordered set where recordId = ?. 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 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 d d l record versions before and after the current d d l record version in the ordered set where recordId = ?. 300 * 301 * <p> 302 * 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. 303 * </p> 304 * 305 * @param recordVersionId the primary key of the current d d l record version 306 * @param recordId the record ID 307 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 308 * @return the previous, current, and next d d l record version 309 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 310 * @throws SystemException if a system exception occurred 311 */ 312 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByRecordId_PrevAndNext( 313 long recordVersionId, long recordId, 314 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 315 throws com.liferay.portal.kernel.exception.SystemException, 316 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 317 return getPersistence() 318 .findByRecordId_PrevAndNext(recordVersionId, recordId, 319 orderByComparator); 320 } 321 322 /** 323 * 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. 324 * 325 * @param recordId the record ID 326 * @param version the version 327 * @return the matching d d l record version 328 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 329 * @throws SystemException if a system exception occurred 330 */ 331 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_V( 332 long recordId, java.lang.String version) 333 throws com.liferay.portal.kernel.exception.SystemException, 334 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 335 return getPersistence().findByR_V(recordId, version); 336 } 337 338 /** 339 * 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. 340 * 341 * @param recordId the record ID 342 * @param version the version 343 * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found 344 * @throws SystemException if a system exception occurred 345 */ 346 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V( 347 long recordId, java.lang.String version) 348 throws com.liferay.portal.kernel.exception.SystemException { 349 return getPersistence().fetchByR_V(recordId, version); 350 } 351 352 /** 353 * 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. 354 * 355 * @param recordId the record ID 356 * @param version the version 357 * @param retrieveFromCache whether to use the finder cache 358 * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found 359 * @throws SystemException if a system exception occurred 360 */ 361 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V( 362 long recordId, java.lang.String version, boolean retrieveFromCache) 363 throws com.liferay.portal.kernel.exception.SystemException { 364 return getPersistence().fetchByR_V(recordId, version, retrieveFromCache); 365 } 366 367 /** 368 * Returns all the d d l record versions where recordId = ? and status = ?. 369 * 370 * @param recordId the record ID 371 * @param status the status 372 * @return the matching d d l record versions 373 * @throws SystemException if a system exception occurred 374 */ 375 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S( 376 long recordId, int status) 377 throws com.liferay.portal.kernel.exception.SystemException { 378 return getPersistence().findByR_S(recordId, status); 379 } 380 381 /** 382 * Returns a range of all the d d l record versions where recordId = ? and status = ?. 383 * 384 * <p> 385 * 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. 386 * </p> 387 * 388 * @param recordId the record ID 389 * @param status the status 390 * @param start the lower bound of the range of d d l record versions 391 * @param end the upper bound of the range of d d l record versions (not inclusive) 392 * @return the range of matching d d l record versions 393 * @throws SystemException if a system exception occurred 394 */ 395 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S( 396 long recordId, int status, int start, int end) 397 throws com.liferay.portal.kernel.exception.SystemException { 398 return getPersistence().findByR_S(recordId, status, start, end); 399 } 400 401 /** 402 * Returns an ordered range of all the d d l record versions where recordId = ? and status = ?. 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 recordId the record ID 409 * @param status the status 410 * @param start the lower bound of the range of d d l record versions 411 * @param end the upper bound of the range of d d l record versions (not inclusive) 412 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 413 * @return the ordered range of matching d d l record versions 414 * @throws SystemException if a system exception occurred 415 */ 416 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S( 417 long recordId, int status, int start, int end, 418 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 419 throws com.liferay.portal.kernel.exception.SystemException { 420 return getPersistence() 421 .findByR_S(recordId, status, start, end, orderByComparator); 422 } 423 424 /** 425 * Returns the first d d l record version in the ordered set where recordId = ? and status = ?. 426 * 427 * <p> 428 * 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. 429 * </p> 430 * 431 * @param recordId the record ID 432 * @param status the status 433 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 434 * @return the first matching d d l record version 435 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 436 * @throws SystemException if a system exception occurred 437 */ 438 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_First( 439 long recordId, int status, 440 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 441 throws com.liferay.portal.kernel.exception.SystemException, 442 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 443 return getPersistence() 444 .findByR_S_First(recordId, status, orderByComparator); 445 } 446 447 /** 448 * Returns the last d d l record version in the ordered set where recordId = ? and status = ?. 449 * 450 * <p> 451 * 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. 452 * </p> 453 * 454 * @param recordId the record ID 455 * @param status the status 456 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 457 * @return the last matching d d l record version 458 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 459 * @throws SystemException if a system exception occurred 460 */ 461 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_Last( 462 long recordId, int status, 463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 464 throws com.liferay.portal.kernel.exception.SystemException, 465 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 466 return getPersistence() 467 .findByR_S_Last(recordId, status, orderByComparator); 468 } 469 470 /** 471 * 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 = ?. 472 * 473 * <p> 474 * 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. 475 * </p> 476 * 477 * @param recordVersionId the primary key of the current d d l record version 478 * @param recordId the record ID 479 * @param status the status 480 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 481 * @return the previous, current, and next d d l record version 482 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 483 * @throws SystemException if a system exception occurred 484 */ 485 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByR_S_PrevAndNext( 486 long recordVersionId, long recordId, int status, 487 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 488 throws com.liferay.portal.kernel.exception.SystemException, 489 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 490 return getPersistence() 491 .findByR_S_PrevAndNext(recordVersionId, recordId, status, 492 orderByComparator); 493 } 494 495 /** 496 * Returns all the d d l record versions. 497 * 498 * @return the d d l record versions 499 * @throws SystemException if a system exception occurred 500 */ 501 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll() 502 throws com.liferay.portal.kernel.exception.SystemException { 503 return getPersistence().findAll(); 504 } 505 506 /** 507 * Returns a range of all the d d l record versions. 508 * 509 * <p> 510 * 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. 511 * </p> 512 * 513 * @param start the lower bound of the range of d d l record versions 514 * @param end the upper bound of the range of d d l record versions (not inclusive) 515 * @return the range of d d l record versions 516 * @throws SystemException if a system exception occurred 517 */ 518 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll( 519 int start, int end) 520 throws com.liferay.portal.kernel.exception.SystemException { 521 return getPersistence().findAll(start, end); 522 } 523 524 /** 525 * Returns an ordered range of all the d d l record versions. 526 * 527 * <p> 528 * 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. 529 * </p> 530 * 531 * @param start the lower bound of the range of d d l record versions 532 * @param end the upper bound of the range of d d l record versions (not inclusive) 533 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 534 * @return the ordered range of d d l record versions 535 * @throws SystemException if a system exception occurred 536 */ 537 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll( 538 int start, int end, 539 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 540 throws com.liferay.portal.kernel.exception.SystemException { 541 return getPersistence().findAll(start, end, orderByComparator); 542 } 543 544 /** 545 * Removes all the d d l record versions where recordId = ? from the database. 546 * 547 * @param recordId the record ID 548 * @throws SystemException if a system exception occurred 549 */ 550 public static void removeByRecordId(long recordId) 551 throws com.liferay.portal.kernel.exception.SystemException { 552 getPersistence().removeByRecordId(recordId); 553 } 554 555 /** 556 * Removes the d d l record version where recordId = ? and version = ? from the database. 557 * 558 * @param recordId the record ID 559 * @param version the version 560 * @throws SystemException if a system exception occurred 561 */ 562 public static void removeByR_V(long recordId, java.lang.String version) 563 throws com.liferay.portal.kernel.exception.SystemException, 564 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException { 565 getPersistence().removeByR_V(recordId, version); 566 } 567 568 /** 569 * Removes all the d d l record versions where recordId = ? and status = ? from the database. 570 * 571 * @param recordId the record ID 572 * @param status the status 573 * @throws SystemException if a system exception occurred 574 */ 575 public static void removeByR_S(long recordId, int status) 576 throws com.liferay.portal.kernel.exception.SystemException { 577 getPersistence().removeByR_S(recordId, status); 578 } 579 580 /** 581 * Removes all the d d l record versions from the database. 582 * 583 * @throws SystemException if a system exception occurred 584 */ 585 public static void removeAll() 586 throws com.liferay.portal.kernel.exception.SystemException { 587 getPersistence().removeAll(); 588 } 589 590 /** 591 * Returns the number of d d l record versions where recordId = ?. 592 * 593 * @param recordId the record ID 594 * @return the number of matching d d l record versions 595 * @throws SystemException if a system exception occurred 596 */ 597 public static int countByRecordId(long recordId) 598 throws com.liferay.portal.kernel.exception.SystemException { 599 return getPersistence().countByRecordId(recordId); 600 } 601 602 /** 603 * Returns the number of d d l record versions where recordId = ? and version = ?. 604 * 605 * @param recordId the record ID 606 * @param version the version 607 * @return the number of matching d d l record versions 608 * @throws SystemException if a system exception occurred 609 */ 610 public static int countByR_V(long recordId, java.lang.String version) 611 throws com.liferay.portal.kernel.exception.SystemException { 612 return getPersistence().countByR_V(recordId, version); 613 } 614 615 /** 616 * Returns the number of d d l record versions where recordId = ? and status = ?. 617 * 618 * @param recordId the record ID 619 * @param status the status 620 * @return the number of matching d d l record versions 621 * @throws SystemException if a system exception occurred 622 */ 623 public static int countByR_S(long recordId, int status) 624 throws com.liferay.portal.kernel.exception.SystemException { 625 return getPersistence().countByR_S(recordId, status); 626 } 627 628 /** 629 * Returns the number of d d l record versions. 630 * 631 * @return the number of d d l record versions 632 * @throws SystemException if a system exception occurred 633 */ 634 public static int countAll() 635 throws com.liferay.portal.kernel.exception.SystemException { 636 return getPersistence().countAll(); 637 } 638 639 public static DDLRecordVersionPersistence getPersistence() { 640 if (_persistence == null) { 641 _persistence = (DDLRecordVersionPersistence)PortalBeanLocatorUtil.locate(DDLRecordVersionPersistence.class.getName()); 642 643 ReferenceRegistry.registerReference(DDLRecordVersionUtil.class, 644 "_persistence"); 645 } 646 647 return _persistence; 648 } 649 650 public void setPersistence(DDLRecordVersionPersistence persistence) { 651 _persistence = persistence; 652 653 ReferenceRegistry.registerReference(DDLRecordVersionUtil.class, 654 "_persistence"); 655 } 656 657 private static DDLRecordVersionPersistence _persistence; 658 }