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