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