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.documentlibrary.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.documentlibrary.model.DLFileVersion; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the document library file version service. This utility wraps {@link DLFileVersionPersistenceImpl} 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 DLFileVersionPersistence 037 * @see DLFileVersionPersistenceImpl 038 * @generated 039 */ 040 public class DLFileVersionUtil { 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(DLFileVersion dlFileVersion) { 058 getPersistence().clearCache(dlFileVersion); 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<DLFileVersion> 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<DLFileVersion> 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<DLFileVersion> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 099 */ 100 public static DLFileVersion update(DLFileVersion dlFileVersion, 101 boolean merge) throws SystemException { 102 return getPersistence().update(dlFileVersion, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static DLFileVersion update(DLFileVersion dlFileVersion, 109 boolean merge, ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(dlFileVersion, merge, serviceContext); 111 } 112 113 /** 114 * Caches the document library file version in the entity cache if it is enabled. 115 * 116 * @param dlFileVersion the document library file version 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) { 120 getPersistence().cacheResult(dlFileVersion); 121 } 122 123 /** 124 * Caches the document library file versions in the entity cache if it is enabled. 125 * 126 * @param dlFileVersions the document library file versions 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> dlFileVersions) { 130 getPersistence().cacheResult(dlFileVersions); 131 } 132 133 /** 134 * Creates a new document library file version with the primary key. Does not add the document library file version to the database. 135 * 136 * @param fileVersionId the primary key for the new document library file version 137 * @return the new document library file version 138 */ 139 public static com.liferay.portlet.documentlibrary.model.DLFileVersion create( 140 long fileVersionId) { 141 return getPersistence().create(fileVersionId); 142 } 143 144 /** 145 * Removes the document library file version with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param fileVersionId the primary key of the document library file version 148 * @return the document library file version that was removed 149 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.documentlibrary.model.DLFileVersion remove( 153 long fileVersionId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 156 return getPersistence().remove(fileVersionId); 157 } 158 159 public static com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl( 160 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion, 161 boolean merge) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(dlFileVersion, merge); 164 } 165 166 /** 167 * Returns the document library file version with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileVersionException} if it could not be found. 168 * 169 * @param fileVersionId the primary key of the document library file version 170 * @return the document library file version 171 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey( 175 long fileVersionId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 178 return getPersistence().findByPrimaryKey(fileVersionId); 179 } 180 181 /** 182 * Returns the document library file version with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param fileVersionId the primary key of the document library file version 185 * @return the document library file version, or <code>null</code> if a document library file version with the primary key could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey( 189 long fileVersionId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(fileVersionId); 192 } 193 194 /** 195 * Returns all the document library file versions where uuid = ?. 196 * 197 * @param uuid the uuid 198 * @return the matching document library file versions 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid( 202 java.lang.String uuid) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByUuid(uuid); 205 } 206 207 /** 208 * Returns a range of all the document library file versions where uuid = ?. 209 * 210 * <p> 211 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 212 * </p> 213 * 214 * @param uuid the uuid 215 * @param start the lower bound of the range of document library file versions 216 * @param end the upper bound of the range of document library file versions (not inclusive) 217 * @return the range of matching document library file versions 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid( 221 java.lang.String uuid, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByUuid(uuid, start, end); 224 } 225 226 /** 227 * Returns an ordered range of all the document library file versions where uuid = ?. 228 * 229 * <p> 230 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 231 * </p> 232 * 233 * @param uuid the uuid 234 * @param start the lower bound of the range of document library file versions 235 * @param end the upper bound of the range of document library file versions (not inclusive) 236 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 237 * @return the ordered range of matching document library file versions 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid( 241 java.lang.String uuid, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 245 } 246 247 /** 248 * Returns the first document library file version in the ordered set where uuid = ?. 249 * 250 * <p> 251 * 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. 252 * </p> 253 * 254 * @param uuid the uuid 255 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 256 * @return the first matching document library file version 257 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found 258 * @throws SystemException if a system exception occurred 259 */ 260 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUuid_First( 261 java.lang.String uuid, 262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 263 throws com.liferay.portal.kernel.exception.SystemException, 264 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 265 return getPersistence().findByUuid_First(uuid, orderByComparator); 266 } 267 268 /** 269 * Returns the last document library file version in the ordered set where uuid = ?. 270 * 271 * <p> 272 * 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. 273 * </p> 274 * 275 * @param uuid the uuid 276 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 277 * @return the last matching document library file version 278 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found 279 * @throws SystemException if a system exception occurred 280 */ 281 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUuid_Last( 282 java.lang.String uuid, 283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 284 throws com.liferay.portal.kernel.exception.SystemException, 285 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 286 return getPersistence().findByUuid_Last(uuid, orderByComparator); 287 } 288 289 /** 290 * Returns the document library file versions before and after the current document library file version in the ordered set where uuid = ?. 291 * 292 * <p> 293 * 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. 294 * </p> 295 * 296 * @param fileVersionId the primary key of the current document library file version 297 * @param uuid the uuid 298 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 299 * @return the previous, current, and next document library file version 300 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found 301 * @throws SystemException if a system exception occurred 302 */ 303 public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByUuid_PrevAndNext( 304 long fileVersionId, java.lang.String uuid, 305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 306 throws com.liferay.portal.kernel.exception.SystemException, 307 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 308 return getPersistence() 309 .findByUuid_PrevAndNext(fileVersionId, uuid, 310 orderByComparator); 311 } 312 313 /** 314 * Returns the document library file version where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileVersionException} if it could not be found. 315 * 316 * @param uuid the uuid 317 * @param groupId the group ID 318 * @return the matching document library file version 319 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found 320 * @throws SystemException if a system exception occurred 321 */ 322 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUUID_G( 323 java.lang.String uuid, long groupId) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 326 return getPersistence().findByUUID_G(uuid, groupId); 327 } 328 329 /** 330 * Returns the document library file version where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 331 * 332 * @param uuid the uuid 333 * @param groupId the group ID 334 * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found 335 * @throws SystemException if a system exception occurred 336 */ 337 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUUID_G( 338 java.lang.String uuid, long groupId) 339 throws com.liferay.portal.kernel.exception.SystemException { 340 return getPersistence().fetchByUUID_G(uuid, groupId); 341 } 342 343 /** 344 * Returns the document library file version where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 345 * 346 * @param uuid the uuid 347 * @param groupId the group ID 348 * @param retrieveFromCache whether to use the finder cache 349 * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found 350 * @throws SystemException if a system exception occurred 351 */ 352 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUUID_G( 353 java.lang.String uuid, long groupId, boolean retrieveFromCache) 354 throws com.liferay.portal.kernel.exception.SystemException { 355 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 356 } 357 358 /** 359 * Returns all the document library file versions where fileEntryId = ?. 360 * 361 * @param fileEntryId the file entry ID 362 * @return the matching document library file versions 363 * @throws SystemException if a system exception occurred 364 */ 365 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId( 366 long fileEntryId) 367 throws com.liferay.portal.kernel.exception.SystemException { 368 return getPersistence().findByFileEntryId(fileEntryId); 369 } 370 371 /** 372 * Returns a range of all the document library file versions where fileEntryId = ?. 373 * 374 * <p> 375 * 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. 376 * </p> 377 * 378 * @param fileEntryId the file entry ID 379 * @param start the lower bound of the range of document library file versions 380 * @param end the upper bound of the range of document library file versions (not inclusive) 381 * @return the range of matching document library file versions 382 * @throws SystemException if a system exception occurred 383 */ 384 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId( 385 long fileEntryId, int start, int end) 386 throws com.liferay.portal.kernel.exception.SystemException { 387 return getPersistence().findByFileEntryId(fileEntryId, start, end); 388 } 389 390 /** 391 * Returns an ordered range of all the document library file versions where fileEntryId = ?. 392 * 393 * <p> 394 * 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. 395 * </p> 396 * 397 * @param fileEntryId the file entry ID 398 * @param start the lower bound of the range of document library file versions 399 * @param end the upper bound of the range of document library file versions (not inclusive) 400 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 401 * @return the ordered range of matching document library file versions 402 * @throws SystemException if a system exception occurred 403 */ 404 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId( 405 long fileEntryId, int start, int end, 406 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 407 throws com.liferay.portal.kernel.exception.SystemException { 408 return getPersistence() 409 .findByFileEntryId(fileEntryId, start, end, orderByComparator); 410 } 411 412 /** 413 * Returns the first document library file version in the ordered set where fileEntryId = ?. 414 * 415 * <p> 416 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 417 * </p> 418 * 419 * @param fileEntryId the file entry ID 420 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 421 * @return the first matching document library file version 422 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found 423 * @throws SystemException if a system exception occurred 424 */ 425 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByFileEntryId_First( 426 long fileEntryId, 427 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 428 throws com.liferay.portal.kernel.exception.SystemException, 429 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 430 return getPersistence() 431 .findByFileEntryId_First(fileEntryId, orderByComparator); 432 } 433 434 /** 435 * Returns the last document library file version in the ordered set where fileEntryId = ?. 436 * 437 * <p> 438 * 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. 439 * </p> 440 * 441 * @param fileEntryId the file entry ID 442 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 443 * @return the last matching document library file version 444 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found 445 * @throws SystemException if a system exception occurred 446 */ 447 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByFileEntryId_Last( 448 long fileEntryId, 449 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 450 throws com.liferay.portal.kernel.exception.SystemException, 451 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 452 return getPersistence() 453 .findByFileEntryId_Last(fileEntryId, orderByComparator); 454 } 455 456 /** 457 * Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = ?. 458 * 459 * <p> 460 * 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. 461 * </p> 462 * 463 * @param fileVersionId the primary key of the current document library file version 464 * @param fileEntryId the file entry ID 465 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 466 * @return the previous, current, and next document library file version 467 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found 468 * @throws SystemException if a system exception occurred 469 */ 470 public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByFileEntryId_PrevAndNext( 471 long fileVersionId, long fileEntryId, 472 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 473 throws com.liferay.portal.kernel.exception.SystemException, 474 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 475 return getPersistence() 476 .findByFileEntryId_PrevAndNext(fileVersionId, fileEntryId, 477 orderByComparator); 478 } 479 480 /** 481 * Returns the document library file version where fileEntryId = ? and version = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileVersionException} if it could not be found. 482 * 483 * @param fileEntryId the file entry ID 484 * @param version the version 485 * @return the matching document library file version 486 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found 487 * @throws SystemException if a system exception occurred 488 */ 489 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_V( 490 long fileEntryId, java.lang.String version) 491 throws com.liferay.portal.kernel.exception.SystemException, 492 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 493 return getPersistence().findByF_V(fileEntryId, version); 494 } 495 496 /** 497 * Returns the document library file version where fileEntryId = ? and version = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 498 * 499 * @param fileEntryId the file entry ID 500 * @param version the version 501 * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found 502 * @throws SystemException if a system exception occurred 503 */ 504 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V( 505 long fileEntryId, java.lang.String version) 506 throws com.liferay.portal.kernel.exception.SystemException { 507 return getPersistence().fetchByF_V(fileEntryId, version); 508 } 509 510 /** 511 * Returns the document library file version where fileEntryId = ? and version = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 512 * 513 * @param fileEntryId the file entry ID 514 * @param version the version 515 * @param retrieveFromCache whether to use the finder cache 516 * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found 517 * @throws SystemException if a system exception occurred 518 */ 519 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V( 520 long fileEntryId, java.lang.String version, boolean retrieveFromCache) 521 throws com.liferay.portal.kernel.exception.SystemException { 522 return getPersistence() 523 .fetchByF_V(fileEntryId, version, retrieveFromCache); 524 } 525 526 /** 527 * Returns all the document library file versions where fileEntryId = ? and status = ?. 528 * 529 * @param fileEntryId the file entry ID 530 * @param status the status 531 * @return the matching document library file versions 532 * @throws SystemException if a system exception occurred 533 */ 534 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S( 535 long fileEntryId, int status) 536 throws com.liferay.portal.kernel.exception.SystemException { 537 return getPersistence().findByF_S(fileEntryId, status); 538 } 539 540 /** 541 * Returns a range of all the document library file versions where fileEntryId = ? and status = ?. 542 * 543 * <p> 544 * 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. 545 * </p> 546 * 547 * @param fileEntryId the file entry ID 548 * @param status the status 549 * @param start the lower bound of the range of document library file versions 550 * @param end the upper bound of the range of document library file versions (not inclusive) 551 * @return the range of matching document library file versions 552 * @throws SystemException if a system exception occurred 553 */ 554 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S( 555 long fileEntryId, int status, int start, int end) 556 throws com.liferay.portal.kernel.exception.SystemException { 557 return getPersistence().findByF_S(fileEntryId, status, start, end); 558 } 559 560 /** 561 * Returns an ordered range of all the document library file versions where fileEntryId = ? and status = ?. 562 * 563 * <p> 564 * 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. 565 * </p> 566 * 567 * @param fileEntryId the file entry ID 568 * @param status the status 569 * @param start the lower bound of the range of document library file versions 570 * @param end the upper bound of the range of document library file versions (not inclusive) 571 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 572 * @return the ordered range of matching document library file versions 573 * @throws SystemException if a system exception occurred 574 */ 575 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S( 576 long fileEntryId, int status, int start, int end, 577 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 578 throws com.liferay.portal.kernel.exception.SystemException { 579 return getPersistence() 580 .findByF_S(fileEntryId, status, start, end, orderByComparator); 581 } 582 583 /** 584 * Returns the first document library file version in the ordered set where fileEntryId = ? and status = ?. 585 * 586 * <p> 587 * 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. 588 * </p> 589 * 590 * @param fileEntryId the file entry ID 591 * @param status the status 592 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 593 * @return the first matching document library file version 594 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found 595 * @throws SystemException if a system exception occurred 596 */ 597 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_First( 598 long fileEntryId, int status, 599 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 600 throws com.liferay.portal.kernel.exception.SystemException, 601 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 602 return getPersistence() 603 .findByF_S_First(fileEntryId, status, orderByComparator); 604 } 605 606 /** 607 * Returns the last document library file version in the ordered set where fileEntryId = ? and status = ?. 608 * 609 * <p> 610 * 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. 611 * </p> 612 * 613 * @param fileEntryId the file entry ID 614 * @param status the status 615 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 616 * @return the last matching document library file version 617 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found 618 * @throws SystemException if a system exception occurred 619 */ 620 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_Last( 621 long fileEntryId, int status, 622 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 623 throws com.liferay.portal.kernel.exception.SystemException, 624 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 625 return getPersistence() 626 .findByF_S_Last(fileEntryId, status, orderByComparator); 627 } 628 629 /** 630 * Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = ? and status = ?. 631 * 632 * <p> 633 * 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. 634 * </p> 635 * 636 * @param fileVersionId the primary key of the current document library file version 637 * @param fileEntryId the file entry ID 638 * @param status the status 639 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 640 * @return the previous, current, and next document library file version 641 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found 642 * @throws SystemException if a system exception occurred 643 */ 644 public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_S_PrevAndNext( 645 long fileVersionId, long fileEntryId, int status, 646 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 647 throws com.liferay.portal.kernel.exception.SystemException, 648 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 649 return getPersistence() 650 .findByF_S_PrevAndNext(fileVersionId, fileEntryId, status, 651 orderByComparator); 652 } 653 654 /** 655 * Returns all the document library file versions where groupId = ? and folderId = ? and status = ?. 656 * 657 * @param groupId the group ID 658 * @param folderId the folder ID 659 * @param status the status 660 * @return the matching document library file versions 661 * @throws SystemException if a system exception occurred 662 */ 663 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S( 664 long groupId, long folderId, int status) 665 throws com.liferay.portal.kernel.exception.SystemException { 666 return getPersistence().findByG_F_S(groupId, folderId, status); 667 } 668 669 /** 670 * Returns a range of all the document library file versions where groupId = ? and folderId = ? and status = ?. 671 * 672 * <p> 673 * 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. 674 * </p> 675 * 676 * @param groupId the group ID 677 * @param folderId the folder ID 678 * @param status the status 679 * @param start the lower bound of the range of document library file versions 680 * @param end the upper bound of the range of document library file versions (not inclusive) 681 * @return the range of matching document library file versions 682 * @throws SystemException if a system exception occurred 683 */ 684 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S( 685 long groupId, long folderId, int status, int start, int end) 686 throws com.liferay.portal.kernel.exception.SystemException { 687 return getPersistence() 688 .findByG_F_S(groupId, folderId, status, start, end); 689 } 690 691 /** 692 * Returns an ordered range of all the document library file versions where groupId = ? and folderId = ? and status = ?. 693 * 694 * <p> 695 * 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. 696 * </p> 697 * 698 * @param groupId the group ID 699 * @param folderId the folder ID 700 * @param status the status 701 * @param start the lower bound of the range of document library file versions 702 * @param end the upper bound of the range of document library file versions (not inclusive) 703 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 704 * @return the ordered range of matching document library file versions 705 * @throws SystemException if a system exception occurred 706 */ 707 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S( 708 long groupId, long folderId, int status, int start, int end, 709 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 710 throws com.liferay.portal.kernel.exception.SystemException { 711 return getPersistence() 712 .findByG_F_S(groupId, folderId, status, start, end, 713 orderByComparator); 714 } 715 716 /** 717 * Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and status = ?. 718 * 719 * <p> 720 * 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. 721 * </p> 722 * 723 * @param groupId the group ID 724 * @param folderId the folder ID 725 * @param status the status 726 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 727 * @return the first matching document library file version 728 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found 729 * @throws SystemException if a system exception occurred 730 */ 731 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_First( 732 long groupId, long folderId, int status, 733 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 734 throws com.liferay.portal.kernel.exception.SystemException, 735 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 736 return getPersistence() 737 .findByG_F_S_First(groupId, folderId, status, 738 orderByComparator); 739 } 740 741 /** 742 * Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and status = ?. 743 * 744 * <p> 745 * 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. 746 * </p> 747 * 748 * @param groupId the group ID 749 * @param folderId the folder ID 750 * @param status the status 751 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 752 * @return the last matching document library file version 753 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found 754 * @throws SystemException if a system exception occurred 755 */ 756 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_Last( 757 long groupId, long folderId, int status, 758 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 759 throws com.liferay.portal.kernel.exception.SystemException, 760 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 761 return getPersistence() 762 .findByG_F_S_Last(groupId, folderId, status, 763 orderByComparator); 764 } 765 766 /** 767 * Returns the document library file versions before and after the current document library file version in the ordered set where groupId = ? and folderId = ? and status = ?. 768 * 769 * <p> 770 * 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. 771 * </p> 772 * 773 * @param fileVersionId the primary key of the current document library file version 774 * @param groupId the group ID 775 * @param folderId the folder ID 776 * @param status the status 777 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 778 * @return the previous, current, and next document library file version 779 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found 780 * @throws SystemException if a system exception occurred 781 */ 782 public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_S_PrevAndNext( 783 long fileVersionId, long groupId, long folderId, int status, 784 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 785 throws com.liferay.portal.kernel.exception.SystemException, 786 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 787 return getPersistence() 788 .findByG_F_S_PrevAndNext(fileVersionId, groupId, folderId, 789 status, orderByComparator); 790 } 791 792 /** 793 * Returns all the document library file versions. 794 * 795 * @return the document library file versions 796 * @throws SystemException if a system exception occurred 797 */ 798 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll() 799 throws com.liferay.portal.kernel.exception.SystemException { 800 return getPersistence().findAll(); 801 } 802 803 /** 804 * Returns a range of all the document library file versions. 805 * 806 * <p> 807 * 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. 808 * </p> 809 * 810 * @param start the lower bound of the range of document library file versions 811 * @param end the upper bound of the range of document library file versions (not inclusive) 812 * @return the range of document library file versions 813 * @throws SystemException if a system exception occurred 814 */ 815 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll( 816 int start, int end) 817 throws com.liferay.portal.kernel.exception.SystemException { 818 return getPersistence().findAll(start, end); 819 } 820 821 /** 822 * Returns an ordered range of all the document library file versions. 823 * 824 * <p> 825 * 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. 826 * </p> 827 * 828 * @param start the lower bound of the range of document library file versions 829 * @param end the upper bound of the range of document library file versions (not inclusive) 830 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 831 * @return the ordered range of document library file versions 832 * @throws SystemException if a system exception occurred 833 */ 834 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll( 835 int start, int end, 836 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 837 throws com.liferay.portal.kernel.exception.SystemException { 838 return getPersistence().findAll(start, end, orderByComparator); 839 } 840 841 /** 842 * Removes all the document library file versions where uuid = ? from the database. 843 * 844 * @param uuid the uuid 845 * @throws SystemException if a system exception occurred 846 */ 847 public static void removeByUuid(java.lang.String uuid) 848 throws com.liferay.portal.kernel.exception.SystemException { 849 getPersistence().removeByUuid(uuid); 850 } 851 852 /** 853 * Removes the document library file version where uuid = ? and groupId = ? from the database. 854 * 855 * @param uuid the uuid 856 * @param groupId the group ID 857 * @throws SystemException if a system exception occurred 858 */ 859 public static void removeByUUID_G(java.lang.String uuid, long groupId) 860 throws com.liferay.portal.kernel.exception.SystemException, 861 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 862 getPersistence().removeByUUID_G(uuid, groupId); 863 } 864 865 /** 866 * Removes all the document library file versions where fileEntryId = ? from the database. 867 * 868 * @param fileEntryId the file entry ID 869 * @throws SystemException if a system exception occurred 870 */ 871 public static void removeByFileEntryId(long fileEntryId) 872 throws com.liferay.portal.kernel.exception.SystemException { 873 getPersistence().removeByFileEntryId(fileEntryId); 874 } 875 876 /** 877 * Removes the document library file version where fileEntryId = ? and version = ? from the database. 878 * 879 * @param fileEntryId the file entry ID 880 * @param version the version 881 * @throws SystemException if a system exception occurred 882 */ 883 public static void removeByF_V(long fileEntryId, java.lang.String version) 884 throws com.liferay.portal.kernel.exception.SystemException, 885 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 886 getPersistence().removeByF_V(fileEntryId, version); 887 } 888 889 /** 890 * Removes all the document library file versions where fileEntryId = ? and status = ? from the database. 891 * 892 * @param fileEntryId the file entry ID 893 * @param status the status 894 * @throws SystemException if a system exception occurred 895 */ 896 public static void removeByF_S(long fileEntryId, int status) 897 throws com.liferay.portal.kernel.exception.SystemException { 898 getPersistence().removeByF_S(fileEntryId, status); 899 } 900 901 /** 902 * Removes all the document library file versions where groupId = ? and folderId = ? and status = ? from the database. 903 * 904 * @param groupId the group ID 905 * @param folderId the folder ID 906 * @param status the status 907 * @throws SystemException if a system exception occurred 908 */ 909 public static void removeByG_F_S(long groupId, long folderId, int status) 910 throws com.liferay.portal.kernel.exception.SystemException { 911 getPersistence().removeByG_F_S(groupId, folderId, status); 912 } 913 914 /** 915 * Removes all the document library file versions from the database. 916 * 917 * @throws SystemException if a system exception occurred 918 */ 919 public static void removeAll() 920 throws com.liferay.portal.kernel.exception.SystemException { 921 getPersistence().removeAll(); 922 } 923 924 /** 925 * Returns the number of document library file versions where uuid = ?. 926 * 927 * @param uuid the uuid 928 * @return the number of matching document library file versions 929 * @throws SystemException if a system exception occurred 930 */ 931 public static int countByUuid(java.lang.String uuid) 932 throws com.liferay.portal.kernel.exception.SystemException { 933 return getPersistence().countByUuid(uuid); 934 } 935 936 /** 937 * Returns the number of document library file versions where uuid = ? and groupId = ?. 938 * 939 * @param uuid the uuid 940 * @param groupId the group ID 941 * @return the number of matching document library file versions 942 * @throws SystemException if a system exception occurred 943 */ 944 public static int countByUUID_G(java.lang.String uuid, long groupId) 945 throws com.liferay.portal.kernel.exception.SystemException { 946 return getPersistence().countByUUID_G(uuid, groupId); 947 } 948 949 /** 950 * Returns the number of document library file versions where fileEntryId = ?. 951 * 952 * @param fileEntryId the file entry ID 953 * @return the number of matching document library file versions 954 * @throws SystemException if a system exception occurred 955 */ 956 public static int countByFileEntryId(long fileEntryId) 957 throws com.liferay.portal.kernel.exception.SystemException { 958 return getPersistence().countByFileEntryId(fileEntryId); 959 } 960 961 /** 962 * Returns the number of document library file versions where fileEntryId = ? and version = ?. 963 * 964 * @param fileEntryId the file entry ID 965 * @param version the version 966 * @return the number of matching document library file versions 967 * @throws SystemException if a system exception occurred 968 */ 969 public static int countByF_V(long fileEntryId, java.lang.String version) 970 throws com.liferay.portal.kernel.exception.SystemException { 971 return getPersistence().countByF_V(fileEntryId, version); 972 } 973 974 /** 975 * Returns the number of document library file versions where fileEntryId = ? and status = ?. 976 * 977 * @param fileEntryId the file entry ID 978 * @param status the status 979 * @return the number of matching document library file versions 980 * @throws SystemException if a system exception occurred 981 */ 982 public static int countByF_S(long fileEntryId, int status) 983 throws com.liferay.portal.kernel.exception.SystemException { 984 return getPersistence().countByF_S(fileEntryId, status); 985 } 986 987 /** 988 * Returns the number of document library file versions where groupId = ? and folderId = ? and status = ?. 989 * 990 * @param groupId the group ID 991 * @param folderId the folder ID 992 * @param status the status 993 * @return the number of matching document library file versions 994 * @throws SystemException if a system exception occurred 995 */ 996 public static int countByG_F_S(long groupId, long folderId, int status) 997 throws com.liferay.portal.kernel.exception.SystemException { 998 return getPersistence().countByG_F_S(groupId, folderId, status); 999 } 1000 1001 /** 1002 * Returns the number of document library file versions. 1003 * 1004 * @return the number of document library file versions 1005 * @throws SystemException if a system exception occurred 1006 */ 1007 public static int countAll() 1008 throws com.liferay.portal.kernel.exception.SystemException { 1009 return getPersistence().countAll(); 1010 } 1011 1012 public static DLFileVersionPersistence getPersistence() { 1013 if (_persistence == null) { 1014 _persistence = (DLFileVersionPersistence)PortalBeanLocatorUtil.locate(DLFileVersionPersistence.class.getName()); 1015 1016 ReferenceRegistry.registerReference(DLFileVersionUtil.class, 1017 "_persistence"); 1018 } 1019 1020 return _persistence; 1021 } 1022 1023 public void setPersistence(DLFileVersionPersistence persistence) { 1024 _persistence = persistence; 1025 1026 ReferenceRegistry.registerReference(DLFileVersionUtil.class, 1027 "_persistence"); 1028 } 1029 1030 private static DLFileVersionPersistence _persistence; 1031 }