001 /** 002 * Copyright (c) 2000-2011 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.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the document library file entry metadata service. This utility wraps {@link DLFileEntryMetadataPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see DLFileEntryMetadataPersistence 037 * @see DLFileEntryMetadataPersistenceImpl 038 * @generated 039 */ 040 public class DLFileEntryMetadataUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(DLFileEntryMetadata dlFileEntryMetadata) { 058 getPersistence().clearCache(dlFileEntryMetadata); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<DLFileEntryMetadata> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<DLFileEntryMetadata> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<DLFileEntryMetadata> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 099 */ 100 public static DLFileEntryMetadata remove( 101 DLFileEntryMetadata dlFileEntryMetadata) throws SystemException { 102 return getPersistence().remove(dlFileEntryMetadata); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 107 */ 108 public static DLFileEntryMetadata update( 109 DLFileEntryMetadata dlFileEntryMetadata, boolean merge) 110 throws SystemException { 111 return getPersistence().update(dlFileEntryMetadata, merge); 112 } 113 114 /** 115 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 116 */ 117 public static DLFileEntryMetadata update( 118 DLFileEntryMetadata dlFileEntryMetadata, boolean merge, 119 ServiceContext serviceContext) throws SystemException { 120 return getPersistence() 121 .update(dlFileEntryMetadata, merge, serviceContext); 122 } 123 124 /** 125 * Caches the document library file entry metadata in the entity cache if it is enabled. 126 * 127 * @param dlFileEntryMetadata the document library file entry metadata 128 */ 129 public static void cacheResult( 130 com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata) { 131 getPersistence().cacheResult(dlFileEntryMetadata); 132 } 133 134 /** 135 * Caches the document library file entry metadatas in the entity cache if it is enabled. 136 * 137 * @param dlFileEntryMetadatas the document library file entry metadatas 138 */ 139 public static void cacheResult( 140 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> dlFileEntryMetadatas) { 141 getPersistence().cacheResult(dlFileEntryMetadatas); 142 } 143 144 /** 145 * Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database. 146 * 147 * @param fileEntryMetadataId the primary key for the new document library file entry metadata 148 * @return the new document library file entry metadata 149 */ 150 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata create( 151 long fileEntryMetadataId) { 152 return getPersistence().create(fileEntryMetadataId); 153 } 154 155 /** 156 * Removes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners. 157 * 158 * @param fileEntryMetadataId the primary key of the document library file entry metadata 159 * @return the document library file entry metadata that was removed 160 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 161 * @throws SystemException if a system exception occurred 162 */ 163 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata remove( 164 long fileEntryMetadataId) 165 throws com.liferay.portal.kernel.exception.SystemException, 166 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 167 return getPersistence().remove(fileEntryMetadataId); 168 } 169 170 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata updateImpl( 171 com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata, 172 boolean merge) 173 throws com.liferay.portal.kernel.exception.SystemException { 174 return getPersistence().updateImpl(dlFileEntryMetadata, merge); 175 } 176 177 /** 178 * 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. 179 * 180 * @param fileEntryMetadataId the primary key of the document library file entry metadata 181 * @return the document library file entry metadata 182 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 183 * @throws SystemException if a system exception occurred 184 */ 185 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByPrimaryKey( 186 long fileEntryMetadataId) 187 throws com.liferay.portal.kernel.exception.SystemException, 188 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 189 return getPersistence().findByPrimaryKey(fileEntryMetadataId); 190 } 191 192 /** 193 * Returns the document library file entry metadata with the primary key or returns <code>null</code> if it could not be found. 194 * 195 * @param fileEntryMetadataId the primary key of the document library file entry metadata 196 * @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 197 * @throws SystemException if a system exception occurred 198 */ 199 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByPrimaryKey( 200 long fileEntryMetadataId) 201 throws com.liferay.portal.kernel.exception.SystemException { 202 return getPersistence().fetchByPrimaryKey(fileEntryMetadataId); 203 } 204 205 /** 206 * Returns all the document library file entry metadatas where uuid = ?. 207 * 208 * @param uuid the uuid 209 * @return the matching document library file entry metadatas 210 * @throws SystemException if a system exception occurred 211 */ 212 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid( 213 java.lang.String uuid) 214 throws com.liferay.portal.kernel.exception.SystemException { 215 return getPersistence().findByUuid(uuid); 216 } 217 218 /** 219 * Returns a range of all the document library file entry metadatas where uuid = ?. 220 * 221 * <p> 222 * 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. 223 * </p> 224 * 225 * @param uuid the uuid 226 * @param start the lower bound of the range of document library file entry metadatas 227 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 228 * @return the range of matching document library file entry metadatas 229 * @throws SystemException if a system exception occurred 230 */ 231 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid( 232 java.lang.String uuid, int start, int end) 233 throws com.liferay.portal.kernel.exception.SystemException { 234 return getPersistence().findByUuid(uuid, start, end); 235 } 236 237 /** 238 * Returns an ordered range of all the document library file entry metadatas where uuid = ?. 239 * 240 * <p> 241 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 242 * </p> 243 * 244 * @param uuid the uuid 245 * @param start the lower bound of the range of document library file entry metadatas 246 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 247 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 248 * @return the ordered range of matching document library file entry metadatas 249 * @throws SystemException if a system exception occurred 250 */ 251 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid( 252 java.lang.String uuid, int start, int end, 253 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 254 throws com.liferay.portal.kernel.exception.SystemException { 255 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 256 } 257 258 /** 259 * Returns the first document library file entry metadata in the ordered set where uuid = ?. 260 * 261 * <p> 262 * 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. 263 * </p> 264 * 265 * @param uuid the uuid 266 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 267 * @return the first matching document library file entry metadata 268 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 269 * @throws SystemException if a system exception occurred 270 */ 271 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByUuid_First( 272 java.lang.String uuid, 273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 274 throws com.liferay.portal.kernel.exception.SystemException, 275 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 276 return getPersistence().findByUuid_First(uuid, orderByComparator); 277 } 278 279 /** 280 * Returns the last document library file entry metadata in the ordered set where uuid = ?. 281 * 282 * <p> 283 * 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. 284 * </p> 285 * 286 * @param uuid the uuid 287 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 288 * @return the last matching document library file entry metadata 289 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 290 * @throws SystemException if a system exception occurred 291 */ 292 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByUuid_Last( 293 java.lang.String uuid, 294 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 295 throws com.liferay.portal.kernel.exception.SystemException, 296 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 297 return getPersistence().findByUuid_Last(uuid, orderByComparator); 298 } 299 300 /** 301 * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = ?. 302 * 303 * <p> 304 * 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. 305 * </p> 306 * 307 * @param fileEntryMetadataId the primary key of the current document library file entry metadata 308 * @param uuid the uuid 309 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 310 * @return the previous, current, and next document library file entry metadata 311 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 312 * @throws SystemException if a system exception occurred 313 */ 314 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByUuid_PrevAndNext( 315 long fileEntryMetadataId, java.lang.String uuid, 316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 317 throws com.liferay.portal.kernel.exception.SystemException, 318 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 319 return getPersistence() 320 .findByUuid_PrevAndNext(fileEntryMetadataId, uuid, 321 orderByComparator); 322 } 323 324 /** 325 * Returns all the document library file entry metadatas where fileEntryTypeId = ?. 326 * 327 * @param fileEntryTypeId the file entry type ID 328 * @return the matching document library file entry metadatas 329 * @throws SystemException if a system exception occurred 330 */ 331 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId( 332 long fileEntryTypeId) 333 throws com.liferay.portal.kernel.exception.SystemException { 334 return getPersistence().findByFileEntryTypeId(fileEntryTypeId); 335 } 336 337 /** 338 * Returns a range of all the document library file entry metadatas where fileEntryTypeId = ?. 339 * 340 * <p> 341 * 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. 342 * </p> 343 * 344 * @param fileEntryTypeId the file entry type ID 345 * @param start the lower bound of the range of document library file entry metadatas 346 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 347 * @return the range of matching document library file entry metadatas 348 * @throws SystemException if a system exception occurred 349 */ 350 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId( 351 long fileEntryTypeId, int start, int end) 352 throws com.liferay.portal.kernel.exception.SystemException { 353 return getPersistence() 354 .findByFileEntryTypeId(fileEntryTypeId, start, end); 355 } 356 357 /** 358 * Returns an ordered range of all the document library file entry metadatas where fileEntryTypeId = ?. 359 * 360 * <p> 361 * 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. 362 * </p> 363 * 364 * @param fileEntryTypeId the file entry type ID 365 * @param start the lower bound of the range of document library file entry metadatas 366 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 367 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 368 * @return the ordered range of matching document library file entry metadatas 369 * @throws SystemException if a system exception occurred 370 */ 371 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId( 372 long fileEntryTypeId, int start, int end, 373 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 374 throws com.liferay.portal.kernel.exception.SystemException { 375 return getPersistence() 376 .findByFileEntryTypeId(fileEntryTypeId, start, end, 377 orderByComparator); 378 } 379 380 /** 381 * Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = ?. 382 * 383 * <p> 384 * 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. 385 * </p> 386 * 387 * @param fileEntryTypeId the file entry type ID 388 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 389 * @return the first matching document library file entry metadata 390 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 391 * @throws SystemException if a system exception occurred 392 */ 393 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryTypeId_First( 394 long fileEntryTypeId, 395 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 396 throws com.liferay.portal.kernel.exception.SystemException, 397 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 398 return getPersistence() 399 .findByFileEntryTypeId_First(fileEntryTypeId, 400 orderByComparator); 401 } 402 403 /** 404 * Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = ?. 405 * 406 * <p> 407 * 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. 408 * </p> 409 * 410 * @param fileEntryTypeId the file entry type ID 411 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 412 * @return the last matching document library file entry metadata 413 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 414 * @throws SystemException if a system exception occurred 415 */ 416 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryTypeId_Last( 417 long fileEntryTypeId, 418 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 419 throws com.liferay.portal.kernel.exception.SystemException, 420 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 421 return getPersistence() 422 .findByFileEntryTypeId_Last(fileEntryTypeId, 423 orderByComparator); 424 } 425 426 /** 427 * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryTypeId = ?. 428 * 429 * <p> 430 * 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. 431 * </p> 432 * 433 * @param fileEntryMetadataId the primary key of the current document library file entry metadata 434 * @param fileEntryTypeId the file entry type ID 435 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 436 * @return the previous, current, and next document library file entry metadata 437 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 438 * @throws SystemException if a system exception occurred 439 */ 440 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileEntryTypeId_PrevAndNext( 441 long fileEntryMetadataId, long fileEntryTypeId, 442 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 443 throws com.liferay.portal.kernel.exception.SystemException, 444 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 445 return getPersistence() 446 .findByFileEntryTypeId_PrevAndNext(fileEntryMetadataId, 447 fileEntryTypeId, orderByComparator); 448 } 449 450 /** 451 * Returns all the document library file entry metadatas where fileEntryId = ?. 452 * 453 * @param fileEntryId the file entry ID 454 * @return the matching document library file entry metadatas 455 * @throws SystemException if a system exception occurred 456 */ 457 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId( 458 long fileEntryId) 459 throws com.liferay.portal.kernel.exception.SystemException { 460 return getPersistence().findByFileEntryId(fileEntryId); 461 } 462 463 /** 464 * Returns a range of all the document library file entry metadatas where fileEntryId = ?. 465 * 466 * <p> 467 * 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. 468 * </p> 469 * 470 * @param fileEntryId the file entry ID 471 * @param start the lower bound of the range of document library file entry metadatas 472 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 473 * @return the range of matching document library file entry metadatas 474 * @throws SystemException if a system exception occurred 475 */ 476 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId( 477 long fileEntryId, int start, int end) 478 throws com.liferay.portal.kernel.exception.SystemException { 479 return getPersistence().findByFileEntryId(fileEntryId, start, end); 480 } 481 482 /** 483 * Returns an ordered range of all the document library file entry metadatas where fileEntryId = ?. 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. 487 * </p> 488 * 489 * @param fileEntryId the file entry 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 static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId( 497 long fileEntryId, int start, int end, 498 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 499 throws com.liferay.portal.kernel.exception.SystemException { 500 return getPersistence() 501 .findByFileEntryId(fileEntryId, start, end, orderByComparator); 502 } 503 504 /** 505 * Returns the first document library file entry metadata in the ordered set where fileEntryId = ?. 506 * 507 * <p> 508 * 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. 509 * </p> 510 * 511 * @param fileEntryId the file entry ID 512 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 513 * @return the first matching document library file entry metadata 514 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 515 * @throws SystemException if a system exception occurred 516 */ 517 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryId_First( 518 long fileEntryId, 519 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 520 throws com.liferay.portal.kernel.exception.SystemException, 521 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 522 return getPersistence() 523 .findByFileEntryId_First(fileEntryId, orderByComparator); 524 } 525 526 /** 527 * Returns the last document library file entry metadata in the ordered set where fileEntryId = ?. 528 * 529 * <p> 530 * 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. 531 * </p> 532 * 533 * @param fileEntryId the file entry ID 534 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 535 * @return the last matching document library file entry metadata 536 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 537 * @throws SystemException if a system exception occurred 538 */ 539 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryId_Last( 540 long fileEntryId, 541 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 542 throws com.liferay.portal.kernel.exception.SystemException, 543 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 544 return getPersistence() 545 .findByFileEntryId_Last(fileEntryId, orderByComparator); 546 } 547 548 /** 549 * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryId = ?. 550 * 551 * <p> 552 * 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. 553 * </p> 554 * 555 * @param fileEntryMetadataId the primary key of the current document library file entry metadata 556 * @param fileEntryId the file entry ID 557 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 558 * @return the previous, current, and next document library file entry metadata 559 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 560 * @throws SystemException if a system exception occurred 561 */ 562 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileEntryId_PrevAndNext( 563 long fileEntryMetadataId, long fileEntryId, 564 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 565 throws com.liferay.portal.kernel.exception.SystemException, 566 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 567 return getPersistence() 568 .findByFileEntryId_PrevAndNext(fileEntryMetadataId, 569 fileEntryId, orderByComparator); 570 } 571 572 /** 573 * Returns all the document library file entry metadatas where fileVersionId = ?. 574 * 575 * @param fileVersionId the file version ID 576 * @return the matching document library file entry metadatas 577 * @throws SystemException if a system exception occurred 578 */ 579 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId( 580 long fileVersionId) 581 throws com.liferay.portal.kernel.exception.SystemException { 582 return getPersistence().findByFileVersionId(fileVersionId); 583 } 584 585 /** 586 * Returns a range of all the document library file entry metadatas where fileVersionId = ?. 587 * 588 * <p> 589 * 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. 590 * </p> 591 * 592 * @param fileVersionId the file version ID 593 * @param start the lower bound of the range of document library file entry metadatas 594 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 595 * @return the range of matching document library file entry metadatas 596 * @throws SystemException if a system exception occurred 597 */ 598 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId( 599 long fileVersionId, int start, int end) 600 throws com.liferay.portal.kernel.exception.SystemException { 601 return getPersistence().findByFileVersionId(fileVersionId, start, end); 602 } 603 604 /** 605 * Returns an ordered range of all the document library file entry metadatas where fileVersionId = ?. 606 * 607 * <p> 608 * 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. 609 * </p> 610 * 611 * @param fileVersionId the file version ID 612 * @param start the lower bound of the range of document library file entry metadatas 613 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 614 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 615 * @return the ordered range of matching document library file entry metadatas 616 * @throws SystemException if a system exception occurred 617 */ 618 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId( 619 long fileVersionId, int start, int end, 620 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 621 throws com.liferay.portal.kernel.exception.SystemException { 622 return getPersistence() 623 .findByFileVersionId(fileVersionId, start, end, 624 orderByComparator); 625 } 626 627 /** 628 * Returns the first document library file entry metadata in the ordered set where fileVersionId = ?. 629 * 630 * <p> 631 * 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. 632 * </p> 633 * 634 * @param fileVersionId the file version ID 635 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 636 * @return the first matching document library file entry metadata 637 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 638 * @throws SystemException if a system exception occurred 639 */ 640 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileVersionId_First( 641 long fileVersionId, 642 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 643 throws com.liferay.portal.kernel.exception.SystemException, 644 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 645 return getPersistence() 646 .findByFileVersionId_First(fileVersionId, orderByComparator); 647 } 648 649 /** 650 * Returns the last document library file entry metadata in the ordered set where fileVersionId = ?. 651 * 652 * <p> 653 * 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. 654 * </p> 655 * 656 * @param fileVersionId the file version ID 657 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 658 * @return the last matching document library file entry metadata 659 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 660 * @throws SystemException if a system exception occurred 661 */ 662 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileVersionId_Last( 663 long fileVersionId, 664 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 665 throws com.liferay.portal.kernel.exception.SystemException, 666 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 667 return getPersistence() 668 .findByFileVersionId_Last(fileVersionId, orderByComparator); 669 } 670 671 /** 672 * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileVersionId = ?. 673 * 674 * <p> 675 * 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. 676 * </p> 677 * 678 * @param fileEntryMetadataId the primary key of the current document library file entry metadata 679 * @param fileVersionId the file version ID 680 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 681 * @return the previous, current, and next document library file entry metadata 682 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 683 * @throws SystemException if a system exception occurred 684 */ 685 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileVersionId_PrevAndNext( 686 long fileEntryMetadataId, long fileVersionId, 687 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 688 throws com.liferay.portal.kernel.exception.SystemException, 689 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 690 return getPersistence() 691 .findByFileVersionId_PrevAndNext(fileEntryMetadataId, 692 fileVersionId, orderByComparator); 693 } 694 695 /** 696 * 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. 697 * 698 * @param DDMStructureId the d d m structure ID 699 * @param fileVersionId the file version ID 700 * @return the matching document library file entry metadata 701 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 702 * @throws SystemException if a system exception occurred 703 */ 704 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByD_F( 705 long DDMStructureId, long fileVersionId) 706 throws com.liferay.portal.kernel.exception.SystemException, 707 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 708 return getPersistence().findByD_F(DDMStructureId, fileVersionId); 709 } 710 711 /** 712 * 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. 713 * 714 * @param DDMStructureId the d d m structure ID 715 * @param fileVersionId the file version ID 716 * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 717 * @throws SystemException if a system exception occurred 718 */ 719 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByD_F( 720 long DDMStructureId, long fileVersionId) 721 throws com.liferay.portal.kernel.exception.SystemException { 722 return getPersistence().fetchByD_F(DDMStructureId, fileVersionId); 723 } 724 725 /** 726 * 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. 727 * 728 * @param DDMStructureId the d d m structure ID 729 * @param fileVersionId the file version ID 730 * @param retrieveFromCache whether to use the finder cache 731 * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 732 * @throws SystemException if a system exception occurred 733 */ 734 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByD_F( 735 long DDMStructureId, long fileVersionId, boolean retrieveFromCache) 736 throws com.liferay.portal.kernel.exception.SystemException { 737 return getPersistence() 738 .fetchByD_F(DDMStructureId, fileVersionId, retrieveFromCache); 739 } 740 741 /** 742 * Returns the document library file entry metadata where fileEntryId = ? and fileVersionId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException} if it could not be found. 743 * 744 * @param fileEntryId the file entry ID 745 * @param fileVersionId the file version ID 746 * @return the matching document library file entry metadata 747 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 748 * @throws SystemException if a system exception occurred 749 */ 750 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByF_V( 751 long fileEntryId, long fileVersionId) 752 throws com.liferay.portal.kernel.exception.SystemException, 753 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 754 return getPersistence().findByF_V(fileEntryId, fileVersionId); 755 } 756 757 /** 758 * Returns the document library file entry metadata where fileEntryId = ? and fileVersionId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 759 * 760 * @param fileEntryId the file entry ID 761 * @param fileVersionId the file version ID 762 * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 763 * @throws SystemException if a system exception occurred 764 */ 765 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByF_V( 766 long fileEntryId, long fileVersionId) 767 throws com.liferay.portal.kernel.exception.SystemException { 768 return getPersistence().fetchByF_V(fileEntryId, fileVersionId); 769 } 770 771 /** 772 * Returns the document library file entry metadata where fileEntryId = ? and fileVersionId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 773 * 774 * @param fileEntryId the file entry ID 775 * @param fileVersionId the file version ID 776 * @param retrieveFromCache whether to use the finder cache 777 * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 778 * @throws SystemException if a system exception occurred 779 */ 780 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByF_V( 781 long fileEntryId, long fileVersionId, boolean retrieveFromCache) 782 throws com.liferay.portal.kernel.exception.SystemException { 783 return getPersistence() 784 .fetchByF_V(fileEntryId, fileVersionId, retrieveFromCache); 785 } 786 787 /** 788 * Returns all the document library file entry metadatas. 789 * 790 * @return the document library file entry metadatas 791 * @throws SystemException if a system exception occurred 792 */ 793 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll() 794 throws com.liferay.portal.kernel.exception.SystemException { 795 return getPersistence().findAll(); 796 } 797 798 /** 799 * Returns a range of all the document library file entry metadatas. 800 * 801 * <p> 802 * 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. 803 * </p> 804 * 805 * @param start the lower bound of the range of document library file entry metadatas 806 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 807 * @return the range of document library file entry metadatas 808 * @throws SystemException if a system exception occurred 809 */ 810 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll( 811 int start, int end) 812 throws com.liferay.portal.kernel.exception.SystemException { 813 return getPersistence().findAll(start, end); 814 } 815 816 /** 817 * Returns an ordered range of all the document library file entry metadatas. 818 * 819 * <p> 820 * 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. 821 * </p> 822 * 823 * @param start the lower bound of the range of document library file entry metadatas 824 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 825 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 826 * @return the ordered range of document library file entry metadatas 827 * @throws SystemException if a system exception occurred 828 */ 829 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll( 830 int start, int end, 831 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 832 throws com.liferay.portal.kernel.exception.SystemException { 833 return getPersistence().findAll(start, end, orderByComparator); 834 } 835 836 /** 837 * Removes all the document library file entry metadatas where uuid = ? from the database. 838 * 839 * @param uuid the uuid 840 * @throws SystemException if a system exception occurred 841 */ 842 public static void removeByUuid(java.lang.String uuid) 843 throws com.liferay.portal.kernel.exception.SystemException { 844 getPersistence().removeByUuid(uuid); 845 } 846 847 /** 848 * Removes all the document library file entry metadatas where fileEntryTypeId = ? from the database. 849 * 850 * @param fileEntryTypeId the file entry type ID 851 * @throws SystemException if a system exception occurred 852 */ 853 public static void removeByFileEntryTypeId(long fileEntryTypeId) 854 throws com.liferay.portal.kernel.exception.SystemException { 855 getPersistence().removeByFileEntryTypeId(fileEntryTypeId); 856 } 857 858 /** 859 * Removes all the document library file entry metadatas where fileEntryId = ? from the database. 860 * 861 * @param fileEntryId the file entry ID 862 * @throws SystemException if a system exception occurred 863 */ 864 public static void removeByFileEntryId(long fileEntryId) 865 throws com.liferay.portal.kernel.exception.SystemException { 866 getPersistence().removeByFileEntryId(fileEntryId); 867 } 868 869 /** 870 * Removes all the document library file entry metadatas where fileVersionId = ? from the database. 871 * 872 * @param fileVersionId the file version ID 873 * @throws SystemException if a system exception occurred 874 */ 875 public static void removeByFileVersionId(long fileVersionId) 876 throws com.liferay.portal.kernel.exception.SystemException { 877 getPersistence().removeByFileVersionId(fileVersionId); 878 } 879 880 /** 881 * Removes the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? from the database. 882 * 883 * @param DDMStructureId the d d m structure ID 884 * @param fileVersionId the file version ID 885 * @throws SystemException if a system exception occurred 886 */ 887 public static void removeByD_F(long DDMStructureId, long fileVersionId) 888 throws com.liferay.portal.kernel.exception.SystemException, 889 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 890 getPersistence().removeByD_F(DDMStructureId, fileVersionId); 891 } 892 893 /** 894 * Removes the document library file entry metadata where fileEntryId = ? and fileVersionId = ? from the database. 895 * 896 * @param fileEntryId the file entry ID 897 * @param fileVersionId the file version ID 898 * @throws SystemException if a system exception occurred 899 */ 900 public static void removeByF_V(long fileEntryId, long fileVersionId) 901 throws com.liferay.portal.kernel.exception.SystemException, 902 com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 903 getPersistence().removeByF_V(fileEntryId, fileVersionId); 904 } 905 906 /** 907 * Removes all the document library file entry metadatas from the database. 908 * 909 * @throws SystemException if a system exception occurred 910 */ 911 public static void removeAll() 912 throws com.liferay.portal.kernel.exception.SystemException { 913 getPersistence().removeAll(); 914 } 915 916 /** 917 * Returns the number of document library file entry metadatas where uuid = ?. 918 * 919 * @param uuid the uuid 920 * @return the number of matching document library file entry metadatas 921 * @throws SystemException if a system exception occurred 922 */ 923 public static int countByUuid(java.lang.String uuid) 924 throws com.liferay.portal.kernel.exception.SystemException { 925 return getPersistence().countByUuid(uuid); 926 } 927 928 /** 929 * Returns the number of document library file entry metadatas where fileEntryTypeId = ?. 930 * 931 * @param fileEntryTypeId the file entry type ID 932 * @return the number of matching document library file entry metadatas 933 * @throws SystemException if a system exception occurred 934 */ 935 public static int countByFileEntryTypeId(long fileEntryTypeId) 936 throws com.liferay.portal.kernel.exception.SystemException { 937 return getPersistence().countByFileEntryTypeId(fileEntryTypeId); 938 } 939 940 /** 941 * Returns the number of document library file entry metadatas where fileEntryId = ?. 942 * 943 * @param fileEntryId the file entry ID 944 * @return the number of matching document library file entry metadatas 945 * @throws SystemException if a system exception occurred 946 */ 947 public static int countByFileEntryId(long fileEntryId) 948 throws com.liferay.portal.kernel.exception.SystemException { 949 return getPersistence().countByFileEntryId(fileEntryId); 950 } 951 952 /** 953 * Returns the number of document library file entry metadatas where fileVersionId = ?. 954 * 955 * @param fileVersionId the file version ID 956 * @return the number of matching document library file entry metadatas 957 * @throws SystemException if a system exception occurred 958 */ 959 public static int countByFileVersionId(long fileVersionId) 960 throws com.liferay.portal.kernel.exception.SystemException { 961 return getPersistence().countByFileVersionId(fileVersionId); 962 } 963 964 /** 965 * Returns the number of document library file entry metadatas where DDMStructureId = ? and fileVersionId = ?. 966 * 967 * @param DDMStructureId the d d m structure ID 968 * @param fileVersionId the file version ID 969 * @return the number of matching document library file entry metadatas 970 * @throws SystemException if a system exception occurred 971 */ 972 public static int countByD_F(long DDMStructureId, long fileVersionId) 973 throws com.liferay.portal.kernel.exception.SystemException { 974 return getPersistence().countByD_F(DDMStructureId, fileVersionId); 975 } 976 977 /** 978 * Returns the number of document library file entry metadatas where fileEntryId = ? and fileVersionId = ?. 979 * 980 * @param fileEntryId the file entry ID 981 * @param fileVersionId the file version ID 982 * @return the number of matching document library file entry metadatas 983 * @throws SystemException if a system exception occurred 984 */ 985 public static int countByF_V(long fileEntryId, long fileVersionId) 986 throws com.liferay.portal.kernel.exception.SystemException { 987 return getPersistence().countByF_V(fileEntryId, fileVersionId); 988 } 989 990 /** 991 * Returns the number of document library file entry metadatas. 992 * 993 * @return the number of document library file entry metadatas 994 * @throws SystemException if a system exception occurred 995 */ 996 public static int countAll() 997 throws com.liferay.portal.kernel.exception.SystemException { 998 return getPersistence().countAll(); 999 } 1000 1001 public static DLFileEntryMetadataPersistence getPersistence() { 1002 if (_persistence == null) { 1003 _persistence = (DLFileEntryMetadataPersistence)PortalBeanLocatorUtil.locate(DLFileEntryMetadataPersistence.class.getName()); 1004 1005 ReferenceRegistry.registerReference(DLFileEntryMetadataUtil.class, 1006 "_persistence"); 1007 } 1008 1009 return _persistence; 1010 } 1011 1012 public void setPersistence(DLFileEntryMetadataPersistence persistence) { 1013 _persistence = persistence; 1014 1015 ReferenceRegistry.registerReference(DLFileEntryMetadataUtil.class, 1016 "_persistence"); 1017 } 1018 1019 private static DLFileEntryMetadataPersistence _persistence; 1020 }