001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.dynamicdatalists.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion; 020 021 /** 022 * The persistence interface for the d d l record version service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see DDLRecordVersionPersistenceImpl 030 * @see DDLRecordVersionUtil 031 * @generated 032 */ 033 public interface DDLRecordVersionPersistence extends BasePersistence<DDLRecordVersion> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link DDLRecordVersionUtil} to access the d d l record version persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Returns all the d d l record versions where recordId = ?. 042 * 043 * @param recordId the record ID 044 * @return the matching d d l record versions 045 * @throws SystemException if a system exception occurred 046 */ 047 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId( 048 long recordId) 049 throws com.liferay.portal.kernel.exception.SystemException; 050 051 /** 052 * Returns a range of all the d d l record versions where recordId = ?. 053 * 054 * <p> 055 * 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. 056 * </p> 057 * 058 * @param recordId the record ID 059 * @param start the lower bound of the range of d d l record versions 060 * @param end the upper bound of the range of d d l record versions (not inclusive) 061 * @return the range of matching d d l record versions 062 * @throws SystemException if a system exception occurred 063 */ 064 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId( 065 long recordId, int start, int end) 066 throws com.liferay.portal.kernel.exception.SystemException; 067 068 /** 069 * Returns an ordered range of all the d d l record versions where recordId = ?. 070 * 071 * <p> 072 * 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. 073 * </p> 074 * 075 * @param recordId the record ID 076 * @param start the lower bound of the range of d d l record versions 077 * @param end the upper bound of the range of d d l record versions (not inclusive) 078 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 079 * @return the ordered range of matching d d l record versions 080 * @throws SystemException if a system exception occurred 081 */ 082 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId( 083 long recordId, int start, int end, 084 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 085 throws com.liferay.portal.kernel.exception.SystemException; 086 087 /** 088 * Returns the first d d l record version in the ordered set where recordId = ?. 089 * 090 * @param recordId the record ID 091 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 092 * @return the first matching d d l record version 093 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 094 * @throws SystemException if a system exception occurred 095 */ 096 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_First( 097 long recordId, 098 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 099 throws com.liferay.portal.kernel.exception.SystemException, 100 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 101 102 /** 103 * Returns the first d d l record version in the ordered set where recordId = ?. 104 * 105 * @param recordId the record ID 106 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 107 * @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 108 * @throws SystemException if a system exception occurred 109 */ 110 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_First( 111 long recordId, 112 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 113 throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Returns the last d d l record version in the ordered set where recordId = ?. 117 * 118 * @param recordId the record ID 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the last matching d d l record version 121 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 122 * @throws SystemException if a system exception occurred 123 */ 124 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_Last( 125 long recordId, 126 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 127 throws com.liferay.portal.kernel.exception.SystemException, 128 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 129 130 /** 131 * Returns the last d d l record version in the ordered set where recordId = ?. 132 * 133 * @param recordId the record ID 134 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 135 * @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 136 * @throws SystemException if a system exception occurred 137 */ 138 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_Last( 139 long recordId, 140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 141 throws com.liferay.portal.kernel.exception.SystemException; 142 143 /** 144 * Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = ?. 145 * 146 * @param recordVersionId the primary key of the current d d l record version 147 * @param recordId the record ID 148 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 149 * @return the previous, current, and next d d l record version 150 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByRecordId_PrevAndNext( 154 long recordVersionId, long recordId, 155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 156 throws com.liferay.portal.kernel.exception.SystemException, 157 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 158 159 /** 160 * Removes all the d d l record versions where recordId = ? from the database. 161 * 162 * @param recordId the record ID 163 * @throws SystemException if a system exception occurred 164 */ 165 public void removeByRecordId(long recordId) 166 throws com.liferay.portal.kernel.exception.SystemException; 167 168 /** 169 * Returns the number of d d l record versions where recordId = ?. 170 * 171 * @param recordId the record ID 172 * @return the number of matching d d l record versions 173 * @throws SystemException if a system exception occurred 174 */ 175 public int countByRecordId(long recordId) 176 throws com.liferay.portal.kernel.exception.SystemException; 177 178 /** 179 * 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. 180 * 181 * @param recordId the record ID 182 * @param version the version 183 * @return the matching d d l record version 184 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_V( 188 long recordId, java.lang.String version) 189 throws com.liferay.portal.kernel.exception.SystemException, 190 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 191 192 /** 193 * 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. 194 * 195 * @param recordId the record ID 196 * @param version the version 197 * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found 198 * @throws SystemException if a system exception occurred 199 */ 200 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V( 201 long recordId, java.lang.String version) 202 throws com.liferay.portal.kernel.exception.SystemException; 203 204 /** 205 * 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. 206 * 207 * @param recordId the record ID 208 * @param version the version 209 * @param retrieveFromCache whether to use the finder cache 210 * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found 211 * @throws SystemException if a system exception occurred 212 */ 213 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V( 214 long recordId, java.lang.String version, boolean retrieveFromCache) 215 throws com.liferay.portal.kernel.exception.SystemException; 216 217 /** 218 * Removes the d d l record version where recordId = ? and version = ? from the database. 219 * 220 * @param recordId the record ID 221 * @param version the version 222 * @return the d d l record version that was removed 223 * @throws SystemException if a system exception occurred 224 */ 225 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion removeByR_V( 226 long recordId, java.lang.String version) 227 throws com.liferay.portal.kernel.exception.SystemException, 228 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 229 230 /** 231 * Returns the number of d d l record versions where recordId = ? and version = ?. 232 * 233 * @param recordId the record ID 234 * @param version the version 235 * @return the number of matching d d l record versions 236 * @throws SystemException if a system exception occurred 237 */ 238 public int countByR_V(long recordId, java.lang.String version) 239 throws com.liferay.portal.kernel.exception.SystemException; 240 241 /** 242 * Returns all the d d l record versions where recordId = ? and status = ?. 243 * 244 * @param recordId the record ID 245 * @param status the status 246 * @return the matching d d l record versions 247 * @throws SystemException if a system exception occurred 248 */ 249 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S( 250 long recordId, int status) 251 throws com.liferay.portal.kernel.exception.SystemException; 252 253 /** 254 * Returns a range of all the d d l record versions where recordId = ? and status = ?. 255 * 256 * <p> 257 * 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. 258 * </p> 259 * 260 * @param recordId the record ID 261 * @param status the status 262 * @param start the lower bound of the range of d d l record versions 263 * @param end the upper bound of the range of d d l record versions (not inclusive) 264 * @return the range of matching d d l record versions 265 * @throws SystemException if a system exception occurred 266 */ 267 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S( 268 long recordId, int status, int start, int end) 269 throws com.liferay.portal.kernel.exception.SystemException; 270 271 /** 272 * Returns an ordered range of all the d d l record versions where recordId = ? and status = ?. 273 * 274 * <p> 275 * 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. 276 * </p> 277 * 278 * @param recordId the record ID 279 * @param status the status 280 * @param start the lower bound of the range of d d l record versions 281 * @param end the upper bound of the range of d d l record versions (not inclusive) 282 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 283 * @return the ordered range of matching d d l record versions 284 * @throws SystemException if a system exception occurred 285 */ 286 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S( 287 long recordId, int status, int start, int end, 288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 289 throws com.liferay.portal.kernel.exception.SystemException; 290 291 /** 292 * Returns the first d d l record version in the ordered set where recordId = ? and status = ?. 293 * 294 * @param recordId the record ID 295 * @param status the status 296 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 297 * @return the first matching d d l record version 298 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found 299 * @throws SystemException if a system exception occurred 300 */ 301 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_First( 302 long recordId, int status, 303 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 304 throws com.liferay.portal.kernel.exception.SystemException, 305 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 306 307 /** 308 * Returns the first d d l record version in the ordered set where recordId = ? and status = ?. 309 * 310 * @param recordId the record ID 311 * @param status the status 312 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 313 * @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 314 * @throws SystemException if a system exception occurred 315 */ 316 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_First( 317 long recordId, int status, 318 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 319 throws com.liferay.portal.kernel.exception.SystemException; 320 321 /** 322 * Returns the last d d l record version in the ordered set where recordId = ? and status = ?. 323 * 324 * @param recordId the record ID 325 * @param status the status 326 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 327 * @return the last 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 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_Last( 332 long recordId, int status, 333 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 334 throws com.liferay.portal.kernel.exception.SystemException, 335 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 336 337 /** 338 * Returns the last d d l record version in the ordered set where recordId = ? and status = ?. 339 * 340 * @param recordId the record ID 341 * @param status the status 342 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 343 * @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 344 * @throws SystemException if a system exception occurred 345 */ 346 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_Last( 347 long recordId, int status, 348 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 349 throws com.liferay.portal.kernel.exception.SystemException; 350 351 /** 352 * 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 = ?. 353 * 354 * @param recordVersionId the primary key of the current d d l record version 355 * @param recordId the record ID 356 * @param status the status 357 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 358 * @return the previous, current, and next d d l record version 359 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 360 * @throws SystemException if a system exception occurred 361 */ 362 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByR_S_PrevAndNext( 363 long recordVersionId, long recordId, int status, 364 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 365 throws com.liferay.portal.kernel.exception.SystemException, 366 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 367 368 /** 369 * Removes all the d d l record versions where recordId = ? and status = ? from the database. 370 * 371 * @param recordId the record ID 372 * @param status the status 373 * @throws SystemException if a system exception occurred 374 */ 375 public void removeByR_S(long recordId, int status) 376 throws com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Returns the number of d d l record versions where recordId = ? and status = ?. 380 * 381 * @param recordId the record ID 382 * @param status the status 383 * @return the number of matching d d l record versions 384 * @throws SystemException if a system exception occurred 385 */ 386 public int countByR_S(long recordId, int status) 387 throws com.liferay.portal.kernel.exception.SystemException; 388 389 /** 390 * Caches the d d l record version in the entity cache if it is enabled. 391 * 392 * @param ddlRecordVersion the d d l record version 393 */ 394 public void cacheResult( 395 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion); 396 397 /** 398 * Caches the d d l record versions in the entity cache if it is enabled. 399 * 400 * @param ddlRecordVersions the d d l record versions 401 */ 402 public void cacheResult( 403 java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> ddlRecordVersions); 404 405 /** 406 * Creates a new d d l record version with the primary key. Does not add the d d l record version to the database. 407 * 408 * @param recordVersionId the primary key for the new d d l record version 409 * @return the new d d l record version 410 */ 411 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion create( 412 long recordVersionId); 413 414 /** 415 * Removes the d d l record version with the primary key from the database. Also notifies the appropriate model listeners. 416 * 417 * @param recordVersionId the primary key of the d d l record version 418 * @return the d d l record version that was removed 419 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 420 * @throws SystemException if a system exception occurred 421 */ 422 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion remove( 423 long recordVersionId) 424 throws com.liferay.portal.kernel.exception.SystemException, 425 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 426 427 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion updateImpl( 428 com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion) 429 throws com.liferay.portal.kernel.exception.SystemException; 430 431 /** 432 * 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. 433 * 434 * @param recordVersionId the primary key of the d d l record version 435 * @return the d d l record version 436 * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found 437 * @throws SystemException if a system exception occurred 438 */ 439 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByPrimaryKey( 440 long recordVersionId) 441 throws com.liferay.portal.kernel.exception.SystemException, 442 com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException; 443 444 /** 445 * Returns the d d l record version with the primary key or returns <code>null</code> if it could not be found. 446 * 447 * @param recordVersionId the primary key of the d d l record version 448 * @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 449 * @throws SystemException if a system exception occurred 450 */ 451 public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByPrimaryKey( 452 long recordVersionId) 453 throws com.liferay.portal.kernel.exception.SystemException; 454 455 /** 456 * Returns all the d d l record versions. 457 * 458 * @return the d d l record versions 459 * @throws SystemException if a system exception occurred 460 */ 461 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll() 462 throws com.liferay.portal.kernel.exception.SystemException; 463 464 /** 465 * Returns a range of all the d d l record versions. 466 * 467 * <p> 468 * 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. 469 * </p> 470 * 471 * @param start the lower bound of the range of d d l record versions 472 * @param end the upper bound of the range of d d l record versions (not inclusive) 473 * @return the range of d d l record versions 474 * @throws SystemException if a system exception occurred 475 */ 476 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll( 477 int start, int end) 478 throws com.liferay.portal.kernel.exception.SystemException; 479 480 /** 481 * Returns an ordered range of all the d d l record versions. 482 * 483 * <p> 484 * 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. 485 * </p> 486 * 487 * @param start the lower bound of the range of d d l record versions 488 * @param end the upper bound of the range of d d l record versions (not inclusive) 489 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 490 * @return the ordered range of d d l record versions 491 * @throws SystemException if a system exception occurred 492 */ 493 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll( 494 int start, int end, 495 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 496 throws com.liferay.portal.kernel.exception.SystemException; 497 498 /** 499 * Removes all the d d l record versions from the database. 500 * 501 * @throws SystemException if a system exception occurred 502 */ 503 public void removeAll() 504 throws com.liferay.portal.kernel.exception.SystemException; 505 506 /** 507 * Returns the number of d d l record versions. 508 * 509 * @return the number of d d l record versions 510 * @throws SystemException if a system exception occurred 511 */ 512 public int countAll() 513 throws com.liferay.portal.kernel.exception.SystemException; 514 }