001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.documentlibrary.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata; 020 021 /** 022 * The persistence interface for the document library file entry metadata service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see DLFileEntryMetadataPersistenceImpl 030 * @see DLFileEntryMetadataUtil 031 * @generated 032 */ 033 public interface DLFileEntryMetadataPersistence extends BasePersistence<DLFileEntryMetadata> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * 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. 038 */ 039 040 /** 041 * Caches the document library file entry metadata in the entity cache if it is enabled. 042 * 043 * @param dlFileEntryMetadata the document library file entry metadata 044 */ 045 public void cacheResult( 046 com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata); 047 048 /** 049 * Caches the document library file entry metadatas in the entity cache if it is enabled. 050 * 051 * @param dlFileEntryMetadatas the document library file entry metadatas 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> dlFileEntryMetadatas); 055 056 /** 057 * Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database. 058 * 059 * @param fileEntryMetadataId the primary key for the new document library file entry metadata 060 * @return the new document library file entry metadata 061 */ 062 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata create( 063 long fileEntryMetadataId); 064 065 /** 066 * Removes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param fileEntryMetadataId the primary key of the document library file entry metadata 069 * @return the document library file entry metadata that was removed 070 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata remove( 074 long fileEntryMetadataId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 077 078 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata updateImpl( 079 com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata, 080 boolean merge) 081 throws com.liferay.portal.kernel.exception.SystemException; 082 083 /** 084 * Returns the document library file entry metadata with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException} if it could not be found. 085 * 086 * @param fileEntryMetadataId the primary key of the document library file entry metadata 087 * @return the document library file entry metadata 088 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 089 * @throws SystemException if a system exception occurred 090 */ 091 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByPrimaryKey( 092 long fileEntryMetadataId) 093 throws com.liferay.portal.kernel.exception.SystemException, 094 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 095 096 /** 097 * Returns the document library file entry metadata with the primary key or returns <code>null</code> if it could not be found. 098 * 099 * @param fileEntryMetadataId the primary key of the document library file entry metadata 100 * @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 101 * @throws SystemException if a system exception occurred 102 */ 103 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByPrimaryKey( 104 long fileEntryMetadataId) 105 throws com.liferay.portal.kernel.exception.SystemException; 106 107 /** 108 * Returns all the document library file entry metadatas where uuid = ?. 109 * 110 * @param uuid the uuid 111 * @return the matching document library file entry metadatas 112 * @throws SystemException if a system exception occurred 113 */ 114 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid( 115 java.lang.String uuid) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns a range of all the document library file entry metadatas where uuid = ?. 120 * 121 * <p> 122 * 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. 123 * </p> 124 * 125 * @param uuid the uuid 126 * @param start the lower bound of the range of document library file entry metadatas 127 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 128 * @return the range of matching document library file entry metadatas 129 * @throws SystemException if a system exception occurred 130 */ 131 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid( 132 java.lang.String uuid, int start, int end) 133 throws com.liferay.portal.kernel.exception.SystemException; 134 135 /** 136 * Returns an ordered range of all the document library file entry metadatas where uuid = ?. 137 * 138 * <p> 139 * 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. 140 * </p> 141 * 142 * @param uuid the uuid 143 * @param start the lower bound of the range of document library file entry metadatas 144 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 145 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 146 * @return the ordered range of matching document library file entry metadatas 147 * @throws SystemException if a system exception occurred 148 */ 149 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid( 150 java.lang.String uuid, int start, int end, 151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 152 throws com.liferay.portal.kernel.exception.SystemException; 153 154 /** 155 * Returns the first document library file entry metadata in the ordered set where uuid = ?. 156 * 157 * @param uuid the uuid 158 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 159 * @return the first matching document library file entry metadata 160 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 161 * @throws SystemException if a system exception occurred 162 */ 163 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByUuid_First( 164 java.lang.String uuid, 165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 166 throws com.liferay.portal.kernel.exception.SystemException, 167 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 168 169 /** 170 * Returns the first document library file entry metadata in the ordered set where uuid = ?. 171 * 172 * @param uuid the uuid 173 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 174 * @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 175 * @throws SystemException if a system exception occurred 176 */ 177 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByUuid_First( 178 java.lang.String uuid, 179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 180 throws com.liferay.portal.kernel.exception.SystemException; 181 182 /** 183 * Returns the last document library file entry metadata in the ordered set where uuid = ?. 184 * 185 * @param uuid the uuid 186 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 187 * @return the last matching document library file entry metadata 188 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 189 * @throws SystemException if a system exception occurred 190 */ 191 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByUuid_Last( 192 java.lang.String uuid, 193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 194 throws com.liferay.portal.kernel.exception.SystemException, 195 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 196 197 /** 198 * Returns the last document library file entry metadata in the ordered set where uuid = ?. 199 * 200 * @param uuid the uuid 201 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 202 * @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 203 * @throws SystemException if a system exception occurred 204 */ 205 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByUuid_Last( 206 java.lang.String uuid, 207 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 208 throws com.liferay.portal.kernel.exception.SystemException; 209 210 /** 211 * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = ?. 212 * 213 * @param fileEntryMetadataId the primary key of the current document library file entry metadata 214 * @param uuid the uuid 215 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 216 * @return the previous, current, and next document library file entry metadata 217 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 218 * @throws SystemException if a system exception occurred 219 */ 220 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByUuid_PrevAndNext( 221 long fileEntryMetadataId, java.lang.String uuid, 222 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 223 throws com.liferay.portal.kernel.exception.SystemException, 224 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 225 226 /** 227 * Returns all the document library file entry metadatas where fileEntryTypeId = ?. 228 * 229 * @param fileEntryTypeId the file entry type ID 230 * @return the matching document library file entry metadatas 231 * @throws SystemException if a system exception occurred 232 */ 233 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId( 234 long fileEntryTypeId) 235 throws com.liferay.portal.kernel.exception.SystemException; 236 237 /** 238 * Returns a range of all the document library file entry metadatas where fileEntryTypeId = ?. 239 * 240 * <p> 241 * 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. 242 * </p> 243 * 244 * @param fileEntryTypeId the file entry type ID 245 * @param start the lower bound of the range of document library file entry metadatas 246 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 247 * @return the range of matching document library file entry metadatas 248 * @throws SystemException if a system exception occurred 249 */ 250 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId( 251 long fileEntryTypeId, int start, int end) 252 throws com.liferay.portal.kernel.exception.SystemException; 253 254 /** 255 * Returns an ordered range of all the document library file entry metadatas where fileEntryTypeId = ?. 256 * 257 * <p> 258 * 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. 259 * </p> 260 * 261 * @param fileEntryTypeId the file entry type ID 262 * @param start the lower bound of the range of document library file entry metadatas 263 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 264 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 265 * @return the ordered range of matching document library file entry metadatas 266 * @throws SystemException if a system exception occurred 267 */ 268 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId( 269 long fileEntryTypeId, int start, int end, 270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 271 throws com.liferay.portal.kernel.exception.SystemException; 272 273 /** 274 * Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = ?. 275 * 276 * @param fileEntryTypeId the file entry type ID 277 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 278 * @return the first matching document library file entry metadata 279 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 280 * @throws SystemException if a system exception occurred 281 */ 282 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryTypeId_First( 283 long fileEntryTypeId, 284 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 285 throws com.liferay.portal.kernel.exception.SystemException, 286 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 287 288 /** 289 * Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = ?. 290 * 291 * @param fileEntryTypeId the file entry type ID 292 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 293 * @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 294 * @throws SystemException if a system exception occurred 295 */ 296 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryTypeId_First( 297 long fileEntryTypeId, 298 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 299 throws com.liferay.portal.kernel.exception.SystemException; 300 301 /** 302 * Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = ?. 303 * 304 * @param fileEntryTypeId the file entry type ID 305 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 306 * @return the last matching document library file entry metadata 307 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 308 * @throws SystemException if a system exception occurred 309 */ 310 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryTypeId_Last( 311 long fileEntryTypeId, 312 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 313 throws com.liferay.portal.kernel.exception.SystemException, 314 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 315 316 /** 317 * Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = ?. 318 * 319 * @param fileEntryTypeId the file entry type ID 320 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 321 * @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 322 * @throws SystemException if a system exception occurred 323 */ 324 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryTypeId_Last( 325 long fileEntryTypeId, 326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 327 throws com.liferay.portal.kernel.exception.SystemException; 328 329 /** 330 * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryTypeId = ?. 331 * 332 * @param fileEntryMetadataId the primary key of the current document library file entry metadata 333 * @param fileEntryTypeId the file entry type ID 334 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 335 * @return the previous, current, and next document library file entry metadata 336 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 337 * @throws SystemException if a system exception occurred 338 */ 339 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileEntryTypeId_PrevAndNext( 340 long fileEntryMetadataId, long fileEntryTypeId, 341 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 342 throws com.liferay.portal.kernel.exception.SystemException, 343 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 344 345 /** 346 * Returns all the document library file entry metadatas where fileEntryId = ?. 347 * 348 * @param fileEntryId the file entry ID 349 * @return the matching document library file entry metadatas 350 * @throws SystemException if a system exception occurred 351 */ 352 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId( 353 long fileEntryId) 354 throws com.liferay.portal.kernel.exception.SystemException; 355 356 /** 357 * Returns a range of all the document library file entry metadatas where fileEntryId = ?. 358 * 359 * <p> 360 * 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. 361 * </p> 362 * 363 * @param fileEntryId the file entry ID 364 * @param start the lower bound of the range of document library file entry metadatas 365 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 366 * @return the range of matching document library file entry metadatas 367 * @throws SystemException if a system exception occurred 368 */ 369 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId( 370 long fileEntryId, int start, int end) 371 throws com.liferay.portal.kernel.exception.SystemException; 372 373 /** 374 * Returns an ordered range of all the document library file entry metadatas where fileEntryId = ?. 375 * 376 * <p> 377 * 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. 378 * </p> 379 * 380 * @param fileEntryId the file entry ID 381 * @param start the lower bound of the range of document library file entry metadatas 382 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 383 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 384 * @return the ordered range of matching document library file entry metadatas 385 * @throws SystemException if a system exception occurred 386 */ 387 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId( 388 long fileEntryId, int start, int end, 389 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 390 throws com.liferay.portal.kernel.exception.SystemException; 391 392 /** 393 * Returns the first document library file entry metadata in the ordered set where fileEntryId = ?. 394 * 395 * @param fileEntryId the file entry ID 396 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 397 * @return the first matching document library file entry metadata 398 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 399 * @throws SystemException if a system exception occurred 400 */ 401 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryId_First( 402 long fileEntryId, 403 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 404 throws com.liferay.portal.kernel.exception.SystemException, 405 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 406 407 /** 408 * Returns the first document library file entry metadata in the ordered set where fileEntryId = ?. 409 * 410 * @param fileEntryId the file entry ID 411 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 412 * @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 413 * @throws SystemException if a system exception occurred 414 */ 415 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryId_First( 416 long fileEntryId, 417 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 418 throws com.liferay.portal.kernel.exception.SystemException; 419 420 /** 421 * Returns the last document library file entry metadata in the ordered set where fileEntryId = ?. 422 * 423 * @param fileEntryId the file entry ID 424 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 425 * @return the last matching document library file entry metadata 426 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 427 * @throws SystemException if a system exception occurred 428 */ 429 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryId_Last( 430 long fileEntryId, 431 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 432 throws com.liferay.portal.kernel.exception.SystemException, 433 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 434 435 /** 436 * Returns the last document library file entry metadata in the ordered set where fileEntryId = ?. 437 * 438 * @param fileEntryId the file entry ID 439 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 440 * @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 441 * @throws SystemException if a system exception occurred 442 */ 443 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryId_Last( 444 long fileEntryId, 445 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 446 throws com.liferay.portal.kernel.exception.SystemException; 447 448 /** 449 * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryId = ?. 450 * 451 * @param fileEntryMetadataId the primary key of the current document library file entry metadata 452 * @param fileEntryId the file entry ID 453 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 454 * @return the previous, current, and next document library file entry metadata 455 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 456 * @throws SystemException if a system exception occurred 457 */ 458 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileEntryId_PrevAndNext( 459 long fileEntryMetadataId, long fileEntryId, 460 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 461 throws com.liferay.portal.kernel.exception.SystemException, 462 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 463 464 /** 465 * Returns all the document library file entry metadatas where fileVersionId = ?. 466 * 467 * @param fileVersionId the file version ID 468 * @return the matching document library file entry metadatas 469 * @throws SystemException if a system exception occurred 470 */ 471 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId( 472 long fileVersionId) 473 throws com.liferay.portal.kernel.exception.SystemException; 474 475 /** 476 * Returns a range of all the document library file entry metadatas where fileVersionId = ?. 477 * 478 * <p> 479 * 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. 480 * </p> 481 * 482 * @param fileVersionId the file version ID 483 * @param start the lower bound of the range of document library file entry metadatas 484 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 485 * @return the range of matching document library file entry metadatas 486 * @throws SystemException if a system exception occurred 487 */ 488 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId( 489 long fileVersionId, int start, int end) 490 throws com.liferay.portal.kernel.exception.SystemException; 491 492 /** 493 * Returns an ordered range of all the document library file entry metadatas where fileVersionId = ?. 494 * 495 * <p> 496 * 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. 497 * </p> 498 * 499 * @param fileVersionId the file version ID 500 * @param start the lower bound of the range of document library file entry metadatas 501 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 502 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 503 * @return the ordered range of matching document library file entry metadatas 504 * @throws SystemException if a system exception occurred 505 */ 506 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId( 507 long fileVersionId, int start, int end, 508 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 509 throws com.liferay.portal.kernel.exception.SystemException; 510 511 /** 512 * Returns the first document library file entry metadata in the ordered set where fileVersionId = ?. 513 * 514 * @param fileVersionId the file version ID 515 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 516 * @return the first matching document library file entry metadata 517 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 518 * @throws SystemException if a system exception occurred 519 */ 520 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileVersionId_First( 521 long fileVersionId, 522 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 523 throws com.liferay.portal.kernel.exception.SystemException, 524 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 525 526 /** 527 * Returns the first document library file entry metadata in the ordered set where fileVersionId = ?. 528 * 529 * @param fileVersionId the file version ID 530 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 531 * @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 532 * @throws SystemException if a system exception occurred 533 */ 534 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileVersionId_First( 535 long fileVersionId, 536 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 537 throws com.liferay.portal.kernel.exception.SystemException; 538 539 /** 540 * Returns the last document library file entry metadata in the ordered set where fileVersionId = ?. 541 * 542 * @param fileVersionId the file version ID 543 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 544 * @return the last matching document library file entry metadata 545 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 546 * @throws SystemException if a system exception occurred 547 */ 548 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileVersionId_Last( 549 long fileVersionId, 550 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 551 throws com.liferay.portal.kernel.exception.SystemException, 552 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 553 554 /** 555 * Returns the last document library file entry metadata in the ordered set where fileVersionId = ?. 556 * 557 * @param fileVersionId the file version ID 558 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 559 * @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 560 * @throws SystemException if a system exception occurred 561 */ 562 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileVersionId_Last( 563 long fileVersionId, 564 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 565 throws com.liferay.portal.kernel.exception.SystemException; 566 567 /** 568 * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileVersionId = ?. 569 * 570 * @param fileEntryMetadataId the primary key of the current document library file entry metadata 571 * @param fileVersionId the file version ID 572 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 573 * @return the previous, current, and next document library file entry metadata 574 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 575 * @throws SystemException if a system exception occurred 576 */ 577 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileVersionId_PrevAndNext( 578 long fileEntryMetadataId, long fileVersionId, 579 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 580 throws com.liferay.portal.kernel.exception.SystemException, 581 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 582 583 /** 584 * Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException} if it could not be found. 585 * 586 * @param DDMStructureId the d d m structure ID 587 * @param fileVersionId the file version ID 588 * @return the matching document library file entry metadata 589 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 590 * @throws SystemException if a system exception occurred 591 */ 592 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByD_F( 593 long DDMStructureId, long fileVersionId) 594 throws com.liferay.portal.kernel.exception.SystemException, 595 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 596 597 /** 598 * 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. 599 * 600 * @param DDMStructureId the d d m structure ID 601 * @param fileVersionId the file version ID 602 * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 603 * @throws SystemException if a system exception occurred 604 */ 605 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByD_F( 606 long DDMStructureId, long fileVersionId) 607 throws com.liferay.portal.kernel.exception.SystemException; 608 609 /** 610 * 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. 611 * 612 * @param DDMStructureId the d d m structure ID 613 * @param fileVersionId the file version ID 614 * @param retrieveFromCache whether to use the finder cache 615 * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 616 * @throws SystemException if a system exception occurred 617 */ 618 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByD_F( 619 long DDMStructureId, long fileVersionId, boolean retrieveFromCache) 620 throws com.liferay.portal.kernel.exception.SystemException; 621 622 /** 623 * Returns the document library file entry metadata where fileEntryId = ? and fileVersionId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException} if it could not be found. 624 * 625 * @param fileEntryId the file entry ID 626 * @param fileVersionId the file version ID 627 * @return the matching document library file entry metadata 628 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 629 * @throws SystemException if a system exception occurred 630 */ 631 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByF_V( 632 long fileEntryId, long fileVersionId) 633 throws com.liferay.portal.kernel.exception.SystemException, 634 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 635 636 /** 637 * Returns the document library file entry metadata where fileEntryId = ? and fileVersionId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 638 * 639 * @param fileEntryId the file entry ID 640 * @param fileVersionId the file version ID 641 * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 642 * @throws SystemException if a system exception occurred 643 */ 644 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByF_V( 645 long fileEntryId, long fileVersionId) 646 throws com.liferay.portal.kernel.exception.SystemException; 647 648 /** 649 * Returns the document library file entry metadata where fileEntryId = ? and fileVersionId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 650 * 651 * @param fileEntryId the file entry ID 652 * @param fileVersionId the file version ID 653 * @param retrieveFromCache whether to use the finder cache 654 * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 655 * @throws SystemException if a system exception occurred 656 */ 657 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByF_V( 658 long fileEntryId, long fileVersionId, boolean retrieveFromCache) 659 throws com.liferay.portal.kernel.exception.SystemException; 660 661 /** 662 * Returns all the document library file entry metadatas. 663 * 664 * @return the document library file entry metadatas 665 * @throws SystemException if a system exception occurred 666 */ 667 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll() 668 throws com.liferay.portal.kernel.exception.SystemException; 669 670 /** 671 * Returns a range of all the document library file entry metadatas. 672 * 673 * <p> 674 * 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. 675 * </p> 676 * 677 * @param start the lower bound of the range of document library file entry metadatas 678 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 679 * @return the range of document library file entry metadatas 680 * @throws SystemException if a system exception occurred 681 */ 682 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll( 683 int start, int end) 684 throws com.liferay.portal.kernel.exception.SystemException; 685 686 /** 687 * Returns an ordered range of all the document library file entry metadatas. 688 * 689 * <p> 690 * 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. 691 * </p> 692 * 693 * @param start the lower bound of the range of document library file entry metadatas 694 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 695 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 696 * @return the ordered range of document library file entry metadatas 697 * @throws SystemException if a system exception occurred 698 */ 699 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll( 700 int start, int end, 701 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 702 throws com.liferay.portal.kernel.exception.SystemException; 703 704 /** 705 * Removes all the document library file entry metadatas where uuid = ? from the database. 706 * 707 * @param uuid the uuid 708 * @throws SystemException if a system exception occurred 709 */ 710 public void removeByUuid(java.lang.String uuid) 711 throws com.liferay.portal.kernel.exception.SystemException; 712 713 /** 714 * Removes all the document library file entry metadatas where fileEntryTypeId = ? from the database. 715 * 716 * @param fileEntryTypeId the file entry type ID 717 * @throws SystemException if a system exception occurred 718 */ 719 public void removeByFileEntryTypeId(long fileEntryTypeId) 720 throws com.liferay.portal.kernel.exception.SystemException; 721 722 /** 723 * Removes all the document library file entry metadatas where fileEntryId = ? from the database. 724 * 725 * @param fileEntryId the file entry ID 726 * @throws SystemException if a system exception occurred 727 */ 728 public void removeByFileEntryId(long fileEntryId) 729 throws com.liferay.portal.kernel.exception.SystemException; 730 731 /** 732 * Removes all the document library file entry metadatas where fileVersionId = ? from the database. 733 * 734 * @param fileVersionId the file version ID 735 * @throws SystemException if a system exception occurred 736 */ 737 public void removeByFileVersionId(long fileVersionId) 738 throws com.liferay.portal.kernel.exception.SystemException; 739 740 /** 741 * Removes the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? from the database. 742 * 743 * @param DDMStructureId the d d m structure ID 744 * @param fileVersionId the file version ID 745 * @return the document library file entry metadata that was removed 746 * @throws SystemException if a system exception occurred 747 */ 748 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata removeByD_F( 749 long DDMStructureId, long fileVersionId) 750 throws com.liferay.portal.kernel.exception.SystemException, 751 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 752 753 /** 754 * Removes the document library file entry metadata where fileEntryId = ? and fileVersionId = ? from the database. 755 * 756 * @param fileEntryId the file entry ID 757 * @param fileVersionId the file version ID 758 * @return the document library file entry metadata that was removed 759 * @throws SystemException if a system exception occurred 760 */ 761 public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata removeByF_V( 762 long fileEntryId, long fileVersionId) 763 throws com.liferay.portal.kernel.exception.SystemException, 764 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException; 765 766 /** 767 * Removes all the document library file entry metadatas from the database. 768 * 769 * @throws SystemException if a system exception occurred 770 */ 771 public void removeAll() 772 throws com.liferay.portal.kernel.exception.SystemException; 773 774 /** 775 * Returns the number of document library file entry metadatas where uuid = ?. 776 * 777 * @param uuid the uuid 778 * @return the number of matching document library file entry metadatas 779 * @throws SystemException if a system exception occurred 780 */ 781 public int countByUuid(java.lang.String uuid) 782 throws com.liferay.portal.kernel.exception.SystemException; 783 784 /** 785 * Returns the number of document library file entry metadatas where fileEntryTypeId = ?. 786 * 787 * @param fileEntryTypeId the file entry type ID 788 * @return the number of matching document library file entry metadatas 789 * @throws SystemException if a system exception occurred 790 */ 791 public int countByFileEntryTypeId(long fileEntryTypeId) 792 throws com.liferay.portal.kernel.exception.SystemException; 793 794 /** 795 * Returns the number of document library file entry metadatas where fileEntryId = ?. 796 * 797 * @param fileEntryId the file entry ID 798 * @return the number of matching document library file entry metadatas 799 * @throws SystemException if a system exception occurred 800 */ 801 public int countByFileEntryId(long fileEntryId) 802 throws com.liferay.portal.kernel.exception.SystemException; 803 804 /** 805 * Returns the number of document library file entry metadatas where fileVersionId = ?. 806 * 807 * @param fileVersionId the file version ID 808 * @return the number of matching document library file entry metadatas 809 * @throws SystemException if a system exception occurred 810 */ 811 public int countByFileVersionId(long fileVersionId) 812 throws com.liferay.portal.kernel.exception.SystemException; 813 814 /** 815 * Returns the number of document library file entry metadatas where DDMStructureId = ? and fileVersionId = ?. 816 * 817 * @param DDMStructureId the d d m structure ID 818 * @param fileVersionId the file version ID 819 * @return the number of matching document library file entry metadatas 820 * @throws SystemException if a system exception occurred 821 */ 822 public int countByD_F(long DDMStructureId, long fileVersionId) 823 throws com.liferay.portal.kernel.exception.SystemException; 824 825 /** 826 * Returns the number of document library file entry metadatas where fileEntryId = ? and fileVersionId = ?. 827 * 828 * @param fileEntryId the file entry ID 829 * @param fileVersionId the file version ID 830 * @return the number of matching document library file entry metadatas 831 * @throws SystemException if a system exception occurred 832 */ 833 public int countByF_V(long fileEntryId, long fileVersionId) 834 throws com.liferay.portal.kernel.exception.SystemException; 835 836 /** 837 * Returns the number of document library file entry metadatas. 838 * 839 * @return the number of document library file entry metadatas 840 * @throws SystemException if a system exception occurred 841 */ 842 public int countAll() 843 throws com.liferay.portal.kernel.exception.SystemException; 844 }