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.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.DLFileShortcut; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the document library file shortcut service. This utility wraps {@link DLFileShortcutPersistenceImpl} 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 DLFileShortcutPersistence 037 * @see DLFileShortcutPersistenceImpl 038 * @generated 039 */ 040 public class DLFileShortcutUtil { 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(DLFileShortcut dlFileShortcut) { 058 getPersistence().clearCache(dlFileShortcut); 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<DLFileShortcut> 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<DLFileShortcut> 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<DLFileShortcut> 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#update(com.liferay.portal.model.BaseModel, boolean) 099 */ 100 public static DLFileShortcut update(DLFileShortcut dlFileShortcut, 101 boolean merge) throws SystemException { 102 return getPersistence().update(dlFileShortcut, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static DLFileShortcut update(DLFileShortcut dlFileShortcut, 109 boolean merge, ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(dlFileShortcut, merge, serviceContext); 111 } 112 113 /** 114 * Caches the document library file shortcut in the entity cache if it is enabled. 115 * 116 * @param dlFileShortcut the document library file shortcut 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut) { 120 getPersistence().cacheResult(dlFileShortcut); 121 } 122 123 /** 124 * Caches the document library file shortcuts in the entity cache if it is enabled. 125 * 126 * @param dlFileShortcuts the document library file shortcuts 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> dlFileShortcuts) { 130 getPersistence().cacheResult(dlFileShortcuts); 131 } 132 133 /** 134 * Creates a new document library file shortcut with the primary key. Does not add the document library file shortcut to the database. 135 * 136 * @param fileShortcutId the primary key for the new document library file shortcut 137 * @return the new document library file shortcut 138 */ 139 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut create( 140 long fileShortcutId) { 141 return getPersistence().create(fileShortcutId); 142 } 143 144 /** 145 * Removes the document library file shortcut with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param fileShortcutId the primary key of the document library file shortcut 148 * @return the document library file shortcut that was removed 149 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut remove( 153 long fileShortcutId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 156 return getPersistence().remove(fileShortcutId); 157 } 158 159 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateImpl( 160 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut, 161 boolean merge) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(dlFileShortcut, merge); 164 } 165 166 /** 167 * Returns the document library file shortcut with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileShortcutException} if it could not be found. 168 * 169 * @param fileShortcutId the primary key of the document library file shortcut 170 * @return the document library file shortcut 171 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByPrimaryKey( 175 long fileShortcutId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 178 return getPersistence().findByPrimaryKey(fileShortcutId); 179 } 180 181 /** 182 * Returns the document library file shortcut with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param fileShortcutId the primary key of the document library file shortcut 185 * @return the document library file shortcut, or <code>null</code> if a document library file shortcut with the primary key could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByPrimaryKey( 189 long fileShortcutId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(fileShortcutId); 192 } 193 194 /** 195 * Returns all the document library file shortcuts where uuid = ?. 196 * 197 * @param uuid the uuid 198 * @return the matching document library file shortcuts 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid( 202 java.lang.String uuid) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByUuid(uuid); 205 } 206 207 /** 208 * Returns a range of all the document library file shortcuts where uuid = ?. 209 * 210 * <p> 211 * 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. 212 * </p> 213 * 214 * @param uuid the uuid 215 * @param start the lower bound of the range of document library file shortcuts 216 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 217 * @return the range of matching document library file shortcuts 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid( 221 java.lang.String uuid, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByUuid(uuid, start, end); 224 } 225 226 /** 227 * Returns an ordered range of all the document library file shortcuts where uuid = ?. 228 * 229 * <p> 230 * 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. 231 * </p> 232 * 233 * @param uuid the uuid 234 * @param start the lower bound of the range of document library file shortcuts 235 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 236 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 237 * @return the ordered range of matching document library file shortcuts 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid( 241 java.lang.String uuid, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 245 } 246 247 /** 248 * Returns the first document library file shortcut in the ordered set where uuid = ?. 249 * 250 * <p> 251 * 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. 252 * </p> 253 * 254 * @param uuid the uuid 255 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 256 * @return the first matching document library file shortcut 257 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 258 * @throws SystemException if a system exception occurred 259 */ 260 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_First( 261 java.lang.String uuid, 262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 263 throws com.liferay.portal.kernel.exception.SystemException, 264 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 265 return getPersistence().findByUuid_First(uuid, orderByComparator); 266 } 267 268 /** 269 * Returns the last document library file shortcut in the ordered set where uuid = ?. 270 * 271 * <p> 272 * 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. 273 * </p> 274 * 275 * @param uuid the uuid 276 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 277 * @return the last matching document library file shortcut 278 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 279 * @throws SystemException if a system exception occurred 280 */ 281 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_Last( 282 java.lang.String uuid, 283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 284 throws com.liferay.portal.kernel.exception.SystemException, 285 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 286 return getPersistence().findByUuid_Last(uuid, orderByComparator); 287 } 288 289 /** 290 * Returns the document library file shortcuts before and after the current document library file shortcut in the ordered set where uuid = ?. 291 * 292 * <p> 293 * 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. 294 * </p> 295 * 296 * @param fileShortcutId the primary key of the current document library file shortcut 297 * @param uuid the uuid 298 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 299 * @return the previous, current, and next document library file shortcut 300 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 301 * @throws SystemException if a system exception occurred 302 */ 303 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByUuid_PrevAndNext( 304 long fileShortcutId, java.lang.String uuid, 305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 306 throws com.liferay.portal.kernel.exception.SystemException, 307 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 308 return getPersistence() 309 .findByUuid_PrevAndNext(fileShortcutId, uuid, 310 orderByComparator); 311 } 312 313 /** 314 * Returns the document library file shortcut where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileShortcutException} if it could not be found. 315 * 316 * @param uuid the uuid 317 * @param groupId the group ID 318 * @return the matching document library file shortcut 319 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 320 * @throws SystemException if a system exception occurred 321 */ 322 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUUID_G( 323 java.lang.String uuid, long groupId) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 326 return getPersistence().findByUUID_G(uuid, groupId); 327 } 328 329 /** 330 * Returns the document library file shortcut where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 331 * 332 * @param uuid the uuid 333 * @param groupId the group ID 334 * @return the matching document library file shortcut, or <code>null</code> if a matching document library file shortcut could not be found 335 * @throws SystemException if a system exception occurred 336 */ 337 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G( 338 java.lang.String uuid, long groupId) 339 throws com.liferay.portal.kernel.exception.SystemException { 340 return getPersistence().fetchByUUID_G(uuid, groupId); 341 } 342 343 /** 344 * Returns the document library file shortcut where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 345 * 346 * @param uuid the uuid 347 * @param groupId the group ID 348 * @param retrieveFromCache whether to use the finder cache 349 * @return the matching document library file shortcut, or <code>null</code> if a matching document library file shortcut could not be found 350 * @throws SystemException if a system exception occurred 351 */ 352 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G( 353 java.lang.String uuid, long groupId, boolean retrieveFromCache) 354 throws com.liferay.portal.kernel.exception.SystemException { 355 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 356 } 357 358 /** 359 * Returns all the document library file shortcuts where toFileEntryId = ?. 360 * 361 * @param toFileEntryId the to file entry ID 362 * @return the matching document library file shortcuts 363 * @throws SystemException if a system exception occurred 364 */ 365 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByToFileEntryId( 366 long toFileEntryId) 367 throws com.liferay.portal.kernel.exception.SystemException { 368 return getPersistence().findByToFileEntryId(toFileEntryId); 369 } 370 371 /** 372 * Returns a range of all the document library file shortcuts where toFileEntryId = ?. 373 * 374 * <p> 375 * 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. 376 * </p> 377 * 378 * @param toFileEntryId the to file entry ID 379 * @param start the lower bound of the range of document library file shortcuts 380 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 381 * @return the range of matching document library file shortcuts 382 * @throws SystemException if a system exception occurred 383 */ 384 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByToFileEntryId( 385 long toFileEntryId, int start, int end) 386 throws com.liferay.portal.kernel.exception.SystemException { 387 return getPersistence().findByToFileEntryId(toFileEntryId, start, end); 388 } 389 390 /** 391 * Returns an ordered range of all the document library file shortcuts where toFileEntryId = ?. 392 * 393 * <p> 394 * 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. 395 * </p> 396 * 397 * @param toFileEntryId the to file entry ID 398 * @param start the lower bound of the range of document library file shortcuts 399 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 400 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 401 * @return the ordered range of matching document library file shortcuts 402 * @throws SystemException if a system exception occurred 403 */ 404 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByToFileEntryId( 405 long toFileEntryId, int start, int end, 406 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 407 throws com.liferay.portal.kernel.exception.SystemException { 408 return getPersistence() 409 .findByToFileEntryId(toFileEntryId, start, end, 410 orderByComparator); 411 } 412 413 /** 414 * Returns the first document library file shortcut in the ordered set where toFileEntryId = ?. 415 * 416 * <p> 417 * 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. 418 * </p> 419 * 420 * @param toFileEntryId the to file entry ID 421 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 422 * @return the first matching document library file shortcut 423 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 424 * @throws SystemException if a system exception occurred 425 */ 426 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByToFileEntryId_First( 427 long toFileEntryId, 428 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 429 throws com.liferay.portal.kernel.exception.SystemException, 430 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 431 return getPersistence() 432 .findByToFileEntryId_First(toFileEntryId, orderByComparator); 433 } 434 435 /** 436 * Returns the last document library file shortcut in the ordered set where toFileEntryId = ?. 437 * 438 * <p> 439 * 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. 440 * </p> 441 * 442 * @param toFileEntryId the to file entry ID 443 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 444 * @return the last matching document library file shortcut 445 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 446 * @throws SystemException if a system exception occurred 447 */ 448 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByToFileEntryId_Last( 449 long toFileEntryId, 450 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 451 throws com.liferay.portal.kernel.exception.SystemException, 452 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 453 return getPersistence() 454 .findByToFileEntryId_Last(toFileEntryId, orderByComparator); 455 } 456 457 /** 458 * Returns the document library file shortcuts before and after the current document library file shortcut in the ordered set where toFileEntryId = ?. 459 * 460 * <p> 461 * 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. 462 * </p> 463 * 464 * @param fileShortcutId the primary key of the current document library file shortcut 465 * @param toFileEntryId the to file entry ID 466 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 467 * @return the previous, current, and next document library file shortcut 468 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 469 * @throws SystemException if a system exception occurred 470 */ 471 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByToFileEntryId_PrevAndNext( 472 long fileShortcutId, long toFileEntryId, 473 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 474 throws com.liferay.portal.kernel.exception.SystemException, 475 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 476 return getPersistence() 477 .findByToFileEntryId_PrevAndNext(fileShortcutId, 478 toFileEntryId, orderByComparator); 479 } 480 481 /** 482 * Returns all the document library file shortcuts where groupId = ? and folderId = ?. 483 * 484 * @param groupId the group ID 485 * @param folderId the folder ID 486 * @return the matching document library file shortcuts 487 * @throws SystemException if a system exception occurred 488 */ 489 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F( 490 long groupId, long folderId) 491 throws com.liferay.portal.kernel.exception.SystemException { 492 return getPersistence().findByG_F(groupId, folderId); 493 } 494 495 /** 496 * Returns a range of all the document library file shortcuts where groupId = ? and folderId = ?. 497 * 498 * <p> 499 * 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. 500 * </p> 501 * 502 * @param groupId the group ID 503 * @param folderId the folder ID 504 * @param start the lower bound of the range of document library file shortcuts 505 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 506 * @return the range of matching document library file shortcuts 507 * @throws SystemException if a system exception occurred 508 */ 509 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F( 510 long groupId, long folderId, int start, int end) 511 throws com.liferay.portal.kernel.exception.SystemException { 512 return getPersistence().findByG_F(groupId, folderId, start, end); 513 } 514 515 /** 516 * Returns an ordered range of all the document library file shortcuts where groupId = ? and folderId = ?. 517 * 518 * <p> 519 * 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. 520 * </p> 521 * 522 * @param groupId the group ID 523 * @param folderId the folder ID 524 * @param start the lower bound of the range of document library file shortcuts 525 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 526 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 527 * @return the ordered range of matching document library file shortcuts 528 * @throws SystemException if a system exception occurred 529 */ 530 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F( 531 long groupId, long folderId, int start, int end, 532 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 533 throws com.liferay.portal.kernel.exception.SystemException { 534 return getPersistence() 535 .findByG_F(groupId, folderId, start, end, orderByComparator); 536 } 537 538 /** 539 * Returns the first document library file shortcut in the ordered set where groupId = ? and folderId = ?. 540 * 541 * <p> 542 * 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. 543 * </p> 544 * 545 * @param groupId the group ID 546 * @param folderId the folder ID 547 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 548 * @return the first matching document library file shortcut 549 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 550 * @throws SystemException if a system exception occurred 551 */ 552 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_First( 553 long groupId, long folderId, 554 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 555 throws com.liferay.portal.kernel.exception.SystemException, 556 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 557 return getPersistence() 558 .findByG_F_First(groupId, folderId, orderByComparator); 559 } 560 561 /** 562 * Returns the last document library file shortcut in the ordered set where groupId = ? and folderId = ?. 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 groupId the group ID 569 * @param folderId the folder ID 570 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 571 * @return the last matching document library file shortcut 572 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 573 * @throws SystemException if a system exception occurred 574 */ 575 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_Last( 576 long groupId, long folderId, 577 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 578 throws com.liferay.portal.kernel.exception.SystemException, 579 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 580 return getPersistence() 581 .findByG_F_Last(groupId, folderId, orderByComparator); 582 } 583 584 /** 585 * Returns the document library file shortcuts before and after the current document library file shortcut in the ordered set where groupId = ? and folderId = ?. 586 * 587 * <p> 588 * 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. 589 * </p> 590 * 591 * @param fileShortcutId the primary key of the current document library file shortcut 592 * @param groupId the group ID 593 * @param folderId the folder ID 594 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 595 * @return the previous, current, and next document library file shortcut 596 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 597 * @throws SystemException if a system exception occurred 598 */ 599 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByG_F_PrevAndNext( 600 long fileShortcutId, long groupId, long folderId, 601 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 602 throws com.liferay.portal.kernel.exception.SystemException, 603 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 604 return getPersistence() 605 .findByG_F_PrevAndNext(fileShortcutId, groupId, folderId, 606 orderByComparator); 607 } 608 609 /** 610 * Returns all the document library file shortcuts that the user has permission to view where groupId = ? and folderId = ?. 611 * 612 * @param groupId the group ID 613 * @param folderId the folder ID 614 * @return the matching document library file shortcuts that the user has permission to view 615 * @throws SystemException if a system exception occurred 616 */ 617 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F( 618 long groupId, long folderId) 619 throws com.liferay.portal.kernel.exception.SystemException { 620 return getPersistence().filterFindByG_F(groupId, folderId); 621 } 622 623 /** 624 * Returns a range of all the document library file shortcuts that the user has permission to view where groupId = ? and folderId = ?. 625 * 626 * <p> 627 * 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. 628 * </p> 629 * 630 * @param groupId the group ID 631 * @param folderId the folder ID 632 * @param start the lower bound of the range of document library file shortcuts 633 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 634 * @return the range of matching document library file shortcuts that the user has permission to view 635 * @throws SystemException if a system exception occurred 636 */ 637 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F( 638 long groupId, long folderId, int start, int end) 639 throws com.liferay.portal.kernel.exception.SystemException { 640 return getPersistence().filterFindByG_F(groupId, folderId, start, end); 641 } 642 643 /** 644 * Returns an ordered range of all the document library file shortcuts that the user has permissions to view where groupId = ? and folderId = ?. 645 * 646 * <p> 647 * 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. 648 * </p> 649 * 650 * @param groupId the group ID 651 * @param folderId the folder ID 652 * @param start the lower bound of the range of document library file shortcuts 653 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 654 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 655 * @return the ordered range of matching document library file shortcuts that the user has permission to view 656 * @throws SystemException if a system exception occurred 657 */ 658 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F( 659 long groupId, long folderId, int start, int end, 660 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 661 throws com.liferay.portal.kernel.exception.SystemException { 662 return getPersistence() 663 .filterFindByG_F(groupId, folderId, start, end, 664 orderByComparator); 665 } 666 667 /** 668 * Returns the document library file shortcuts before and after the current document library file shortcut in the ordered set of document library file shortcuts that the user has permission to view where groupId = ? and folderId = ?. 669 * 670 * @param fileShortcutId the primary key of the current document library file shortcut 671 * @param groupId the group ID 672 * @param folderId the folder ID 673 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 674 * @return the previous, current, and next document library file shortcut 675 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 676 * @throws SystemException if a system exception occurred 677 */ 678 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] filterFindByG_F_PrevAndNext( 679 long fileShortcutId, long groupId, long folderId, 680 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 681 throws com.liferay.portal.kernel.exception.SystemException, 682 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 683 return getPersistence() 684 .filterFindByG_F_PrevAndNext(fileShortcutId, groupId, 685 folderId, orderByComparator); 686 } 687 688 /** 689 * Returns all the document library file shortcuts where groupId = ? and folderId = ? and status = ?. 690 * 691 * @param groupId the group ID 692 * @param folderId the folder ID 693 * @param status the status 694 * @return the matching document library file shortcuts 695 * @throws SystemException if a system exception occurred 696 */ 697 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F_S( 698 long groupId, long folderId, int status) 699 throws com.liferay.portal.kernel.exception.SystemException { 700 return getPersistence().findByG_F_S(groupId, folderId, status); 701 } 702 703 /** 704 * Returns a range of all the document library file shortcuts where groupId = ? and folderId = ? and status = ?. 705 * 706 * <p> 707 * 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. 708 * </p> 709 * 710 * @param groupId the group ID 711 * @param folderId the folder ID 712 * @param status the status 713 * @param start the lower bound of the range of document library file shortcuts 714 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 715 * @return the range of matching document library file shortcuts 716 * @throws SystemException if a system exception occurred 717 */ 718 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F_S( 719 long groupId, long folderId, int status, int start, int end) 720 throws com.liferay.portal.kernel.exception.SystemException { 721 return getPersistence() 722 .findByG_F_S(groupId, folderId, status, start, end); 723 } 724 725 /** 726 * Returns an ordered range of all the document library file shortcuts where groupId = ? and folderId = ? and status = ?. 727 * 728 * <p> 729 * 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. 730 * </p> 731 * 732 * @param groupId the group ID 733 * @param folderId the folder ID 734 * @param status the status 735 * @param start the lower bound of the range of document library file shortcuts 736 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 737 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 738 * @return the ordered range of matching document library file shortcuts 739 * @throws SystemException if a system exception occurred 740 */ 741 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F_S( 742 long groupId, long folderId, int status, int start, int end, 743 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 744 throws com.liferay.portal.kernel.exception.SystemException { 745 return getPersistence() 746 .findByG_F_S(groupId, folderId, status, start, end, 747 orderByComparator); 748 } 749 750 /** 751 * Returns the first document library file shortcut in the ordered set where groupId = ? and folderId = ? and status = ?. 752 * 753 * <p> 754 * 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. 755 * </p> 756 * 757 * @param groupId the group ID 758 * @param folderId the folder ID 759 * @param status the status 760 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 761 * @return the first matching document library file shortcut 762 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 763 * @throws SystemException if a system exception occurred 764 */ 765 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_S_First( 766 long groupId, long folderId, int status, 767 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 768 throws com.liferay.portal.kernel.exception.SystemException, 769 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 770 return getPersistence() 771 .findByG_F_S_First(groupId, folderId, status, 772 orderByComparator); 773 } 774 775 /** 776 * Returns the last document library file shortcut in the ordered set where groupId = ? and folderId = ? and status = ?. 777 * 778 * <p> 779 * 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. 780 * </p> 781 * 782 * @param groupId the group ID 783 * @param folderId the folder ID 784 * @param status the status 785 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 786 * @return the last matching document library file shortcut 787 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 788 * @throws SystemException if a system exception occurred 789 */ 790 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_S_Last( 791 long groupId, long folderId, int status, 792 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 793 throws com.liferay.portal.kernel.exception.SystemException, 794 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 795 return getPersistence() 796 .findByG_F_S_Last(groupId, folderId, status, 797 orderByComparator); 798 } 799 800 /** 801 * Returns the document library file shortcuts before and after the current document library file shortcut in the ordered set where groupId = ? and folderId = ? and status = ?. 802 * 803 * <p> 804 * 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. 805 * </p> 806 * 807 * @param fileShortcutId the primary key of the current document library file shortcut 808 * @param groupId the group ID 809 * @param folderId the folder ID 810 * @param status the status 811 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 812 * @return the previous, current, and next document library file shortcut 813 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 814 * @throws SystemException if a system exception occurred 815 */ 816 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByG_F_S_PrevAndNext( 817 long fileShortcutId, long groupId, long folderId, int status, 818 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 819 throws com.liferay.portal.kernel.exception.SystemException, 820 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 821 return getPersistence() 822 .findByG_F_S_PrevAndNext(fileShortcutId, groupId, folderId, 823 status, orderByComparator); 824 } 825 826 /** 827 * Returns all the document library file shortcuts that the user has permission to view where groupId = ? and folderId = ? and status = ?. 828 * 829 * @param groupId the group ID 830 * @param folderId the folder ID 831 * @param status the status 832 * @return the matching document library file shortcuts that the user has permission to view 833 * @throws SystemException if a system exception occurred 834 */ 835 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F_S( 836 long groupId, long folderId, int status) 837 throws com.liferay.portal.kernel.exception.SystemException { 838 return getPersistence().filterFindByG_F_S(groupId, folderId, status); 839 } 840 841 /** 842 * Returns a range of all the document library file shortcuts that the user has permission to view where groupId = ? and folderId = ? and status = ?. 843 * 844 * <p> 845 * 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. 846 * </p> 847 * 848 * @param groupId the group ID 849 * @param folderId the folder ID 850 * @param status the status 851 * @param start the lower bound of the range of document library file shortcuts 852 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 853 * @return the range of matching document library file shortcuts that the user has permission to view 854 * @throws SystemException if a system exception occurred 855 */ 856 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F_S( 857 long groupId, long folderId, int status, int start, int end) 858 throws com.liferay.portal.kernel.exception.SystemException { 859 return getPersistence() 860 .filterFindByG_F_S(groupId, folderId, status, start, end); 861 } 862 863 /** 864 * Returns an ordered range of all the document library file shortcuts that the user has permissions to view where groupId = ? and folderId = ? and status = ?. 865 * 866 * <p> 867 * 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. 868 * </p> 869 * 870 * @param groupId the group ID 871 * @param folderId the folder ID 872 * @param status the status 873 * @param start the lower bound of the range of document library file shortcuts 874 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 875 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 876 * @return the ordered range of matching document library file shortcuts that the user has permission to view 877 * @throws SystemException if a system exception occurred 878 */ 879 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F_S( 880 long groupId, long folderId, int status, int start, int end, 881 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 882 throws com.liferay.portal.kernel.exception.SystemException { 883 return getPersistence() 884 .filterFindByG_F_S(groupId, folderId, status, start, end, 885 orderByComparator); 886 } 887 888 /** 889 * Returns the document library file shortcuts before and after the current document library file shortcut in the ordered set of document library file shortcuts that the user has permission to view where groupId = ? and folderId = ? and status = ?. 890 * 891 * @param fileShortcutId the primary key of the current document library file shortcut 892 * @param groupId the group ID 893 * @param folderId the folder ID 894 * @param status the status 895 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 896 * @return the previous, current, and next document library file shortcut 897 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 898 * @throws SystemException if a system exception occurred 899 */ 900 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] filterFindByG_F_S_PrevAndNext( 901 long fileShortcutId, long groupId, long folderId, int status, 902 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 903 throws com.liferay.portal.kernel.exception.SystemException, 904 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 905 return getPersistence() 906 .filterFindByG_F_S_PrevAndNext(fileShortcutId, groupId, 907 folderId, status, orderByComparator); 908 } 909 910 /** 911 * Returns all the document library file shortcuts. 912 * 913 * @return the document library file shortcuts 914 * @throws SystemException if a system exception occurred 915 */ 916 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll() 917 throws com.liferay.portal.kernel.exception.SystemException { 918 return getPersistence().findAll(); 919 } 920 921 /** 922 * Returns a range of all the document library file shortcuts. 923 * 924 * <p> 925 * 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. 926 * </p> 927 * 928 * @param start the lower bound of the range of document library file shortcuts 929 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 930 * @return the range of document library file shortcuts 931 * @throws SystemException if a system exception occurred 932 */ 933 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll( 934 int start, int end) 935 throws com.liferay.portal.kernel.exception.SystemException { 936 return getPersistence().findAll(start, end); 937 } 938 939 /** 940 * Returns an ordered range of all the document library file shortcuts. 941 * 942 * <p> 943 * 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. 944 * </p> 945 * 946 * @param start the lower bound of the range of document library file shortcuts 947 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 948 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 949 * @return the ordered range of document library file shortcuts 950 * @throws SystemException if a system exception occurred 951 */ 952 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll( 953 int start, int end, 954 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 955 throws com.liferay.portal.kernel.exception.SystemException { 956 return getPersistence().findAll(start, end, orderByComparator); 957 } 958 959 /** 960 * Removes all the document library file shortcuts where uuid = ? from the database. 961 * 962 * @param uuid the uuid 963 * @throws SystemException if a system exception occurred 964 */ 965 public static void removeByUuid(java.lang.String uuid) 966 throws com.liferay.portal.kernel.exception.SystemException { 967 getPersistence().removeByUuid(uuid); 968 } 969 970 /** 971 * Removes the document library file shortcut where uuid = ? and groupId = ? from the database. 972 * 973 * @param uuid the uuid 974 * @param groupId the group ID 975 * @throws SystemException if a system exception occurred 976 */ 977 public static void removeByUUID_G(java.lang.String uuid, long groupId) 978 throws com.liferay.portal.kernel.exception.SystemException, 979 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException { 980 getPersistence().removeByUUID_G(uuid, groupId); 981 } 982 983 /** 984 * Removes all the document library file shortcuts where toFileEntryId = ? from the database. 985 * 986 * @param toFileEntryId the to file entry ID 987 * @throws SystemException if a system exception occurred 988 */ 989 public static void removeByToFileEntryId(long toFileEntryId) 990 throws com.liferay.portal.kernel.exception.SystemException { 991 getPersistence().removeByToFileEntryId(toFileEntryId); 992 } 993 994 /** 995 * Removes all the document library file shortcuts where groupId = ? and folderId = ? from the database. 996 * 997 * @param groupId the group ID 998 * @param folderId the folder ID 999 * @throws SystemException if a system exception occurred 1000 */ 1001 public static void removeByG_F(long groupId, long folderId) 1002 throws com.liferay.portal.kernel.exception.SystemException { 1003 getPersistence().removeByG_F(groupId, folderId); 1004 } 1005 1006 /** 1007 * Removes all the document library file shortcuts where groupId = ? and folderId = ? and status = ? from the database. 1008 * 1009 * @param groupId the group ID 1010 * @param folderId the folder ID 1011 * @param status the status 1012 * @throws SystemException if a system exception occurred 1013 */ 1014 public static void removeByG_F_S(long groupId, long folderId, int status) 1015 throws com.liferay.portal.kernel.exception.SystemException { 1016 getPersistence().removeByG_F_S(groupId, folderId, status); 1017 } 1018 1019 /** 1020 * Removes all the document library file shortcuts from the database. 1021 * 1022 * @throws SystemException if a system exception occurred 1023 */ 1024 public static void removeAll() 1025 throws com.liferay.portal.kernel.exception.SystemException { 1026 getPersistence().removeAll(); 1027 } 1028 1029 /** 1030 * Returns the number of document library file shortcuts where uuid = ?. 1031 * 1032 * @param uuid the uuid 1033 * @return the number of matching document library file shortcuts 1034 * @throws SystemException if a system exception occurred 1035 */ 1036 public static int countByUuid(java.lang.String uuid) 1037 throws com.liferay.portal.kernel.exception.SystemException { 1038 return getPersistence().countByUuid(uuid); 1039 } 1040 1041 /** 1042 * Returns the number of document library file shortcuts where uuid = ? and groupId = ?. 1043 * 1044 * @param uuid the uuid 1045 * @param groupId the group ID 1046 * @return the number of matching document library file shortcuts 1047 * @throws SystemException if a system exception occurred 1048 */ 1049 public static int countByUUID_G(java.lang.String uuid, long groupId) 1050 throws com.liferay.portal.kernel.exception.SystemException { 1051 return getPersistence().countByUUID_G(uuid, groupId); 1052 } 1053 1054 /** 1055 * Returns the number of document library file shortcuts where toFileEntryId = ?. 1056 * 1057 * @param toFileEntryId the to file entry ID 1058 * @return the number of matching document library file shortcuts 1059 * @throws SystemException if a system exception occurred 1060 */ 1061 public static int countByToFileEntryId(long toFileEntryId) 1062 throws com.liferay.portal.kernel.exception.SystemException { 1063 return getPersistence().countByToFileEntryId(toFileEntryId); 1064 } 1065 1066 /** 1067 * Returns the number of document library file shortcuts where groupId = ? and folderId = ?. 1068 * 1069 * @param groupId the group ID 1070 * @param folderId the folder ID 1071 * @return the number of matching document library file shortcuts 1072 * @throws SystemException if a system exception occurred 1073 */ 1074 public static int countByG_F(long groupId, long folderId) 1075 throws com.liferay.portal.kernel.exception.SystemException { 1076 return getPersistence().countByG_F(groupId, folderId); 1077 } 1078 1079 /** 1080 * Returns the number of document library file shortcuts that the user has permission to view where groupId = ? and folderId = ?. 1081 * 1082 * @param groupId the group ID 1083 * @param folderId the folder ID 1084 * @return the number of matching document library file shortcuts that the user has permission to view 1085 * @throws SystemException if a system exception occurred 1086 */ 1087 public static int filterCountByG_F(long groupId, long folderId) 1088 throws com.liferay.portal.kernel.exception.SystemException { 1089 return getPersistence().filterCountByG_F(groupId, folderId); 1090 } 1091 1092 /** 1093 * Returns the number of document library file shortcuts where groupId = ? and folderId = ? and status = ?. 1094 * 1095 * @param groupId the group ID 1096 * @param folderId the folder ID 1097 * @param status the status 1098 * @return the number of matching document library file shortcuts 1099 * @throws SystemException if a system exception occurred 1100 */ 1101 public static int countByG_F_S(long groupId, long folderId, int status) 1102 throws com.liferay.portal.kernel.exception.SystemException { 1103 return getPersistence().countByG_F_S(groupId, folderId, status); 1104 } 1105 1106 /** 1107 * Returns the number of document library file shortcuts that the user has permission to view where groupId = ? and folderId = ? and status = ?. 1108 * 1109 * @param groupId the group ID 1110 * @param folderId the folder ID 1111 * @param status the status 1112 * @return the number of matching document library file shortcuts that the user has permission to view 1113 * @throws SystemException if a system exception occurred 1114 */ 1115 public static int filterCountByG_F_S(long groupId, long folderId, int status) 1116 throws com.liferay.portal.kernel.exception.SystemException { 1117 return getPersistence().filterCountByG_F_S(groupId, folderId, status); 1118 } 1119 1120 /** 1121 * Returns the number of document library file shortcuts. 1122 * 1123 * @return the number of document library file shortcuts 1124 * @throws SystemException if a system exception occurred 1125 */ 1126 public static int countAll() 1127 throws com.liferay.portal.kernel.exception.SystemException { 1128 return getPersistence().countAll(); 1129 } 1130 1131 public static DLFileShortcutPersistence getPersistence() { 1132 if (_persistence == null) { 1133 _persistence = (DLFileShortcutPersistence)PortalBeanLocatorUtil.locate(DLFileShortcutPersistence.class.getName()); 1134 1135 ReferenceRegistry.registerReference(DLFileShortcutUtil.class, 1136 "_persistence"); 1137 } 1138 1139 return _persistence; 1140 } 1141 1142 public void setPersistence(DLFileShortcutPersistence persistence) { 1143 _persistence = persistence; 1144 1145 ReferenceRegistry.registerReference(DLFileShortcutUtil.class, 1146 "_persistence"); 1147 } 1148 1149 private static DLFileShortcutPersistence _persistence; 1150 }