001 /** 002 * Copyright (c) 2000-2010 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.service.ServiceContext; 022 023 import com.liferay.portlet.documentlibrary.model.DLFolder; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the d l 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. 029 * 030 * <p> 031 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 032 * </p> 033 * 034 * <p> 035 * Caching information and settings can be found in <code>portal.properties</code> 036 * </p> 037 * 038 * @author Brian Wing Shun Chan 039 * @see DLFolderPersistence 040 * @see DLFolderPersistenceImpl 041 * @generated 042 */ 043 public class DLFolderUtil { 044 /** 045 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 046 */ 047 public static void clearCache() { 048 getPersistence().clearCache(); 049 } 050 051 /** 052 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 053 */ 054 public static void clearCache(DLFolder dlFolder) { 055 getPersistence().clearCache(dlFolder); 056 } 057 058 /** 059 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 060 */ 061 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 062 throws SystemException { 063 return getPersistence().countWithDynamicQuery(dynamicQuery); 064 } 065 066 /** 067 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 068 */ 069 public static List<DLFolder> findWithDynamicQuery(DynamicQuery dynamicQuery) 070 throws SystemException { 071 return getPersistence().findWithDynamicQuery(dynamicQuery); 072 } 073 074 /** 075 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 076 */ 077 public static List<DLFolder> findWithDynamicQuery( 078 DynamicQuery dynamicQuery, int start, int end) 079 throws SystemException { 080 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 081 } 082 083 /** 084 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 085 */ 086 public static List<DLFolder> findWithDynamicQuery( 087 DynamicQuery dynamicQuery, int start, int end, 088 OrderByComparator orderByComparator) throws SystemException { 089 return getPersistence() 090 .findWithDynamicQuery(dynamicQuery, start, end, 091 orderByComparator); 092 } 093 094 /** 095 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 096 */ 097 public static DLFolder remove(DLFolder dlFolder) throws SystemException { 098 return getPersistence().remove(dlFolder); 099 } 100 101 /** 102 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 103 */ 104 public static DLFolder update(DLFolder dlFolder, boolean merge) 105 throws SystemException { 106 return getPersistence().update(dlFolder, merge); 107 } 108 109 /** 110 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 111 */ 112 public static DLFolder update(DLFolder dlFolder, boolean merge, 113 ServiceContext serviceContext) throws SystemException { 114 return getPersistence().update(dlFolder, merge, serviceContext); 115 } 116 117 /** 118 * Caches the d l folder in the entity cache if it is enabled. 119 * 120 * @param dlFolder the d l folder to cache 121 */ 122 public static void cacheResult( 123 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) { 124 getPersistence().cacheResult(dlFolder); 125 } 126 127 /** 128 * Caches the d l folders in the entity cache if it is enabled. 129 * 130 * @param dlFolders the d l folders to cache 131 */ 132 public static void cacheResult( 133 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders) { 134 getPersistence().cacheResult(dlFolders); 135 } 136 137 /** 138 * Creates a new d l folder with the primary key. Does not add the d l folder to the database. 139 * 140 * @param folderId the primary key for the new d l folder 141 * @return the new d l folder 142 */ 143 public static com.liferay.portlet.documentlibrary.model.DLFolder create( 144 long folderId) { 145 return getPersistence().create(folderId); 146 } 147 148 /** 149 * Removes the d l folder with the primary key from the database. Also notifies the appropriate model listeners. 150 * 151 * @param folderId the primary key of the d l folder to remove 152 * @return the d l folder that was removed 153 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found 154 * @throws SystemException if a system exception occurred 155 */ 156 public static com.liferay.portlet.documentlibrary.model.DLFolder remove( 157 long folderId) 158 throws com.liferay.portal.kernel.exception.SystemException, 159 com.liferay.portlet.documentlibrary.NoSuchFolderException { 160 return getPersistence().remove(folderId); 161 } 162 163 public static com.liferay.portlet.documentlibrary.model.DLFolder updateImpl( 164 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder, 165 boolean merge) 166 throws com.liferay.portal.kernel.exception.SystemException { 167 return getPersistence().updateImpl(dlFolder, merge); 168 } 169 170 /** 171 * Finds the d l folder with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found. 172 * 173 * @param folderId the primary key of the d l folder to find 174 * @return the d l folder 175 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found 176 * @throws SystemException if a system exception occurred 177 */ 178 public static com.liferay.portlet.documentlibrary.model.DLFolder findByPrimaryKey( 179 long folderId) 180 throws com.liferay.portal.kernel.exception.SystemException, 181 com.liferay.portlet.documentlibrary.NoSuchFolderException { 182 return getPersistence().findByPrimaryKey(folderId); 183 } 184 185 /** 186 * Finds the d l folder with the primary key or returns <code>null</code> if it could not be found. 187 * 188 * @param folderId the primary key of the d l folder to find 189 * @return the d l folder, or <code>null</code> if a d l folder with the primary key could not be found 190 * @throws SystemException if a system exception occurred 191 */ 192 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByPrimaryKey( 193 long folderId) 194 throws com.liferay.portal.kernel.exception.SystemException { 195 return getPersistence().fetchByPrimaryKey(folderId); 196 } 197 198 /** 199 * Finds all the d l folders where uuid = ?. 200 * 201 * @param uuid the uuid to search with 202 * @return the matching d l folders 203 * @throws SystemException if a system exception occurred 204 */ 205 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid( 206 java.lang.String uuid) 207 throws com.liferay.portal.kernel.exception.SystemException { 208 return getPersistence().findByUuid(uuid); 209 } 210 211 /** 212 * Finds a range of all the d l folders where uuid = ?. 213 * 214 * <p> 215 * 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. 216 * </p> 217 * 218 * @param uuid the uuid to search with 219 * @param start the lower bound of the range of d l folders to return 220 * @param end the upper bound of the range of d l folders to return (not inclusive) 221 * @return the range of matching d l folders 222 * @throws SystemException if a system exception occurred 223 */ 224 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid( 225 java.lang.String uuid, int start, int end) 226 throws com.liferay.portal.kernel.exception.SystemException { 227 return getPersistence().findByUuid(uuid, start, end); 228 } 229 230 /** 231 * Finds an ordered range of all the d l folders where uuid = ?. 232 * 233 * <p> 234 * 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. 235 * </p> 236 * 237 * @param uuid the uuid to search with 238 * @param start the lower bound of the range of d l folders to return 239 * @param end the upper bound of the range of d l folders to return (not inclusive) 240 * @param orderByComparator the comparator to order the results by 241 * @return the ordered range of matching d l folders 242 * @throws SystemException if a system exception occurred 243 */ 244 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid( 245 java.lang.String uuid, int start, int end, 246 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 247 throws com.liferay.portal.kernel.exception.SystemException { 248 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 249 } 250 251 /** 252 * Finds the first d l folder in the ordered set where uuid = ?. 253 * 254 * <p> 255 * 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. 256 * </p> 257 * 258 * @param uuid the uuid to search with 259 * @param orderByComparator the comparator to order the set by 260 * @return the first matching d l folder 261 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found 262 * @throws SystemException if a system exception occurred 263 */ 264 public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_First( 265 java.lang.String uuid, 266 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 267 throws com.liferay.portal.kernel.exception.SystemException, 268 com.liferay.portlet.documentlibrary.NoSuchFolderException { 269 return getPersistence().findByUuid_First(uuid, orderByComparator); 270 } 271 272 /** 273 * Finds the last d l folder in the ordered set where uuid = ?. 274 * 275 * <p> 276 * 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. 277 * </p> 278 * 279 * @param uuid the uuid to search with 280 * @param orderByComparator the comparator to order the set by 281 * @return the last matching d l folder 282 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found 283 * @throws SystemException if a system exception occurred 284 */ 285 public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_Last( 286 java.lang.String uuid, 287 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 288 throws com.liferay.portal.kernel.exception.SystemException, 289 com.liferay.portlet.documentlibrary.NoSuchFolderException { 290 return getPersistence().findByUuid_Last(uuid, orderByComparator); 291 } 292 293 /** 294 * Finds the d l folders before and after the current d l folder in the ordered set where uuid = ?. 295 * 296 * <p> 297 * 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. 298 * </p> 299 * 300 * @param folderId the primary key of the current d l folder 301 * @param uuid the uuid to search with 302 * @param orderByComparator the comparator to order the set by 303 * @return the previous, current, and next d l folder 304 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found 305 * @throws SystemException if a system exception occurred 306 */ 307 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByUuid_PrevAndNext( 308 long folderId, java.lang.String uuid, 309 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 310 throws com.liferay.portal.kernel.exception.SystemException, 311 com.liferay.portlet.documentlibrary.NoSuchFolderException { 312 return getPersistence() 313 .findByUuid_PrevAndNext(folderId, uuid, orderByComparator); 314 } 315 316 /** 317 * Finds the d l folder where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found. 318 * 319 * @param uuid the uuid to search with 320 * @param groupId the group id to search with 321 * @return the matching d l folder 322 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found 323 * @throws SystemException if a system exception occurred 324 */ 325 public static com.liferay.portlet.documentlibrary.model.DLFolder findByUUID_G( 326 java.lang.String uuid, long groupId) 327 throws com.liferay.portal.kernel.exception.SystemException, 328 com.liferay.portlet.documentlibrary.NoSuchFolderException { 329 return getPersistence().findByUUID_G(uuid, groupId); 330 } 331 332 /** 333 * Finds the d l folder where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 334 * 335 * @param uuid the uuid to search with 336 * @param groupId the group id to search with 337 * @return the matching d l folder, or <code>null</code> if a matching d l folder could not be found 338 * @throws SystemException if a system exception occurred 339 */ 340 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G( 341 java.lang.String uuid, long groupId) 342 throws com.liferay.portal.kernel.exception.SystemException { 343 return getPersistence().fetchByUUID_G(uuid, groupId); 344 } 345 346 /** 347 * Finds the d l folder where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 348 * 349 * @param uuid the uuid to search with 350 * @param groupId the group id to search with 351 * @return the matching d l folder, or <code>null</code> if a matching d l 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, boolean retrieveFromCache) 356 throws com.liferay.portal.kernel.exception.SystemException { 357 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 358 } 359 360 /** 361 * Finds all the d l folders where groupId = ?. 362 * 363 * @param groupId the group id to search with 364 * @return the matching d l folders 365 * @throws SystemException if a system exception occurred 366 */ 367 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId( 368 long groupId) 369 throws com.liferay.portal.kernel.exception.SystemException { 370 return getPersistence().findByGroupId(groupId); 371 } 372 373 /** 374 * Finds a range of all the d l folders where groupId = ?. 375 * 376 * <p> 377 * 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. 378 * </p> 379 * 380 * @param groupId the group id to search with 381 * @param start the lower bound of the range of d l folders to return 382 * @param end the upper bound of the range of d l folders to return (not inclusive) 383 * @return the range of matching d l folders 384 * @throws SystemException if a system exception occurred 385 */ 386 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId( 387 long groupId, int start, int end) 388 throws com.liferay.portal.kernel.exception.SystemException { 389 return getPersistence().findByGroupId(groupId, start, end); 390 } 391 392 /** 393 * Finds an ordered range of all the d l folders where groupId = ?. 394 * 395 * <p> 396 * 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. 397 * </p> 398 * 399 * @param groupId the group id to search with 400 * @param start the lower bound of the range of d l folders to return 401 * @param end the upper bound of the range of d l folders to return (not inclusive) 402 * @param orderByComparator the comparator to order the results by 403 * @return the ordered range of matching d l folders 404 * @throws SystemException if a system exception occurred 405 */ 406 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId( 407 long groupId, int start, int end, 408 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 409 throws com.liferay.portal.kernel.exception.SystemException { 410 return getPersistence() 411 .findByGroupId(groupId, start, end, orderByComparator); 412 } 413 414 /** 415 * Finds the first d l folder in the ordered set where groupId = ?. 416 * 417 * <p> 418 * 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. 419 * </p> 420 * 421 * @param groupId the group id to search with 422 * @param orderByComparator the comparator to order the set by 423 * @return the first matching d l folder 424 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found 425 * @throws SystemException if a system exception occurred 426 */ 427 public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_First( 428 long groupId, 429 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 430 throws com.liferay.portal.kernel.exception.SystemException, 431 com.liferay.portlet.documentlibrary.NoSuchFolderException { 432 return getPersistence().findByGroupId_First(groupId, orderByComparator); 433 } 434 435 /** 436 * Finds the last d l folder in the ordered set where groupId = ?. 437 * 438 * <p> 439 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 440 * </p> 441 * 442 * @param groupId the group id to search with 443 * @param orderByComparator the comparator to order the set by 444 * @return the last matching d l folder 445 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found 446 * @throws SystemException if a system exception occurred 447 */ 448 public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last( 449 long groupId, 450 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 451 throws com.liferay.portal.kernel.exception.SystemException, 452 com.liferay.portlet.documentlibrary.NoSuchFolderException { 453 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 454 } 455 456 /** 457 * Finds the d l folders before and after the current d l folder in the ordered set where groupId = ?. 458 * 459 * <p> 460 * 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. 461 * </p> 462 * 463 * @param folderId the primary key of the current d l folder 464 * @param groupId the group id to search with 465 * @param orderByComparator the comparator to order the set by 466 * @return the previous, current, and next d l folder 467 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found 468 * @throws SystemException if a system exception occurred 469 */ 470 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByGroupId_PrevAndNext( 471 long folderId, 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() 476 .findByGroupId_PrevAndNext(folderId, groupId, 477 orderByComparator); 478 } 479 480 /** 481 * Filters by the user's permissions and finds all the d l folders where groupId = ?. 482 * 483 * @param groupId the group id to search with 484 * @return the matching d l folders that the user has permission to view 485 * @throws SystemException if a system exception occurred 486 */ 487 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId( 488 long groupId) 489 throws com.liferay.portal.kernel.exception.SystemException { 490 return getPersistence().filterFindByGroupId(groupId); 491 } 492 493 /** 494 * Filters by the user's permissions and finds a range of all the d l folders where groupId = ?. 495 * 496 * <p> 497 * 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. 498 * </p> 499 * 500 * @param groupId the group id to search with 501 * @param start the lower bound of the range of d l folders to return 502 * @param end the upper bound of the range of d l folders to return (not inclusive) 503 * @return the range of matching d l folders that the user has permission to view 504 * @throws SystemException if a system exception occurred 505 */ 506 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId( 507 long groupId, int start, int end) 508 throws com.liferay.portal.kernel.exception.SystemException { 509 return getPersistence().filterFindByGroupId(groupId, start, end); 510 } 511 512 /** 513 * Filters by the user's permissions and finds an ordered range of all the d l folders where groupId = ?. 514 * 515 * <p> 516 * 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. 517 * </p> 518 * 519 * @param groupId the group id to search with 520 * @param start the lower bound of the range of d l folders to return 521 * @param end the upper bound of the range of d l folders to return (not inclusive) 522 * @param orderByComparator the comparator to order the results by 523 * @return the ordered range of matching d l folders that the user has permission to view 524 * @throws SystemException if a system exception occurred 525 */ 526 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId( 527 long groupId, int start, int end, 528 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 529 throws com.liferay.portal.kernel.exception.SystemException { 530 return getPersistence() 531 .filterFindByGroupId(groupId, start, end, orderByComparator); 532 } 533 534 /** 535 * Finds all the d l folders where companyId = ?. 536 * 537 * @param companyId the company id to search with 538 * @return the matching d l folders 539 * @throws SystemException if a system exception occurred 540 */ 541 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId( 542 long companyId) 543 throws com.liferay.portal.kernel.exception.SystemException { 544 return getPersistence().findByCompanyId(companyId); 545 } 546 547 /** 548 * Finds a range of all the d l folders where companyId = ?. 549 * 550 * <p> 551 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 552 * </p> 553 * 554 * @param companyId the company id to search with 555 * @param start the lower bound of the range of d l folders to return 556 * @param end the upper bound of the range of d l folders to return (not inclusive) 557 * @return the range of matching d l folders 558 * @throws SystemException if a system exception occurred 559 */ 560 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId( 561 long companyId, int start, int end) 562 throws com.liferay.portal.kernel.exception.SystemException { 563 return getPersistence().findByCompanyId(companyId, start, end); 564 } 565 566 /** 567 * Finds an ordered range of all the d l folders where companyId = ?. 568 * 569 * <p> 570 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 571 * </p> 572 * 573 * @param companyId the company id to search with 574 * @param start the lower bound of the range of d l folders to return 575 * @param end the upper bound of the range of d l folders to return (not inclusive) 576 * @param orderByComparator the comparator to order the results by 577 * @return the ordered range of matching d l folders 578 * @throws SystemException if a system exception occurred 579 */ 580 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId( 581 long companyId, int start, int end, 582 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 583 throws com.liferay.portal.kernel.exception.SystemException { 584 return getPersistence() 585 .findByCompanyId(companyId, start, end, orderByComparator); 586 } 587 588 /** 589 * Finds the first d l folder in the ordered set where companyId = ?. 590 * 591 * <p> 592 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 593 * </p> 594 * 595 * @param companyId the company id to search with 596 * @param orderByComparator the comparator to order the set by 597 * @return the first matching d l folder 598 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found 599 * @throws SystemException if a system exception occurred 600 */ 601 public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_First( 602 long companyId, 603 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 604 throws com.liferay.portal.kernel.exception.SystemException, 605 com.liferay.portlet.documentlibrary.NoSuchFolderException { 606 return getPersistence() 607 .findByCompanyId_First(companyId, orderByComparator); 608 } 609 610 /** 611 * Finds the last d l folder in the ordered set where companyId = ?. 612 * 613 * <p> 614 * 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. 615 * </p> 616 * 617 * @param companyId the company id to search with 618 * @param orderByComparator the comparator to order the set by 619 * @return the last matching d l folder 620 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found 621 * @throws SystemException if a system exception occurred 622 */ 623 public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last( 624 long companyId, 625 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 626 throws com.liferay.portal.kernel.exception.SystemException, 627 com.liferay.portlet.documentlibrary.NoSuchFolderException { 628 return getPersistence() 629 .findByCompanyId_Last(companyId, orderByComparator); 630 } 631 632 /** 633 * Finds the d l folders before and after the current d l folder in the ordered set where companyId = ?. 634 * 635 * <p> 636 * 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. 637 * </p> 638 * 639 * @param folderId the primary key of the current d l folder 640 * @param companyId the company id to search with 641 * @param orderByComparator the comparator to order the set by 642 * @return the previous, current, and next d l folder 643 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found 644 * @throws SystemException if a system exception occurred 645 */ 646 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByCompanyId_PrevAndNext( 647 long folderId, long companyId, 648 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 649 throws com.liferay.portal.kernel.exception.SystemException, 650 com.liferay.portlet.documentlibrary.NoSuchFolderException { 651 return getPersistence() 652 .findByCompanyId_PrevAndNext(folderId, companyId, 653 orderByComparator); 654 } 655 656 /** 657 * Finds all the d l folders where groupId = ? and parentFolderId = ?. 658 * 659 * @param groupId the group id to search with 660 * @param parentFolderId the parent folder id to search with 661 * @return the matching d l folders 662 * @throws SystemException if a system exception occurred 663 */ 664 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P( 665 long groupId, long parentFolderId) 666 throws com.liferay.portal.kernel.exception.SystemException { 667 return getPersistence().findByG_P(groupId, parentFolderId); 668 } 669 670 /** 671 * Finds a range of all the d l folders where groupId = ? and parentFolderId = ?. 672 * 673 * <p> 674 * 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. 675 * </p> 676 * 677 * @param groupId the group id to search with 678 * @param parentFolderId the parent folder id to search with 679 * @param start the lower bound of the range of d l folders to return 680 * @param end the upper bound of the range of d l folders to return (not inclusive) 681 * @return the range of matching d l folders 682 * @throws SystemException if a system exception occurred 683 */ 684 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P( 685 long groupId, long parentFolderId, int start, int end) 686 throws com.liferay.portal.kernel.exception.SystemException { 687 return getPersistence().findByG_P(groupId, parentFolderId, start, end); 688 } 689 690 /** 691 * Finds an ordered range of all the d l folders where groupId = ? and parentFolderId = ?. 692 * 693 * <p> 694 * 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. 695 * </p> 696 * 697 * @param groupId the group id to search with 698 * @param parentFolderId the parent folder id to search with 699 * @param start the lower bound of the range of d l folders to return 700 * @param end the upper bound of the range of d l folders to return (not inclusive) 701 * @param orderByComparator the comparator to order the results by 702 * @return the ordered range of matching d l folders 703 * @throws SystemException if a system exception occurred 704 */ 705 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P( 706 long groupId, long parentFolderId, int start, int end, 707 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 708 throws com.liferay.portal.kernel.exception.SystemException { 709 return getPersistence() 710 .findByG_P(groupId, parentFolderId, start, end, 711 orderByComparator); 712 } 713 714 /** 715 * Finds the first d l folder in the ordered set where groupId = ? and parentFolderId = ?. 716 * 717 * <p> 718 * 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. 719 * </p> 720 * 721 * @param groupId the group id to search with 722 * @param parentFolderId the parent folder id to search with 723 * @param orderByComparator the comparator to order the set by 724 * @return the first matching d l folder 725 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found 726 * @throws SystemException if a system exception occurred 727 */ 728 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First( 729 long groupId, long parentFolderId, 730 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 731 throws com.liferay.portal.kernel.exception.SystemException, 732 com.liferay.portlet.documentlibrary.NoSuchFolderException { 733 return getPersistence() 734 .findByG_P_First(groupId, parentFolderId, orderByComparator); 735 } 736 737 /** 738 * Finds the last d l folder in the ordered set where groupId = ? and parentFolderId = ?. 739 * 740 * <p> 741 * 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. 742 * </p> 743 * 744 * @param groupId the group id to search with 745 * @param parentFolderId the parent folder id to search with 746 * @param orderByComparator the comparator to order the set by 747 * @return the last matching d l folder 748 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found 749 * @throws SystemException if a system exception occurred 750 */ 751 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last( 752 long groupId, long parentFolderId, 753 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 754 throws com.liferay.portal.kernel.exception.SystemException, 755 com.liferay.portlet.documentlibrary.NoSuchFolderException { 756 return getPersistence() 757 .findByG_P_Last(groupId, parentFolderId, orderByComparator); 758 } 759 760 /** 761 * Finds the d l folders before and after the current d l folder in the ordered set where groupId = ? and parentFolderId = ?. 762 * 763 * <p> 764 * 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. 765 * </p> 766 * 767 * @param folderId the primary key of the current d l folder 768 * @param groupId the group id to search with 769 * @param parentFolderId the parent folder id to search with 770 * @param orderByComparator the comparator to order the set by 771 * @return the previous, current, and next d l folder 772 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found 773 * @throws SystemException if a system exception occurred 774 */ 775 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext( 776 long folderId, long groupId, long parentFolderId, 777 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 778 throws com.liferay.portal.kernel.exception.SystemException, 779 com.liferay.portlet.documentlibrary.NoSuchFolderException { 780 return getPersistence() 781 .findByG_P_PrevAndNext(folderId, groupId, parentFolderId, 782 orderByComparator); 783 } 784 785 /** 786 * Filters by the user's permissions and finds all the d l folders where groupId = ? and parentFolderId = ?. 787 * 788 * @param groupId the group id to search with 789 * @param parentFolderId the parent folder id to search with 790 * @return the matching d l folders that the user has permission to view 791 * @throws SystemException if a system exception occurred 792 */ 793 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P( 794 long groupId, long parentFolderId) 795 throws com.liferay.portal.kernel.exception.SystemException { 796 return getPersistence().filterFindByG_P(groupId, parentFolderId); 797 } 798 799 /** 800 * Filters by the user's permissions and finds a range of all the d l folders where groupId = ? and parentFolderId = ?. 801 * 802 * <p> 803 * 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. 804 * </p> 805 * 806 * @param groupId the group id to search with 807 * @param parentFolderId the parent folder id to search with 808 * @param start the lower bound of the range of d l folders to return 809 * @param end the upper bound of the range of d l folders to return (not inclusive) 810 * @return the range of matching d l folders that the user has permission to view 811 * @throws SystemException if a system exception occurred 812 */ 813 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P( 814 long groupId, long parentFolderId, int start, int end) 815 throws com.liferay.portal.kernel.exception.SystemException { 816 return getPersistence() 817 .filterFindByG_P(groupId, parentFolderId, start, end); 818 } 819 820 /** 821 * Filters by the user's permissions and finds an ordered range of all the d l folders where groupId = ? and parentFolderId = ?. 822 * 823 * <p> 824 * 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. 825 * </p> 826 * 827 * @param groupId the group id to search with 828 * @param parentFolderId the parent folder id to search with 829 * @param start the lower bound of the range of d l folders to return 830 * @param end the upper bound of the range of d l folders to return (not inclusive) 831 * @param orderByComparator the comparator to order the results by 832 * @return the ordered range of matching d l folders that the user has permission to view 833 * @throws SystemException if a system exception occurred 834 */ 835 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P( 836 long groupId, long parentFolderId, int start, int end, 837 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 838 throws com.liferay.portal.kernel.exception.SystemException { 839 return getPersistence() 840 .filterFindByG_P(groupId, parentFolderId, start, end, 841 orderByComparator); 842 } 843 844 /** 845 * Finds all the d l folders where parentFolderId = ? and name = ?. 846 * 847 * @param parentFolderId the parent folder id to search with 848 * @param name the name to search with 849 * @return the matching d l folders 850 * @throws SystemException if a system exception occurred 851 */ 852 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N( 853 long parentFolderId, java.lang.String name) 854 throws com.liferay.portal.kernel.exception.SystemException { 855 return getPersistence().findByP_N(parentFolderId, name); 856 } 857 858 /** 859 * Finds a range of all the d l folders where parentFolderId = ? and name = ?. 860 * 861 * <p> 862 * 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. 863 * </p> 864 * 865 * @param parentFolderId the parent folder id to search with 866 * @param name the name to search with 867 * @param start the lower bound of the range of d l folders to return 868 * @param end the upper bound of the range of d l folders to return (not inclusive) 869 * @return the range of matching d l folders 870 * @throws SystemException if a system exception occurred 871 */ 872 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N( 873 long parentFolderId, java.lang.String name, int start, int end) 874 throws com.liferay.portal.kernel.exception.SystemException { 875 return getPersistence().findByP_N(parentFolderId, name, start, end); 876 } 877 878 /** 879 * Finds an ordered range of all the d l folders where parentFolderId = ? and name = ?. 880 * 881 * <p> 882 * 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. 883 * </p> 884 * 885 * @param parentFolderId the parent folder id to search with 886 * @param name the name to search with 887 * @param start the lower bound of the range of d l folders to return 888 * @param end the upper bound of the range of d l folders to return (not inclusive) 889 * @param orderByComparator the comparator to order the results by 890 * @return the ordered range of matching d l folders 891 * @throws SystemException if a system exception occurred 892 */ 893 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N( 894 long parentFolderId, java.lang.String name, int start, int end, 895 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 896 throws com.liferay.portal.kernel.exception.SystemException { 897 return getPersistence() 898 .findByP_N(parentFolderId, name, start, end, 899 orderByComparator); 900 } 901 902 /** 903 * Finds the first d l folder in the ordered set where parentFolderId = ? and name = ?. 904 * 905 * <p> 906 * 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. 907 * </p> 908 * 909 * @param parentFolderId the parent folder id to search with 910 * @param name the name to search with 911 * @param orderByComparator the comparator to order the set by 912 * @return the first matching d l folder 913 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found 914 * @throws SystemException if a system exception occurred 915 */ 916 public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First( 917 long parentFolderId, java.lang.String name, 918 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 919 throws com.liferay.portal.kernel.exception.SystemException, 920 com.liferay.portlet.documentlibrary.NoSuchFolderException { 921 return getPersistence() 922 .findByP_N_First(parentFolderId, name, orderByComparator); 923 } 924 925 /** 926 * Finds the last d l folder in the ordered set where parentFolderId = ? and name = ?. 927 * 928 * <p> 929 * 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. 930 * </p> 931 * 932 * @param parentFolderId the parent folder id to search with 933 * @param name the name to search with 934 * @param orderByComparator the comparator to order the set by 935 * @return the last matching d l folder 936 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found 937 * @throws SystemException if a system exception occurred 938 */ 939 public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last( 940 long parentFolderId, java.lang.String name, 941 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 942 throws com.liferay.portal.kernel.exception.SystemException, 943 com.liferay.portlet.documentlibrary.NoSuchFolderException { 944 return getPersistence() 945 .findByP_N_Last(parentFolderId, name, orderByComparator); 946 } 947 948 /** 949 * Finds the d l folders before and after the current d l folder in the ordered set where parentFolderId = ? and name = ?. 950 * 951 * <p> 952 * 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. 953 * </p> 954 * 955 * @param folderId the primary key of the current d l folder 956 * @param parentFolderId the parent folder id to search with 957 * @param name the name to search with 958 * @param orderByComparator the comparator to order the set by 959 * @return the previous, current, and next d l folder 960 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found 961 * @throws SystemException if a system exception occurred 962 */ 963 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext( 964 long folderId, long parentFolderId, java.lang.String name, 965 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 966 throws com.liferay.portal.kernel.exception.SystemException, 967 com.liferay.portlet.documentlibrary.NoSuchFolderException { 968 return getPersistence() 969 .findByP_N_PrevAndNext(folderId, parentFolderId, name, 970 orderByComparator); 971 } 972 973 /** 974 * Finds the d l folder where groupId = ? and parentFolderId = ? and name = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found. 975 * 976 * @param groupId the group id to search with 977 * @param parentFolderId the parent folder id to search with 978 * @param name the name to search with 979 * @return the matching d l folder 980 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found 981 * @throws SystemException if a system exception occurred 982 */ 983 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N( 984 long groupId, long parentFolderId, java.lang.String name) 985 throws com.liferay.portal.kernel.exception.SystemException, 986 com.liferay.portlet.documentlibrary.NoSuchFolderException { 987 return getPersistence().findByG_P_N(groupId, parentFolderId, name); 988 } 989 990 /** 991 * Finds the d l folder where groupId = ? and parentFolderId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 992 * 993 * @param groupId the group id to search with 994 * @param parentFolderId the parent folder id to search with 995 * @param name the name to search with 996 * @return the matching d l folder, or <code>null</code> if a matching d l folder could not be found 997 * @throws SystemException if a system exception occurred 998 */ 999 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N( 1000 long groupId, long parentFolderId, java.lang.String name) 1001 throws com.liferay.portal.kernel.exception.SystemException { 1002 return getPersistence().fetchByG_P_N(groupId, parentFolderId, name); 1003 } 1004 1005 /** 1006 * Finds the d l folder where groupId = ? and parentFolderId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1007 * 1008 * @param groupId the group id to search with 1009 * @param parentFolderId the parent folder id to search with 1010 * @param name the name to search with 1011 * @return the matching d l folder, or <code>null</code> if a matching d l folder could not be found 1012 * @throws SystemException if a system exception occurred 1013 */ 1014 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N( 1015 long groupId, long parentFolderId, java.lang.String name, 1016 boolean retrieveFromCache) 1017 throws com.liferay.portal.kernel.exception.SystemException { 1018 return getPersistence() 1019 .fetchByG_P_N(groupId, parentFolderId, name, 1020 retrieveFromCache); 1021 } 1022 1023 /** 1024 * Finds all the d l folders. 1025 * 1026 * @return the d l folders 1027 * @throws SystemException if a system exception occurred 1028 */ 1029 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll() 1030 throws com.liferay.portal.kernel.exception.SystemException { 1031 return getPersistence().findAll(); 1032 } 1033 1034 /** 1035 * Finds a range of all the d l folders. 1036 * 1037 * <p> 1038 * 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. 1039 * </p> 1040 * 1041 * @param start the lower bound of the range of d l folders to return 1042 * @param end the upper bound of the range of d l folders to return (not inclusive) 1043 * @return the range of d l folders 1044 * @throws SystemException if a system exception occurred 1045 */ 1046 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll( 1047 int start, int end) 1048 throws com.liferay.portal.kernel.exception.SystemException { 1049 return getPersistence().findAll(start, end); 1050 } 1051 1052 /** 1053 * Finds an ordered range of all the d l folders. 1054 * 1055 * <p> 1056 * 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. 1057 * </p> 1058 * 1059 * @param start the lower bound of the range of d l folders to return 1060 * @param end the upper bound of the range of d l folders to return (not inclusive) 1061 * @param orderByComparator the comparator to order the results by 1062 * @return the ordered range of d l folders 1063 * @throws SystemException if a system exception occurred 1064 */ 1065 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll( 1066 int start, int end, 1067 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1068 throws com.liferay.portal.kernel.exception.SystemException { 1069 return getPersistence().findAll(start, end, orderByComparator); 1070 } 1071 1072 /** 1073 * Removes all the d l folders where uuid = ? from the database. 1074 * 1075 * @param uuid the uuid to search with 1076 * @throws SystemException if a system exception occurred 1077 */ 1078 public static void removeByUuid(java.lang.String uuid) 1079 throws com.liferay.portal.kernel.exception.SystemException { 1080 getPersistence().removeByUuid(uuid); 1081 } 1082 1083 /** 1084 * Removes the d l folder where uuid = ? and groupId = ? from the database. 1085 * 1086 * @param uuid the uuid to search with 1087 * @param groupId the group id to search with 1088 * @throws SystemException if a system exception occurred 1089 */ 1090 public static void removeByUUID_G(java.lang.String uuid, long groupId) 1091 throws com.liferay.portal.kernel.exception.SystemException, 1092 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1093 getPersistence().removeByUUID_G(uuid, groupId); 1094 } 1095 1096 /** 1097 * Removes all the d l folders where groupId = ? from the database. 1098 * 1099 * @param groupId the group id to search with 1100 * @throws SystemException if a system exception occurred 1101 */ 1102 public static void removeByGroupId(long groupId) 1103 throws com.liferay.portal.kernel.exception.SystemException { 1104 getPersistence().removeByGroupId(groupId); 1105 } 1106 1107 /** 1108 * Removes all the d l folders where companyId = ? from the database. 1109 * 1110 * @param companyId the company id to search with 1111 * @throws SystemException if a system exception occurred 1112 */ 1113 public static void removeByCompanyId(long companyId) 1114 throws com.liferay.portal.kernel.exception.SystemException { 1115 getPersistence().removeByCompanyId(companyId); 1116 } 1117 1118 /** 1119 * Removes all the d l folders where groupId = ? and parentFolderId = ? from the database. 1120 * 1121 * @param groupId the group id to search with 1122 * @param parentFolderId the parent folder id to search with 1123 * @throws SystemException if a system exception occurred 1124 */ 1125 public static void removeByG_P(long groupId, long parentFolderId) 1126 throws com.liferay.portal.kernel.exception.SystemException { 1127 getPersistence().removeByG_P(groupId, parentFolderId); 1128 } 1129 1130 /** 1131 * Removes all the d l folders where parentFolderId = ? and name = ? from the database. 1132 * 1133 * @param parentFolderId the parent folder id to search with 1134 * @param name the name to search with 1135 * @throws SystemException if a system exception occurred 1136 */ 1137 public static void removeByP_N(long parentFolderId, java.lang.String name) 1138 throws com.liferay.portal.kernel.exception.SystemException { 1139 getPersistence().removeByP_N(parentFolderId, name); 1140 } 1141 1142 /** 1143 * Removes the d l folder where groupId = ? and parentFolderId = ? and name = ? from the database. 1144 * 1145 * @param groupId the group id to search with 1146 * @param parentFolderId the parent folder id to search with 1147 * @param name the name to search with 1148 * @throws SystemException if a system exception occurred 1149 */ 1150 public static void removeByG_P_N(long groupId, long parentFolderId, 1151 java.lang.String name) 1152 throws com.liferay.portal.kernel.exception.SystemException, 1153 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1154 getPersistence().removeByG_P_N(groupId, parentFolderId, name); 1155 } 1156 1157 /** 1158 * Removes all the d l folders from the database. 1159 * 1160 * @throws SystemException if a system exception occurred 1161 */ 1162 public static void removeAll() 1163 throws com.liferay.portal.kernel.exception.SystemException { 1164 getPersistence().removeAll(); 1165 } 1166 1167 /** 1168 * Counts all the d l folders where uuid = ?. 1169 * 1170 * @param uuid the uuid to search with 1171 * @return the number of matching d l folders 1172 * @throws SystemException if a system exception occurred 1173 */ 1174 public static int countByUuid(java.lang.String uuid) 1175 throws com.liferay.portal.kernel.exception.SystemException { 1176 return getPersistence().countByUuid(uuid); 1177 } 1178 1179 /** 1180 * Counts all the d l folders where uuid = ? and groupId = ?. 1181 * 1182 * @param uuid the uuid to search with 1183 * @param groupId the group id to search with 1184 * @return the number of matching d l folders 1185 * @throws SystemException if a system exception occurred 1186 */ 1187 public static int countByUUID_G(java.lang.String uuid, long groupId) 1188 throws com.liferay.portal.kernel.exception.SystemException { 1189 return getPersistence().countByUUID_G(uuid, groupId); 1190 } 1191 1192 /** 1193 * Counts all the d l folders where groupId = ?. 1194 * 1195 * @param groupId the group id to search with 1196 * @return the number of matching d l folders 1197 * @throws SystemException if a system exception occurred 1198 */ 1199 public static int countByGroupId(long groupId) 1200 throws com.liferay.portal.kernel.exception.SystemException { 1201 return getPersistence().countByGroupId(groupId); 1202 } 1203 1204 /** 1205 * Filters by the user's permissions and counts all the d l folders where groupId = ?. 1206 * 1207 * @param groupId the group id to search with 1208 * @return the number of matching d l folders that the user has permission to view 1209 * @throws SystemException if a system exception occurred 1210 */ 1211 public static int filterCountByGroupId(long groupId) 1212 throws com.liferay.portal.kernel.exception.SystemException { 1213 return getPersistence().filterCountByGroupId(groupId); 1214 } 1215 1216 /** 1217 * Counts all the d l folders where companyId = ?. 1218 * 1219 * @param companyId the company id to search with 1220 * @return the number of matching d l folders 1221 * @throws SystemException if a system exception occurred 1222 */ 1223 public static int countByCompanyId(long companyId) 1224 throws com.liferay.portal.kernel.exception.SystemException { 1225 return getPersistence().countByCompanyId(companyId); 1226 } 1227 1228 /** 1229 * Counts all the d l folders where groupId = ? and parentFolderId = ?. 1230 * 1231 * @param groupId the group id to search with 1232 * @param parentFolderId the parent folder id to search with 1233 * @return the number of matching d l folders 1234 * @throws SystemException if a system exception occurred 1235 */ 1236 public static int countByG_P(long groupId, long parentFolderId) 1237 throws com.liferay.portal.kernel.exception.SystemException { 1238 return getPersistence().countByG_P(groupId, parentFolderId); 1239 } 1240 1241 /** 1242 * Filters by the user's permissions and counts all the d l folders where groupId = ? and parentFolderId = ?. 1243 * 1244 * @param groupId the group id to search with 1245 * @param parentFolderId the parent folder id to search with 1246 * @return the number of matching d l folders that the user has permission to view 1247 * @throws SystemException if a system exception occurred 1248 */ 1249 public static int filterCountByG_P(long groupId, long parentFolderId) 1250 throws com.liferay.portal.kernel.exception.SystemException { 1251 return getPersistence().filterCountByG_P(groupId, parentFolderId); 1252 } 1253 1254 /** 1255 * Counts all the d l folders where parentFolderId = ? and name = ?. 1256 * 1257 * @param parentFolderId the parent folder id to search with 1258 * @param name the name to search with 1259 * @return the number of matching d l folders 1260 * @throws SystemException if a system exception occurred 1261 */ 1262 public static int countByP_N(long parentFolderId, java.lang.String name) 1263 throws com.liferay.portal.kernel.exception.SystemException { 1264 return getPersistence().countByP_N(parentFolderId, name); 1265 } 1266 1267 /** 1268 * Counts all the d l folders where groupId = ? and parentFolderId = ? and name = ?. 1269 * 1270 * @param groupId the group id to search with 1271 * @param parentFolderId the parent folder id to search with 1272 * @param name the name to search with 1273 * @return the number of matching d l folders 1274 * @throws SystemException if a system exception occurred 1275 */ 1276 public static int countByG_P_N(long groupId, long parentFolderId, 1277 java.lang.String name) 1278 throws com.liferay.portal.kernel.exception.SystemException { 1279 return getPersistence().countByG_P_N(groupId, parentFolderId, name); 1280 } 1281 1282 /** 1283 * Filters by the user's permissions and counts all the d l folders where groupId = ? and parentFolderId = ? and name = ?. 1284 * 1285 * @param groupId the group id to search with 1286 * @param parentFolderId the parent folder id to search with 1287 * @param name the name to search with 1288 * @return the number of matching d l folders that the user has permission to view 1289 * @throws SystemException if a system exception occurred 1290 */ 1291 public static int filterCountByG_P_N(long groupId, long parentFolderId, 1292 java.lang.String name) 1293 throws com.liferay.portal.kernel.exception.SystemException { 1294 return getPersistence().filterCountByG_P_N(groupId, parentFolderId, name); 1295 } 1296 1297 /** 1298 * Counts all the d l folders. 1299 * 1300 * @return the number of d l folders 1301 * @throws SystemException if a system exception occurred 1302 */ 1303 public static int countAll() 1304 throws com.liferay.portal.kernel.exception.SystemException { 1305 return getPersistence().countAll(); 1306 } 1307 1308 public static DLFolderPersistence getPersistence() { 1309 if (_persistence == null) { 1310 _persistence = (DLFolderPersistence)PortalBeanLocatorUtil.locate(DLFolderPersistence.class.getName()); 1311 } 1312 1313 return _persistence; 1314 } 1315 1316 public void setPersistence(DLFolderPersistence persistence) { 1317 _persistence = persistence; 1318 } 1319 1320 private static DLFolderPersistence _persistence; 1321 }