001 /** 002 * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.documentlibrary.model.DLFileVersion; 022 023 /** 024 * The persistence interface for the document library file version service. 025 * 026 * <p> 027 * Caching information and settings can be found in <code>portal.properties</code> 028 * </p> 029 * 030 * @author Brian Wing Shun Chan 031 * @see com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileVersionPersistenceImpl 032 * @see DLFileVersionUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface DLFileVersionPersistence extends BasePersistence<DLFileVersion> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link DLFileVersionUtil} to access the document library file version persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the document library file versions where uuid = ?. 045 * 046 * @param uuid the uuid 047 * @return the matching document library file versions 048 */ 049 public java.util.List<DLFileVersion> findByUuid(java.lang.String uuid); 050 051 /** 052 * Returns a range of all the document library file versions where uuid = ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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 uuid the uuid 059 * @param start the lower bound of the range of document library file versions 060 * @param end the upper bound of the range of document library file versions (not inclusive) 061 * @return the range of matching document library file versions 062 */ 063 public java.util.List<DLFileVersion> findByUuid(java.lang.String uuid, 064 int start, int end); 065 066 /** 067 * Returns an ordered range of all the document library file versions where uuid = ?. 068 * 069 * <p> 070 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 071 * </p> 072 * 073 * @param uuid the uuid 074 * @param start the lower bound of the range of document library file versions 075 * @param end the upper bound of the range of document library file versions (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching document library file versions 078 */ 079 public java.util.List<DLFileVersion> findByUuid(java.lang.String uuid, 080 int start, int end, 081 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 082 083 /** 084 * Returns the first document library file version in the ordered set where uuid = ?. 085 * 086 * @param uuid the uuid 087 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 088 * @return the first matching document library file version 089 * @throws NoSuchFileVersionException if a matching document library file version could not be found 090 */ 091 public DLFileVersion findByUuid_First(java.lang.String uuid, 092 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 093 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 094 095 /** 096 * Returns the first document library file version in the ordered set where uuid = ?. 097 * 098 * @param uuid the uuid 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found 101 */ 102 public DLFileVersion fetchByUuid_First(java.lang.String uuid, 103 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 104 105 /** 106 * Returns the last document library file version in the ordered set where uuid = ?. 107 * 108 * @param uuid the uuid 109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 110 * @return the last matching document library file version 111 * @throws NoSuchFileVersionException if a matching document library file version could not be found 112 */ 113 public DLFileVersion findByUuid_Last(java.lang.String uuid, 114 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 115 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 116 117 /** 118 * Returns the last document library file version in the ordered set where uuid = ?. 119 * 120 * @param uuid the uuid 121 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 122 * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found 123 */ 124 public DLFileVersion fetchByUuid_Last(java.lang.String uuid, 125 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 126 127 /** 128 * Returns the document library file versions before and after the current document library file version in the ordered set where uuid = ?. 129 * 130 * @param fileVersionId the primary key of the current document library file version 131 * @param uuid the uuid 132 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 133 * @return the previous, current, and next document library file version 134 * @throws NoSuchFileVersionException if a document library file version with the primary key could not be found 135 */ 136 public DLFileVersion[] findByUuid_PrevAndNext(long fileVersionId, 137 java.lang.String uuid, 138 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 139 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 140 141 /** 142 * Removes all the document library file versions where uuid = ? from the database. 143 * 144 * @param uuid the uuid 145 */ 146 public void removeByUuid(java.lang.String uuid); 147 148 /** 149 * Returns the number of document library file versions where uuid = ?. 150 * 151 * @param uuid the uuid 152 * @return the number of matching document library file versions 153 */ 154 public int countByUuid(java.lang.String uuid); 155 156 /** 157 * Returns the document library file version where uuid = ? and groupId = ? or throws a {@link NoSuchFileVersionException} if it could not be found. 158 * 159 * @param uuid the uuid 160 * @param groupId the group ID 161 * @return the matching document library file version 162 * @throws NoSuchFileVersionException if a matching document library file version could not be found 163 */ 164 public DLFileVersion findByUUID_G(java.lang.String uuid, long groupId) 165 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 166 167 /** 168 * 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. 169 * 170 * @param uuid the uuid 171 * @param groupId the group ID 172 * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found 173 */ 174 public DLFileVersion fetchByUUID_G(java.lang.String uuid, long groupId); 175 176 /** 177 * 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. 178 * 179 * @param uuid the uuid 180 * @param groupId the group ID 181 * @param retrieveFromCache whether to use the finder cache 182 * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found 183 */ 184 public DLFileVersion fetchByUUID_G(java.lang.String uuid, long groupId, 185 boolean retrieveFromCache); 186 187 /** 188 * Removes the document library file version where uuid = ? and groupId = ? from the database. 189 * 190 * @param uuid the uuid 191 * @param groupId the group ID 192 * @return the document library file version that was removed 193 */ 194 public DLFileVersion removeByUUID_G(java.lang.String uuid, long groupId) 195 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 196 197 /** 198 * Returns the number of document library file versions where uuid = ? and groupId = ?. 199 * 200 * @param uuid the uuid 201 * @param groupId the group ID 202 * @return the number of matching document library file versions 203 */ 204 public int countByUUID_G(java.lang.String uuid, long groupId); 205 206 /** 207 * Returns all the document library file versions where uuid = ? and companyId = ?. 208 * 209 * @param uuid the uuid 210 * @param companyId the company ID 211 * @return the matching document library file versions 212 */ 213 public java.util.List<DLFileVersion> findByUuid_C(java.lang.String uuid, 214 long companyId); 215 216 /** 217 * Returns a range of all the document library file versions where uuid = ? and companyId = ?. 218 * 219 * <p> 220 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 221 * </p> 222 * 223 * @param uuid the uuid 224 * @param companyId the company ID 225 * @param start the lower bound of the range of document library file versions 226 * @param end the upper bound of the range of document library file versions (not inclusive) 227 * @return the range of matching document library file versions 228 */ 229 public java.util.List<DLFileVersion> findByUuid_C(java.lang.String uuid, 230 long companyId, int start, int end); 231 232 /** 233 * Returns an ordered range of all the document library file versions where uuid = ? and companyId = ?. 234 * 235 * <p> 236 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 237 * </p> 238 * 239 * @param uuid the uuid 240 * @param companyId the company ID 241 * @param start the lower bound of the range of document library file versions 242 * @param end the upper bound of the range of document library file versions (not inclusive) 243 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 244 * @return the ordered range of matching document library file versions 245 */ 246 public java.util.List<DLFileVersion> findByUuid_C(java.lang.String uuid, 247 long companyId, int start, int end, 248 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 249 250 /** 251 * Returns the first document library file version in the ordered set where uuid = ? and companyId = ?. 252 * 253 * @param uuid the uuid 254 * @param companyId the company ID 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 NoSuchFileVersionException if a matching document library file version could not be found 258 */ 259 public DLFileVersion findByUuid_C_First(java.lang.String uuid, 260 long companyId, 261 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 262 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 263 264 /** 265 * Returns the first document library file version in the ordered set where uuid = ? and companyId = ?. 266 * 267 * @param uuid the uuid 268 * @param companyId the company ID 269 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 270 * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found 271 */ 272 public DLFileVersion fetchByUuid_C_First(java.lang.String uuid, 273 long companyId, 274 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 275 276 /** 277 * Returns the last document library file version in the ordered set where uuid = ? and companyId = ?. 278 * 279 * @param uuid the uuid 280 * @param companyId the company ID 281 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 282 * @return the last matching document library file version 283 * @throws NoSuchFileVersionException if a matching document library file version could not be found 284 */ 285 public DLFileVersion findByUuid_C_Last(java.lang.String uuid, 286 long companyId, 287 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 288 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 289 290 /** 291 * Returns the last document library file version in the ordered set where uuid = ? and companyId = ?. 292 * 293 * @param uuid the uuid 294 * @param companyId the company ID 295 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 296 * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found 297 */ 298 public DLFileVersion fetchByUuid_C_Last(java.lang.String uuid, 299 long companyId, 300 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 301 302 /** 303 * Returns the document library file versions before and after the current document library file version in the ordered set where uuid = ? and companyId = ?. 304 * 305 * @param fileVersionId the primary key of the current document library file version 306 * @param uuid the uuid 307 * @param companyId the company ID 308 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 309 * @return the previous, current, and next document library file version 310 * @throws NoSuchFileVersionException if a document library file version with the primary key could not be found 311 */ 312 public DLFileVersion[] findByUuid_C_PrevAndNext(long fileVersionId, 313 java.lang.String uuid, long companyId, 314 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 315 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 316 317 /** 318 * Removes all the document library file versions where uuid = ? and companyId = ? from the database. 319 * 320 * @param uuid the uuid 321 * @param companyId the company ID 322 */ 323 public void removeByUuid_C(java.lang.String uuid, long companyId); 324 325 /** 326 * Returns the number of document library file versions where uuid = ? and companyId = ?. 327 * 328 * @param uuid the uuid 329 * @param companyId the company ID 330 * @return the number of matching document library file versions 331 */ 332 public int countByUuid_C(java.lang.String uuid, long companyId); 333 334 /** 335 * Returns all the document library file versions where companyId = ?. 336 * 337 * @param companyId the company ID 338 * @return the matching document library file versions 339 */ 340 public java.util.List<DLFileVersion> findByCompanyId(long companyId); 341 342 /** 343 * Returns a range of all the document library file versions where companyId = ?. 344 * 345 * <p> 346 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 347 * </p> 348 * 349 * @param companyId the company ID 350 * @param start the lower bound of the range of document library file versions 351 * @param end the upper bound of the range of document library file versions (not inclusive) 352 * @return the range of matching document library file versions 353 */ 354 public java.util.List<DLFileVersion> findByCompanyId(long companyId, 355 int start, int end); 356 357 /** 358 * Returns an ordered range of all the document library file versions where companyId = ?. 359 * 360 * <p> 361 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 362 * </p> 363 * 364 * @param companyId the company ID 365 * @param start the lower bound of the range of document library file versions 366 * @param end the upper bound of the range of document library file versions (not inclusive) 367 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 368 * @return the ordered range of matching document library file versions 369 */ 370 public java.util.List<DLFileVersion> findByCompanyId(long companyId, 371 int start, int end, 372 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 373 374 /** 375 * Returns the first document library file version in the ordered set where companyId = ?. 376 * 377 * @param companyId the company ID 378 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 379 * @return the first matching document library file version 380 * @throws NoSuchFileVersionException if a matching document library file version could not be found 381 */ 382 public DLFileVersion findByCompanyId_First(long companyId, 383 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 384 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 385 386 /** 387 * Returns the first document library file version in the ordered set where companyId = ?. 388 * 389 * @param companyId the company ID 390 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 391 * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found 392 */ 393 public DLFileVersion fetchByCompanyId_First(long companyId, 394 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 395 396 /** 397 * Returns the last document library file version in the ordered set where companyId = ?. 398 * 399 * @param companyId the company ID 400 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 401 * @return the last matching document library file version 402 * @throws NoSuchFileVersionException if a matching document library file version could not be found 403 */ 404 public DLFileVersion findByCompanyId_Last(long companyId, 405 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 406 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 407 408 /** 409 * Returns the last document library file version in the ordered set where companyId = ?. 410 * 411 * @param companyId the company ID 412 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 413 * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found 414 */ 415 public DLFileVersion fetchByCompanyId_Last(long companyId, 416 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 417 418 /** 419 * Returns the document library file versions before and after the current document library file version in the ordered set where companyId = ?. 420 * 421 * @param fileVersionId the primary key of the current document library file version 422 * @param companyId the company ID 423 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 424 * @return the previous, current, and next document library file version 425 * @throws NoSuchFileVersionException if a document library file version with the primary key could not be found 426 */ 427 public DLFileVersion[] findByCompanyId_PrevAndNext(long fileVersionId, 428 long companyId, 429 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 430 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 431 432 /** 433 * Removes all the document library file versions where companyId = ? from the database. 434 * 435 * @param companyId the company ID 436 */ 437 public void removeByCompanyId(long companyId); 438 439 /** 440 * Returns the number of document library file versions where companyId = ?. 441 * 442 * @param companyId the company ID 443 * @return the number of matching document library file versions 444 */ 445 public int countByCompanyId(long companyId); 446 447 /** 448 * Returns all the document library file versions where fileEntryId = ?. 449 * 450 * @param fileEntryId the file entry ID 451 * @return the matching document library file versions 452 */ 453 public java.util.List<DLFileVersion> findByFileEntryId(long fileEntryId); 454 455 /** 456 * Returns a range of all the document library file versions where fileEntryId = ?. 457 * 458 * <p> 459 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 460 * </p> 461 * 462 * @param fileEntryId the file entry ID 463 * @param start the lower bound of the range of document library file versions 464 * @param end the upper bound of the range of document library file versions (not inclusive) 465 * @return the range of matching document library file versions 466 */ 467 public java.util.List<DLFileVersion> findByFileEntryId(long fileEntryId, 468 int start, int end); 469 470 /** 471 * Returns an ordered range of all the document library file versions where fileEntryId = ?. 472 * 473 * <p> 474 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 475 * </p> 476 * 477 * @param fileEntryId the file entry ID 478 * @param start the lower bound of the range of document library file versions 479 * @param end the upper bound of the range of document library file versions (not inclusive) 480 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 481 * @return the ordered range of matching document library file versions 482 */ 483 public java.util.List<DLFileVersion> findByFileEntryId(long fileEntryId, 484 int start, int end, 485 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 486 487 /** 488 * Returns the first document library file version in the ordered set where fileEntryId = ?. 489 * 490 * @param fileEntryId the file entry ID 491 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 492 * @return the first matching document library file version 493 * @throws NoSuchFileVersionException if a matching document library file version could not be found 494 */ 495 public DLFileVersion findByFileEntryId_First(long fileEntryId, 496 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 497 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 498 499 /** 500 * Returns the first document library file version in the ordered set where fileEntryId = ?. 501 * 502 * @param fileEntryId the file entry ID 503 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 504 * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found 505 */ 506 public DLFileVersion fetchByFileEntryId_First(long fileEntryId, 507 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 508 509 /** 510 * Returns the last document library file version in the ordered set where fileEntryId = ?. 511 * 512 * @param fileEntryId the file entry ID 513 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 514 * @return the last matching document library file version 515 * @throws NoSuchFileVersionException if a matching document library file version could not be found 516 */ 517 public DLFileVersion findByFileEntryId_Last(long fileEntryId, 518 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 519 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 520 521 /** 522 * Returns the last document library file version in the ordered set where fileEntryId = ?. 523 * 524 * @param fileEntryId the file entry ID 525 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 526 * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found 527 */ 528 public DLFileVersion fetchByFileEntryId_Last(long fileEntryId, 529 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 530 531 /** 532 * Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = ?. 533 * 534 * @param fileVersionId the primary key of the current document library file version 535 * @param fileEntryId the file entry ID 536 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 537 * @return the previous, current, and next document library file version 538 * @throws NoSuchFileVersionException if a document library file version with the primary key could not be found 539 */ 540 public DLFileVersion[] findByFileEntryId_PrevAndNext(long fileVersionId, 541 long fileEntryId, 542 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 543 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 544 545 /** 546 * Removes all the document library file versions where fileEntryId = ? from the database. 547 * 548 * @param fileEntryId the file entry ID 549 */ 550 public void removeByFileEntryId(long fileEntryId); 551 552 /** 553 * Returns the number of document library file versions where fileEntryId = ?. 554 * 555 * @param fileEntryId the file entry ID 556 * @return the number of matching document library file versions 557 */ 558 public int countByFileEntryId(long fileEntryId); 559 560 /** 561 * Returns all the document library file versions where mimeType = ?. 562 * 563 * @param mimeType the mime type 564 * @return the matching document library file versions 565 */ 566 public java.util.List<DLFileVersion> findByMimeType( 567 java.lang.String mimeType); 568 569 /** 570 * Returns a range of all the document library file versions where mimeType = ?. 571 * 572 * <p> 573 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 574 * </p> 575 * 576 * @param mimeType the mime type 577 * @param start the lower bound of the range of document library file versions 578 * @param end the upper bound of the range of document library file versions (not inclusive) 579 * @return the range of matching document library file versions 580 */ 581 public java.util.List<DLFileVersion> findByMimeType( 582 java.lang.String mimeType, int start, int end); 583 584 /** 585 * Returns an ordered range of all the document library file versions where mimeType = ?. 586 * 587 * <p> 588 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 589 * </p> 590 * 591 * @param mimeType the mime type 592 * @param start the lower bound of the range of document library file versions 593 * @param end the upper bound of the range of document library file versions (not inclusive) 594 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 595 * @return the ordered range of matching document library file versions 596 */ 597 public java.util.List<DLFileVersion> findByMimeType( 598 java.lang.String mimeType, int start, int end, 599 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 600 601 /** 602 * Returns the first document library file version in the ordered set where mimeType = ?. 603 * 604 * @param mimeType the mime type 605 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 606 * @return the first matching document library file version 607 * @throws NoSuchFileVersionException if a matching document library file version could not be found 608 */ 609 public DLFileVersion findByMimeType_First(java.lang.String mimeType, 610 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 611 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 612 613 /** 614 * Returns the first document library file version in the ordered set where mimeType = ?. 615 * 616 * @param mimeType the mime type 617 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 618 * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found 619 */ 620 public DLFileVersion fetchByMimeType_First(java.lang.String mimeType, 621 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 622 623 /** 624 * Returns the last document library file version in the ordered set where mimeType = ?. 625 * 626 * @param mimeType the mime type 627 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 628 * @return the last matching document library file version 629 * @throws NoSuchFileVersionException if a matching document library file version could not be found 630 */ 631 public DLFileVersion findByMimeType_Last(java.lang.String mimeType, 632 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 633 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 634 635 /** 636 * Returns the last document library file version in the ordered set where mimeType = ?. 637 * 638 * @param mimeType the mime type 639 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 640 * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found 641 */ 642 public DLFileVersion fetchByMimeType_Last(java.lang.String mimeType, 643 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 644 645 /** 646 * Returns the document library file versions before and after the current document library file version in the ordered set where mimeType = ?. 647 * 648 * @param fileVersionId the primary key of the current document library file version 649 * @param mimeType the mime type 650 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 651 * @return the previous, current, and next document library file version 652 * @throws NoSuchFileVersionException if a document library file version with the primary key could not be found 653 */ 654 public DLFileVersion[] findByMimeType_PrevAndNext(long fileVersionId, 655 java.lang.String mimeType, 656 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 657 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 658 659 /** 660 * Removes all the document library file versions where mimeType = ? from the database. 661 * 662 * @param mimeType the mime type 663 */ 664 public void removeByMimeType(java.lang.String mimeType); 665 666 /** 667 * Returns the number of document library file versions where mimeType = ?. 668 * 669 * @param mimeType the mime type 670 * @return the number of matching document library file versions 671 */ 672 public int countByMimeType(java.lang.String mimeType); 673 674 /** 675 * Returns all the document library file versions where companyId = ? and status ≠ ?. 676 * 677 * @param companyId the company ID 678 * @param status the status 679 * @return the matching document library file versions 680 */ 681 public java.util.List<DLFileVersion> findByC_NotS(long companyId, int status); 682 683 /** 684 * Returns a range of all the document library file versions where companyId = ? and status ≠ ?. 685 * 686 * <p> 687 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 688 * </p> 689 * 690 * @param companyId the company ID 691 * @param status the status 692 * @param start the lower bound of the range of document library file versions 693 * @param end the upper bound of the range of document library file versions (not inclusive) 694 * @return the range of matching document library file versions 695 */ 696 public java.util.List<DLFileVersion> findByC_NotS(long companyId, 697 int status, int start, int end); 698 699 /** 700 * Returns an ordered range of all the document library file versions where companyId = ? and status ≠ ?. 701 * 702 * <p> 703 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 704 * </p> 705 * 706 * @param companyId the company ID 707 * @param status the status 708 * @param start the lower bound of the range of document library file versions 709 * @param end the upper bound of the range of document library file versions (not inclusive) 710 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 711 * @return the ordered range of matching document library file versions 712 */ 713 public java.util.List<DLFileVersion> findByC_NotS(long companyId, 714 int status, int start, int end, 715 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 716 717 /** 718 * Returns the first document library file version in the ordered set where companyId = ? and status ≠ ?. 719 * 720 * @param companyId the company ID 721 * @param status the status 722 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 723 * @return the first matching document library file version 724 * @throws NoSuchFileVersionException if a matching document library file version could not be found 725 */ 726 public DLFileVersion findByC_NotS_First(long companyId, int status, 727 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 728 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 729 730 /** 731 * Returns the first document library file version in the ordered set where companyId = ? and status ≠ ?. 732 * 733 * @param companyId the company ID 734 * @param status the status 735 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 736 * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found 737 */ 738 public DLFileVersion fetchByC_NotS_First(long companyId, int status, 739 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 740 741 /** 742 * Returns the last document library file version in the ordered set where companyId = ? and status ≠ ?. 743 * 744 * @param companyId the company ID 745 * @param status the status 746 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 747 * @return the last matching document library file version 748 * @throws NoSuchFileVersionException if a matching document library file version could not be found 749 */ 750 public DLFileVersion findByC_NotS_Last(long companyId, int status, 751 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 752 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 753 754 /** 755 * Returns the last document library file version in the ordered set where companyId = ? and status ≠ ?. 756 * 757 * @param companyId the company ID 758 * @param status the status 759 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 760 * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found 761 */ 762 public DLFileVersion fetchByC_NotS_Last(long companyId, int status, 763 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 764 765 /** 766 * Returns the document library file versions before and after the current document library file version in the ordered set where companyId = ? and status ≠ ?. 767 * 768 * @param fileVersionId the primary key of the current document library file version 769 * @param companyId the company ID 770 * @param status the status 771 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 772 * @return the previous, current, and next document library file version 773 * @throws NoSuchFileVersionException if a document library file version with the primary key could not be found 774 */ 775 public DLFileVersion[] findByC_NotS_PrevAndNext(long fileVersionId, 776 long companyId, int status, 777 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 778 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 779 780 /** 781 * Removes all the document library file versions where companyId = ? and status ≠ ? from the database. 782 * 783 * @param companyId the company ID 784 * @param status the status 785 */ 786 public void removeByC_NotS(long companyId, int status); 787 788 /** 789 * Returns the number of document library file versions where companyId = ? and status ≠ ?. 790 * 791 * @param companyId the company ID 792 * @param status the status 793 * @return the number of matching document library file versions 794 */ 795 public int countByC_NotS(long companyId, int status); 796 797 /** 798 * Returns the document library file version where fileEntryId = ? and version = ? or throws a {@link NoSuchFileVersionException} if it could not be found. 799 * 800 * @param fileEntryId the file entry ID 801 * @param version the version 802 * @return the matching document library file version 803 * @throws NoSuchFileVersionException if a matching document library file version could not be found 804 */ 805 public DLFileVersion findByF_V(long fileEntryId, java.lang.String version) 806 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 807 808 /** 809 * 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. 810 * 811 * @param fileEntryId the file entry ID 812 * @param version the version 813 * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found 814 */ 815 public DLFileVersion fetchByF_V(long fileEntryId, java.lang.String version); 816 817 /** 818 * 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. 819 * 820 * @param fileEntryId the file entry ID 821 * @param version the version 822 * @param retrieveFromCache whether to use the finder cache 823 * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found 824 */ 825 public DLFileVersion fetchByF_V(long fileEntryId, java.lang.String version, 826 boolean retrieveFromCache); 827 828 /** 829 * Removes the document library file version where fileEntryId = ? and version = ? from the database. 830 * 831 * @param fileEntryId the file entry ID 832 * @param version the version 833 * @return the document library file version that was removed 834 */ 835 public DLFileVersion removeByF_V(long fileEntryId, java.lang.String version) 836 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 837 838 /** 839 * Returns the number of document library file versions where fileEntryId = ? and version = ?. 840 * 841 * @param fileEntryId the file entry ID 842 * @param version the version 843 * @return the number of matching document library file versions 844 */ 845 public int countByF_V(long fileEntryId, java.lang.String version); 846 847 /** 848 * Returns all the document library file versions where fileEntryId = ? and status = ?. 849 * 850 * @param fileEntryId the file entry ID 851 * @param status the status 852 * @return the matching document library file versions 853 */ 854 public java.util.List<DLFileVersion> findByF_S(long fileEntryId, int status); 855 856 /** 857 * Returns a range of all the document library file versions where fileEntryId = ? and status = ?. 858 * 859 * <p> 860 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 861 * </p> 862 * 863 * @param fileEntryId the file entry ID 864 * @param status the status 865 * @param start the lower bound of the range of document library file versions 866 * @param end the upper bound of the range of document library file versions (not inclusive) 867 * @return the range of matching document library file versions 868 */ 869 public java.util.List<DLFileVersion> findByF_S(long fileEntryId, 870 int status, int start, int end); 871 872 /** 873 * Returns an ordered range of all the document library file versions where fileEntryId = ? and status = ?. 874 * 875 * <p> 876 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 877 * </p> 878 * 879 * @param fileEntryId the file entry ID 880 * @param status the status 881 * @param start the lower bound of the range of document library file versions 882 * @param end the upper bound of the range of document library file versions (not inclusive) 883 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 884 * @return the ordered range of matching document library file versions 885 */ 886 public java.util.List<DLFileVersion> findByF_S(long fileEntryId, 887 int status, int start, int end, 888 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 889 890 /** 891 * Returns the first document library file version in the ordered set where fileEntryId = ? and status = ?. 892 * 893 * @param fileEntryId the file entry ID 894 * @param status the status 895 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 896 * @return the first matching document library file version 897 * @throws NoSuchFileVersionException if a matching document library file version could not be found 898 */ 899 public DLFileVersion findByF_S_First(long fileEntryId, int status, 900 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 901 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 902 903 /** 904 * Returns the first document library file version in the ordered set where fileEntryId = ? and status = ?. 905 * 906 * @param fileEntryId the file entry ID 907 * @param status the status 908 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 909 * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found 910 */ 911 public DLFileVersion fetchByF_S_First(long fileEntryId, int status, 912 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 913 914 /** 915 * Returns the last document library file version in the ordered set where fileEntryId = ? and status = ?. 916 * 917 * @param fileEntryId the file entry ID 918 * @param status the status 919 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 920 * @return the last matching document library file version 921 * @throws NoSuchFileVersionException if a matching document library file version could not be found 922 */ 923 public DLFileVersion findByF_S_Last(long fileEntryId, int status, 924 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 925 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 926 927 /** 928 * Returns the last document library file version in the ordered set where fileEntryId = ? and status = ?. 929 * 930 * @param fileEntryId the file entry ID 931 * @param status the status 932 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 933 * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found 934 */ 935 public DLFileVersion fetchByF_S_Last(long fileEntryId, int status, 936 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 937 938 /** 939 * Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = ? and status = ?. 940 * 941 * @param fileVersionId the primary key of the current document library file version 942 * @param fileEntryId the file entry ID 943 * @param status the status 944 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 945 * @return the previous, current, and next document library file version 946 * @throws NoSuchFileVersionException if a document library file version with the primary key could not be found 947 */ 948 public DLFileVersion[] findByF_S_PrevAndNext(long fileVersionId, 949 long fileEntryId, int status, 950 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 951 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 952 953 /** 954 * Removes all the document library file versions where fileEntryId = ? and status = ? from the database. 955 * 956 * @param fileEntryId the file entry ID 957 * @param status the status 958 */ 959 public void removeByF_S(long fileEntryId, int status); 960 961 /** 962 * Returns the number of document library file versions where fileEntryId = ? and status = ?. 963 * 964 * @param fileEntryId the file entry ID 965 * @param status the status 966 * @return the number of matching document library file versions 967 */ 968 public int countByF_S(long fileEntryId, int status); 969 970 /** 971 * Returns all the document library file versions where groupId = ? and folderId = ? and status = ?. 972 * 973 * @param groupId the group ID 974 * @param folderId the folder ID 975 * @param status the status 976 * @return the matching document library file versions 977 */ 978 public java.util.List<DLFileVersion> findByG_F_S(long groupId, 979 long folderId, int status); 980 981 /** 982 * Returns a range of all the document library file versions where groupId = ? and folderId = ? and status = ?. 983 * 984 * <p> 985 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 986 * </p> 987 * 988 * @param groupId the group ID 989 * @param folderId the folder ID 990 * @param status the status 991 * @param start the lower bound of the range of document library file versions 992 * @param end the upper bound of the range of document library file versions (not inclusive) 993 * @return the range of matching document library file versions 994 */ 995 public java.util.List<DLFileVersion> findByG_F_S(long groupId, 996 long folderId, int status, int start, int end); 997 998 /** 999 * Returns an ordered range of all the document library file versions where groupId = ? and folderId = ? and status = ?. 1000 * 1001 * <p> 1002 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 1003 * </p> 1004 * 1005 * @param groupId the group ID 1006 * @param folderId the folder ID 1007 * @param status the status 1008 * @param start the lower bound of the range of document library file versions 1009 * @param end the upper bound of the range of document library file versions (not inclusive) 1010 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1011 * @return the ordered range of matching document library file versions 1012 */ 1013 public java.util.List<DLFileVersion> findByG_F_S(long groupId, 1014 long folderId, int status, int start, int end, 1015 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 1016 1017 /** 1018 * Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and status = ?. 1019 * 1020 * @param groupId the group ID 1021 * @param folderId the folder ID 1022 * @param status the status 1023 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1024 * @return the first matching document library file version 1025 * @throws NoSuchFileVersionException if a matching document library file version could not be found 1026 */ 1027 public DLFileVersion findByG_F_S_First(long groupId, long folderId, 1028 int status, 1029 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 1030 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 1031 1032 /** 1033 * Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and status = ?. 1034 * 1035 * @param groupId the group ID 1036 * @param folderId the folder ID 1037 * @param status the status 1038 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1039 * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found 1040 */ 1041 public DLFileVersion fetchByG_F_S_First(long groupId, long folderId, 1042 int status, 1043 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 1044 1045 /** 1046 * Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and status = ?. 1047 * 1048 * @param groupId the group ID 1049 * @param folderId the folder ID 1050 * @param status the status 1051 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1052 * @return the last matching document library file version 1053 * @throws NoSuchFileVersionException if a matching document library file version could not be found 1054 */ 1055 public DLFileVersion findByG_F_S_Last(long groupId, long folderId, 1056 int status, 1057 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 1058 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 1059 1060 /** 1061 * Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and status = ?. 1062 * 1063 * @param groupId the group ID 1064 * @param folderId the folder ID 1065 * @param status the status 1066 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1067 * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found 1068 */ 1069 public DLFileVersion fetchByG_F_S_Last(long groupId, long folderId, 1070 int status, 1071 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 1072 1073 /** 1074 * 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 = ?. 1075 * 1076 * @param fileVersionId the primary key of the current document library file version 1077 * @param groupId the group ID 1078 * @param folderId the folder ID 1079 * @param status the status 1080 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1081 * @return the previous, current, and next document library file version 1082 * @throws NoSuchFileVersionException if a document library file version with the primary key could not be found 1083 */ 1084 public DLFileVersion[] findByG_F_S_PrevAndNext(long fileVersionId, 1085 long groupId, long folderId, int status, 1086 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 1087 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 1088 1089 /** 1090 * Removes all the document library file versions where groupId = ? and folderId = ? and status = ? from the database. 1091 * 1092 * @param groupId the group ID 1093 * @param folderId the folder ID 1094 * @param status the status 1095 */ 1096 public void removeByG_F_S(long groupId, long folderId, int status); 1097 1098 /** 1099 * Returns the number of document library file versions where groupId = ? and folderId = ? and status = ?. 1100 * 1101 * @param groupId the group ID 1102 * @param folderId the folder ID 1103 * @param status the status 1104 * @return the number of matching document library file versions 1105 */ 1106 public int countByG_F_S(long groupId, long folderId, int status); 1107 1108 /** 1109 * Returns all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ?. 1110 * 1111 * @param groupId the group ID 1112 * @param folderId the folder ID 1113 * @param title the title 1114 * @param version the version 1115 * @return the matching document library file versions 1116 */ 1117 public java.util.List<DLFileVersion> findByG_F_T_V(long groupId, 1118 long folderId, java.lang.String title, java.lang.String version); 1119 1120 /** 1121 * Returns a range of all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ?. 1122 * 1123 * <p> 1124 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 1125 * </p> 1126 * 1127 * @param groupId the group ID 1128 * @param folderId the folder ID 1129 * @param title the title 1130 * @param version the version 1131 * @param start the lower bound of the range of document library file versions 1132 * @param end the upper bound of the range of document library file versions (not inclusive) 1133 * @return the range of matching document library file versions 1134 */ 1135 public java.util.List<DLFileVersion> findByG_F_T_V(long groupId, 1136 long folderId, java.lang.String title, java.lang.String version, 1137 int start, int end); 1138 1139 /** 1140 * Returns an ordered range of all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ?. 1141 * 1142 * <p> 1143 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 1144 * </p> 1145 * 1146 * @param groupId the group ID 1147 * @param folderId the folder ID 1148 * @param title the title 1149 * @param version the version 1150 * @param start the lower bound of the range of document library file versions 1151 * @param end the upper bound of the range of document library file versions (not inclusive) 1152 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1153 * @return the ordered range of matching document library file versions 1154 */ 1155 public java.util.List<DLFileVersion> findByG_F_T_V(long groupId, 1156 long folderId, java.lang.String title, java.lang.String version, 1157 int start, int end, 1158 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 1159 1160 /** 1161 * Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?. 1162 * 1163 * @param groupId the group ID 1164 * @param folderId the folder ID 1165 * @param title the title 1166 * @param version the version 1167 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1168 * @return the first matching document library file version 1169 * @throws NoSuchFileVersionException if a matching document library file version could not be found 1170 */ 1171 public DLFileVersion findByG_F_T_V_First(long groupId, long folderId, 1172 java.lang.String title, java.lang.String version, 1173 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 1174 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 1175 1176 /** 1177 * Returns the first document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?. 1178 * 1179 * @param groupId the group ID 1180 * @param folderId the folder ID 1181 * @param title the title 1182 * @param version the version 1183 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1184 * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found 1185 */ 1186 public DLFileVersion fetchByG_F_T_V_First(long groupId, long folderId, 1187 java.lang.String title, java.lang.String version, 1188 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 1189 1190 /** 1191 * Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?. 1192 * 1193 * @param groupId the group ID 1194 * @param folderId the folder ID 1195 * @param title the title 1196 * @param version the version 1197 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1198 * @return the last matching document library file version 1199 * @throws NoSuchFileVersionException if a matching document library file version could not be found 1200 */ 1201 public DLFileVersion findByG_F_T_V_Last(long groupId, long folderId, 1202 java.lang.String title, java.lang.String version, 1203 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 1204 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 1205 1206 /** 1207 * Returns the last document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?. 1208 * 1209 * @param groupId the group ID 1210 * @param folderId the folder ID 1211 * @param title the title 1212 * @param version the version 1213 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1214 * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found 1215 */ 1216 public DLFileVersion fetchByG_F_T_V_Last(long groupId, long folderId, 1217 java.lang.String title, java.lang.String version, 1218 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 1219 1220 /** 1221 * Returns the document library file versions before and after the current document library file version in the ordered set where groupId = ? and folderId = ? and title = ? and version = ?. 1222 * 1223 * @param fileVersionId the primary key of the current document library file version 1224 * @param groupId the group ID 1225 * @param folderId the folder ID 1226 * @param title the title 1227 * @param version the version 1228 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1229 * @return the previous, current, and next document library file version 1230 * @throws NoSuchFileVersionException if a document library file version with the primary key could not be found 1231 */ 1232 public DLFileVersion[] findByG_F_T_V_PrevAndNext(long fileVersionId, 1233 long groupId, long folderId, java.lang.String title, 1234 java.lang.String version, 1235 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator) 1236 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 1237 1238 /** 1239 * Removes all the document library file versions where groupId = ? and folderId = ? and title = ? and version = ? from the database. 1240 * 1241 * @param groupId the group ID 1242 * @param folderId the folder ID 1243 * @param title the title 1244 * @param version the version 1245 */ 1246 public void removeByG_F_T_V(long groupId, long folderId, 1247 java.lang.String title, java.lang.String version); 1248 1249 /** 1250 * Returns the number of document library file versions where groupId = ? and folderId = ? and title = ? and version = ?. 1251 * 1252 * @param groupId the group ID 1253 * @param folderId the folder ID 1254 * @param title the title 1255 * @param version the version 1256 * @return the number of matching document library file versions 1257 */ 1258 public int countByG_F_T_V(long groupId, long folderId, 1259 java.lang.String title, java.lang.String version); 1260 1261 /** 1262 * Caches the document library file version in the entity cache if it is enabled. 1263 * 1264 * @param dlFileVersion the document library file version 1265 */ 1266 public void cacheResult(DLFileVersion dlFileVersion); 1267 1268 /** 1269 * Caches the document library file versions in the entity cache if it is enabled. 1270 * 1271 * @param dlFileVersions the document library file versions 1272 */ 1273 public void cacheResult(java.util.List<DLFileVersion> dlFileVersions); 1274 1275 /** 1276 * Creates a new document library file version with the primary key. Does not add the document library file version to the database. 1277 * 1278 * @param fileVersionId the primary key for the new document library file version 1279 * @return the new document library file version 1280 */ 1281 public DLFileVersion create(long fileVersionId); 1282 1283 /** 1284 * Removes the document library file version with the primary key from the database. Also notifies the appropriate model listeners. 1285 * 1286 * @param fileVersionId the primary key of the document library file version 1287 * @return the document library file version that was removed 1288 * @throws NoSuchFileVersionException if a document library file version with the primary key could not be found 1289 */ 1290 public DLFileVersion remove(long fileVersionId) 1291 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 1292 1293 public DLFileVersion updateImpl(DLFileVersion dlFileVersion); 1294 1295 /** 1296 * Returns the document library file version with the primary key or throws a {@link NoSuchFileVersionException} if it could not be found. 1297 * 1298 * @param fileVersionId the primary key of the document library file version 1299 * @return the document library file version 1300 * @throws NoSuchFileVersionException if a document library file version with the primary key could not be found 1301 */ 1302 public DLFileVersion findByPrimaryKey(long fileVersionId) 1303 throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException; 1304 1305 /** 1306 * Returns the document library file version with the primary key or returns <code>null</code> if it could not be found. 1307 * 1308 * @param fileVersionId the primary key of the document library file version 1309 * @return the document library file version, or <code>null</code> if a document library file version with the primary key could not be found 1310 */ 1311 public DLFileVersion fetchByPrimaryKey(long fileVersionId); 1312 1313 @Override 1314 public java.util.Map<java.io.Serializable, DLFileVersion> fetchByPrimaryKeys( 1315 java.util.Set<java.io.Serializable> primaryKeys); 1316 1317 /** 1318 * Returns all the document library file versions. 1319 * 1320 * @return the document library file versions 1321 */ 1322 public java.util.List<DLFileVersion> findAll(); 1323 1324 /** 1325 * Returns a range of all the document library file versions. 1326 * 1327 * <p> 1328 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 1329 * </p> 1330 * 1331 * @param start the lower bound of the range of document library file versions 1332 * @param end the upper bound of the range of document library file versions (not inclusive) 1333 * @return the range of document library file versions 1334 */ 1335 public java.util.List<DLFileVersion> findAll(int start, int end); 1336 1337 /** 1338 * Returns an ordered range of all the document library file versions. 1339 * 1340 * <p> 1341 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileVersionModelImpl}. 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. 1342 * </p> 1343 * 1344 * @param start the lower bound of the range of document library file versions 1345 * @param end the upper bound of the range of document library file versions (not inclusive) 1346 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1347 * @return the ordered range of document library file versions 1348 */ 1349 public java.util.List<DLFileVersion> findAll(int start, int end, 1350 com.liferay.portal.kernel.util.OrderByComparator<DLFileVersion> orderByComparator); 1351 1352 /** 1353 * Removes all the document library file versions from the database. 1354 */ 1355 public void removeAll(); 1356 1357 /** 1358 * Returns the number of document library file versions. 1359 * 1360 * @return the number of document library file versions 1361 */ 1362 public int countAll(); 1363 }