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