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.DLFileEntryMetadata; 022 023 /** 024 * The persistence interface for the document library file entry metadata service. 025 * 026 * <p> 027 * Caching information and settings can be found in <code>portal.properties</code> 028 * </p> 029 * 030 * @author Brian Wing Shun Chan 031 * @see com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileEntryMetadataPersistenceImpl 032 * @see DLFileEntryMetadataUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface DLFileEntryMetadataPersistence extends BasePersistence<DLFileEntryMetadata> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link DLFileEntryMetadataUtil} to access the document library file entry metadata persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the document library file entry metadatas where uuid = ?. 045 * 046 * @param uuid the uuid 047 * @return the matching document library file entry metadatas 048 */ 049 public java.util.List<DLFileEntryMetadata> findByUuid(java.lang.String uuid); 050 051 /** 052 * Returns a range of all the document library file entry metadatas where uuid = ?. 053 * 054 * <p> 055 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. 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 entry metadatas 060 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 061 * @return the range of matching document library file entry metadatas 062 */ 063 public java.util.List<DLFileEntryMetadata> findByUuid( 064 java.lang.String uuid, int start, int end); 065 066 /** 067 * Returns an ordered range of all the document library file entry metadatas where uuid = ?. 068 * 069 * <p> 070 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 071 * </p> 072 * 073 * @param uuid the uuid 074 * @param start the lower bound of the range of document library file entry metadatas 075 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching document library file entry metadatas 078 */ 079 public java.util.List<DLFileEntryMetadata> findByUuid( 080 java.lang.String uuid, int start, int end, 081 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator); 082 083 /** 084 * Returns an ordered range of all the document library file entry metadatas where uuid = ?. 085 * 086 * <p> 087 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. 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. 088 * </p> 089 * 090 * @param uuid the uuid 091 * @param start the lower bound of the range of document library file entry metadatas 092 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 093 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 094 * @param retrieveFromCache whether to retrieve from the finder cache 095 * @return the ordered range of matching document library file entry metadatas 096 */ 097 public java.util.List<DLFileEntryMetadata> findByUuid( 098 java.lang.String uuid, int start, int end, 099 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator, 100 boolean retrieveFromCache); 101 102 /** 103 * Returns the first document library file entry metadata 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 entry metadata 108 * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 109 */ 110 public DLFileEntryMetadata findByUuid_First(java.lang.String uuid, 111 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator) 112 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 113 114 /** 115 * Returns the first document library file entry metadata in the ordered set where uuid = ?. 116 * 117 * @param uuid the uuid 118 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 119 * @return the first matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 120 */ 121 public DLFileEntryMetadata fetchByUuid_First(java.lang.String uuid, 122 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator); 123 124 /** 125 * Returns the last document library file entry metadata in the ordered set where uuid = ?. 126 * 127 * @param uuid the uuid 128 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 129 * @return the last matching document library file entry metadata 130 * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 131 */ 132 public DLFileEntryMetadata findByUuid_Last(java.lang.String uuid, 133 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator) 134 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 135 136 /** 137 * Returns the last document library file entry metadata in the ordered set where uuid = ?. 138 * 139 * @param uuid the uuid 140 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 141 * @return the last matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 142 */ 143 public DLFileEntryMetadata fetchByUuid_Last(java.lang.String uuid, 144 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator); 145 146 /** 147 * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = ?. 148 * 149 * @param fileEntryMetadataId the primary key of the current document library file entry metadata 150 * @param uuid the uuid 151 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 152 * @return the previous, current, and next document library file entry metadata 153 * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 154 */ 155 public DLFileEntryMetadata[] findByUuid_PrevAndNext( 156 long fileEntryMetadataId, java.lang.String uuid, 157 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator) 158 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 159 160 /** 161 * Removes all the document library file entry metadatas where uuid = ? from the database. 162 * 163 * @param uuid the uuid 164 */ 165 public void removeByUuid(java.lang.String uuid); 166 167 /** 168 * Returns the number of document library file entry metadatas where uuid = ?. 169 * 170 * @param uuid the uuid 171 * @return the number of matching document library file entry metadatas 172 */ 173 public int countByUuid(java.lang.String uuid); 174 175 /** 176 * Returns all the document library file entry metadatas where fileEntryId = ?. 177 * 178 * @param fileEntryId the file entry ID 179 * @return the matching document library file entry metadatas 180 */ 181 public java.util.List<DLFileEntryMetadata> findByFileEntryId( 182 long fileEntryId); 183 184 /** 185 * Returns a range of all the document library file entry metadatas where fileEntryId = ?. 186 * 187 * <p> 188 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. 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. 189 * </p> 190 * 191 * @param fileEntryId the file entry ID 192 * @param start the lower bound of the range of document library file entry metadatas 193 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 194 * @return the range of matching document library file entry metadatas 195 */ 196 public java.util.List<DLFileEntryMetadata> findByFileEntryId( 197 long fileEntryId, int start, int end); 198 199 /** 200 * Returns an ordered range of all the document library file entry metadatas where fileEntryId = ?. 201 * 202 * <p> 203 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. 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. 204 * </p> 205 * 206 * @param fileEntryId the file entry ID 207 * @param start the lower bound of the range of document library file entry metadatas 208 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 209 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 210 * @return the ordered range of matching document library file entry metadatas 211 */ 212 public java.util.List<DLFileEntryMetadata> findByFileEntryId( 213 long fileEntryId, int start, int end, 214 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator); 215 216 /** 217 * Returns an ordered range of all the document library file entry metadatas where fileEntryId = ?. 218 * 219 * <p> 220 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 221 * </p> 222 * 223 * @param fileEntryId the file entry ID 224 * @param start the lower bound of the range of document library file entry metadatas 225 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 226 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 227 * @param retrieveFromCache whether to retrieve from the finder cache 228 * @return the ordered range of matching document library file entry metadatas 229 */ 230 public java.util.List<DLFileEntryMetadata> findByFileEntryId( 231 long fileEntryId, int start, int end, 232 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator, 233 boolean retrieveFromCache); 234 235 /** 236 * Returns the first document library file entry metadata in the ordered set where fileEntryId = ?. 237 * 238 * @param fileEntryId the file entry ID 239 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 240 * @return the first matching document library file entry metadata 241 * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 242 */ 243 public DLFileEntryMetadata findByFileEntryId_First(long fileEntryId, 244 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator) 245 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 246 247 /** 248 * Returns the first document library file entry metadata in the ordered set where fileEntryId = ?. 249 * 250 * @param fileEntryId the file entry ID 251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 252 * @return the first matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 253 */ 254 public DLFileEntryMetadata fetchByFileEntryId_First(long fileEntryId, 255 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator); 256 257 /** 258 * Returns the last document library file entry metadata in the ordered set where fileEntryId = ?. 259 * 260 * @param fileEntryId the file entry ID 261 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 262 * @return the last matching document library file entry metadata 263 * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 264 */ 265 public DLFileEntryMetadata findByFileEntryId_Last(long fileEntryId, 266 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator) 267 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 268 269 /** 270 * Returns the last document library file entry metadata in the ordered set where fileEntryId = ?. 271 * 272 * @param fileEntryId the file entry ID 273 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 274 * @return the last matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 275 */ 276 public DLFileEntryMetadata fetchByFileEntryId_Last(long fileEntryId, 277 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator); 278 279 /** 280 * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryId = ?. 281 * 282 * @param fileEntryMetadataId the primary key of the current document library file entry metadata 283 * @param fileEntryId the file entry ID 284 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 285 * @return the previous, current, and next document library file entry metadata 286 * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 287 */ 288 public DLFileEntryMetadata[] findByFileEntryId_PrevAndNext( 289 long fileEntryMetadataId, long fileEntryId, 290 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator) 291 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 292 293 /** 294 * Removes all the document library file entry metadatas where fileEntryId = ? from the database. 295 * 296 * @param fileEntryId the file entry ID 297 */ 298 public void removeByFileEntryId(long fileEntryId); 299 300 /** 301 * Returns the number of document library file entry metadatas where fileEntryId = ?. 302 * 303 * @param fileEntryId the file entry ID 304 * @return the number of matching document library file entry metadatas 305 */ 306 public int countByFileEntryId(long fileEntryId); 307 308 /** 309 * Returns all the document library file entry metadatas where fileVersionId = ?. 310 * 311 * @param fileVersionId the file version ID 312 * @return the matching document library file entry metadatas 313 */ 314 public java.util.List<DLFileEntryMetadata> findByFileVersionId( 315 long fileVersionId); 316 317 /** 318 * Returns a range of all the document library file entry metadatas where fileVersionId = ?. 319 * 320 * <p> 321 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. 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. 322 * </p> 323 * 324 * @param fileVersionId the file version ID 325 * @param start the lower bound of the range of document library file entry metadatas 326 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 327 * @return the range of matching document library file entry metadatas 328 */ 329 public java.util.List<DLFileEntryMetadata> findByFileVersionId( 330 long fileVersionId, int start, int end); 331 332 /** 333 * Returns an ordered range of all the document library file entry metadatas where fileVersionId = ?. 334 * 335 * <p> 336 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. 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. 337 * </p> 338 * 339 * @param fileVersionId the file version ID 340 * @param start the lower bound of the range of document library file entry metadatas 341 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 342 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 343 * @return the ordered range of matching document library file entry metadatas 344 */ 345 public java.util.List<DLFileEntryMetadata> findByFileVersionId( 346 long fileVersionId, int start, int end, 347 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator); 348 349 /** 350 * Returns an ordered range of all the document library file entry metadatas where fileVersionId = ?. 351 * 352 * <p> 353 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. 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. 354 * </p> 355 * 356 * @param fileVersionId the file version ID 357 * @param start the lower bound of the range of document library file entry metadatas 358 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 359 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 360 * @param retrieveFromCache whether to retrieve from the finder cache 361 * @return the ordered range of matching document library file entry metadatas 362 */ 363 public java.util.List<DLFileEntryMetadata> findByFileVersionId( 364 long fileVersionId, int start, int end, 365 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator, 366 boolean retrieveFromCache); 367 368 /** 369 * Returns the first document library file entry metadata in the ordered set where fileVersionId = ?. 370 * 371 * @param fileVersionId the file version ID 372 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 373 * @return the first matching document library file entry metadata 374 * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 375 */ 376 public DLFileEntryMetadata findByFileVersionId_First(long fileVersionId, 377 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator) 378 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 379 380 /** 381 * Returns the first document library file entry metadata in the ordered set where fileVersionId = ?. 382 * 383 * @param fileVersionId the file version ID 384 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 385 * @return the first matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 386 */ 387 public DLFileEntryMetadata fetchByFileVersionId_First(long fileVersionId, 388 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator); 389 390 /** 391 * Returns the last document library file entry metadata in the ordered set where fileVersionId = ?. 392 * 393 * @param fileVersionId the file version ID 394 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 395 * @return the last matching document library file entry metadata 396 * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 397 */ 398 public DLFileEntryMetadata findByFileVersionId_Last(long fileVersionId, 399 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator) 400 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 401 402 /** 403 * Returns the last document library file entry metadata in the ordered set where fileVersionId = ?. 404 * 405 * @param fileVersionId the file version ID 406 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 407 * @return the last matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 408 */ 409 public DLFileEntryMetadata fetchByFileVersionId_Last(long fileVersionId, 410 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator); 411 412 /** 413 * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileVersionId = ?. 414 * 415 * @param fileEntryMetadataId the primary key of the current document library file entry metadata 416 * @param fileVersionId the file version ID 417 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 418 * @return the previous, current, and next document library file entry metadata 419 * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 420 */ 421 public DLFileEntryMetadata[] findByFileVersionId_PrevAndNext( 422 long fileEntryMetadataId, long fileVersionId, 423 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator) 424 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 425 426 /** 427 * Removes all the document library file entry metadatas where fileVersionId = ? from the database. 428 * 429 * @param fileVersionId the file version ID 430 */ 431 public void removeByFileVersionId(long fileVersionId); 432 433 /** 434 * Returns the number of document library file entry metadatas where fileVersionId = ?. 435 * 436 * @param fileVersionId the file version ID 437 * @return the number of matching document library file entry metadatas 438 */ 439 public int countByFileVersionId(long fileVersionId); 440 441 /** 442 * Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or throws a {@link NoSuchFileEntryMetadataException} if it could not be found. 443 * 444 * @param DDMStructureId the d d m structure ID 445 * @param fileVersionId the file version ID 446 * @return the matching document library file entry metadata 447 * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 448 */ 449 public DLFileEntryMetadata findByD_F(long DDMStructureId, long fileVersionId) 450 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 451 452 /** 453 * Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 454 * 455 * @param DDMStructureId the d d m structure ID 456 * @param fileVersionId the file version ID 457 * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 458 */ 459 public DLFileEntryMetadata fetchByD_F(long DDMStructureId, 460 long fileVersionId); 461 462 /** 463 * Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 464 * 465 * @param DDMStructureId the d d m structure ID 466 * @param fileVersionId the file version ID 467 * @param retrieveFromCache whether to retrieve from the finder cache 468 * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 469 */ 470 public DLFileEntryMetadata fetchByD_F(long DDMStructureId, 471 long fileVersionId, boolean retrieveFromCache); 472 473 /** 474 * Removes the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? from the database. 475 * 476 * @param DDMStructureId the d d m structure ID 477 * @param fileVersionId the file version ID 478 * @return the document library file entry metadata that was removed 479 */ 480 public DLFileEntryMetadata removeByD_F(long DDMStructureId, 481 long fileVersionId) 482 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 483 484 /** 485 * Returns the number of document library file entry metadatas where DDMStructureId = ? and fileVersionId = ?. 486 * 487 * @param DDMStructureId the d d m structure ID 488 * @param fileVersionId the file version ID 489 * @return the number of matching document library file entry metadatas 490 */ 491 public int countByD_F(long DDMStructureId, long fileVersionId); 492 493 /** 494 * Caches the document library file entry metadata in the entity cache if it is enabled. 495 * 496 * @param dlFileEntryMetadata the document library file entry metadata 497 */ 498 public void cacheResult(DLFileEntryMetadata dlFileEntryMetadata); 499 500 /** 501 * Caches the document library file entry metadatas in the entity cache if it is enabled. 502 * 503 * @param dlFileEntryMetadatas the document library file entry metadatas 504 */ 505 public void cacheResult( 506 java.util.List<DLFileEntryMetadata> dlFileEntryMetadatas); 507 508 /** 509 * Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database. 510 * 511 * @param fileEntryMetadataId the primary key for the new document library file entry metadata 512 * @return the new document library file entry metadata 513 */ 514 public DLFileEntryMetadata create(long fileEntryMetadataId); 515 516 /** 517 * Removes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners. 518 * 519 * @param fileEntryMetadataId the primary key of the document library file entry metadata 520 * @return the document library file entry metadata that was removed 521 * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 522 */ 523 public DLFileEntryMetadata remove(long fileEntryMetadataId) 524 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 525 526 public DLFileEntryMetadata updateImpl( 527 DLFileEntryMetadata dlFileEntryMetadata); 528 529 /** 530 * Returns the document library file entry metadata with the primary key or throws a {@link NoSuchFileEntryMetadataException} if it could not be found. 531 * 532 * @param fileEntryMetadataId the primary key of the document library file entry metadata 533 * @return the document library file entry metadata 534 * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 535 */ 536 public DLFileEntryMetadata findByPrimaryKey(long fileEntryMetadataId) 537 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 538 539 /** 540 * Returns the document library file entry metadata with the primary key or returns <code>null</code> if it could not be found. 541 * 542 * @param fileEntryMetadataId the primary key of the document library file entry metadata 543 * @return the document library file entry metadata, or <code>null</code> if a document library file entry metadata with the primary key could not be found 544 */ 545 public DLFileEntryMetadata fetchByPrimaryKey(long fileEntryMetadataId); 546 547 @Override 548 public java.util.Map<java.io.Serializable, DLFileEntryMetadata> fetchByPrimaryKeys( 549 java.util.Set<java.io.Serializable> primaryKeys); 550 551 /** 552 * Returns all the document library file entry metadatas. 553 * 554 * @return the document library file entry metadatas 555 */ 556 public java.util.List<DLFileEntryMetadata> findAll(); 557 558 /** 559 * Returns a range of all the document library file entry metadatas. 560 * 561 * <p> 562 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. 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. 563 * </p> 564 * 565 * @param start the lower bound of the range of document library file entry metadatas 566 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 567 * @return the range of document library file entry metadatas 568 */ 569 public java.util.List<DLFileEntryMetadata> findAll(int start, int end); 570 571 /** 572 * Returns an ordered range of all the document library file entry metadatas. 573 * 574 * <p> 575 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. 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. 576 * </p> 577 * 578 * @param start the lower bound of the range of document library file entry metadatas 579 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 580 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 581 * @return the ordered range of document library file entry metadatas 582 */ 583 public java.util.List<DLFileEntryMetadata> findAll(int start, int end, 584 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator); 585 586 /** 587 * Returns an ordered range of all the document library file entry metadatas. 588 * 589 * <p> 590 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. 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. 591 * </p> 592 * 593 * @param start the lower bound of the range of document library file entry metadatas 594 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 595 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 596 * @param retrieveFromCache whether to retrieve from the finder cache 597 * @return the ordered range of document library file entry metadatas 598 */ 599 public java.util.List<DLFileEntryMetadata> findAll(int start, int end, 600 com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator, 601 boolean retrieveFromCache); 602 603 /** 604 * Removes all the document library file entry metadatas from the database. 605 */ 606 public void removeAll(); 607 608 /** 609 * Returns the number of document library file entry metadatas. 610 * 611 * @return the number of document library file entry metadatas 612 */ 613 public int countAll(); 614 615 @Override 616 public java.util.Set<java.lang.String> getBadColumnNames(); 617 }