001 /** 002 * Copyright (c) 2000-2010 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.service.ServiceContext; 022 023 import com.liferay.portlet.documentlibrary.model.DLFileVersion; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the d l file version service. 029 * 030 * <p> 031 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class. 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see DLFileVersionPersistence 036 * @see DLFileVersionPersistenceImpl 037 * @generated 038 */ 039 public class DLFileVersionUtil { 040 /** 041 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 042 */ 043 public static void clearCache() { 044 getPersistence().clearCache(); 045 } 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 049 */ 050 public static void clearCache(DLFileVersion dlFileVersion) { 051 getPersistence().clearCache(dlFileVersion); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 056 */ 057 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 058 throws SystemException { 059 return getPersistence().countWithDynamicQuery(dynamicQuery); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 064 */ 065 public static List<DLFileVersion> findWithDynamicQuery( 066 DynamicQuery dynamicQuery) throws SystemException { 067 return getPersistence().findWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 072 */ 073 public static List<DLFileVersion> findWithDynamicQuery( 074 DynamicQuery dynamicQuery, int start, int end) 075 throws SystemException { 076 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 077 } 078 079 /** 080 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 081 */ 082 public static List<DLFileVersion> findWithDynamicQuery( 083 DynamicQuery dynamicQuery, int start, int end, 084 OrderByComparator orderByComparator) throws SystemException { 085 return getPersistence() 086 .findWithDynamicQuery(dynamicQuery, start, end, 087 orderByComparator); 088 } 089 090 /** 091 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 092 */ 093 public static DLFileVersion remove(DLFileVersion dlFileVersion) 094 throws SystemException { 095 return getPersistence().remove(dlFileVersion); 096 } 097 098 /** 099 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 100 */ 101 public static DLFileVersion update(DLFileVersion dlFileVersion, 102 boolean merge) throws SystemException { 103 return getPersistence().update(dlFileVersion, merge); 104 } 105 106 /** 107 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 108 */ 109 public static DLFileVersion update(DLFileVersion dlFileVersion, 110 boolean merge, ServiceContext serviceContext) throws SystemException { 111 return getPersistence().update(dlFileVersion, merge, serviceContext); 112 } 113 114 /** 115 * Caches the d l file version in the entity cache if it is enabled. 116 * 117 * @param dlFileVersion the d l file version to cache 118 */ 119 public static void cacheResult( 120 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) { 121 getPersistence().cacheResult(dlFileVersion); 122 } 123 124 /** 125 * Caches the d l file versions in the entity cache if it is enabled. 126 * 127 * @param dlFileVersions the d l file versions to cache 128 */ 129 public static void cacheResult( 130 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> dlFileVersions) { 131 getPersistence().cacheResult(dlFileVersions); 132 } 133 134 /** 135 * Creates a new d l file version with the primary key. 136 * 137 * @param fileVersionId the primary key for the new d l file version 138 * @return the new d l file version 139 */ 140 public static com.liferay.portlet.documentlibrary.model.DLFileVersion create( 141 long fileVersionId) { 142 return getPersistence().create(fileVersionId); 143 } 144 145 /** 146 * Removes the d l file version with the primary key from the database. Also notifies the appropriate model listeners. 147 * 148 * @param fileVersionId the primary key of the d l file version to remove 149 * @return the d l file version that was removed 150 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a d l file version with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public static com.liferay.portlet.documentlibrary.model.DLFileVersion remove( 154 long fileVersionId) 155 throws com.liferay.portal.kernel.exception.SystemException, 156 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 157 return getPersistence().remove(fileVersionId); 158 } 159 160 public static com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl( 161 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion, 162 boolean merge) 163 throws com.liferay.portal.kernel.exception.SystemException { 164 return getPersistence().updateImpl(dlFileVersion, merge); 165 } 166 167 /** 168 * Finds the d l file version with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileVersionException} if it could not be found. 169 * 170 * @param fileVersionId the primary key of the d l file version to find 171 * @return the d l file version 172 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a d l file version with the primary key could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey( 176 long fileVersionId) 177 throws com.liferay.portal.kernel.exception.SystemException, 178 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 179 return getPersistence().findByPrimaryKey(fileVersionId); 180 } 181 182 /** 183 * Finds the d l file version with the primary key or returns <code>null</code> if it could not be found. 184 * 185 * @param fileVersionId the primary key of the d l file version to find 186 * @return the d l file version, or <code>null</code> if a d l file version with the primary key could not be found 187 * @throws SystemException if a system exception occurred 188 */ 189 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey( 190 long fileVersionId) 191 throws com.liferay.portal.kernel.exception.SystemException { 192 return getPersistence().fetchByPrimaryKey(fileVersionId); 193 } 194 195 /** 196 * Finds all the d l file versions where groupId = ? and folderId = ? and name = ?. 197 * 198 * @param groupId the group id to search with 199 * @param folderId the folder id to search with 200 * @param name the name to search with 201 * @return the matching d l file versions 202 * @throws SystemException if a system exception occurred 203 */ 204 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N( 205 long groupId, long folderId, java.lang.String name) 206 throws com.liferay.portal.kernel.exception.SystemException { 207 return getPersistence().findByG_F_N(groupId, folderId, name); 208 } 209 210 /** 211 * Finds a range of all the d l file versions where groupId = ? and folderId = ? and name = ?. 212 * 213 * <p> 214 * 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. 215 * </p> 216 * 217 * @param groupId the group id to search with 218 * @param folderId the folder id to search with 219 * @param name the name to search with 220 * @param start the lower bound of the range of d l file versions to return 221 * @param end the upper bound of the range of d l file versions to return (not inclusive) 222 * @return the range of matching d l file versions 223 * @throws SystemException if a system exception occurred 224 */ 225 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N( 226 long groupId, long folderId, java.lang.String name, int start, int end) 227 throws com.liferay.portal.kernel.exception.SystemException { 228 return getPersistence().findByG_F_N(groupId, folderId, name, start, end); 229 } 230 231 /** 232 * Finds an ordered range of all the d l file versions where groupId = ? and folderId = ? and name = ?. 233 * 234 * <p> 235 * 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. 236 * </p> 237 * 238 * @param groupId the group id to search with 239 * @param folderId the folder id to search with 240 * @param name the name to search with 241 * @param start the lower bound of the range of d l file versions to return 242 * @param end the upper bound of the range of d l file versions to return (not inclusive) 243 * @param orderByComparator the comparator to order the results by 244 * @return the ordered range of matching d l file versions 245 * @throws SystemException if a system exception occurred 246 */ 247 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N( 248 long groupId, long folderId, java.lang.String name, int start, int end, 249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 250 throws com.liferay.portal.kernel.exception.SystemException { 251 return getPersistence() 252 .findByG_F_N(groupId, folderId, name, start, end, 253 orderByComparator); 254 } 255 256 /** 257 * Finds the first d l file version in the ordered set where groupId = ? and folderId = ? and name = ?. 258 * 259 * <p> 260 * 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. 261 * </p> 262 * 263 * @param groupId the group id to search with 264 * @param folderId the folder id to search with 265 * @param name the name to search with 266 * @param orderByComparator the comparator to order the set by 267 * @return the first matching d l file version 268 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching d l file version could not be found 269 * @throws SystemException if a system exception occurred 270 */ 271 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_First( 272 long groupId, long folderId, java.lang.String name, 273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 274 throws com.liferay.portal.kernel.exception.SystemException, 275 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 276 return getPersistence() 277 .findByG_F_N_First(groupId, folderId, name, orderByComparator); 278 } 279 280 /** 281 * Finds the last d l file version in the ordered set where groupId = ? and folderId = ? and name = ?. 282 * 283 * <p> 284 * 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. 285 * </p> 286 * 287 * @param groupId the group id to search with 288 * @param folderId the folder id to search with 289 * @param name the name to search with 290 * @param orderByComparator the comparator to order the set by 291 * @return the last matching d l file version 292 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching d l file version could not be found 293 * @throws SystemException if a system exception occurred 294 */ 295 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_Last( 296 long groupId, long folderId, java.lang.String name, 297 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 298 throws com.liferay.portal.kernel.exception.SystemException, 299 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 300 return getPersistence() 301 .findByG_F_N_Last(groupId, folderId, name, orderByComparator); 302 } 303 304 /** 305 * Finds the d l file versions before and after the current d l file version in the ordered set where groupId = ? and folderId = ? and name = ?. 306 * 307 * <p> 308 * 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. 309 * </p> 310 * 311 * @param fileVersionId the primary key of the current d l file version 312 * @param groupId the group id to search with 313 * @param folderId the folder id to search with 314 * @param name the name to search with 315 * @param orderByComparator the comparator to order the set by 316 * @return the previous, current, and next d l file version 317 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a d l file version with the primary key could not be found 318 * @throws SystemException if a system exception occurred 319 */ 320 public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_N_PrevAndNext( 321 long fileVersionId, long groupId, long folderId, java.lang.String name, 322 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 323 throws com.liferay.portal.kernel.exception.SystemException, 324 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 325 return getPersistence() 326 .findByG_F_N_PrevAndNext(fileVersionId, groupId, folderId, 327 name, orderByComparator); 328 } 329 330 /** 331 * Finds the d l file version where groupId = ? and folderId = ? and name = ? and version = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileVersionException} if it could not be found. 332 * 333 * @param groupId the group id to search with 334 * @param folderId the folder id to search with 335 * @param name the name to search with 336 * @param version the version to search with 337 * @return the matching d l file version 338 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching d l file version could not be found 339 * @throws SystemException if a system exception occurred 340 */ 341 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_V( 342 long groupId, long folderId, java.lang.String name, 343 java.lang.String version) 344 throws com.liferay.portal.kernel.exception.SystemException, 345 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 346 return getPersistence().findByG_F_N_V(groupId, folderId, name, version); 347 } 348 349 /** 350 * Finds the d l file version where groupId = ? and folderId = ? and name = ? and version = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 351 * 352 * @param groupId the group id to search with 353 * @param folderId the folder id to search with 354 * @param name the name to search with 355 * @param version the version to search with 356 * @return the matching d l file version, or <code>null</code> if a matching d l file version could not be found 357 * @throws SystemException if a system exception occurred 358 */ 359 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_N_V( 360 long groupId, long folderId, java.lang.String name, 361 java.lang.String version) 362 throws com.liferay.portal.kernel.exception.SystemException { 363 return getPersistence().fetchByG_F_N_V(groupId, folderId, name, version); 364 } 365 366 /** 367 * Finds the d l file version where groupId = ? and folderId = ? and name = ? and version = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 368 * 369 * @param groupId the group id to search with 370 * @param folderId the folder id to search with 371 * @param name the name to search with 372 * @param version the version to search with 373 * @return the matching d l file version, or <code>null</code> if a matching d l file version could not be found 374 * @throws SystemException if a system exception occurred 375 */ 376 public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_N_V( 377 long groupId, long folderId, java.lang.String name, 378 java.lang.String version, boolean retrieveFromCache) 379 throws com.liferay.portal.kernel.exception.SystemException { 380 return getPersistence() 381 .fetchByG_F_N_V(groupId, folderId, name, version, 382 retrieveFromCache); 383 } 384 385 /** 386 * Finds all the d l file versions where groupId = ? and folderId = ? and name = ? and status = ?. 387 * 388 * @param groupId the group id to search with 389 * @param folderId the folder id to search with 390 * @param name the name to search with 391 * @param status the status to search with 392 * @return the matching d l file versions 393 * @throws SystemException if a system exception occurred 394 */ 395 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S( 396 long groupId, long folderId, java.lang.String name, int status) 397 throws com.liferay.portal.kernel.exception.SystemException { 398 return getPersistence().findByG_F_N_S(groupId, folderId, name, status); 399 } 400 401 /** 402 * Finds a range of all the d l file versions where groupId = ? and folderId = ? and name = ? and status = ?. 403 * 404 * <p> 405 * 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. 406 * </p> 407 * 408 * @param groupId the group id to search with 409 * @param folderId the folder id to search with 410 * @param name the name to search with 411 * @param status the status to search with 412 * @param start the lower bound of the range of d l file versions to return 413 * @param end the upper bound of the range of d l file versions to return (not inclusive) 414 * @return the range of matching d l file versions 415 * @throws SystemException if a system exception occurred 416 */ 417 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S( 418 long groupId, long folderId, java.lang.String name, int status, 419 int start, int end) 420 throws com.liferay.portal.kernel.exception.SystemException { 421 return getPersistence() 422 .findByG_F_N_S(groupId, folderId, name, status, start, end); 423 } 424 425 /** 426 * Finds an ordered range of all the d l file versions where groupId = ? and folderId = ? and name = ? and status = ?. 427 * 428 * <p> 429 * 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. 430 * </p> 431 * 432 * @param groupId the group id to search with 433 * @param folderId the folder id to search with 434 * @param name the name to search with 435 * @param status the status to search with 436 * @param start the lower bound of the range of d l file versions to return 437 * @param end the upper bound of the range of d l file versions to return (not inclusive) 438 * @param orderByComparator the comparator to order the results by 439 * @return the ordered range of matching d l file versions 440 * @throws SystemException if a system exception occurred 441 */ 442 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S( 443 long groupId, long folderId, java.lang.String name, int status, 444 int start, int end, 445 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 446 throws com.liferay.portal.kernel.exception.SystemException { 447 return getPersistence() 448 .findByG_F_N_S(groupId, folderId, name, status, start, end, 449 orderByComparator); 450 } 451 452 /** 453 * Finds the first d l file version in the ordered set where groupId = ? and folderId = ? and name = ? and status = ?. 454 * 455 * <p> 456 * 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. 457 * </p> 458 * 459 * @param groupId the group id to search with 460 * @param folderId the folder id to search with 461 * @param name the name to search with 462 * @param status the status to search with 463 * @param orderByComparator the comparator to order the set by 464 * @return the first matching d l file version 465 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching d l file version could not be found 466 * @throws SystemException if a system exception occurred 467 */ 468 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_S_First( 469 long groupId, long folderId, java.lang.String name, int status, 470 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 471 throws com.liferay.portal.kernel.exception.SystemException, 472 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 473 return getPersistence() 474 .findByG_F_N_S_First(groupId, folderId, name, status, 475 orderByComparator); 476 } 477 478 /** 479 * Finds the last d l file version in the ordered set where groupId = ? and folderId = ? and name = ? and status = ?. 480 * 481 * <p> 482 * 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. 483 * </p> 484 * 485 * @param groupId the group id to search with 486 * @param folderId the folder id to search with 487 * @param name the name to search with 488 * @param status the status to search with 489 * @param orderByComparator the comparator to order the set by 490 * @return the last matching d l file version 491 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching d l file version could not be found 492 * @throws SystemException if a system exception occurred 493 */ 494 public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_S_Last( 495 long groupId, long folderId, java.lang.String name, int status, 496 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 497 throws com.liferay.portal.kernel.exception.SystemException, 498 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 499 return getPersistence() 500 .findByG_F_N_S_Last(groupId, folderId, name, status, 501 orderByComparator); 502 } 503 504 /** 505 * Finds the d l file versions before and after the current d l file version in the ordered set where groupId = ? and folderId = ? and name = ? and status = ?. 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 fileVersionId the primary key of the current d l file version 512 * @param groupId the group id to search with 513 * @param folderId the folder id to search with 514 * @param name the name to search with 515 * @param status the status to search with 516 * @param orderByComparator the comparator to order the set by 517 * @return the previous, current, and next d l file version 518 * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a d l file version with the primary key could not be found 519 * @throws SystemException if a system exception occurred 520 */ 521 public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_N_S_PrevAndNext( 522 long fileVersionId, long groupId, long folderId, java.lang.String name, 523 int status, 524 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 525 throws com.liferay.portal.kernel.exception.SystemException, 526 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 527 return getPersistence() 528 .findByG_F_N_S_PrevAndNext(fileVersionId, groupId, folderId, 529 name, status, orderByComparator); 530 } 531 532 /** 533 * Finds all the d l file versions. 534 * 535 * @return the d l file versions 536 * @throws SystemException if a system exception occurred 537 */ 538 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll() 539 throws com.liferay.portal.kernel.exception.SystemException { 540 return getPersistence().findAll(); 541 } 542 543 /** 544 * Finds a range of all the d l file versions. 545 * 546 * <p> 547 * 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. 548 * </p> 549 * 550 * @param start the lower bound of the range of d l file versions to return 551 * @param end the upper bound of the range of d l file versions to return (not inclusive) 552 * @return the range of d l file versions 553 * @throws SystemException if a system exception occurred 554 */ 555 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll( 556 int start, int end) 557 throws com.liferay.portal.kernel.exception.SystemException { 558 return getPersistence().findAll(start, end); 559 } 560 561 /** 562 * Finds an ordered range of all the d l file versions. 563 * 564 * <p> 565 * 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. 566 * </p> 567 * 568 * @param start the lower bound of the range of d l file versions to return 569 * @param end the upper bound of the range of d l file versions to return (not inclusive) 570 * @param orderByComparator the comparator to order the results by 571 * @return the ordered range of d l file versions 572 * @throws SystemException if a system exception occurred 573 */ 574 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll( 575 int start, int end, 576 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 577 throws com.liferay.portal.kernel.exception.SystemException { 578 return getPersistence().findAll(start, end, orderByComparator); 579 } 580 581 /** 582 * Removes all the d l file versions where groupId = ? and folderId = ? and name = ? from the database. 583 * 584 * @param groupId the group id to search with 585 * @param folderId the folder id to search with 586 * @param name the name to search with 587 * @throws SystemException if a system exception occurred 588 */ 589 public static void removeByG_F_N(long groupId, long folderId, 590 java.lang.String name) 591 throws com.liferay.portal.kernel.exception.SystemException { 592 getPersistence().removeByG_F_N(groupId, folderId, name); 593 } 594 595 /** 596 * Removes the d l file version where groupId = ? and folderId = ? and name = ? and version = ? from the database. 597 * 598 * @param groupId the group id to search with 599 * @param folderId the folder id to search with 600 * @param name the name to search with 601 * @param version the version to search with 602 * @throws SystemException if a system exception occurred 603 */ 604 public static void removeByG_F_N_V(long groupId, long folderId, 605 java.lang.String name, java.lang.String version) 606 throws com.liferay.portal.kernel.exception.SystemException, 607 com.liferay.portlet.documentlibrary.NoSuchFileVersionException { 608 getPersistence().removeByG_F_N_V(groupId, folderId, name, version); 609 } 610 611 /** 612 * Removes all the d l file versions where groupId = ? and folderId = ? and name = ? and status = ? from the database. 613 * 614 * @param groupId the group id to search with 615 * @param folderId the folder id to search with 616 * @param name the name to search with 617 * @param status the status to search with 618 * @throws SystemException if a system exception occurred 619 */ 620 public static void removeByG_F_N_S(long groupId, long folderId, 621 java.lang.String name, int status) 622 throws com.liferay.portal.kernel.exception.SystemException { 623 getPersistence().removeByG_F_N_S(groupId, folderId, name, status); 624 } 625 626 /** 627 * Removes all the d l file versions from the database. 628 * 629 * @throws SystemException if a system exception occurred 630 */ 631 public static void removeAll() 632 throws com.liferay.portal.kernel.exception.SystemException { 633 getPersistence().removeAll(); 634 } 635 636 /** 637 * Counts all the d l file versions where groupId = ? and folderId = ? and name = ?. 638 * 639 * @param groupId the group id to search with 640 * @param folderId the folder id to search with 641 * @param name the name to search with 642 * @return the number of matching d l file versions 643 * @throws SystemException if a system exception occurred 644 */ 645 public static int countByG_F_N(long groupId, long folderId, 646 java.lang.String name) 647 throws com.liferay.portal.kernel.exception.SystemException { 648 return getPersistence().countByG_F_N(groupId, folderId, name); 649 } 650 651 /** 652 * Counts all the d l file versions where groupId = ? and folderId = ? and name = ? and version = ?. 653 * 654 * @param groupId the group id to search with 655 * @param folderId the folder id to search with 656 * @param name the name to search with 657 * @param version the version to search with 658 * @return the number of matching d l file versions 659 * @throws SystemException if a system exception occurred 660 */ 661 public static int countByG_F_N_V(long groupId, long folderId, 662 java.lang.String name, java.lang.String version) 663 throws com.liferay.portal.kernel.exception.SystemException { 664 return getPersistence().countByG_F_N_V(groupId, folderId, name, version); 665 } 666 667 /** 668 * Counts all the d l file versions where groupId = ? and folderId = ? and name = ? and status = ?. 669 * 670 * @param groupId the group id to search with 671 * @param folderId the folder id to search with 672 * @param name the name to search with 673 * @param status the status to search with 674 * @return the number of matching d l file versions 675 * @throws SystemException if a system exception occurred 676 */ 677 public static int countByG_F_N_S(long groupId, long folderId, 678 java.lang.String name, int status) 679 throws com.liferay.portal.kernel.exception.SystemException { 680 return getPersistence().countByG_F_N_S(groupId, folderId, name, status); 681 } 682 683 /** 684 * Counts all the d l file versions. 685 * 686 * @return the number of d l file versions 687 * @throws SystemException if a system exception occurred 688 */ 689 public static int countAll() 690 throws com.liferay.portal.kernel.exception.SystemException { 691 return getPersistence().countAll(); 692 } 693 694 public static DLFileVersionPersistence getPersistence() { 695 if (_persistence == null) { 696 _persistence = (DLFileVersionPersistence)PortalBeanLocatorUtil.locate(DLFileVersionPersistence.class.getName()); 697 } 698 699 return _persistence; 700 } 701 702 public void setPersistence(DLFileVersionPersistence persistence) { 703 _persistence = persistence; 704 } 705 706 private static DLFileVersionPersistence _persistence; 707 }