001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.documentlibrary.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.documentlibrary.model.DLFolder; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the document library folder service. This utility wraps {@link DLFolderPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see DLFolderPersistence 037 * @see DLFolderPersistenceImpl 038 * @generated 039 */ 040 public class DLFolderUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(DLFolder dlFolder) { 058 getPersistence().clearCache(dlFolder); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<DLFolder> findWithDynamicQuery(DynamicQuery dynamicQuery) 073 throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<DLFolder> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<DLFolder> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 099 */ 100 public static DLFolder update(DLFolder dlFolder, boolean merge) 101 throws SystemException { 102 return getPersistence().update(dlFolder, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static DLFolder update(DLFolder dlFolder, boolean merge, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(dlFolder, merge, serviceContext); 111 } 112 113 /** 114 * Caches the document library folder in the entity cache if it is enabled. 115 * 116 * @param dlFolder the document library folder 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) { 120 getPersistence().cacheResult(dlFolder); 121 } 122 123 /** 124 * Caches the document library folders in the entity cache if it is enabled. 125 * 126 * @param dlFolders the document library folders 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders) { 130 getPersistence().cacheResult(dlFolders); 131 } 132 133 /** 134 * Creates a new document library folder with the primary key. Does not add the document library folder to the database. 135 * 136 * @param folderId the primary key for the new document library folder 137 * @return the new document library folder 138 */ 139 public static com.liferay.portlet.documentlibrary.model.DLFolder create( 140 long folderId) { 141 return getPersistence().create(folderId); 142 } 143 144 /** 145 * Removes the document library folder with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param folderId the primary key of the document library folder 148 * @return the document library folder that was removed 149 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.documentlibrary.model.DLFolder remove( 153 long folderId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.documentlibrary.NoSuchFolderException { 156 return getPersistence().remove(folderId); 157 } 158 159 public static com.liferay.portlet.documentlibrary.model.DLFolder updateImpl( 160 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder, 161 boolean merge) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(dlFolder, merge); 164 } 165 166 /** 167 * Returns the document library folder with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found. 168 * 169 * @param folderId the primary key of the document library folder 170 * @return the document library folder 171 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.documentlibrary.model.DLFolder findByPrimaryKey( 175 long folderId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.documentlibrary.NoSuchFolderException { 178 return getPersistence().findByPrimaryKey(folderId); 179 } 180 181 /** 182 * Returns the document library folder with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param folderId the primary key of the document library folder 185 * @return the document library folder, or <code>null</code> if a document library folder with the primary key could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByPrimaryKey( 189 long folderId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(folderId); 192 } 193 194 /** 195 * Returns all the document library folders where uuid = ?. 196 * 197 * @param uuid the uuid 198 * @return the matching document library folders 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid( 202 java.lang.String uuid) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByUuid(uuid); 205 } 206 207 /** 208 * Returns a range of all the document library folders where uuid = ?. 209 * 210 * <p> 211 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 212 * </p> 213 * 214 * @param uuid the uuid 215 * @param start the lower bound of the range of document library folders 216 * @param end the upper bound of the range of document library folders (not inclusive) 217 * @return the range of matching document library folders 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid( 221 java.lang.String uuid, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByUuid(uuid, start, end); 224 } 225 226 /** 227 * Returns an ordered range of all the document library folders where uuid = ?. 228 * 229 * <p> 230 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 231 * </p> 232 * 233 * @param uuid the uuid 234 * @param start the lower bound of the range of document library folders 235 * @param end the upper bound of the range of document library folders (not inclusive) 236 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 237 * @return the ordered range of matching document library folders 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid( 241 java.lang.String uuid, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 245 } 246 247 /** 248 * Returns the first document library folder in the ordered set where uuid = ?. 249 * 250 * @param uuid the uuid 251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 252 * @return the first matching document library folder 253 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 254 * @throws SystemException if a system exception occurred 255 */ 256 public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_First( 257 java.lang.String uuid, 258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 259 throws com.liferay.portal.kernel.exception.SystemException, 260 com.liferay.portlet.documentlibrary.NoSuchFolderException { 261 return getPersistence().findByUuid_First(uuid, orderByComparator); 262 } 263 264 /** 265 * Returns the first document library folder in the ordered set where uuid = ?. 266 * 267 * @param uuid the uuid 268 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 269 * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found 270 * @throws SystemException if a system exception occurred 271 */ 272 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUuid_First( 273 java.lang.String uuid, 274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 275 throws com.liferay.portal.kernel.exception.SystemException { 276 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 277 } 278 279 /** 280 * Returns the last document library folder in the ordered set where uuid = ?. 281 * 282 * @param uuid the uuid 283 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 284 * @return the last matching document library folder 285 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 286 * @throws SystemException if a system exception occurred 287 */ 288 public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_Last( 289 java.lang.String uuid, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.kernel.exception.SystemException, 292 com.liferay.portlet.documentlibrary.NoSuchFolderException { 293 return getPersistence().findByUuid_Last(uuid, orderByComparator); 294 } 295 296 /** 297 * Returns the last document library folder in the ordered set where uuid = ?. 298 * 299 * @param uuid the uuid 300 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 301 * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUuid_Last( 305 java.lang.String uuid, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException { 308 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 309 } 310 311 /** 312 * Returns the document library folders before and after the current document library folder in the ordered set where uuid = ?. 313 * 314 * @param folderId the primary key of the current document library folder 315 * @param uuid the uuid 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the previous, current, and next document library folder 318 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByUuid_PrevAndNext( 322 long folderId, java.lang.String uuid, 323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.documentlibrary.NoSuchFolderException { 326 return getPersistence() 327 .findByUuid_PrevAndNext(folderId, uuid, orderByComparator); 328 } 329 330 /** 331 * Returns the document library folder where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found. 332 * 333 * @param uuid the uuid 334 * @param groupId the group ID 335 * @return the matching document library folder 336 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 337 * @throws SystemException if a system exception occurred 338 */ 339 public static com.liferay.portlet.documentlibrary.model.DLFolder findByUUID_G( 340 java.lang.String uuid, long groupId) 341 throws com.liferay.portal.kernel.exception.SystemException, 342 com.liferay.portlet.documentlibrary.NoSuchFolderException { 343 return getPersistence().findByUUID_G(uuid, groupId); 344 } 345 346 /** 347 * Returns the document library folder where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 348 * 349 * @param uuid the uuid 350 * @param groupId the group ID 351 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 352 * @throws SystemException if a system exception occurred 353 */ 354 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G( 355 java.lang.String uuid, long groupId) 356 throws com.liferay.portal.kernel.exception.SystemException { 357 return getPersistence().fetchByUUID_G(uuid, groupId); 358 } 359 360 /** 361 * Returns the document library folder where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 362 * 363 * @param uuid the uuid 364 * @param groupId the group ID 365 * @param retrieveFromCache whether to use the finder cache 366 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 367 * @throws SystemException if a system exception occurred 368 */ 369 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G( 370 java.lang.String uuid, long groupId, boolean retrieveFromCache) 371 throws com.liferay.portal.kernel.exception.SystemException { 372 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 373 } 374 375 /** 376 * Returns all the document library folders where groupId = ?. 377 * 378 * @param groupId the group ID 379 * @return the matching document library folders 380 * @throws SystemException if a system exception occurred 381 */ 382 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId( 383 long groupId) 384 throws com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence().findByGroupId(groupId); 386 } 387 388 /** 389 * Returns a range of all the document library folders where groupId = ?. 390 * 391 * <p> 392 * 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. 393 * </p> 394 * 395 * @param groupId the group ID 396 * @param start the lower bound of the range of document library folders 397 * @param end the upper bound of the range of document library folders (not inclusive) 398 * @return the range of matching document library folders 399 * @throws SystemException if a system exception occurred 400 */ 401 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId( 402 long groupId, int start, int end) 403 throws com.liferay.portal.kernel.exception.SystemException { 404 return getPersistence().findByGroupId(groupId, start, end); 405 } 406 407 /** 408 * Returns an ordered range of all the document library folders where groupId = ?. 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 start the lower bound of the range of document library folders 416 * @param end the upper bound of the range of document library folders (not inclusive) 417 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 418 * @return the ordered range of matching document library folders 419 * @throws SystemException if a system exception occurred 420 */ 421 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId( 422 long groupId, int start, int end, 423 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 424 throws com.liferay.portal.kernel.exception.SystemException { 425 return getPersistence() 426 .findByGroupId(groupId, start, end, orderByComparator); 427 } 428 429 /** 430 * Returns the first document library folder in the ordered set where groupId = ?. 431 * 432 * @param groupId the group ID 433 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 434 * @return the first matching document library folder 435 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 436 * @throws SystemException if a system exception occurred 437 */ 438 public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_First( 439 long groupId, 440 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 441 throws com.liferay.portal.kernel.exception.SystemException, 442 com.liferay.portlet.documentlibrary.NoSuchFolderException { 443 return getPersistence().findByGroupId_First(groupId, orderByComparator); 444 } 445 446 /** 447 * Returns the first document library folder in the ordered set where groupId = ?. 448 * 449 * @param groupId the group ID 450 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 451 * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found 452 * @throws SystemException if a system exception occurred 453 */ 454 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByGroupId_First( 455 long groupId, 456 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 457 throws com.liferay.portal.kernel.exception.SystemException { 458 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 459 } 460 461 /** 462 * Returns the last document library folder in the ordered set where groupId = ?. 463 * 464 * @param groupId the group ID 465 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 466 * @return the last matching document library folder 467 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 468 * @throws SystemException if a system exception occurred 469 */ 470 public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last( 471 long groupId, 472 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 473 throws com.liferay.portal.kernel.exception.SystemException, 474 com.liferay.portlet.documentlibrary.NoSuchFolderException { 475 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 476 } 477 478 /** 479 * Returns the last document library folder in the ordered set where groupId = ?. 480 * 481 * @param groupId the group ID 482 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 483 * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found 484 * @throws SystemException if a system exception occurred 485 */ 486 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByGroupId_Last( 487 long groupId, 488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 489 throws com.liferay.portal.kernel.exception.SystemException { 490 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 491 } 492 493 /** 494 * Returns the document library folders before and after the current document library folder in the ordered set where groupId = ?. 495 * 496 * @param folderId the primary key of the current document library folder 497 * @param groupId the group ID 498 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 499 * @return the previous, current, and next document library folder 500 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 501 * @throws SystemException if a system exception occurred 502 */ 503 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByGroupId_PrevAndNext( 504 long folderId, long groupId, 505 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 506 throws com.liferay.portal.kernel.exception.SystemException, 507 com.liferay.portlet.documentlibrary.NoSuchFolderException { 508 return getPersistence() 509 .findByGroupId_PrevAndNext(folderId, groupId, 510 orderByComparator); 511 } 512 513 /** 514 * Returns all the document library folders that the user has permission to view where groupId = ?. 515 * 516 * @param groupId the group ID 517 * @return the matching document library folders that the user has permission to view 518 * @throws SystemException if a system exception occurred 519 */ 520 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId( 521 long groupId) 522 throws com.liferay.portal.kernel.exception.SystemException { 523 return getPersistence().filterFindByGroupId(groupId); 524 } 525 526 /** 527 * Returns a range of all the document library folders that the user has permission to view where groupId = ?. 528 * 529 * <p> 530 * 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. 531 * </p> 532 * 533 * @param groupId the group ID 534 * @param start the lower bound of the range of document library folders 535 * @param end the upper bound of the range of document library folders (not inclusive) 536 * @return the range of matching document library folders that the user has permission to view 537 * @throws SystemException if a system exception occurred 538 */ 539 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId( 540 long groupId, int start, int end) 541 throws com.liferay.portal.kernel.exception.SystemException { 542 return getPersistence().filterFindByGroupId(groupId, start, end); 543 } 544 545 /** 546 * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = ?. 547 * 548 * <p> 549 * 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. 550 * </p> 551 * 552 * @param groupId the group ID 553 * @param start the lower bound of the range of document library folders 554 * @param end the upper bound of the range of document library folders (not inclusive) 555 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 556 * @return the ordered range of matching document library folders that the user has permission to view 557 * @throws SystemException if a system exception occurred 558 */ 559 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId( 560 long groupId, int start, int end, 561 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 562 throws com.liferay.portal.kernel.exception.SystemException { 563 return getPersistence() 564 .filterFindByGroupId(groupId, start, end, orderByComparator); 565 } 566 567 /** 568 * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = ?. 569 * 570 * @param folderId the primary key of the current document library folder 571 * @param groupId the group ID 572 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 573 * @return the previous, current, and next document library folder 574 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 575 * @throws SystemException if a system exception occurred 576 */ 577 public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByGroupId_PrevAndNext( 578 long folderId, long groupId, 579 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 580 throws com.liferay.portal.kernel.exception.SystemException, 581 com.liferay.portlet.documentlibrary.NoSuchFolderException { 582 return getPersistence() 583 .filterFindByGroupId_PrevAndNext(folderId, groupId, 584 orderByComparator); 585 } 586 587 /** 588 * Returns all the document library folders where companyId = ?. 589 * 590 * @param companyId the company ID 591 * @return the matching document library folders 592 * @throws SystemException if a system exception occurred 593 */ 594 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId( 595 long companyId) 596 throws com.liferay.portal.kernel.exception.SystemException { 597 return getPersistence().findByCompanyId(companyId); 598 } 599 600 /** 601 * Returns a range of all the document library folders where companyId = ?. 602 * 603 * <p> 604 * 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. 605 * </p> 606 * 607 * @param companyId the company ID 608 * @param start the lower bound of the range of document library folders 609 * @param end the upper bound of the range of document library folders (not inclusive) 610 * @return the range of matching document library folders 611 * @throws SystemException if a system exception occurred 612 */ 613 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId( 614 long companyId, int start, int end) 615 throws com.liferay.portal.kernel.exception.SystemException { 616 return getPersistence().findByCompanyId(companyId, start, end); 617 } 618 619 /** 620 * Returns an ordered range of all the document library folders where companyId = ?. 621 * 622 * <p> 623 * 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. 624 * </p> 625 * 626 * @param companyId the company ID 627 * @param start the lower bound of the range of document library folders 628 * @param end the upper bound of the range of document library folders (not inclusive) 629 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 630 * @return the ordered range of matching document library folders 631 * @throws SystemException if a system exception occurred 632 */ 633 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId( 634 long companyId, int start, int end, 635 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 636 throws com.liferay.portal.kernel.exception.SystemException { 637 return getPersistence() 638 .findByCompanyId(companyId, start, end, orderByComparator); 639 } 640 641 /** 642 * Returns the first document library folder in the ordered set where companyId = ?. 643 * 644 * @param companyId the company ID 645 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 646 * @return the first matching document library folder 647 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 648 * @throws SystemException if a system exception occurred 649 */ 650 public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_First( 651 long companyId, 652 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 653 throws com.liferay.portal.kernel.exception.SystemException, 654 com.liferay.portlet.documentlibrary.NoSuchFolderException { 655 return getPersistence() 656 .findByCompanyId_First(companyId, orderByComparator); 657 } 658 659 /** 660 * Returns the first document library folder in the ordered set where companyId = ?. 661 * 662 * @param companyId the company ID 663 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 664 * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found 665 * @throws SystemException if a system exception occurred 666 */ 667 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByCompanyId_First( 668 long companyId, 669 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 670 throws com.liferay.portal.kernel.exception.SystemException { 671 return getPersistence() 672 .fetchByCompanyId_First(companyId, orderByComparator); 673 } 674 675 /** 676 * Returns the last document library folder in the ordered set where companyId = ?. 677 * 678 * @param companyId the company ID 679 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 680 * @return the last matching document library folder 681 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 682 * @throws SystemException if a system exception occurred 683 */ 684 public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last( 685 long companyId, 686 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 687 throws com.liferay.portal.kernel.exception.SystemException, 688 com.liferay.portlet.documentlibrary.NoSuchFolderException { 689 return getPersistence() 690 .findByCompanyId_Last(companyId, orderByComparator); 691 } 692 693 /** 694 * Returns the last document library folder in the ordered set where companyId = ?. 695 * 696 * @param companyId the company ID 697 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 698 * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found 699 * @throws SystemException if a system exception occurred 700 */ 701 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByCompanyId_Last( 702 long companyId, 703 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 704 throws com.liferay.portal.kernel.exception.SystemException { 705 return getPersistence() 706 .fetchByCompanyId_Last(companyId, orderByComparator); 707 } 708 709 /** 710 * Returns the document library folders before and after the current document library folder in the ordered set where companyId = ?. 711 * 712 * @param folderId the primary key of the current document library folder 713 * @param companyId the company ID 714 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 715 * @return the previous, current, and next document library folder 716 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 717 * @throws SystemException if a system exception occurred 718 */ 719 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByCompanyId_PrevAndNext( 720 long folderId, long companyId, 721 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 722 throws com.liferay.portal.kernel.exception.SystemException, 723 com.liferay.portlet.documentlibrary.NoSuchFolderException { 724 return getPersistence() 725 .findByCompanyId_PrevAndNext(folderId, companyId, 726 orderByComparator); 727 } 728 729 /** 730 * Returns the document library folder where repositoryId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found. 731 * 732 * @param repositoryId the repository ID 733 * @return the matching document library folder 734 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 735 * @throws SystemException if a system exception occurred 736 */ 737 public static com.liferay.portlet.documentlibrary.model.DLFolder findByRepositoryId( 738 long repositoryId) 739 throws com.liferay.portal.kernel.exception.SystemException, 740 com.liferay.portlet.documentlibrary.NoSuchFolderException { 741 return getPersistence().findByRepositoryId(repositoryId); 742 } 743 744 /** 745 * Returns the document library folder where repositoryId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 746 * 747 * @param repositoryId the repository ID 748 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 749 * @throws SystemException if a system exception occurred 750 */ 751 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByRepositoryId( 752 long repositoryId) 753 throws com.liferay.portal.kernel.exception.SystemException { 754 return getPersistence().fetchByRepositoryId(repositoryId); 755 } 756 757 /** 758 * Returns the document library folder where repositoryId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 759 * 760 * @param repositoryId the repository ID 761 * @param retrieveFromCache whether to use the finder cache 762 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 763 * @throws SystemException if a system exception occurred 764 */ 765 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByRepositoryId( 766 long repositoryId, boolean retrieveFromCache) 767 throws com.liferay.portal.kernel.exception.SystemException { 768 return getPersistence() 769 .fetchByRepositoryId(repositoryId, retrieveFromCache); 770 } 771 772 /** 773 * Returns all the document library folders where groupId = ? and parentFolderId = ?. 774 * 775 * @param groupId the group ID 776 * @param parentFolderId the parent folder ID 777 * @return the matching document library folders 778 * @throws SystemException if a system exception occurred 779 */ 780 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P( 781 long groupId, long parentFolderId) 782 throws com.liferay.portal.kernel.exception.SystemException { 783 return getPersistence().findByG_P(groupId, parentFolderId); 784 } 785 786 /** 787 * Returns a range of all the document library folders where groupId = ? and parentFolderId = ?. 788 * 789 * <p> 790 * 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. 791 * </p> 792 * 793 * @param groupId the group ID 794 * @param parentFolderId the parent folder ID 795 * @param start the lower bound of the range of document library folders 796 * @param end the upper bound of the range of document library folders (not inclusive) 797 * @return the range of matching document library folders 798 * @throws SystemException if a system exception occurred 799 */ 800 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P( 801 long groupId, long parentFolderId, int start, int end) 802 throws com.liferay.portal.kernel.exception.SystemException { 803 return getPersistence().findByG_P(groupId, parentFolderId, start, end); 804 } 805 806 /** 807 * Returns an ordered range of all the document library folders where groupId = ? and parentFolderId = ?. 808 * 809 * <p> 810 * 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. 811 * </p> 812 * 813 * @param groupId the group ID 814 * @param parentFolderId the parent folder ID 815 * @param start the lower bound of the range of document library folders 816 * @param end the upper bound of the range of document library folders (not inclusive) 817 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 818 * @return the ordered range of matching document library folders 819 * @throws SystemException if a system exception occurred 820 */ 821 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P( 822 long groupId, long parentFolderId, int start, int end, 823 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 824 throws com.liferay.portal.kernel.exception.SystemException { 825 return getPersistence() 826 .findByG_P(groupId, parentFolderId, start, end, 827 orderByComparator); 828 } 829 830 /** 831 * Returns the first document library folder in the ordered set where groupId = ? and parentFolderId = ?. 832 * 833 * @param groupId the group ID 834 * @param parentFolderId the parent folder ID 835 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 836 * @return the first matching document library folder 837 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 838 * @throws SystemException if a system exception occurred 839 */ 840 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First( 841 long groupId, long parentFolderId, 842 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 843 throws com.liferay.portal.kernel.exception.SystemException, 844 com.liferay.portlet.documentlibrary.NoSuchFolderException { 845 return getPersistence() 846 .findByG_P_First(groupId, parentFolderId, orderByComparator); 847 } 848 849 /** 850 * Returns the first document library folder in the ordered set where groupId = ? and parentFolderId = ?. 851 * 852 * @param groupId the group ID 853 * @param parentFolderId the parent folder ID 854 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 855 * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found 856 * @throws SystemException if a system exception occurred 857 */ 858 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_First( 859 long groupId, long parentFolderId, 860 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 861 throws com.liferay.portal.kernel.exception.SystemException { 862 return getPersistence() 863 .fetchByG_P_First(groupId, parentFolderId, orderByComparator); 864 } 865 866 /** 867 * Returns the last document library folder in the ordered set where groupId = ? and parentFolderId = ?. 868 * 869 * @param groupId the group ID 870 * @param parentFolderId the parent folder ID 871 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 872 * @return the last matching document library folder 873 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 874 * @throws SystemException if a system exception occurred 875 */ 876 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last( 877 long groupId, long parentFolderId, 878 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 879 throws com.liferay.portal.kernel.exception.SystemException, 880 com.liferay.portlet.documentlibrary.NoSuchFolderException { 881 return getPersistence() 882 .findByG_P_Last(groupId, parentFolderId, orderByComparator); 883 } 884 885 /** 886 * Returns the last document library folder in the ordered set where groupId = ? and parentFolderId = ?. 887 * 888 * @param groupId the group ID 889 * @param parentFolderId the parent folder ID 890 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 891 * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found 892 * @throws SystemException if a system exception occurred 893 */ 894 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_Last( 895 long groupId, long parentFolderId, 896 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 897 throws com.liferay.portal.kernel.exception.SystemException { 898 return getPersistence() 899 .fetchByG_P_Last(groupId, parentFolderId, orderByComparator); 900 } 901 902 /** 903 * Returns the document library folders before and after the current document library folder in the ordered set where groupId = ? and parentFolderId = ?. 904 * 905 * @param folderId the primary key of the current document library folder 906 * @param groupId the group ID 907 * @param parentFolderId the parent folder ID 908 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 909 * @return the previous, current, and next document library folder 910 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 911 * @throws SystemException if a system exception occurred 912 */ 913 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext( 914 long folderId, long groupId, long parentFolderId, 915 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 916 throws com.liferay.portal.kernel.exception.SystemException, 917 com.liferay.portlet.documentlibrary.NoSuchFolderException { 918 return getPersistence() 919 .findByG_P_PrevAndNext(folderId, groupId, parentFolderId, 920 orderByComparator); 921 } 922 923 /** 924 * Returns all the document library folders that the user has permission to view where groupId = ? and parentFolderId = ?. 925 * 926 * @param groupId the group ID 927 * @param parentFolderId the parent folder ID 928 * @return the matching document library folders that the user has permission to view 929 * @throws SystemException if a system exception occurred 930 */ 931 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P( 932 long groupId, long parentFolderId) 933 throws com.liferay.portal.kernel.exception.SystemException { 934 return getPersistence().filterFindByG_P(groupId, parentFolderId); 935 } 936 937 /** 938 * Returns a range of all the document library folders that the user has permission to view where groupId = ? and parentFolderId = ?. 939 * 940 * <p> 941 * 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. 942 * </p> 943 * 944 * @param groupId the group ID 945 * @param parentFolderId the parent folder ID 946 * @param start the lower bound of the range of document library folders 947 * @param end the upper bound of the range of document library folders (not inclusive) 948 * @return the range of matching document library folders that the user has permission to view 949 * @throws SystemException if a system exception occurred 950 */ 951 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P( 952 long groupId, long parentFolderId, int start, int end) 953 throws com.liferay.portal.kernel.exception.SystemException { 954 return getPersistence() 955 .filterFindByG_P(groupId, parentFolderId, start, end); 956 } 957 958 /** 959 * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = ? and parentFolderId = ?. 960 * 961 * <p> 962 * 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. 963 * </p> 964 * 965 * @param groupId the group ID 966 * @param parentFolderId the parent folder ID 967 * @param start the lower bound of the range of document library folders 968 * @param end the upper bound of the range of document library folders (not inclusive) 969 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 970 * @return the ordered range of matching document library folders that the user has permission to view 971 * @throws SystemException if a system exception occurred 972 */ 973 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P( 974 long groupId, long parentFolderId, int start, int end, 975 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 976 throws com.liferay.portal.kernel.exception.SystemException { 977 return getPersistence() 978 .filterFindByG_P(groupId, parentFolderId, start, end, 979 orderByComparator); 980 } 981 982 /** 983 * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = ? and parentFolderId = ?. 984 * 985 * @param folderId the primary key of the current document library folder 986 * @param groupId the group ID 987 * @param parentFolderId the parent folder ID 988 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 989 * @return the previous, current, and next document library folder 990 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 991 * @throws SystemException if a system exception occurred 992 */ 993 public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_P_PrevAndNext( 994 long folderId, long groupId, long parentFolderId, 995 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 996 throws com.liferay.portal.kernel.exception.SystemException, 997 com.liferay.portlet.documentlibrary.NoSuchFolderException { 998 return getPersistence() 999 .filterFindByG_P_PrevAndNext(folderId, groupId, 1000 parentFolderId, orderByComparator); 1001 } 1002 1003 /** 1004 * Returns all the document library folders where parentFolderId = ? and name = ?. 1005 * 1006 * @param parentFolderId the parent folder ID 1007 * @param name the name 1008 * @return the matching document library folders 1009 * @throws SystemException if a system exception occurred 1010 */ 1011 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N( 1012 long parentFolderId, java.lang.String name) 1013 throws com.liferay.portal.kernel.exception.SystemException { 1014 return getPersistence().findByP_N(parentFolderId, name); 1015 } 1016 1017 /** 1018 * Returns a range of all the document library folders where parentFolderId = ? and name = ?. 1019 * 1020 * <p> 1021 * 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. 1022 * </p> 1023 * 1024 * @param parentFolderId the parent folder ID 1025 * @param name the name 1026 * @param start the lower bound of the range of document library folders 1027 * @param end the upper bound of the range of document library folders (not inclusive) 1028 * @return the range of matching document library folders 1029 * @throws SystemException if a system exception occurred 1030 */ 1031 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N( 1032 long parentFolderId, java.lang.String name, int start, int end) 1033 throws com.liferay.portal.kernel.exception.SystemException { 1034 return getPersistence().findByP_N(parentFolderId, name, start, end); 1035 } 1036 1037 /** 1038 * Returns an ordered range of all the document library folders where parentFolderId = ? and name = ?. 1039 * 1040 * <p> 1041 * 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. 1042 * </p> 1043 * 1044 * @param parentFolderId the parent folder ID 1045 * @param name the name 1046 * @param start the lower bound of the range of document library folders 1047 * @param end the upper bound of the range of document library folders (not inclusive) 1048 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1049 * @return the ordered range of matching document library folders 1050 * @throws SystemException if a system exception occurred 1051 */ 1052 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N( 1053 long parentFolderId, java.lang.String name, int start, int end, 1054 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1055 throws com.liferay.portal.kernel.exception.SystemException { 1056 return getPersistence() 1057 .findByP_N(parentFolderId, name, start, end, 1058 orderByComparator); 1059 } 1060 1061 /** 1062 * Returns the first document library folder in the ordered set where parentFolderId = ? and name = ?. 1063 * 1064 * @param parentFolderId the parent folder ID 1065 * @param name the name 1066 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1067 * @return the first matching document library folder 1068 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1069 * @throws SystemException if a system exception occurred 1070 */ 1071 public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First( 1072 long parentFolderId, java.lang.String name, 1073 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1074 throws com.liferay.portal.kernel.exception.SystemException, 1075 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1076 return getPersistence() 1077 .findByP_N_First(parentFolderId, name, orderByComparator); 1078 } 1079 1080 /** 1081 * Returns the first document library folder in the ordered set where parentFolderId = ? and name = ?. 1082 * 1083 * @param parentFolderId the parent folder ID 1084 * @param name the name 1085 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1086 * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found 1087 * @throws SystemException if a system exception occurred 1088 */ 1089 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByP_N_First( 1090 long parentFolderId, java.lang.String name, 1091 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1092 throws com.liferay.portal.kernel.exception.SystemException { 1093 return getPersistence() 1094 .fetchByP_N_First(parentFolderId, name, orderByComparator); 1095 } 1096 1097 /** 1098 * Returns the last document library folder in the ordered set where parentFolderId = ? and name = ?. 1099 * 1100 * @param parentFolderId the parent folder ID 1101 * @param name the name 1102 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1103 * @return the last matching document library folder 1104 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1105 * @throws SystemException if a system exception occurred 1106 */ 1107 public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last( 1108 long parentFolderId, java.lang.String name, 1109 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1110 throws com.liferay.portal.kernel.exception.SystemException, 1111 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1112 return getPersistence() 1113 .findByP_N_Last(parentFolderId, name, orderByComparator); 1114 } 1115 1116 /** 1117 * Returns the last document library folder in the ordered set where parentFolderId = ? and name = ?. 1118 * 1119 * @param parentFolderId the parent folder ID 1120 * @param name the name 1121 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1122 * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found 1123 * @throws SystemException if a system exception occurred 1124 */ 1125 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByP_N_Last( 1126 long parentFolderId, java.lang.String name, 1127 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1128 throws com.liferay.portal.kernel.exception.SystemException { 1129 return getPersistence() 1130 .fetchByP_N_Last(parentFolderId, name, orderByComparator); 1131 } 1132 1133 /** 1134 * Returns the document library folders before and after the current document library folder in the ordered set where parentFolderId = ? and name = ?. 1135 * 1136 * @param folderId the primary key of the current document library folder 1137 * @param parentFolderId the parent folder ID 1138 * @param name the name 1139 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1140 * @return the previous, current, and next document library folder 1141 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 1142 * @throws SystemException if a system exception occurred 1143 */ 1144 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext( 1145 long folderId, long parentFolderId, java.lang.String name, 1146 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1147 throws com.liferay.portal.kernel.exception.SystemException, 1148 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1149 return getPersistence() 1150 .findByP_N_PrevAndNext(folderId, parentFolderId, name, 1151 orderByComparator); 1152 } 1153 1154 /** 1155 * Returns all the document library folders where groupId = ? and parentFolderId = ? and mountPoint = ?. 1156 * 1157 * @param groupId the group ID 1158 * @param parentFolderId the parent folder ID 1159 * @param mountPoint the mount point 1160 * @return the matching document library folders 1161 * @throws SystemException if a system exception occurred 1162 */ 1163 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_M( 1164 long groupId, long parentFolderId, boolean mountPoint) 1165 throws com.liferay.portal.kernel.exception.SystemException { 1166 return getPersistence().findByG_P_M(groupId, parentFolderId, mountPoint); 1167 } 1168 1169 /** 1170 * Returns a range of all the document library folders where groupId = ? and parentFolderId = ? and mountPoint = ?. 1171 * 1172 * <p> 1173 * 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. 1174 * </p> 1175 * 1176 * @param groupId the group ID 1177 * @param parentFolderId the parent folder ID 1178 * @param mountPoint the mount point 1179 * @param start the lower bound of the range of document library folders 1180 * @param end the upper bound of the range of document library folders (not inclusive) 1181 * @return the range of matching document library folders 1182 * @throws SystemException if a system exception occurred 1183 */ 1184 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_M( 1185 long groupId, long parentFolderId, boolean mountPoint, int start, 1186 int end) throws com.liferay.portal.kernel.exception.SystemException { 1187 return getPersistence() 1188 .findByG_P_M(groupId, parentFolderId, mountPoint, start, end); 1189 } 1190 1191 /** 1192 * Returns an ordered range of all the document library folders where groupId = ? and parentFolderId = ? and mountPoint = ?. 1193 * 1194 * <p> 1195 * 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. 1196 * </p> 1197 * 1198 * @param groupId the group ID 1199 * @param parentFolderId the parent folder ID 1200 * @param mountPoint the mount point 1201 * @param start the lower bound of the range of document library folders 1202 * @param end the upper bound of the range of document library folders (not inclusive) 1203 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1204 * @return the ordered range of matching document library folders 1205 * @throws SystemException if a system exception occurred 1206 */ 1207 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_M( 1208 long groupId, long parentFolderId, boolean mountPoint, int start, 1209 int end, 1210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1211 throws com.liferay.portal.kernel.exception.SystemException { 1212 return getPersistence() 1213 .findByG_P_M(groupId, parentFolderId, mountPoint, start, 1214 end, orderByComparator); 1215 } 1216 1217 /** 1218 * Returns the first document library folder in the ordered set where groupId = ? and parentFolderId = ? and mountPoint = ?. 1219 * 1220 * @param groupId the group ID 1221 * @param parentFolderId the parent folder ID 1222 * @param mountPoint the mount point 1223 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1224 * @return the first matching document library folder 1225 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1226 * @throws SystemException if a system exception occurred 1227 */ 1228 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_M_First( 1229 long groupId, long parentFolderId, boolean mountPoint, 1230 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1231 throws com.liferay.portal.kernel.exception.SystemException, 1232 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1233 return getPersistence() 1234 .findByG_P_M_First(groupId, parentFolderId, mountPoint, 1235 orderByComparator); 1236 } 1237 1238 /** 1239 * Returns the first document library folder in the ordered set where groupId = ? and parentFolderId = ? and mountPoint = ?. 1240 * 1241 * @param groupId the group ID 1242 * @param parentFolderId the parent folder ID 1243 * @param mountPoint the mount point 1244 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1245 * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found 1246 * @throws SystemException if a system exception occurred 1247 */ 1248 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_M_First( 1249 long groupId, long parentFolderId, boolean mountPoint, 1250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1251 throws com.liferay.portal.kernel.exception.SystemException { 1252 return getPersistence() 1253 .fetchByG_P_M_First(groupId, parentFolderId, mountPoint, 1254 orderByComparator); 1255 } 1256 1257 /** 1258 * Returns the last document library folder in the ordered set where groupId = ? and parentFolderId = ? and mountPoint = ?. 1259 * 1260 * @param groupId the group ID 1261 * @param parentFolderId the parent folder ID 1262 * @param mountPoint the mount point 1263 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1264 * @return the last matching document library folder 1265 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1266 * @throws SystemException if a system exception occurred 1267 */ 1268 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_M_Last( 1269 long groupId, long parentFolderId, boolean mountPoint, 1270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1271 throws com.liferay.portal.kernel.exception.SystemException, 1272 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1273 return getPersistence() 1274 .findByG_P_M_Last(groupId, parentFolderId, mountPoint, 1275 orderByComparator); 1276 } 1277 1278 /** 1279 * Returns the last document library folder in the ordered set where groupId = ? and parentFolderId = ? and mountPoint = ?. 1280 * 1281 * @param groupId the group ID 1282 * @param parentFolderId the parent folder ID 1283 * @param mountPoint the mount point 1284 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1285 * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found 1286 * @throws SystemException if a system exception occurred 1287 */ 1288 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_M_Last( 1289 long groupId, long parentFolderId, boolean mountPoint, 1290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1291 throws com.liferay.portal.kernel.exception.SystemException { 1292 return getPersistence() 1293 .fetchByG_P_M_Last(groupId, parentFolderId, mountPoint, 1294 orderByComparator); 1295 } 1296 1297 /** 1298 * Returns the document library folders before and after the current document library folder in the ordered set where groupId = ? and parentFolderId = ? and mountPoint = ?. 1299 * 1300 * @param folderId the primary key of the current document library folder 1301 * @param groupId the group ID 1302 * @param parentFolderId the parent folder ID 1303 * @param mountPoint the mount point 1304 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1305 * @return the previous, current, and next document library folder 1306 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 1307 * @throws SystemException if a system exception occurred 1308 */ 1309 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_M_PrevAndNext( 1310 long folderId, long groupId, long parentFolderId, boolean mountPoint, 1311 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1312 throws com.liferay.portal.kernel.exception.SystemException, 1313 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1314 return getPersistence() 1315 .findByG_P_M_PrevAndNext(folderId, groupId, parentFolderId, 1316 mountPoint, orderByComparator); 1317 } 1318 1319 /** 1320 * Returns all the document library folders that the user has permission to view where groupId = ? and parentFolderId = ? and mountPoint = ?. 1321 * 1322 * @param groupId the group ID 1323 * @param parentFolderId the parent folder ID 1324 * @param mountPoint the mount point 1325 * @return the matching document library folders that the user has permission to view 1326 * @throws SystemException if a system exception occurred 1327 */ 1328 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_M( 1329 long groupId, long parentFolderId, boolean mountPoint) 1330 throws com.liferay.portal.kernel.exception.SystemException { 1331 return getPersistence() 1332 .filterFindByG_P_M(groupId, parentFolderId, mountPoint); 1333 } 1334 1335 /** 1336 * Returns a range of all the document library folders that the user has permission to view where groupId = ? and parentFolderId = ? and mountPoint = ?. 1337 * 1338 * <p> 1339 * 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. 1340 * </p> 1341 * 1342 * @param groupId the group ID 1343 * @param parentFolderId the parent folder ID 1344 * @param mountPoint the mount point 1345 * @param start the lower bound of the range of document library folders 1346 * @param end the upper bound of the range of document library folders (not inclusive) 1347 * @return the range of matching document library folders that the user has permission to view 1348 * @throws SystemException if a system exception occurred 1349 */ 1350 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_M( 1351 long groupId, long parentFolderId, boolean mountPoint, int start, 1352 int end) throws com.liferay.portal.kernel.exception.SystemException { 1353 return getPersistence() 1354 .filterFindByG_P_M(groupId, parentFolderId, mountPoint, 1355 start, end); 1356 } 1357 1358 /** 1359 * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = ? and parentFolderId = ? and mountPoint = ?. 1360 * 1361 * <p> 1362 * 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. 1363 * </p> 1364 * 1365 * @param groupId the group ID 1366 * @param parentFolderId the parent folder ID 1367 * @param mountPoint the mount point 1368 * @param start the lower bound of the range of document library folders 1369 * @param end the upper bound of the range of document library folders (not inclusive) 1370 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1371 * @return the ordered range of matching document library folders that the user has permission to view 1372 * @throws SystemException if a system exception occurred 1373 */ 1374 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_M( 1375 long groupId, long parentFolderId, boolean mountPoint, int start, 1376 int end, 1377 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1378 throws com.liferay.portal.kernel.exception.SystemException { 1379 return getPersistence() 1380 .filterFindByG_P_M(groupId, parentFolderId, mountPoint, 1381 start, end, orderByComparator); 1382 } 1383 1384 /** 1385 * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = ? and parentFolderId = ? and mountPoint = ?. 1386 * 1387 * @param folderId the primary key of the current document library folder 1388 * @param groupId the group ID 1389 * @param parentFolderId the parent folder ID 1390 * @param mountPoint the mount point 1391 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1392 * @return the previous, current, and next document library folder 1393 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 1394 * @throws SystemException if a system exception occurred 1395 */ 1396 public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_P_M_PrevAndNext( 1397 long folderId, long groupId, long parentFolderId, boolean mountPoint, 1398 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1399 throws com.liferay.portal.kernel.exception.SystemException, 1400 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1401 return getPersistence() 1402 .filterFindByG_P_M_PrevAndNext(folderId, groupId, 1403 parentFolderId, mountPoint, orderByComparator); 1404 } 1405 1406 /** 1407 * Returns the document library folder where groupId = ? and parentFolderId = ? and name = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found. 1408 * 1409 * @param groupId the group ID 1410 * @param parentFolderId the parent folder ID 1411 * @param name the name 1412 * @return the matching document library folder 1413 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1414 * @throws SystemException if a system exception occurred 1415 */ 1416 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N( 1417 long groupId, long parentFolderId, java.lang.String name) 1418 throws com.liferay.portal.kernel.exception.SystemException, 1419 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1420 return getPersistence().findByG_P_N(groupId, parentFolderId, name); 1421 } 1422 1423 /** 1424 * Returns the document library folder where groupId = ? and parentFolderId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1425 * 1426 * @param groupId the group ID 1427 * @param parentFolderId the parent folder ID 1428 * @param name the name 1429 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 1430 * @throws SystemException if a system exception occurred 1431 */ 1432 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N( 1433 long groupId, long parentFolderId, java.lang.String name) 1434 throws com.liferay.portal.kernel.exception.SystemException { 1435 return getPersistence().fetchByG_P_N(groupId, parentFolderId, name); 1436 } 1437 1438 /** 1439 * Returns the document library folder where groupId = ? and parentFolderId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1440 * 1441 * @param groupId the group ID 1442 * @param parentFolderId the parent folder ID 1443 * @param name the name 1444 * @param retrieveFromCache whether to use the finder cache 1445 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 1446 * @throws SystemException if a system exception occurred 1447 */ 1448 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N( 1449 long groupId, long parentFolderId, java.lang.String name, 1450 boolean retrieveFromCache) 1451 throws com.liferay.portal.kernel.exception.SystemException { 1452 return getPersistence() 1453 .fetchByG_P_N(groupId, parentFolderId, name, 1454 retrieveFromCache); 1455 } 1456 1457 /** 1458 * Returns all the document library folders. 1459 * 1460 * @return the document library folders 1461 * @throws SystemException if a system exception occurred 1462 */ 1463 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll() 1464 throws com.liferay.portal.kernel.exception.SystemException { 1465 return getPersistence().findAll(); 1466 } 1467 1468 /** 1469 * Returns a range of all the document library folders. 1470 * 1471 * <p> 1472 * 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. 1473 * </p> 1474 * 1475 * @param start the lower bound of the range of document library folders 1476 * @param end the upper bound of the range of document library folders (not inclusive) 1477 * @return the range of document library folders 1478 * @throws SystemException if a system exception occurred 1479 */ 1480 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll( 1481 int start, int end) 1482 throws com.liferay.portal.kernel.exception.SystemException { 1483 return getPersistence().findAll(start, end); 1484 } 1485 1486 /** 1487 * Returns an ordered range of all the document library folders. 1488 * 1489 * <p> 1490 * 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. 1491 * </p> 1492 * 1493 * @param start the lower bound of the range of document library folders 1494 * @param end the upper bound of the range of document library folders (not inclusive) 1495 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1496 * @return the ordered range of document library folders 1497 * @throws SystemException if a system exception occurred 1498 */ 1499 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll( 1500 int start, int end, 1501 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1502 throws com.liferay.portal.kernel.exception.SystemException { 1503 return getPersistence().findAll(start, end, orderByComparator); 1504 } 1505 1506 /** 1507 * Removes all the document library folders where uuid = ? from the database. 1508 * 1509 * @param uuid the uuid 1510 * @throws SystemException if a system exception occurred 1511 */ 1512 public static void removeByUuid(java.lang.String uuid) 1513 throws com.liferay.portal.kernel.exception.SystemException { 1514 getPersistence().removeByUuid(uuid); 1515 } 1516 1517 /** 1518 * Removes the document library folder where uuid = ? and groupId = ? from the database. 1519 * 1520 * @param uuid the uuid 1521 * @param groupId the group ID 1522 * @return the document library folder that was removed 1523 * @throws SystemException if a system exception occurred 1524 */ 1525 public static com.liferay.portlet.documentlibrary.model.DLFolder removeByUUID_G( 1526 java.lang.String uuid, long groupId) 1527 throws com.liferay.portal.kernel.exception.SystemException, 1528 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1529 return getPersistence().removeByUUID_G(uuid, groupId); 1530 } 1531 1532 /** 1533 * Removes all the document library folders where groupId = ? from the database. 1534 * 1535 * @param groupId the group ID 1536 * @throws SystemException if a system exception occurred 1537 */ 1538 public static void removeByGroupId(long groupId) 1539 throws com.liferay.portal.kernel.exception.SystemException { 1540 getPersistence().removeByGroupId(groupId); 1541 } 1542 1543 /** 1544 * Removes all the document library folders where companyId = ? from the database. 1545 * 1546 * @param companyId the company ID 1547 * @throws SystemException if a system exception occurred 1548 */ 1549 public static void removeByCompanyId(long companyId) 1550 throws com.liferay.portal.kernel.exception.SystemException { 1551 getPersistence().removeByCompanyId(companyId); 1552 } 1553 1554 /** 1555 * Removes the document library folder where repositoryId = ? from the database. 1556 * 1557 * @param repositoryId the repository ID 1558 * @return the document library folder that was removed 1559 * @throws SystemException if a system exception occurred 1560 */ 1561 public static com.liferay.portlet.documentlibrary.model.DLFolder removeByRepositoryId( 1562 long repositoryId) 1563 throws com.liferay.portal.kernel.exception.SystemException, 1564 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1565 return getPersistence().removeByRepositoryId(repositoryId); 1566 } 1567 1568 /** 1569 * Removes all the document library folders where groupId = ? and parentFolderId = ? from the database. 1570 * 1571 * @param groupId the group ID 1572 * @param parentFolderId the parent folder ID 1573 * @throws SystemException if a system exception occurred 1574 */ 1575 public static void removeByG_P(long groupId, long parentFolderId) 1576 throws com.liferay.portal.kernel.exception.SystemException { 1577 getPersistence().removeByG_P(groupId, parentFolderId); 1578 } 1579 1580 /** 1581 * Removes all the document library folders where parentFolderId = ? and name = ? from the database. 1582 * 1583 * @param parentFolderId the parent folder ID 1584 * @param name the name 1585 * @throws SystemException if a system exception occurred 1586 */ 1587 public static void removeByP_N(long parentFolderId, java.lang.String name) 1588 throws com.liferay.portal.kernel.exception.SystemException { 1589 getPersistence().removeByP_N(parentFolderId, name); 1590 } 1591 1592 /** 1593 * Removes all the document library folders where groupId = ? and parentFolderId = ? and mountPoint = ? from the database. 1594 * 1595 * @param groupId the group ID 1596 * @param parentFolderId the parent folder ID 1597 * @param mountPoint the mount point 1598 * @throws SystemException if a system exception occurred 1599 */ 1600 public static void removeByG_P_M(long groupId, long parentFolderId, 1601 boolean mountPoint) 1602 throws com.liferay.portal.kernel.exception.SystemException { 1603 getPersistence().removeByG_P_M(groupId, parentFolderId, mountPoint); 1604 } 1605 1606 /** 1607 * Removes the document library folder where groupId = ? and parentFolderId = ? and name = ? from the database. 1608 * 1609 * @param groupId the group ID 1610 * @param parentFolderId the parent folder ID 1611 * @param name the name 1612 * @return the document library folder that was removed 1613 * @throws SystemException if a system exception occurred 1614 */ 1615 public static com.liferay.portlet.documentlibrary.model.DLFolder removeByG_P_N( 1616 long groupId, long parentFolderId, java.lang.String name) 1617 throws com.liferay.portal.kernel.exception.SystemException, 1618 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1619 return getPersistence().removeByG_P_N(groupId, parentFolderId, name); 1620 } 1621 1622 /** 1623 * Removes all the document library folders from the database. 1624 * 1625 * @throws SystemException if a system exception occurred 1626 */ 1627 public static void removeAll() 1628 throws com.liferay.portal.kernel.exception.SystemException { 1629 getPersistence().removeAll(); 1630 } 1631 1632 /** 1633 * Returns the number of document library folders where uuid = ?. 1634 * 1635 * @param uuid the uuid 1636 * @return the number of matching document library folders 1637 * @throws SystemException if a system exception occurred 1638 */ 1639 public static int countByUuid(java.lang.String uuid) 1640 throws com.liferay.portal.kernel.exception.SystemException { 1641 return getPersistence().countByUuid(uuid); 1642 } 1643 1644 /** 1645 * Returns the number of document library folders where uuid = ? and groupId = ?. 1646 * 1647 * @param uuid the uuid 1648 * @param groupId the group ID 1649 * @return the number of matching document library folders 1650 * @throws SystemException if a system exception occurred 1651 */ 1652 public static int countByUUID_G(java.lang.String uuid, long groupId) 1653 throws com.liferay.portal.kernel.exception.SystemException { 1654 return getPersistence().countByUUID_G(uuid, groupId); 1655 } 1656 1657 /** 1658 * Returns the number of document library folders where groupId = ?. 1659 * 1660 * @param groupId the group ID 1661 * @return the number of matching document library folders 1662 * @throws SystemException if a system exception occurred 1663 */ 1664 public static int countByGroupId(long groupId) 1665 throws com.liferay.portal.kernel.exception.SystemException { 1666 return getPersistence().countByGroupId(groupId); 1667 } 1668 1669 /** 1670 * Returns the number of document library folders that the user has permission to view where groupId = ?. 1671 * 1672 * @param groupId the group ID 1673 * @return the number of matching document library folders that the user has permission to view 1674 * @throws SystemException if a system exception occurred 1675 */ 1676 public static int filterCountByGroupId(long groupId) 1677 throws com.liferay.portal.kernel.exception.SystemException { 1678 return getPersistence().filterCountByGroupId(groupId); 1679 } 1680 1681 /** 1682 * Returns the number of document library folders where companyId = ?. 1683 * 1684 * @param companyId the company ID 1685 * @return the number of matching document library folders 1686 * @throws SystemException if a system exception occurred 1687 */ 1688 public static int countByCompanyId(long companyId) 1689 throws com.liferay.portal.kernel.exception.SystemException { 1690 return getPersistence().countByCompanyId(companyId); 1691 } 1692 1693 /** 1694 * Returns the number of document library folders where repositoryId = ?. 1695 * 1696 * @param repositoryId the repository ID 1697 * @return the number of matching document library folders 1698 * @throws SystemException if a system exception occurred 1699 */ 1700 public static int countByRepositoryId(long repositoryId) 1701 throws com.liferay.portal.kernel.exception.SystemException { 1702 return getPersistence().countByRepositoryId(repositoryId); 1703 } 1704 1705 /** 1706 * Returns the number of document library folders where groupId = ? and parentFolderId = ?. 1707 * 1708 * @param groupId the group ID 1709 * @param parentFolderId the parent folder ID 1710 * @return the number of matching document library folders 1711 * @throws SystemException if a system exception occurred 1712 */ 1713 public static int countByG_P(long groupId, long parentFolderId) 1714 throws com.liferay.portal.kernel.exception.SystemException { 1715 return getPersistence().countByG_P(groupId, parentFolderId); 1716 } 1717 1718 /** 1719 * Returns the number of document library folders that the user has permission to view where groupId = ? and parentFolderId = ?. 1720 * 1721 * @param groupId the group ID 1722 * @param parentFolderId the parent folder ID 1723 * @return the number of matching document library folders that the user has permission to view 1724 * @throws SystemException if a system exception occurred 1725 */ 1726 public static int filterCountByG_P(long groupId, long parentFolderId) 1727 throws com.liferay.portal.kernel.exception.SystemException { 1728 return getPersistence().filterCountByG_P(groupId, parentFolderId); 1729 } 1730 1731 /** 1732 * Returns the number of document library folders where parentFolderId = ? and name = ?. 1733 * 1734 * @param parentFolderId the parent folder ID 1735 * @param name the name 1736 * @return the number of matching document library folders 1737 * @throws SystemException if a system exception occurred 1738 */ 1739 public static int countByP_N(long parentFolderId, java.lang.String name) 1740 throws com.liferay.portal.kernel.exception.SystemException { 1741 return getPersistence().countByP_N(parentFolderId, name); 1742 } 1743 1744 /** 1745 * Returns the number of document library folders where groupId = ? and parentFolderId = ? and mountPoint = ?. 1746 * 1747 * @param groupId the group ID 1748 * @param parentFolderId the parent folder ID 1749 * @param mountPoint the mount point 1750 * @return the number of matching document library folders 1751 * @throws SystemException if a system exception occurred 1752 */ 1753 public static int countByG_P_M(long groupId, long parentFolderId, 1754 boolean mountPoint) 1755 throws com.liferay.portal.kernel.exception.SystemException { 1756 return getPersistence().countByG_P_M(groupId, parentFolderId, mountPoint); 1757 } 1758 1759 /** 1760 * Returns the number of document library folders that the user has permission to view where groupId = ? and parentFolderId = ? and mountPoint = ?. 1761 * 1762 * @param groupId the group ID 1763 * @param parentFolderId the parent folder ID 1764 * @param mountPoint the mount point 1765 * @return the number of matching document library folders that the user has permission to view 1766 * @throws SystemException if a system exception occurred 1767 */ 1768 public static int filterCountByG_P_M(long groupId, long parentFolderId, 1769 boolean mountPoint) 1770 throws com.liferay.portal.kernel.exception.SystemException { 1771 return getPersistence() 1772 .filterCountByG_P_M(groupId, parentFolderId, mountPoint); 1773 } 1774 1775 /** 1776 * Returns the number of document library folders where groupId = ? and parentFolderId = ? and name = ?. 1777 * 1778 * @param groupId the group ID 1779 * @param parentFolderId the parent folder ID 1780 * @param name the name 1781 * @return the number of matching document library folders 1782 * @throws SystemException if a system exception occurred 1783 */ 1784 public static int countByG_P_N(long groupId, long parentFolderId, 1785 java.lang.String name) 1786 throws com.liferay.portal.kernel.exception.SystemException { 1787 return getPersistence().countByG_P_N(groupId, parentFolderId, name); 1788 } 1789 1790 /** 1791 * Returns the number of document library folders. 1792 * 1793 * @return the number of document library folders 1794 * @throws SystemException if a system exception occurred 1795 */ 1796 public static int countAll() 1797 throws com.liferay.portal.kernel.exception.SystemException { 1798 return getPersistence().countAll(); 1799 } 1800 1801 /** 1802 * Returns all the document library file entry types associated with the document library folder. 1803 * 1804 * @param pk the primary key of the document library folder 1805 * @return the document library file entry types associated with the document library folder 1806 * @throws SystemException if a system exception occurred 1807 */ 1808 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes( 1809 long pk) throws com.liferay.portal.kernel.exception.SystemException { 1810 return getPersistence().getDLFileEntryTypes(pk); 1811 } 1812 1813 /** 1814 * Returns a range of all the document library file entry types associated with the document library folder. 1815 * 1816 * <p> 1817 * 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. 1818 * </p> 1819 * 1820 * @param pk the primary key of the document library folder 1821 * @param start the lower bound of the range of document library folders 1822 * @param end the upper bound of the range of document library folders (not inclusive) 1823 * @return the range of document library file entry types associated with the document library folder 1824 * @throws SystemException if a system exception occurred 1825 */ 1826 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes( 1827 long pk, int start, int end) 1828 throws com.liferay.portal.kernel.exception.SystemException { 1829 return getPersistence().getDLFileEntryTypes(pk, start, end); 1830 } 1831 1832 /** 1833 * Returns an ordered range of all the document library file entry types associated with the document library folder. 1834 * 1835 * <p> 1836 * 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. 1837 * </p> 1838 * 1839 * @param pk the primary key of the document library folder 1840 * @param start the lower bound of the range of document library folders 1841 * @param end the upper bound of the range of document library folders (not inclusive) 1842 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1843 * @return the ordered range of document library file entry types associated with the document library folder 1844 * @throws SystemException if a system exception occurred 1845 */ 1846 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes( 1847 long pk, int start, int end, 1848 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1849 throws com.liferay.portal.kernel.exception.SystemException { 1850 return getPersistence() 1851 .getDLFileEntryTypes(pk, start, end, orderByComparator); 1852 } 1853 1854 /** 1855 * Returns the number of document library file entry types associated with the document library folder. 1856 * 1857 * @param pk the primary key of the document library folder 1858 * @return the number of document library file entry types associated with the document library folder 1859 * @throws SystemException if a system exception occurred 1860 */ 1861 public static int getDLFileEntryTypesSize(long pk) 1862 throws com.liferay.portal.kernel.exception.SystemException { 1863 return getPersistence().getDLFileEntryTypesSize(pk); 1864 } 1865 1866 /** 1867 * Returns <code>true</code> if the document library file entry type is associated with the document library folder. 1868 * 1869 * @param pk the primary key of the document library folder 1870 * @param dlFileEntryTypePK the primary key of the document library file entry type 1871 * @return <code>true</code> if the document library file entry type is associated with the document library folder; <code>false</code> otherwise 1872 * @throws SystemException if a system exception occurred 1873 */ 1874 public static boolean containsDLFileEntryType(long pk, 1875 long dlFileEntryTypePK) 1876 throws com.liferay.portal.kernel.exception.SystemException { 1877 return getPersistence().containsDLFileEntryType(pk, dlFileEntryTypePK); 1878 } 1879 1880 /** 1881 * Returns <code>true</code> if the document library folder has any document library file entry types associated with it. 1882 * 1883 * @param pk the primary key of the document library folder to check for associations with document library file entry types 1884 * @return <code>true</code> if the document library folder has any document library file entry types associated with it; <code>false</code> otherwise 1885 * @throws SystemException if a system exception occurred 1886 */ 1887 public static boolean containsDLFileEntryTypes(long pk) 1888 throws com.liferay.portal.kernel.exception.SystemException { 1889 return getPersistence().containsDLFileEntryTypes(pk); 1890 } 1891 1892 /** 1893 * Adds an association between the document library folder and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1894 * 1895 * @param pk the primary key of the document library folder 1896 * @param dlFileEntryTypePK the primary key of the document library file entry type 1897 * @throws SystemException if a system exception occurred 1898 */ 1899 public static void addDLFileEntryType(long pk, long dlFileEntryTypePK) 1900 throws com.liferay.portal.kernel.exception.SystemException { 1901 getPersistence().addDLFileEntryType(pk, dlFileEntryTypePK); 1902 } 1903 1904 /** 1905 * Adds an association between the document library folder and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1906 * 1907 * @param pk the primary key of the document library folder 1908 * @param dlFileEntryType the document library file entry type 1909 * @throws SystemException if a system exception occurred 1910 */ 1911 public static void addDLFileEntryType(long pk, 1912 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) 1913 throws com.liferay.portal.kernel.exception.SystemException { 1914 getPersistence().addDLFileEntryType(pk, dlFileEntryType); 1915 } 1916 1917 /** 1918 * Adds an association between the document library folder and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1919 * 1920 * @param pk the primary key of the document library folder 1921 * @param dlFileEntryTypePKs the primary keys of the document library file entry types 1922 * @throws SystemException if a system exception occurred 1923 */ 1924 public static void addDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs) 1925 throws com.liferay.portal.kernel.exception.SystemException { 1926 getPersistence().addDLFileEntryTypes(pk, dlFileEntryTypePKs); 1927 } 1928 1929 /** 1930 * Adds an association between the document library folder and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1931 * 1932 * @param pk the primary key of the document library folder 1933 * @param dlFileEntryTypes the document library file entry types 1934 * @throws SystemException if a system exception occurred 1935 */ 1936 public static void addDLFileEntryTypes(long pk, 1937 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) 1938 throws com.liferay.portal.kernel.exception.SystemException { 1939 getPersistence().addDLFileEntryTypes(pk, dlFileEntryTypes); 1940 } 1941 1942 /** 1943 * Clears all associations between the document library folder and its document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1944 * 1945 * @param pk the primary key of the document library folder to clear the associated document library file entry types from 1946 * @throws SystemException if a system exception occurred 1947 */ 1948 public static void clearDLFileEntryTypes(long pk) 1949 throws com.liferay.portal.kernel.exception.SystemException { 1950 getPersistence().clearDLFileEntryTypes(pk); 1951 } 1952 1953 /** 1954 * Removes the association between the document library folder and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1955 * 1956 * @param pk the primary key of the document library folder 1957 * @param dlFileEntryTypePK the primary key of the document library file entry type 1958 * @throws SystemException if a system exception occurred 1959 */ 1960 public static void removeDLFileEntryType(long pk, long dlFileEntryTypePK) 1961 throws com.liferay.portal.kernel.exception.SystemException { 1962 getPersistence().removeDLFileEntryType(pk, dlFileEntryTypePK); 1963 } 1964 1965 /** 1966 * Removes the association between the document library folder and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1967 * 1968 * @param pk the primary key of the document library folder 1969 * @param dlFileEntryType the document library file entry type 1970 * @throws SystemException if a system exception occurred 1971 */ 1972 public static void removeDLFileEntryType(long pk, 1973 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) 1974 throws com.liferay.portal.kernel.exception.SystemException { 1975 getPersistence().removeDLFileEntryType(pk, dlFileEntryType); 1976 } 1977 1978 /** 1979 * Removes the association between the document library folder and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1980 * 1981 * @param pk the primary key of the document library folder 1982 * @param dlFileEntryTypePKs the primary keys of the document library file entry types 1983 * @throws SystemException if a system exception occurred 1984 */ 1985 public static void removeDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs) 1986 throws com.liferay.portal.kernel.exception.SystemException { 1987 getPersistence().removeDLFileEntryTypes(pk, dlFileEntryTypePKs); 1988 } 1989 1990 /** 1991 * Removes the association between the document library folder and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1992 * 1993 * @param pk the primary key of the document library folder 1994 * @param dlFileEntryTypes the document library file entry types 1995 * @throws SystemException if a system exception occurred 1996 */ 1997 public static void removeDLFileEntryTypes(long pk, 1998 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) 1999 throws com.liferay.portal.kernel.exception.SystemException { 2000 getPersistence().removeDLFileEntryTypes(pk, dlFileEntryTypes); 2001 } 2002 2003 /** 2004 * Sets the document library file entry types associated with the document library folder, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2005 * 2006 * @param pk the primary key of the document library folder 2007 * @param dlFileEntryTypePKs the primary keys of the document library file entry types to be associated with the document library folder 2008 * @throws SystemException if a system exception occurred 2009 */ 2010 public static void setDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs) 2011 throws com.liferay.portal.kernel.exception.SystemException { 2012 getPersistence().setDLFileEntryTypes(pk, dlFileEntryTypePKs); 2013 } 2014 2015 /** 2016 * Sets the document library file entry types associated with the document library folder, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2017 * 2018 * @param pk the primary key of the document library folder 2019 * @param dlFileEntryTypes the document library file entry types to be associated with the document library folder 2020 * @throws SystemException if a system exception occurred 2021 */ 2022 public static void setDLFileEntryTypes(long pk, 2023 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) 2024 throws com.liferay.portal.kernel.exception.SystemException { 2025 getPersistence().setDLFileEntryTypes(pk, dlFileEntryTypes); 2026 } 2027 2028 public static DLFolderPersistence getPersistence() { 2029 if (_persistence == null) { 2030 _persistence = (DLFolderPersistence)PortalBeanLocatorUtil.locate(DLFolderPersistence.class.getName()); 2031 2032 ReferenceRegistry.registerReference(DLFolderUtil.class, 2033 "_persistence"); 2034 } 2035 2036 return _persistence; 2037 } 2038 2039 /** 2040 * @deprecated 2041 */ 2042 public void setPersistence(DLFolderPersistence persistence) { 2043 } 2044 2045 private static DLFolderPersistence _persistence; 2046 }