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