001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.documentlibrary.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.documentlibrary.model.DLFileShortcut; 020 021 /** 022 * The persistence interface for the document library file shortcut service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see DLFileShortcutPersistenceImpl 030 * @see DLFileShortcutUtil 031 * @generated 032 */ 033 public interface DLFileShortcutPersistence extends BasePersistence<DLFileShortcut> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link DLFileShortcutUtil} to access the document library file shortcut persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the document library file shortcut in the entity cache if it is enabled. 042 * 043 * @param dlFileShortcut the document library file shortcut 044 */ 045 public void cacheResult( 046 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut); 047 048 /** 049 * Caches the document library file shortcuts in the entity cache if it is enabled. 050 * 051 * @param dlFileShortcuts the document library file shortcuts 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> dlFileShortcuts); 055 056 /** 057 * Creates a new document library file shortcut with the primary key. Does not add the document library file shortcut to the database. 058 * 059 * @param fileShortcutId the primary key for the new document library file shortcut 060 * @return the new document library file shortcut 061 */ 062 public com.liferay.portlet.documentlibrary.model.DLFileShortcut create( 063 long fileShortcutId); 064 065 /** 066 * Removes the document library file shortcut with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param fileShortcutId the primary key of the document library file shortcut 069 * @return the document library file shortcut that was removed 070 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.documentlibrary.model.DLFileShortcut remove( 074 long fileShortcutId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 077 078 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateImpl( 079 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut, 080 boolean merge) 081 throws com.liferay.portal.kernel.exception.SystemException; 082 083 /** 084 * 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. 085 * 086 * @param fileShortcutId the primary key of the document library file shortcut 087 * @return the document library file shortcut 088 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 089 * @throws SystemException if a system exception occurred 090 */ 091 public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByPrimaryKey( 092 long fileShortcutId) 093 throws com.liferay.portal.kernel.exception.SystemException, 094 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 095 096 /** 097 * Returns the document library file shortcut with the primary key or returns <code>null</code> if it could not be found. 098 * 099 * @param fileShortcutId the primary key of the document library file shortcut 100 * @return the document library file shortcut, or <code>null</code> if a document library file shortcut with the primary key could not be found 101 * @throws SystemException if a system exception occurred 102 */ 103 public com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByPrimaryKey( 104 long fileShortcutId) 105 throws com.liferay.portal.kernel.exception.SystemException; 106 107 /** 108 * Returns all the document library file shortcuts where uuid = ?. 109 * 110 * @param uuid the uuid 111 * @return the matching document library file shortcuts 112 * @throws SystemException if a system exception occurred 113 */ 114 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid( 115 java.lang.String uuid) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns a range of all the document library file shortcuts where uuid = ?. 120 * 121 * <p> 122 * 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. 123 * </p> 124 * 125 * @param uuid the uuid 126 * @param start the lower bound of the range of document library file shortcuts 127 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 128 * @return the range of matching document library file shortcuts 129 * @throws SystemException if a system exception occurred 130 */ 131 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid( 132 java.lang.String uuid, int start, int end) 133 throws com.liferay.portal.kernel.exception.SystemException; 134 135 /** 136 * Returns an ordered range of all the document library file shortcuts where uuid = ?. 137 * 138 * <p> 139 * 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. 140 * </p> 141 * 142 * @param uuid the uuid 143 * @param start the lower bound of the range of document library file shortcuts 144 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 145 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 146 * @return the ordered range of matching document library file shortcuts 147 * @throws SystemException if a system exception occurred 148 */ 149 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid( 150 java.lang.String uuid, int start, int end, 151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 152 throws com.liferay.portal.kernel.exception.SystemException; 153 154 /** 155 * Returns the first document library file shortcut in the ordered set where uuid = ?. 156 * 157 * <p> 158 * 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. 159 * </p> 160 * 161 * @param uuid the uuid 162 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 163 * @return the first matching document library file shortcut 164 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 165 * @throws SystemException if a system exception occurred 166 */ 167 public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_First( 168 java.lang.String uuid, 169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 170 throws com.liferay.portal.kernel.exception.SystemException, 171 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 172 173 /** 174 * Returns the last document library file shortcut in the ordered set where uuid = ?. 175 * 176 * <p> 177 * 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. 178 * </p> 179 * 180 * @param uuid the uuid 181 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 182 * @return the last matching document library file shortcut 183 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 184 * @throws SystemException if a system exception occurred 185 */ 186 public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_Last( 187 java.lang.String uuid, 188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 189 throws com.liferay.portal.kernel.exception.SystemException, 190 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 191 192 /** 193 * Returns the document library file shortcuts before and after the current document library file shortcut in the ordered set where uuid = ?. 194 * 195 * <p> 196 * 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. 197 * </p> 198 * 199 * @param fileShortcutId the primary key of the current document library file shortcut 200 * @param uuid the uuid 201 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 202 * @return the previous, current, and next document library file shortcut 203 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 204 * @throws SystemException if a system exception occurred 205 */ 206 public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByUuid_PrevAndNext( 207 long fileShortcutId, java.lang.String uuid, 208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 209 throws com.liferay.portal.kernel.exception.SystemException, 210 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 211 212 /** 213 * 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. 214 * 215 * @param uuid the uuid 216 * @param groupId the group ID 217 * @return the matching document library file shortcut 218 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 219 * @throws SystemException if a system exception occurred 220 */ 221 public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUUID_G( 222 java.lang.String uuid, long groupId) 223 throws com.liferay.portal.kernel.exception.SystemException, 224 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 225 226 /** 227 * 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. 228 * 229 * @param uuid the uuid 230 * @param groupId the group ID 231 * @return the matching document library file shortcut, or <code>null</code> if a matching document library file shortcut could not be found 232 * @throws SystemException if a system exception occurred 233 */ 234 public com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G( 235 java.lang.String uuid, long groupId) 236 throws com.liferay.portal.kernel.exception.SystemException; 237 238 /** 239 * 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. 240 * 241 * @param uuid the uuid 242 * @param groupId the group ID 243 * @param retrieveFromCache whether to use the finder cache 244 * @return the matching document library file shortcut, or <code>null</code> if a matching document library file shortcut could not be found 245 * @throws SystemException if a system exception occurred 246 */ 247 public com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G( 248 java.lang.String uuid, long groupId, boolean retrieveFromCache) 249 throws com.liferay.portal.kernel.exception.SystemException; 250 251 /** 252 * Returns all the document library file shortcuts where toFileEntryId = ?. 253 * 254 * @param toFileEntryId the to file entry ID 255 * @return the matching document library file shortcuts 256 * @throws SystemException if a system exception occurred 257 */ 258 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByToFileEntryId( 259 long toFileEntryId) 260 throws com.liferay.portal.kernel.exception.SystemException; 261 262 /** 263 * Returns a range of all the document library file shortcuts where toFileEntryId = ?. 264 * 265 * <p> 266 * 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. 267 * </p> 268 * 269 * @param toFileEntryId the to file entry ID 270 * @param start the lower bound of the range of document library file shortcuts 271 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 272 * @return the range of matching document library file shortcuts 273 * @throws SystemException if a system exception occurred 274 */ 275 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByToFileEntryId( 276 long toFileEntryId, int start, int end) 277 throws com.liferay.portal.kernel.exception.SystemException; 278 279 /** 280 * Returns an ordered range of all the document library file shortcuts where toFileEntryId = ?. 281 * 282 * <p> 283 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 284 * </p> 285 * 286 * @param toFileEntryId the to file entry ID 287 * @param start the lower bound of the range of document library file shortcuts 288 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 289 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 290 * @return the ordered range of matching document library file shortcuts 291 * @throws SystemException if a system exception occurred 292 */ 293 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByToFileEntryId( 294 long toFileEntryId, int start, int end, 295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 296 throws com.liferay.portal.kernel.exception.SystemException; 297 298 /** 299 * Returns the first document library file shortcut in the ordered set where toFileEntryId = ?. 300 * 301 * <p> 302 * 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. 303 * </p> 304 * 305 * @param toFileEntryId the to file entry ID 306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 307 * @return the first matching document library file shortcut 308 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByToFileEntryId_First( 312 long toFileEntryId, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.kernel.exception.SystemException, 315 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 316 317 /** 318 * Returns the last document library file shortcut in the ordered set where toFileEntryId = ?. 319 * 320 * <p> 321 * 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. 322 * </p> 323 * 324 * @param toFileEntryId the to file entry ID 325 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 326 * @return the last 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 com.liferay.portlet.documentlibrary.model.DLFileShortcut findByToFileEntryId_Last( 331 long toFileEntryId, 332 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 333 throws com.liferay.portal.kernel.exception.SystemException, 334 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 335 336 /** 337 * Returns the document library file shortcuts before and after the current document library file shortcut in the ordered set where toFileEntryId = ?. 338 * 339 * <p> 340 * 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. 341 * </p> 342 * 343 * @param fileShortcutId the primary key of the current document library file shortcut 344 * @param toFileEntryId the to file entry ID 345 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 346 * @return the previous, current, and next document library file shortcut 347 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 348 * @throws SystemException if a system exception occurred 349 */ 350 public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByToFileEntryId_PrevAndNext( 351 long fileShortcutId, long toFileEntryId, 352 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 353 throws com.liferay.portal.kernel.exception.SystemException, 354 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 355 356 /** 357 * Returns all the document library file shortcuts where groupId = ? and folderId = ?. 358 * 359 * @param groupId the group ID 360 * @param folderId the folder ID 361 * @return the matching document library file shortcuts 362 * @throws SystemException if a system exception occurred 363 */ 364 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F( 365 long groupId, long folderId) 366 throws com.liferay.portal.kernel.exception.SystemException; 367 368 /** 369 * Returns a range of all the document library file shortcuts where groupId = ? and folderId = ?. 370 * 371 * <p> 372 * 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. 373 * </p> 374 * 375 * @param groupId the group ID 376 * @param folderId the folder ID 377 * @param start the lower bound of the range of document library file shortcuts 378 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 379 * @return the range of matching document library file shortcuts 380 * @throws SystemException if a system exception occurred 381 */ 382 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F( 383 long groupId, long folderId, int start, int end) 384 throws com.liferay.portal.kernel.exception.SystemException; 385 386 /** 387 * Returns an ordered range of all the document library file shortcuts where groupId = ? and folderId = ?. 388 * 389 * <p> 390 * 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. 391 * </p> 392 * 393 * @param groupId the group ID 394 * @param folderId the folder ID 395 * @param start the lower bound of the range of document library file shortcuts 396 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 397 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 398 * @return the ordered range of matching document library file shortcuts 399 * @throws SystemException if a system exception occurred 400 */ 401 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F( 402 long groupId, long folderId, int start, int end, 403 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 404 throws com.liferay.portal.kernel.exception.SystemException; 405 406 /** 407 * Returns the first document library file shortcut in the ordered set where groupId = ? and folderId = ?. 408 * 409 * <p> 410 * 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. 411 * </p> 412 * 413 * @param groupId the group ID 414 * @param folderId the folder ID 415 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 416 * @return the first matching document library file shortcut 417 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 418 * @throws SystemException if a system exception occurred 419 */ 420 public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_First( 421 long groupId, long folderId, 422 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 423 throws com.liferay.portal.kernel.exception.SystemException, 424 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 425 426 /** 427 * Returns the last document library file shortcut in the ordered set where groupId = ? and folderId = ?. 428 * 429 * <p> 430 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 431 * </p> 432 * 433 * @param groupId the group ID 434 * @param folderId the folder ID 435 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 436 * @return the last matching document library file shortcut 437 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 438 * @throws SystemException if a system exception occurred 439 */ 440 public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_Last( 441 long groupId, long folderId, 442 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 443 throws com.liferay.portal.kernel.exception.SystemException, 444 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 445 446 /** 447 * Returns the document library file shortcuts before and after the current document library file shortcut in the ordered set where groupId = ? and folderId = ?. 448 * 449 * <p> 450 * 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. 451 * </p> 452 * 453 * @param fileShortcutId the primary key of the current document library file shortcut 454 * @param groupId the group ID 455 * @param folderId the folder ID 456 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 457 * @return the previous, current, and next document library file shortcut 458 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 459 * @throws SystemException if a system exception occurred 460 */ 461 public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByG_F_PrevAndNext( 462 long fileShortcutId, long groupId, long folderId, 463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 464 throws com.liferay.portal.kernel.exception.SystemException, 465 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 466 467 /** 468 * Returns all the document library file shortcuts that the user has permission to view where groupId = ? and folderId = ?. 469 * 470 * @param groupId the group ID 471 * @param folderId the folder ID 472 * @return the matching document library file shortcuts that the user has permission to view 473 * @throws SystemException if a system exception occurred 474 */ 475 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F( 476 long groupId, long folderId) 477 throws com.liferay.portal.kernel.exception.SystemException; 478 479 /** 480 * Returns a range of all the document library file shortcuts that the user has permission to view where groupId = ? and folderId = ?. 481 * 482 * <p> 483 * 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. 484 * </p> 485 * 486 * @param groupId the group ID 487 * @param folderId the folder ID 488 * @param start the lower bound of the range of document library file shortcuts 489 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 490 * @return the range of matching document library file shortcuts that the user has permission to view 491 * @throws SystemException if a system exception occurred 492 */ 493 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F( 494 long groupId, long folderId, int start, int end) 495 throws com.liferay.portal.kernel.exception.SystemException; 496 497 /** 498 * Returns an ordered range of all the document library file shortcuts that the user has permissions to view where groupId = ? and folderId = ?. 499 * 500 * <p> 501 * 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. 502 * </p> 503 * 504 * @param groupId the group ID 505 * @param folderId the folder ID 506 * @param start the lower bound of the range of document library file shortcuts 507 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 508 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 509 * @return the ordered range of matching document library file shortcuts that the user has permission to view 510 * @throws SystemException if a system exception occurred 511 */ 512 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F( 513 long groupId, long folderId, int start, int end, 514 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 515 throws com.liferay.portal.kernel.exception.SystemException; 516 517 /** 518 * 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 = ?. 519 * 520 * @param fileShortcutId the primary key of the current document library file shortcut 521 * @param groupId the group ID 522 * @param folderId the folder ID 523 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 524 * @return the previous, current, and next document library file shortcut 525 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 526 * @throws SystemException if a system exception occurred 527 */ 528 public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] filterFindByG_F_PrevAndNext( 529 long fileShortcutId, long groupId, long folderId, 530 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 531 throws com.liferay.portal.kernel.exception.SystemException, 532 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 533 534 /** 535 * Returns all the document library file shortcuts where groupId = ? and folderId = ? and status = ?. 536 * 537 * @param groupId the group ID 538 * @param folderId the folder ID 539 * @param status the status 540 * @return the matching document library file shortcuts 541 * @throws SystemException if a system exception occurred 542 */ 543 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F_S( 544 long groupId, long folderId, int status) 545 throws com.liferay.portal.kernel.exception.SystemException; 546 547 /** 548 * Returns a range of all the document library file shortcuts where groupId = ? and folderId = ? and status = ?. 549 * 550 * <p> 551 * 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. 552 * </p> 553 * 554 * @param groupId the group ID 555 * @param folderId the folder ID 556 * @param status the status 557 * @param start the lower bound of the range of document library file shortcuts 558 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 559 * @return the range of matching document library file shortcuts 560 * @throws SystemException if a system exception occurred 561 */ 562 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F_S( 563 long groupId, long folderId, int status, int start, int end) 564 throws com.liferay.portal.kernel.exception.SystemException; 565 566 /** 567 * Returns an ordered range of all the document library file shortcuts where groupId = ? and folderId = ? and status = ?. 568 * 569 * <p> 570 * 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. 571 * </p> 572 * 573 * @param groupId the group ID 574 * @param folderId the folder ID 575 * @param status the status 576 * @param start the lower bound of the range of document library file shortcuts 577 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 578 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 579 * @return the ordered range of matching document library file shortcuts 580 * @throws SystemException if a system exception occurred 581 */ 582 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F_S( 583 long groupId, long folderId, int status, int start, int end, 584 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 585 throws com.liferay.portal.kernel.exception.SystemException; 586 587 /** 588 * Returns the first document library file shortcut in the ordered set where groupId = ? and folderId = ? and status = ?. 589 * 590 * <p> 591 * 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. 592 * </p> 593 * 594 * @param groupId the group ID 595 * @param folderId the folder ID 596 * @param status the status 597 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 598 * @return the first matching document library file shortcut 599 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 600 * @throws SystemException if a system exception occurred 601 */ 602 public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_S_First( 603 long groupId, long folderId, int status, 604 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 605 throws com.liferay.portal.kernel.exception.SystemException, 606 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 607 608 /** 609 * Returns the last document library file shortcut in the ordered set where groupId = ? and folderId = ? and status = ?. 610 * 611 * <p> 612 * 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. 613 * </p> 614 * 615 * @param groupId the group ID 616 * @param folderId the folder ID 617 * @param status the status 618 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 619 * @return the last matching document library file shortcut 620 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching document library file shortcut could not be found 621 * @throws SystemException if a system exception occurred 622 */ 623 public com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_S_Last( 624 long groupId, long folderId, int status, 625 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 626 throws com.liferay.portal.kernel.exception.SystemException, 627 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 628 629 /** 630 * 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 = ?. 631 * 632 * <p> 633 * 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. 634 * </p> 635 * 636 * @param fileShortcutId the primary key of the current document library file shortcut 637 * @param groupId the group ID 638 * @param folderId the folder ID 639 * @param status the status 640 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 641 * @return the previous, current, and next document library file shortcut 642 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 643 * @throws SystemException if a system exception occurred 644 */ 645 public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByG_F_S_PrevAndNext( 646 long fileShortcutId, long groupId, long folderId, int status, 647 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 648 throws com.liferay.portal.kernel.exception.SystemException, 649 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 650 651 /** 652 * Returns all the document library file shortcuts that the user has permission to view where groupId = ? and folderId = ? and status = ?. 653 * 654 * @param groupId the group ID 655 * @param folderId the folder ID 656 * @param status the status 657 * @return the matching document library file shortcuts that the user has permission to view 658 * @throws SystemException if a system exception occurred 659 */ 660 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F_S( 661 long groupId, long folderId, int status) 662 throws com.liferay.portal.kernel.exception.SystemException; 663 664 /** 665 * Returns a range of all the document library file shortcuts that the user has permission to view where groupId = ? and folderId = ? and status = ?. 666 * 667 * <p> 668 * 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. 669 * </p> 670 * 671 * @param groupId the group ID 672 * @param folderId the folder ID 673 * @param status the status 674 * @param start the lower bound of the range of document library file shortcuts 675 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 676 * @return the range of matching document library file shortcuts that the user has permission to view 677 * @throws SystemException if a system exception occurred 678 */ 679 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F_S( 680 long groupId, long folderId, int status, int start, int end) 681 throws com.liferay.portal.kernel.exception.SystemException; 682 683 /** 684 * Returns an ordered range of all the document library file shortcuts that the user has permissions to view where groupId = ? and folderId = ? and status = ?. 685 * 686 * <p> 687 * 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. 688 * </p> 689 * 690 * @param groupId the group ID 691 * @param folderId the folder ID 692 * @param status the status 693 * @param start the lower bound of the range of document library file shortcuts 694 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 695 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 696 * @return the ordered range of matching document library file shortcuts that the user has permission to view 697 * @throws SystemException if a system exception occurred 698 */ 699 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F_S( 700 long groupId, long folderId, int status, int start, int end, 701 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 702 throws com.liferay.portal.kernel.exception.SystemException; 703 704 /** 705 * 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 = ?. 706 * 707 * @param fileShortcutId the primary key of the current document library file shortcut 708 * @param groupId the group ID 709 * @param folderId the folder ID 710 * @param status the status 711 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 712 * @return the previous, current, and next document library file shortcut 713 * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a document library file shortcut with the primary key could not be found 714 * @throws SystemException if a system exception occurred 715 */ 716 public com.liferay.portlet.documentlibrary.model.DLFileShortcut[] filterFindByG_F_S_PrevAndNext( 717 long fileShortcutId, long groupId, long folderId, int status, 718 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 719 throws com.liferay.portal.kernel.exception.SystemException, 720 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 721 722 /** 723 * Returns all the document library file shortcuts. 724 * 725 * @return the document library file shortcuts 726 * @throws SystemException if a system exception occurred 727 */ 728 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll() 729 throws com.liferay.portal.kernel.exception.SystemException; 730 731 /** 732 * Returns a range of all the document library file shortcuts. 733 * 734 * <p> 735 * 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. 736 * </p> 737 * 738 * @param start the lower bound of the range of document library file shortcuts 739 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 740 * @return the range of document library file shortcuts 741 * @throws SystemException if a system exception occurred 742 */ 743 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll( 744 int start, int end) 745 throws com.liferay.portal.kernel.exception.SystemException; 746 747 /** 748 * Returns an ordered range of all the document library file shortcuts. 749 * 750 * <p> 751 * 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. 752 * </p> 753 * 754 * @param start the lower bound of the range of document library file shortcuts 755 * @param end the upper bound of the range of document library file shortcuts (not inclusive) 756 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 757 * @return the ordered range of document library file shortcuts 758 * @throws SystemException if a system exception occurred 759 */ 760 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll( 761 int start, int end, 762 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 763 throws com.liferay.portal.kernel.exception.SystemException; 764 765 /** 766 * Removes all the document library file shortcuts where uuid = ? from the database. 767 * 768 * @param uuid the uuid 769 * @throws SystemException if a system exception occurred 770 */ 771 public void removeByUuid(java.lang.String uuid) 772 throws com.liferay.portal.kernel.exception.SystemException; 773 774 /** 775 * Removes the document library file shortcut where uuid = ? and groupId = ? from the database. 776 * 777 * @param uuid the uuid 778 * @param groupId the group ID 779 * @throws SystemException if a system exception occurred 780 */ 781 public void removeByUUID_G(java.lang.String uuid, long groupId) 782 throws com.liferay.portal.kernel.exception.SystemException, 783 com.liferay.portlet.documentlibrary.NoSuchFileShortcutException; 784 785 /** 786 * Removes all the document library file shortcuts where toFileEntryId = ? from the database. 787 * 788 * @param toFileEntryId the to file entry ID 789 * @throws SystemException if a system exception occurred 790 */ 791 public void removeByToFileEntryId(long toFileEntryId) 792 throws com.liferay.portal.kernel.exception.SystemException; 793 794 /** 795 * Removes all the document library file shortcuts where groupId = ? and folderId = ? from the database. 796 * 797 * @param groupId the group ID 798 * @param folderId the folder ID 799 * @throws SystemException if a system exception occurred 800 */ 801 public void removeByG_F(long groupId, long folderId) 802 throws com.liferay.portal.kernel.exception.SystemException; 803 804 /** 805 * Removes all the document library file shortcuts where groupId = ? and folderId = ? and status = ? from the database. 806 * 807 * @param groupId the group ID 808 * @param folderId the folder ID 809 * @param status the status 810 * @throws SystemException if a system exception occurred 811 */ 812 public void removeByG_F_S(long groupId, long folderId, int status) 813 throws com.liferay.portal.kernel.exception.SystemException; 814 815 /** 816 * Removes all the document library file shortcuts from the database. 817 * 818 * @throws SystemException if a system exception occurred 819 */ 820 public void removeAll() 821 throws com.liferay.portal.kernel.exception.SystemException; 822 823 /** 824 * Returns the number of document library file shortcuts where uuid = ?. 825 * 826 * @param uuid the uuid 827 * @return the number of matching document library file shortcuts 828 * @throws SystemException if a system exception occurred 829 */ 830 public int countByUuid(java.lang.String uuid) 831 throws com.liferay.portal.kernel.exception.SystemException; 832 833 /** 834 * Returns the number of document library file shortcuts where uuid = ? and groupId = ?. 835 * 836 * @param uuid the uuid 837 * @param groupId the group ID 838 * @return the number of matching document library file shortcuts 839 * @throws SystemException if a system exception occurred 840 */ 841 public int countByUUID_G(java.lang.String uuid, long groupId) 842 throws com.liferay.portal.kernel.exception.SystemException; 843 844 /** 845 * Returns the number of document library file shortcuts where toFileEntryId = ?. 846 * 847 * @param toFileEntryId the to file entry ID 848 * @return the number of matching document library file shortcuts 849 * @throws SystemException if a system exception occurred 850 */ 851 public int countByToFileEntryId(long toFileEntryId) 852 throws com.liferay.portal.kernel.exception.SystemException; 853 854 /** 855 * Returns the number of document library file shortcuts where groupId = ? and folderId = ?. 856 * 857 * @param groupId the group ID 858 * @param folderId the folder ID 859 * @return the number of matching document library file shortcuts 860 * @throws SystemException if a system exception occurred 861 */ 862 public int countByG_F(long groupId, long folderId) 863 throws com.liferay.portal.kernel.exception.SystemException; 864 865 /** 866 * Returns the number of document library file shortcuts that the user has permission to view where groupId = ? and folderId = ?. 867 * 868 * @param groupId the group ID 869 * @param folderId the folder ID 870 * @return the number of matching document library file shortcuts that the user has permission to view 871 * @throws SystemException if a system exception occurred 872 */ 873 public int filterCountByG_F(long groupId, long folderId) 874 throws com.liferay.portal.kernel.exception.SystemException; 875 876 /** 877 * Returns the number of document library file shortcuts where groupId = ? and folderId = ? and status = ?. 878 * 879 * @param groupId the group ID 880 * @param folderId the folder ID 881 * @param status the status 882 * @return the number of matching document library file shortcuts 883 * @throws SystemException if a system exception occurred 884 */ 885 public int countByG_F_S(long groupId, long folderId, int status) 886 throws com.liferay.portal.kernel.exception.SystemException; 887 888 /** 889 * Returns the number of document library file shortcuts that the user has permission to view where groupId = ? and folderId = ? and status = ?. 890 * 891 * @param groupId the group ID 892 * @param folderId the folder ID 893 * @param status the status 894 * @return the number of matching document library file shortcuts that the user has permission to view 895 * @throws SystemException if a system exception occurred 896 */ 897 public int filterCountByG_F_S(long groupId, long folderId, int status) 898 throws com.liferay.portal.kernel.exception.SystemException; 899 900 /** 901 * Returns the number of document library file shortcuts. 902 * 903 * @return the number of document library file shortcuts 904 * @throws SystemException if a system exception occurred 905 */ 906 public int countAll() 907 throws com.liferay.portal.kernel.exception.SystemException; 908 }