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