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