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