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