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