001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.documentlibrary.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.documentlibrary.model.DLFolder; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the document library folder service. This utility wraps {@link DLFolderPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see DLFolderPersistence 037 * @see DLFolderPersistenceImpl 038 * @generated 039 */ 040 public class DLFolderUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(DLFolder dlFolder) { 058 getPersistence().clearCache(dlFolder); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<DLFolder> findWithDynamicQuery(DynamicQuery dynamicQuery) 073 throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<DLFolder> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<DLFolder> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 099 */ 100 public static DLFolder update(DLFolder dlFolder) throws SystemException { 101 return getPersistence().update(dlFolder); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 106 */ 107 public static DLFolder update(DLFolder dlFolder, 108 ServiceContext serviceContext) throws SystemException { 109 return getPersistence().update(dlFolder, serviceContext); 110 } 111 112 /** 113 * Returns all the document library folders where uuid = ?. 114 * 115 * @param uuid the uuid 116 * @return the matching document library folders 117 * @throws SystemException if a system exception occurred 118 */ 119 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid( 120 java.lang.String uuid) 121 throws com.liferay.portal.kernel.exception.SystemException { 122 return getPersistence().findByUuid(uuid); 123 } 124 125 /** 126 * Returns a range of all the document library folders where uuid = ?. 127 * 128 * <p> 129 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 130 * </p> 131 * 132 * @param uuid the uuid 133 * @param start the lower bound of the range of document library folders 134 * @param end the upper bound of the range of document library folders (not inclusive) 135 * @return the range of matching document library folders 136 * @throws SystemException if a system exception occurred 137 */ 138 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid( 139 java.lang.String uuid, int start, int end) 140 throws com.liferay.portal.kernel.exception.SystemException { 141 return getPersistence().findByUuid(uuid, start, end); 142 } 143 144 /** 145 * Returns an ordered range of all the document library folders where uuid = ?. 146 * 147 * <p> 148 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 149 * </p> 150 * 151 * @param uuid the uuid 152 * @param start the lower bound of the range of document library folders 153 * @param end the upper bound of the range of document library folders (not inclusive) 154 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 155 * @return the ordered range of matching document library folders 156 * @throws SystemException if a system exception occurred 157 */ 158 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid( 159 java.lang.String uuid, int start, int end, 160 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 163 } 164 165 /** 166 * Returns the first document library folder in the ordered set where uuid = ?. 167 * 168 * @param uuid the uuid 169 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 170 * @return the first matching document library folder 171 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_First( 175 java.lang.String uuid, 176 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 177 throws com.liferay.portal.kernel.exception.SystemException, 178 com.liferay.portlet.documentlibrary.NoSuchFolderException { 179 return getPersistence().findByUuid_First(uuid, orderByComparator); 180 } 181 182 /** 183 * Returns the first document library folder in the ordered set where uuid = ?. 184 * 185 * @param uuid the uuid 186 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 187 * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUuid_First( 191 java.lang.String uuid, 192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 193 throws com.liferay.portal.kernel.exception.SystemException { 194 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 195 } 196 197 /** 198 * Returns the last document library folder in the ordered set where uuid = ?. 199 * 200 * @param uuid the uuid 201 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 202 * @return the last matching document library folder 203 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 204 * @throws SystemException if a system exception occurred 205 */ 206 public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_Last( 207 java.lang.String uuid, 208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 209 throws com.liferay.portal.kernel.exception.SystemException, 210 com.liferay.portlet.documentlibrary.NoSuchFolderException { 211 return getPersistence().findByUuid_Last(uuid, orderByComparator); 212 } 213 214 /** 215 * Returns the last document library folder in the ordered set where uuid = ?. 216 * 217 * @param uuid the uuid 218 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 219 * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found 220 * @throws SystemException if a system exception occurred 221 */ 222 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUuid_Last( 223 java.lang.String uuid, 224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 225 throws com.liferay.portal.kernel.exception.SystemException { 226 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 227 } 228 229 /** 230 * Returns the document library folders before and after the current document library folder in the ordered set where uuid = ?. 231 * 232 * @param folderId the primary key of the current document library folder 233 * @param uuid the uuid 234 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 235 * @return the previous, current, and next document library folder 236 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 237 * @throws SystemException if a system exception occurred 238 */ 239 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByUuid_PrevAndNext( 240 long folderId, java.lang.String uuid, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException, 243 com.liferay.portlet.documentlibrary.NoSuchFolderException { 244 return getPersistence() 245 .findByUuid_PrevAndNext(folderId, uuid, orderByComparator); 246 } 247 248 /** 249 * Removes all the document library folders where uuid = ? from the database. 250 * 251 * @param uuid the uuid 252 * @throws SystemException if a system exception occurred 253 */ 254 public static void removeByUuid(java.lang.String uuid) 255 throws com.liferay.portal.kernel.exception.SystemException { 256 getPersistence().removeByUuid(uuid); 257 } 258 259 /** 260 * Returns the number of document library folders where uuid = ?. 261 * 262 * @param uuid the uuid 263 * @return the number of matching document library folders 264 * @throws SystemException if a system exception occurred 265 */ 266 public static int countByUuid(java.lang.String uuid) 267 throws com.liferay.portal.kernel.exception.SystemException { 268 return getPersistence().countByUuid(uuid); 269 } 270 271 /** 272 * Returns the document library folder where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found. 273 * 274 * @param uuid the uuid 275 * @param groupId the group ID 276 * @return the matching document library folder 277 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 278 * @throws SystemException if a system exception occurred 279 */ 280 public static com.liferay.portlet.documentlibrary.model.DLFolder findByUUID_G( 281 java.lang.String uuid, long groupId) 282 throws com.liferay.portal.kernel.exception.SystemException, 283 com.liferay.portlet.documentlibrary.NoSuchFolderException { 284 return getPersistence().findByUUID_G(uuid, groupId); 285 } 286 287 /** 288 * Returns the document library folder where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 289 * 290 * @param uuid the uuid 291 * @param groupId the group ID 292 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 293 * @throws SystemException if a system exception occurred 294 */ 295 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G( 296 java.lang.String uuid, long groupId) 297 throws com.liferay.portal.kernel.exception.SystemException { 298 return getPersistence().fetchByUUID_G(uuid, groupId); 299 } 300 301 /** 302 * Returns the document library folder where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 303 * 304 * @param uuid the uuid 305 * @param groupId the group ID 306 * @param retrieveFromCache whether to use the finder cache 307 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 308 * @throws SystemException if a system exception occurred 309 */ 310 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G( 311 java.lang.String uuid, long groupId, boolean retrieveFromCache) 312 throws com.liferay.portal.kernel.exception.SystemException { 313 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 314 } 315 316 /** 317 * Removes the document library folder where uuid = ? and groupId = ? from the database. 318 * 319 * @param uuid the uuid 320 * @param groupId the group ID 321 * @return the document library folder that was removed 322 * @throws SystemException if a system exception occurred 323 */ 324 public static com.liferay.portlet.documentlibrary.model.DLFolder removeByUUID_G( 325 java.lang.String uuid, long groupId) 326 throws com.liferay.portal.kernel.exception.SystemException, 327 com.liferay.portlet.documentlibrary.NoSuchFolderException { 328 return getPersistence().removeByUUID_G(uuid, groupId); 329 } 330 331 /** 332 * Returns the number of document library folders where uuid = ? and groupId = ?. 333 * 334 * @param uuid the uuid 335 * @param groupId the group ID 336 * @return the number of matching document library folders 337 * @throws SystemException if a system exception occurred 338 */ 339 public static int countByUUID_G(java.lang.String uuid, long groupId) 340 throws com.liferay.portal.kernel.exception.SystemException { 341 return getPersistence().countByUUID_G(uuid, groupId); 342 } 343 344 /** 345 * Returns all the document library folders where uuid = ? and companyId = ?. 346 * 347 * @param uuid the uuid 348 * @param companyId the company ID 349 * @return the matching document library folders 350 * @throws SystemException if a system exception occurred 351 */ 352 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid_C( 353 java.lang.String uuid, long companyId) 354 throws com.liferay.portal.kernel.exception.SystemException { 355 return getPersistence().findByUuid_C(uuid, companyId); 356 } 357 358 /** 359 * Returns a range of all the document library folders where uuid = ? and companyId = ?. 360 * 361 * <p> 362 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 363 * </p> 364 * 365 * @param uuid the uuid 366 * @param companyId the company ID 367 * @param start the lower bound of the range of document library folders 368 * @param end the upper bound of the range of document library folders (not inclusive) 369 * @return the range of matching document library folders 370 * @throws SystemException if a system exception occurred 371 */ 372 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid_C( 373 java.lang.String uuid, long companyId, int start, int end) 374 throws com.liferay.portal.kernel.exception.SystemException { 375 return getPersistence().findByUuid_C(uuid, companyId, start, end); 376 } 377 378 /** 379 * Returns an ordered range of all the document library folders where uuid = ? and companyId = ?. 380 * 381 * <p> 382 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 383 * </p> 384 * 385 * @param uuid the uuid 386 * @param companyId the company ID 387 * @param start the lower bound of the range of document library folders 388 * @param end the upper bound of the range of document library folders (not inclusive) 389 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 390 * @return the ordered range of matching document library folders 391 * @throws SystemException if a system exception occurred 392 */ 393 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid_C( 394 java.lang.String uuid, long companyId, int start, int end, 395 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 396 throws com.liferay.portal.kernel.exception.SystemException { 397 return getPersistence() 398 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 399 } 400 401 /** 402 * Returns the first document library folder in the ordered set where uuid = ? and companyId = ?. 403 * 404 * @param uuid the uuid 405 * @param companyId the company ID 406 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 407 * @return the first matching document library folder 408 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 409 * @throws SystemException if a system exception occurred 410 */ 411 public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_C_First( 412 java.lang.String uuid, long companyId, 413 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 414 throws com.liferay.portal.kernel.exception.SystemException, 415 com.liferay.portlet.documentlibrary.NoSuchFolderException { 416 return getPersistence() 417 .findByUuid_C_First(uuid, companyId, orderByComparator); 418 } 419 420 /** 421 * Returns the first document library folder in the ordered set where uuid = ? and companyId = ?. 422 * 423 * @param uuid the uuid 424 * @param companyId the company ID 425 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 426 * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found 427 * @throws SystemException if a system exception occurred 428 */ 429 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUuid_C_First( 430 java.lang.String uuid, long companyId, 431 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 432 throws com.liferay.portal.kernel.exception.SystemException { 433 return getPersistence() 434 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 435 } 436 437 /** 438 * Returns the last document library folder in the ordered set where uuid = ? and companyId = ?. 439 * 440 * @param uuid the uuid 441 * @param companyId the company ID 442 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 443 * @return the last matching document library folder 444 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 445 * @throws SystemException if a system exception occurred 446 */ 447 public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_C_Last( 448 java.lang.String uuid, long companyId, 449 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 450 throws com.liferay.portal.kernel.exception.SystemException, 451 com.liferay.portlet.documentlibrary.NoSuchFolderException { 452 return getPersistence() 453 .findByUuid_C_Last(uuid, companyId, orderByComparator); 454 } 455 456 /** 457 * Returns the last document library folder in the ordered set where uuid = ? and companyId = ?. 458 * 459 * @param uuid the uuid 460 * @param companyId the company ID 461 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 462 * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found 463 * @throws SystemException if a system exception occurred 464 */ 465 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUuid_C_Last( 466 java.lang.String uuid, long companyId, 467 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 468 throws com.liferay.portal.kernel.exception.SystemException { 469 return getPersistence() 470 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 471 } 472 473 /** 474 * Returns the document library folders before and after the current document library folder in the ordered set where uuid = ? and companyId = ?. 475 * 476 * @param folderId the primary key of the current document library folder 477 * @param uuid the uuid 478 * @param companyId the company ID 479 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 480 * @return the previous, current, and next document library folder 481 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 482 * @throws SystemException if a system exception occurred 483 */ 484 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByUuid_C_PrevAndNext( 485 long folderId, java.lang.String uuid, long companyId, 486 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 487 throws com.liferay.portal.kernel.exception.SystemException, 488 com.liferay.portlet.documentlibrary.NoSuchFolderException { 489 return getPersistence() 490 .findByUuid_C_PrevAndNext(folderId, uuid, companyId, 491 orderByComparator); 492 } 493 494 /** 495 * Removes all the document library folders where uuid = ? and companyId = ? from the database. 496 * 497 * @param uuid the uuid 498 * @param companyId the company ID 499 * @throws SystemException if a system exception occurred 500 */ 501 public static void removeByUuid_C(java.lang.String uuid, long companyId) 502 throws com.liferay.portal.kernel.exception.SystemException { 503 getPersistence().removeByUuid_C(uuid, companyId); 504 } 505 506 /** 507 * Returns the number of document library folders where uuid = ? and companyId = ?. 508 * 509 * @param uuid the uuid 510 * @param companyId the company ID 511 * @return the number of matching document library folders 512 * @throws SystemException if a system exception occurred 513 */ 514 public static int countByUuid_C(java.lang.String uuid, long companyId) 515 throws com.liferay.portal.kernel.exception.SystemException { 516 return getPersistence().countByUuid_C(uuid, companyId); 517 } 518 519 /** 520 * Returns all the document library folders where groupId = ?. 521 * 522 * @param groupId the group ID 523 * @return the matching document library folders 524 * @throws SystemException if a system exception occurred 525 */ 526 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId( 527 long groupId) 528 throws com.liferay.portal.kernel.exception.SystemException { 529 return getPersistence().findByGroupId(groupId); 530 } 531 532 /** 533 * Returns a range of all the document library folders where groupId = ?. 534 * 535 * <p> 536 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 537 * </p> 538 * 539 * @param groupId the group ID 540 * @param start the lower bound of the range of document library folders 541 * @param end the upper bound of the range of document library folders (not inclusive) 542 * @return the range of matching document library folders 543 * @throws SystemException if a system exception occurred 544 */ 545 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId( 546 long groupId, int start, int end) 547 throws com.liferay.portal.kernel.exception.SystemException { 548 return getPersistence().findByGroupId(groupId, start, end); 549 } 550 551 /** 552 * Returns an ordered range of all the document library folders where groupId = ?. 553 * 554 * <p> 555 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 556 * </p> 557 * 558 * @param groupId the group ID 559 * @param start the lower bound of the range of document library folders 560 * @param end the upper bound of the range of document library folders (not inclusive) 561 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 562 * @return the ordered range of matching document library folders 563 * @throws SystemException if a system exception occurred 564 */ 565 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId( 566 long groupId, int start, int end, 567 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 568 throws com.liferay.portal.kernel.exception.SystemException { 569 return getPersistence() 570 .findByGroupId(groupId, start, end, orderByComparator); 571 } 572 573 /** 574 * Returns the first document library folder in the ordered set where groupId = ?. 575 * 576 * @param groupId the group ID 577 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 578 * @return the first matching document library folder 579 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 580 * @throws SystemException if a system exception occurred 581 */ 582 public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_First( 583 long groupId, 584 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 585 throws com.liferay.portal.kernel.exception.SystemException, 586 com.liferay.portlet.documentlibrary.NoSuchFolderException { 587 return getPersistence().findByGroupId_First(groupId, orderByComparator); 588 } 589 590 /** 591 * Returns the first document library folder in the ordered set where groupId = ?. 592 * 593 * @param groupId the group ID 594 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 595 * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found 596 * @throws SystemException if a system exception occurred 597 */ 598 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByGroupId_First( 599 long groupId, 600 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 601 throws com.liferay.portal.kernel.exception.SystemException { 602 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 603 } 604 605 /** 606 * Returns the last document library folder in the ordered set where groupId = ?. 607 * 608 * @param groupId the group ID 609 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 610 * @return the last matching document library folder 611 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 612 * @throws SystemException if a system exception occurred 613 */ 614 public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last( 615 long groupId, 616 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 617 throws com.liferay.portal.kernel.exception.SystemException, 618 com.liferay.portlet.documentlibrary.NoSuchFolderException { 619 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 620 } 621 622 /** 623 * Returns the last document library folder in the ordered set where groupId = ?. 624 * 625 * @param groupId the group ID 626 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 627 * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found 628 * @throws SystemException if a system exception occurred 629 */ 630 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByGroupId_Last( 631 long groupId, 632 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 633 throws com.liferay.portal.kernel.exception.SystemException { 634 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 635 } 636 637 /** 638 * Returns the document library folders before and after the current document library folder in the ordered set where groupId = ?. 639 * 640 * @param folderId the primary key of the current document library folder 641 * @param groupId the group ID 642 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 643 * @return the previous, current, and next document library folder 644 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 645 * @throws SystemException if a system exception occurred 646 */ 647 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByGroupId_PrevAndNext( 648 long folderId, long groupId, 649 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 650 throws com.liferay.portal.kernel.exception.SystemException, 651 com.liferay.portlet.documentlibrary.NoSuchFolderException { 652 return getPersistence() 653 .findByGroupId_PrevAndNext(folderId, groupId, 654 orderByComparator); 655 } 656 657 /** 658 * Returns all the document library folders that the user has permission to view where groupId = ?. 659 * 660 * @param groupId the group ID 661 * @return the matching document library folders that the user has permission to view 662 * @throws SystemException if a system exception occurred 663 */ 664 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId( 665 long groupId) 666 throws com.liferay.portal.kernel.exception.SystemException { 667 return getPersistence().filterFindByGroupId(groupId); 668 } 669 670 /** 671 * Returns a range of all the document library folders that the user has permission to view where groupId = ?. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 675 * </p> 676 * 677 * @param groupId the group ID 678 * @param start the lower bound of the range of document library folders 679 * @param end the upper bound of the range of document library folders (not inclusive) 680 * @return the range of matching document library folders that the user has permission to view 681 * @throws SystemException if a system exception occurred 682 */ 683 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId( 684 long groupId, int start, int end) 685 throws com.liferay.portal.kernel.exception.SystemException { 686 return getPersistence().filterFindByGroupId(groupId, start, end); 687 } 688 689 /** 690 * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = ?. 691 * 692 * <p> 693 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 694 * </p> 695 * 696 * @param groupId the group ID 697 * @param start the lower bound of the range of document library folders 698 * @param end the upper bound of the range of document library folders (not inclusive) 699 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 700 * @return the ordered range of matching document library folders that the user has permission to view 701 * @throws SystemException if a system exception occurred 702 */ 703 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId( 704 long groupId, int start, int end, 705 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 706 throws com.liferay.portal.kernel.exception.SystemException { 707 return getPersistence() 708 .filterFindByGroupId(groupId, start, end, orderByComparator); 709 } 710 711 /** 712 * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = ?. 713 * 714 * @param folderId the primary key of the current document library folder 715 * @param groupId the group ID 716 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 717 * @return the previous, current, and next document library folder 718 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 719 * @throws SystemException if a system exception occurred 720 */ 721 public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByGroupId_PrevAndNext( 722 long folderId, long groupId, 723 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 724 throws com.liferay.portal.kernel.exception.SystemException, 725 com.liferay.portlet.documentlibrary.NoSuchFolderException { 726 return getPersistence() 727 .filterFindByGroupId_PrevAndNext(folderId, groupId, 728 orderByComparator); 729 } 730 731 /** 732 * Removes all the document library folders where groupId = ? from the database. 733 * 734 * @param groupId the group ID 735 * @throws SystemException if a system exception occurred 736 */ 737 public static void removeByGroupId(long groupId) 738 throws com.liferay.portal.kernel.exception.SystemException { 739 getPersistence().removeByGroupId(groupId); 740 } 741 742 /** 743 * Returns the number of document library folders where groupId = ?. 744 * 745 * @param groupId the group ID 746 * @return the number of matching document library folders 747 * @throws SystemException if a system exception occurred 748 */ 749 public static int countByGroupId(long groupId) 750 throws com.liferay.portal.kernel.exception.SystemException { 751 return getPersistence().countByGroupId(groupId); 752 } 753 754 /** 755 * Returns the number of document library folders that the user has permission to view where groupId = ?. 756 * 757 * @param groupId the group ID 758 * @return the number of matching document library folders that the user has permission to view 759 * @throws SystemException if a system exception occurred 760 */ 761 public static int filterCountByGroupId(long groupId) 762 throws com.liferay.portal.kernel.exception.SystemException { 763 return getPersistence().filterCountByGroupId(groupId); 764 } 765 766 /** 767 * Returns all the document library folders where companyId = ?. 768 * 769 * @param companyId the company ID 770 * @return the matching document library folders 771 * @throws SystemException if a system exception occurred 772 */ 773 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId( 774 long companyId) 775 throws com.liferay.portal.kernel.exception.SystemException { 776 return getPersistence().findByCompanyId(companyId); 777 } 778 779 /** 780 * Returns a range of all the document library folders where companyId = ?. 781 * 782 * <p> 783 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 784 * </p> 785 * 786 * @param companyId the company ID 787 * @param start the lower bound of the range of document library folders 788 * @param end the upper bound of the range of document library folders (not inclusive) 789 * @return the range of matching document library folders 790 * @throws SystemException if a system exception occurred 791 */ 792 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId( 793 long companyId, int start, int end) 794 throws com.liferay.portal.kernel.exception.SystemException { 795 return getPersistence().findByCompanyId(companyId, start, end); 796 } 797 798 /** 799 * Returns an ordered range of all the document library folders where companyId = ?. 800 * 801 * <p> 802 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 803 * </p> 804 * 805 * @param companyId the company ID 806 * @param start the lower bound of the range of document library folders 807 * @param end the upper bound of the range of document library folders (not inclusive) 808 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 809 * @return the ordered range of matching document library folders 810 * @throws SystemException if a system exception occurred 811 */ 812 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId( 813 long companyId, int start, int end, 814 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 815 throws com.liferay.portal.kernel.exception.SystemException { 816 return getPersistence() 817 .findByCompanyId(companyId, start, end, orderByComparator); 818 } 819 820 /** 821 * Returns the first document library folder in the ordered set where companyId = ?. 822 * 823 * @param companyId the company ID 824 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 825 * @return the first matching document library folder 826 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 827 * @throws SystemException if a system exception occurred 828 */ 829 public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_First( 830 long companyId, 831 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 832 throws com.liferay.portal.kernel.exception.SystemException, 833 com.liferay.portlet.documentlibrary.NoSuchFolderException { 834 return getPersistence() 835 .findByCompanyId_First(companyId, orderByComparator); 836 } 837 838 /** 839 * Returns the first document library folder in the ordered set where companyId = ?. 840 * 841 * @param companyId the company ID 842 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 843 * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found 844 * @throws SystemException if a system exception occurred 845 */ 846 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByCompanyId_First( 847 long companyId, 848 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 849 throws com.liferay.portal.kernel.exception.SystemException { 850 return getPersistence() 851 .fetchByCompanyId_First(companyId, orderByComparator); 852 } 853 854 /** 855 * Returns the last document library folder in the ordered set where companyId = ?. 856 * 857 * @param companyId the company ID 858 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 859 * @return the last matching document library folder 860 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 861 * @throws SystemException if a system exception occurred 862 */ 863 public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last( 864 long companyId, 865 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 866 throws com.liferay.portal.kernel.exception.SystemException, 867 com.liferay.portlet.documentlibrary.NoSuchFolderException { 868 return getPersistence() 869 .findByCompanyId_Last(companyId, orderByComparator); 870 } 871 872 /** 873 * Returns the last document library folder in the ordered set where companyId = ?. 874 * 875 * @param companyId the company ID 876 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 877 * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found 878 * @throws SystemException if a system exception occurred 879 */ 880 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByCompanyId_Last( 881 long companyId, 882 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 883 throws com.liferay.portal.kernel.exception.SystemException { 884 return getPersistence() 885 .fetchByCompanyId_Last(companyId, orderByComparator); 886 } 887 888 /** 889 * Returns the document library folders before and after the current document library folder in the ordered set where companyId = ?. 890 * 891 * @param folderId the primary key of the current document library folder 892 * @param companyId the company ID 893 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 894 * @return the previous, current, and next document library folder 895 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 896 * @throws SystemException if a system exception occurred 897 */ 898 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByCompanyId_PrevAndNext( 899 long folderId, long companyId, 900 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 901 throws com.liferay.portal.kernel.exception.SystemException, 902 com.liferay.portlet.documentlibrary.NoSuchFolderException { 903 return getPersistence() 904 .findByCompanyId_PrevAndNext(folderId, companyId, 905 orderByComparator); 906 } 907 908 /** 909 * Removes all the document library folders where companyId = ? from the database. 910 * 911 * @param companyId the company ID 912 * @throws SystemException if a system exception occurred 913 */ 914 public static void removeByCompanyId(long companyId) 915 throws com.liferay.portal.kernel.exception.SystemException { 916 getPersistence().removeByCompanyId(companyId); 917 } 918 919 /** 920 * Returns the number of document library folders where companyId = ?. 921 * 922 * @param companyId the company ID 923 * @return the number of matching document library folders 924 * @throws SystemException if a system exception occurred 925 */ 926 public static int countByCompanyId(long companyId) 927 throws com.liferay.portal.kernel.exception.SystemException { 928 return getPersistence().countByCompanyId(companyId); 929 } 930 931 /** 932 * Returns the document library folder where repositoryId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found. 933 * 934 * @param repositoryId the repository ID 935 * @return the matching document library folder 936 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 937 * @throws SystemException if a system exception occurred 938 */ 939 public static com.liferay.portlet.documentlibrary.model.DLFolder findByRepositoryId( 940 long repositoryId) 941 throws com.liferay.portal.kernel.exception.SystemException, 942 com.liferay.portlet.documentlibrary.NoSuchFolderException { 943 return getPersistence().findByRepositoryId(repositoryId); 944 } 945 946 /** 947 * Returns the document library folder where repositoryId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 948 * 949 * @param repositoryId the repository ID 950 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 951 * @throws SystemException if a system exception occurred 952 */ 953 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByRepositoryId( 954 long repositoryId) 955 throws com.liferay.portal.kernel.exception.SystemException { 956 return getPersistence().fetchByRepositoryId(repositoryId); 957 } 958 959 /** 960 * Returns the document library folder where repositoryId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 961 * 962 * @param repositoryId the repository ID 963 * @param retrieveFromCache whether to use the finder cache 964 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 965 * @throws SystemException if a system exception occurred 966 */ 967 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByRepositoryId( 968 long repositoryId, boolean retrieveFromCache) 969 throws com.liferay.portal.kernel.exception.SystemException { 970 return getPersistence() 971 .fetchByRepositoryId(repositoryId, retrieveFromCache); 972 } 973 974 /** 975 * Removes the document library folder where repositoryId = ? from the database. 976 * 977 * @param repositoryId the repository ID 978 * @return the document library folder that was removed 979 * @throws SystemException if a system exception occurred 980 */ 981 public static com.liferay.portlet.documentlibrary.model.DLFolder removeByRepositoryId( 982 long repositoryId) 983 throws com.liferay.portal.kernel.exception.SystemException, 984 com.liferay.portlet.documentlibrary.NoSuchFolderException { 985 return getPersistence().removeByRepositoryId(repositoryId); 986 } 987 988 /** 989 * Returns the number of document library folders where repositoryId = ?. 990 * 991 * @param repositoryId the repository ID 992 * @return the number of matching document library folders 993 * @throws SystemException if a system exception occurred 994 */ 995 public static int countByRepositoryId(long repositoryId) 996 throws com.liferay.portal.kernel.exception.SystemException { 997 return getPersistence().countByRepositoryId(repositoryId); 998 } 999 1000 /** 1001 * Returns all the document library folders where groupId = ? and parentFolderId = ?. 1002 * 1003 * @param groupId the group ID 1004 * @param parentFolderId the parent folder ID 1005 * @return the matching document library folders 1006 * @throws SystemException if a system exception occurred 1007 */ 1008 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P( 1009 long groupId, long parentFolderId) 1010 throws com.liferay.portal.kernel.exception.SystemException { 1011 return getPersistence().findByG_P(groupId, parentFolderId); 1012 } 1013 1014 /** 1015 * Returns a range of all the document library folders where groupId = ? and parentFolderId = ?. 1016 * 1017 * <p> 1018 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1019 * </p> 1020 * 1021 * @param groupId the group ID 1022 * @param parentFolderId the parent folder ID 1023 * @param start the lower bound of the range of document library folders 1024 * @param end the upper bound of the range of document library folders (not inclusive) 1025 * @return the range of matching document library folders 1026 * @throws SystemException if a system exception occurred 1027 */ 1028 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P( 1029 long groupId, long parentFolderId, int start, int end) 1030 throws com.liferay.portal.kernel.exception.SystemException { 1031 return getPersistence().findByG_P(groupId, parentFolderId, start, end); 1032 } 1033 1034 /** 1035 * Returns an ordered range of all the document library folders where groupId = ? and parentFolderId = ?. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1039 * </p> 1040 * 1041 * @param groupId the group ID 1042 * @param parentFolderId the parent folder ID 1043 * @param start the lower bound of the range of document library folders 1044 * @param end the upper bound of the range of document library folders (not inclusive) 1045 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1046 * @return the ordered range of matching document library folders 1047 * @throws SystemException if a system exception occurred 1048 */ 1049 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P( 1050 long groupId, long parentFolderId, int start, int end, 1051 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1052 throws com.liferay.portal.kernel.exception.SystemException { 1053 return getPersistence() 1054 .findByG_P(groupId, parentFolderId, start, end, 1055 orderByComparator); 1056 } 1057 1058 /** 1059 * Returns the first document library folder in the ordered set where groupId = ? and parentFolderId = ?. 1060 * 1061 * @param groupId the group ID 1062 * @param parentFolderId the parent folder ID 1063 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1064 * @return the first matching document library folder 1065 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1066 * @throws SystemException if a system exception occurred 1067 */ 1068 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First( 1069 long groupId, long parentFolderId, 1070 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1071 throws com.liferay.portal.kernel.exception.SystemException, 1072 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1073 return getPersistence() 1074 .findByG_P_First(groupId, parentFolderId, orderByComparator); 1075 } 1076 1077 /** 1078 * Returns the first document library folder in the ordered set where groupId = ? and parentFolderId = ?. 1079 * 1080 * @param groupId the group ID 1081 * @param parentFolderId the parent folder ID 1082 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1083 * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found 1084 * @throws SystemException if a system exception occurred 1085 */ 1086 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_First( 1087 long groupId, long parentFolderId, 1088 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1089 throws com.liferay.portal.kernel.exception.SystemException { 1090 return getPersistence() 1091 .fetchByG_P_First(groupId, parentFolderId, orderByComparator); 1092 } 1093 1094 /** 1095 * Returns the last document library folder in the ordered set where groupId = ? and parentFolderId = ?. 1096 * 1097 * @param groupId the group ID 1098 * @param parentFolderId the parent folder ID 1099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1100 * @return the last matching document library folder 1101 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1102 * @throws SystemException if a system exception occurred 1103 */ 1104 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last( 1105 long groupId, long parentFolderId, 1106 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1107 throws com.liferay.portal.kernel.exception.SystemException, 1108 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1109 return getPersistence() 1110 .findByG_P_Last(groupId, parentFolderId, orderByComparator); 1111 } 1112 1113 /** 1114 * Returns the last document library folder in the ordered set where groupId = ? and parentFolderId = ?. 1115 * 1116 * @param groupId the group ID 1117 * @param parentFolderId the parent folder ID 1118 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1119 * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found 1120 * @throws SystemException if a system exception occurred 1121 */ 1122 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_Last( 1123 long groupId, long parentFolderId, 1124 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1125 throws com.liferay.portal.kernel.exception.SystemException { 1126 return getPersistence() 1127 .fetchByG_P_Last(groupId, parentFolderId, orderByComparator); 1128 } 1129 1130 /** 1131 * Returns the document library folders before and after the current document library folder in the ordered set where groupId = ? and parentFolderId = ?. 1132 * 1133 * @param folderId the primary key of the current document library folder 1134 * @param groupId the group ID 1135 * @param parentFolderId the parent folder ID 1136 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1137 * @return the previous, current, and next document library folder 1138 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 1139 * @throws SystemException if a system exception occurred 1140 */ 1141 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext( 1142 long folderId, long groupId, long parentFolderId, 1143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1144 throws com.liferay.portal.kernel.exception.SystemException, 1145 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1146 return getPersistence() 1147 .findByG_P_PrevAndNext(folderId, groupId, parentFolderId, 1148 orderByComparator); 1149 } 1150 1151 /** 1152 * Returns all the document library folders that the user has permission to view where groupId = ? and parentFolderId = ?. 1153 * 1154 * @param groupId the group ID 1155 * @param parentFolderId the parent folder ID 1156 * @return the matching document library folders that the user has permission to view 1157 * @throws SystemException if a system exception occurred 1158 */ 1159 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P( 1160 long groupId, long parentFolderId) 1161 throws com.liferay.portal.kernel.exception.SystemException { 1162 return getPersistence().filterFindByG_P(groupId, parentFolderId); 1163 } 1164 1165 /** 1166 * Returns a range of all the document library folders that the user has permission to view where groupId = ? and parentFolderId = ?. 1167 * 1168 * <p> 1169 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1170 * </p> 1171 * 1172 * @param groupId the group ID 1173 * @param parentFolderId the parent folder ID 1174 * @param start the lower bound of the range of document library folders 1175 * @param end the upper bound of the range of document library folders (not inclusive) 1176 * @return the range of matching document library folders that the user has permission to view 1177 * @throws SystemException if a system exception occurred 1178 */ 1179 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P( 1180 long groupId, long parentFolderId, int start, int end) 1181 throws com.liferay.portal.kernel.exception.SystemException { 1182 return getPersistence() 1183 .filterFindByG_P(groupId, parentFolderId, start, end); 1184 } 1185 1186 /** 1187 * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = ? and parentFolderId = ?. 1188 * 1189 * <p> 1190 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1191 * </p> 1192 * 1193 * @param groupId the group ID 1194 * @param parentFolderId the parent folder ID 1195 * @param start the lower bound of the range of document library folders 1196 * @param end the upper bound of the range of document library folders (not inclusive) 1197 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1198 * @return the ordered range of matching document library folders that the user has permission to view 1199 * @throws SystemException if a system exception occurred 1200 */ 1201 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P( 1202 long groupId, long parentFolderId, int start, int end, 1203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1204 throws com.liferay.portal.kernel.exception.SystemException { 1205 return getPersistence() 1206 .filterFindByG_P(groupId, parentFolderId, start, end, 1207 orderByComparator); 1208 } 1209 1210 /** 1211 * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = ? and parentFolderId = ?. 1212 * 1213 * @param folderId the primary key of the current document library folder 1214 * @param groupId the group ID 1215 * @param parentFolderId the parent folder ID 1216 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1217 * @return the previous, current, and next document library folder 1218 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 1219 * @throws SystemException if a system exception occurred 1220 */ 1221 public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_P_PrevAndNext( 1222 long folderId, long groupId, long parentFolderId, 1223 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1224 throws com.liferay.portal.kernel.exception.SystemException, 1225 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1226 return getPersistence() 1227 .filterFindByG_P_PrevAndNext(folderId, groupId, 1228 parentFolderId, orderByComparator); 1229 } 1230 1231 /** 1232 * Removes all the document library folders where groupId = ? and parentFolderId = ? from the database. 1233 * 1234 * @param groupId the group ID 1235 * @param parentFolderId the parent folder ID 1236 * @throws SystemException if a system exception occurred 1237 */ 1238 public static void removeByG_P(long groupId, long parentFolderId) 1239 throws com.liferay.portal.kernel.exception.SystemException { 1240 getPersistence().removeByG_P(groupId, parentFolderId); 1241 } 1242 1243 /** 1244 * Returns the number of document library folders where groupId = ? and parentFolderId = ?. 1245 * 1246 * @param groupId the group ID 1247 * @param parentFolderId the parent folder ID 1248 * @return the number of matching document library folders 1249 * @throws SystemException if a system exception occurred 1250 */ 1251 public static int countByG_P(long groupId, long parentFolderId) 1252 throws com.liferay.portal.kernel.exception.SystemException { 1253 return getPersistence().countByG_P(groupId, parentFolderId); 1254 } 1255 1256 /** 1257 * Returns the number of document library folders that the user has permission to view where groupId = ? and parentFolderId = ?. 1258 * 1259 * @param groupId the group ID 1260 * @param parentFolderId the parent folder ID 1261 * @return the number of matching document library folders that the user has permission to view 1262 * @throws SystemException if a system exception occurred 1263 */ 1264 public static int filterCountByG_P(long groupId, long parentFolderId) 1265 throws com.liferay.portal.kernel.exception.SystemException { 1266 return getPersistence().filterCountByG_P(groupId, parentFolderId); 1267 } 1268 1269 /** 1270 * Returns all the document library folders where parentFolderId = ? and name = ?. 1271 * 1272 * @param parentFolderId the parent folder ID 1273 * @param name the name 1274 * @return the matching document library folders 1275 * @throws SystemException if a system exception occurred 1276 */ 1277 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N( 1278 long parentFolderId, java.lang.String name) 1279 throws com.liferay.portal.kernel.exception.SystemException { 1280 return getPersistence().findByP_N(parentFolderId, name); 1281 } 1282 1283 /** 1284 * Returns a range of all the document library folders where parentFolderId = ? and name = ?. 1285 * 1286 * <p> 1287 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1288 * </p> 1289 * 1290 * @param parentFolderId the parent folder ID 1291 * @param name the name 1292 * @param start the lower bound of the range of document library folders 1293 * @param end the upper bound of the range of document library folders (not inclusive) 1294 * @return the range of matching document library folders 1295 * @throws SystemException if a system exception occurred 1296 */ 1297 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N( 1298 long parentFolderId, java.lang.String name, int start, int end) 1299 throws com.liferay.portal.kernel.exception.SystemException { 1300 return getPersistence().findByP_N(parentFolderId, name, start, end); 1301 } 1302 1303 /** 1304 * Returns an ordered range of all the document library folders where parentFolderId = ? and name = ?. 1305 * 1306 * <p> 1307 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1308 * </p> 1309 * 1310 * @param parentFolderId the parent folder ID 1311 * @param name the name 1312 * @param start the lower bound of the range of document library folders 1313 * @param end the upper bound of the range of document library folders (not inclusive) 1314 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1315 * @return the ordered range of matching document library folders 1316 * @throws SystemException if a system exception occurred 1317 */ 1318 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N( 1319 long parentFolderId, java.lang.String name, int start, int end, 1320 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1321 throws com.liferay.portal.kernel.exception.SystemException { 1322 return getPersistence() 1323 .findByP_N(parentFolderId, name, start, end, 1324 orderByComparator); 1325 } 1326 1327 /** 1328 * Returns the first document library folder in the ordered set where parentFolderId = ? and name = ?. 1329 * 1330 * @param parentFolderId the parent folder ID 1331 * @param name the name 1332 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1333 * @return the first matching document library folder 1334 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1335 * @throws SystemException if a system exception occurred 1336 */ 1337 public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First( 1338 long parentFolderId, java.lang.String name, 1339 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1340 throws com.liferay.portal.kernel.exception.SystemException, 1341 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1342 return getPersistence() 1343 .findByP_N_First(parentFolderId, name, orderByComparator); 1344 } 1345 1346 /** 1347 * Returns the first document library folder in the ordered set where parentFolderId = ? and name = ?. 1348 * 1349 * @param parentFolderId the parent folder ID 1350 * @param name the name 1351 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1352 * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found 1353 * @throws SystemException if a system exception occurred 1354 */ 1355 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByP_N_First( 1356 long parentFolderId, java.lang.String name, 1357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1358 throws com.liferay.portal.kernel.exception.SystemException { 1359 return getPersistence() 1360 .fetchByP_N_First(parentFolderId, name, orderByComparator); 1361 } 1362 1363 /** 1364 * Returns the last document library folder in the ordered set where parentFolderId = ? and name = ?. 1365 * 1366 * @param parentFolderId the parent folder ID 1367 * @param name the name 1368 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1369 * @return the last matching document library folder 1370 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1371 * @throws SystemException if a system exception occurred 1372 */ 1373 public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last( 1374 long parentFolderId, java.lang.String name, 1375 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1376 throws com.liferay.portal.kernel.exception.SystemException, 1377 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1378 return getPersistence() 1379 .findByP_N_Last(parentFolderId, name, orderByComparator); 1380 } 1381 1382 /** 1383 * Returns the last document library folder in the ordered set where parentFolderId = ? and name = ?. 1384 * 1385 * @param parentFolderId the parent folder ID 1386 * @param name the name 1387 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1388 * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found 1389 * @throws SystemException if a system exception occurred 1390 */ 1391 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByP_N_Last( 1392 long parentFolderId, java.lang.String name, 1393 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1394 throws com.liferay.portal.kernel.exception.SystemException { 1395 return getPersistence() 1396 .fetchByP_N_Last(parentFolderId, name, orderByComparator); 1397 } 1398 1399 /** 1400 * Returns the document library folders before and after the current document library folder in the ordered set where parentFolderId = ? and name = ?. 1401 * 1402 * @param folderId the primary key of the current document library folder 1403 * @param parentFolderId the parent folder ID 1404 * @param name the name 1405 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1406 * @return the previous, current, and next document library folder 1407 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 1408 * @throws SystemException if a system exception occurred 1409 */ 1410 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext( 1411 long folderId, long parentFolderId, java.lang.String name, 1412 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1413 throws com.liferay.portal.kernel.exception.SystemException, 1414 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1415 return getPersistence() 1416 .findByP_N_PrevAndNext(folderId, parentFolderId, name, 1417 orderByComparator); 1418 } 1419 1420 /** 1421 * Removes all the document library folders where parentFolderId = ? and name = ? from the database. 1422 * 1423 * @param parentFolderId the parent folder ID 1424 * @param name the name 1425 * @throws SystemException if a system exception occurred 1426 */ 1427 public static void removeByP_N(long parentFolderId, java.lang.String name) 1428 throws com.liferay.portal.kernel.exception.SystemException { 1429 getPersistence().removeByP_N(parentFolderId, name); 1430 } 1431 1432 /** 1433 * Returns the number of document library folders where parentFolderId = ? and name = ?. 1434 * 1435 * @param parentFolderId the parent folder ID 1436 * @param name the name 1437 * @return the number of matching document library folders 1438 * @throws SystemException if a system exception occurred 1439 */ 1440 public static int countByP_N(long parentFolderId, java.lang.String name) 1441 throws com.liferay.portal.kernel.exception.SystemException { 1442 return getPersistence().countByP_N(parentFolderId, name); 1443 } 1444 1445 /** 1446 * Returns the document library folder where groupId = ? and parentFolderId = ? and name = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found. 1447 * 1448 * @param groupId the group ID 1449 * @param parentFolderId the parent folder ID 1450 * @param name the name 1451 * @return the matching document library folder 1452 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1453 * @throws SystemException if a system exception occurred 1454 */ 1455 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N( 1456 long groupId, long parentFolderId, java.lang.String name) 1457 throws com.liferay.portal.kernel.exception.SystemException, 1458 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1459 return getPersistence().findByG_P_N(groupId, parentFolderId, name); 1460 } 1461 1462 /** 1463 * Returns the document library folder where groupId = ? and parentFolderId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1464 * 1465 * @param groupId the group ID 1466 * @param parentFolderId the parent folder ID 1467 * @param name the name 1468 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 1469 * @throws SystemException if a system exception occurred 1470 */ 1471 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N( 1472 long groupId, long parentFolderId, java.lang.String name) 1473 throws com.liferay.portal.kernel.exception.SystemException { 1474 return getPersistence().fetchByG_P_N(groupId, parentFolderId, name); 1475 } 1476 1477 /** 1478 * Returns the document library folder where groupId = ? and parentFolderId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1479 * 1480 * @param groupId the group ID 1481 * @param parentFolderId the parent folder ID 1482 * @param name the name 1483 * @param retrieveFromCache whether to use the finder cache 1484 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 1485 * @throws SystemException if a system exception occurred 1486 */ 1487 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N( 1488 long groupId, long parentFolderId, java.lang.String name, 1489 boolean retrieveFromCache) 1490 throws com.liferay.portal.kernel.exception.SystemException { 1491 return getPersistence() 1492 .fetchByG_P_N(groupId, parentFolderId, name, 1493 retrieveFromCache); 1494 } 1495 1496 /** 1497 * Removes the document library folder where groupId = ? and parentFolderId = ? and name = ? from the database. 1498 * 1499 * @param groupId the group ID 1500 * @param parentFolderId the parent folder ID 1501 * @param name the name 1502 * @return the document library folder that was removed 1503 * @throws SystemException if a system exception occurred 1504 */ 1505 public static com.liferay.portlet.documentlibrary.model.DLFolder removeByG_P_N( 1506 long groupId, long parentFolderId, java.lang.String name) 1507 throws com.liferay.portal.kernel.exception.SystemException, 1508 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1509 return getPersistence().removeByG_P_N(groupId, parentFolderId, name); 1510 } 1511 1512 /** 1513 * Returns the number of document library folders where groupId = ? and parentFolderId = ? and name = ?. 1514 * 1515 * @param groupId the group ID 1516 * @param parentFolderId the parent folder ID 1517 * @param name the name 1518 * @return the number of matching document library folders 1519 * @throws SystemException if a system exception occurred 1520 */ 1521 public static int countByG_P_N(long groupId, long parentFolderId, 1522 java.lang.String name) 1523 throws com.liferay.portal.kernel.exception.SystemException { 1524 return getPersistence().countByG_P_N(groupId, parentFolderId, name); 1525 } 1526 1527 /** 1528 * Returns all the document library folders where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ?. 1529 * 1530 * @param groupId the group ID 1531 * @param mountPoint the mount point 1532 * @param parentFolderId the parent folder ID 1533 * @param hidden the hidden 1534 * @return the matching document library folders 1535 * @throws SystemException if a system exception occurred 1536 */ 1537 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H( 1538 long groupId, boolean mountPoint, long parentFolderId, boolean hidden) 1539 throws com.liferay.portal.kernel.exception.SystemException { 1540 return getPersistence() 1541 .findByG_M_P_H(groupId, mountPoint, parentFolderId, hidden); 1542 } 1543 1544 /** 1545 * Returns a range of all the document library folders where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ?. 1546 * 1547 * <p> 1548 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1549 * </p> 1550 * 1551 * @param groupId the group ID 1552 * @param mountPoint the mount point 1553 * @param parentFolderId the parent folder ID 1554 * @param hidden the hidden 1555 * @param start the lower bound of the range of document library folders 1556 * @param end the upper bound of the range of document library folders (not inclusive) 1557 * @return the range of matching document library folders 1558 * @throws SystemException if a system exception occurred 1559 */ 1560 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H( 1561 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 1562 int start, int end) 1563 throws com.liferay.portal.kernel.exception.SystemException { 1564 return getPersistence() 1565 .findByG_M_P_H(groupId, mountPoint, parentFolderId, hidden, 1566 start, end); 1567 } 1568 1569 /** 1570 * Returns an ordered range of all the document library folders where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ?. 1571 * 1572 * <p> 1573 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1574 * </p> 1575 * 1576 * @param groupId the group ID 1577 * @param mountPoint the mount point 1578 * @param parentFolderId the parent folder ID 1579 * @param hidden the hidden 1580 * @param start the lower bound of the range of document library folders 1581 * @param end the upper bound of the range of document library folders (not inclusive) 1582 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1583 * @return the ordered range of matching document library folders 1584 * @throws SystemException if a system exception occurred 1585 */ 1586 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H( 1587 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 1588 int start, int end, 1589 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1590 throws com.liferay.portal.kernel.exception.SystemException { 1591 return getPersistence() 1592 .findByG_M_P_H(groupId, mountPoint, parentFolderId, hidden, 1593 start, end, orderByComparator); 1594 } 1595 1596 /** 1597 * Returns the first document library folder in the ordered set where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ?. 1598 * 1599 * @param groupId the group ID 1600 * @param mountPoint the mount point 1601 * @param parentFolderId the parent folder ID 1602 * @param hidden the hidden 1603 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1604 * @return the first matching document library folder 1605 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1606 * @throws SystemException if a system exception occurred 1607 */ 1608 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_First( 1609 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 1610 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1611 throws com.liferay.portal.kernel.exception.SystemException, 1612 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1613 return getPersistence() 1614 .findByG_M_P_H_First(groupId, mountPoint, parentFolderId, 1615 hidden, orderByComparator); 1616 } 1617 1618 /** 1619 * Returns the first document library folder in the ordered set where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ?. 1620 * 1621 * @param groupId the group ID 1622 * @param mountPoint the mount point 1623 * @param parentFolderId the parent folder ID 1624 * @param hidden the hidden 1625 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1626 * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found 1627 * @throws SystemException if a system exception occurred 1628 */ 1629 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_First( 1630 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 1631 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1632 throws com.liferay.portal.kernel.exception.SystemException { 1633 return getPersistence() 1634 .fetchByG_M_P_H_First(groupId, mountPoint, parentFolderId, 1635 hidden, orderByComparator); 1636 } 1637 1638 /** 1639 * Returns the last document library folder in the ordered set where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ?. 1640 * 1641 * @param groupId the group ID 1642 * @param mountPoint the mount point 1643 * @param parentFolderId the parent folder ID 1644 * @param hidden the hidden 1645 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1646 * @return the last matching document library folder 1647 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1648 * @throws SystemException if a system exception occurred 1649 */ 1650 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_Last( 1651 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 1652 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1653 throws com.liferay.portal.kernel.exception.SystemException, 1654 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1655 return getPersistence() 1656 .findByG_M_P_H_Last(groupId, mountPoint, parentFolderId, 1657 hidden, orderByComparator); 1658 } 1659 1660 /** 1661 * Returns the last document library folder in the ordered set where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ?. 1662 * 1663 * @param groupId the group ID 1664 * @param mountPoint the mount point 1665 * @param parentFolderId the parent folder ID 1666 * @param hidden the hidden 1667 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1668 * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found 1669 * @throws SystemException if a system exception occurred 1670 */ 1671 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_Last( 1672 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 1673 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1674 throws com.liferay.portal.kernel.exception.SystemException { 1675 return getPersistence() 1676 .fetchByG_M_P_H_Last(groupId, mountPoint, parentFolderId, 1677 hidden, orderByComparator); 1678 } 1679 1680 /** 1681 * Returns the document library folders before and after the current document library folder in the ordered set where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ?. 1682 * 1683 * @param folderId the primary key of the current document library folder 1684 * @param groupId the group ID 1685 * @param mountPoint the mount point 1686 * @param parentFolderId the parent folder ID 1687 * @param hidden the hidden 1688 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1689 * @return the previous, current, and next document library folder 1690 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 1691 * @throws SystemException if a system exception occurred 1692 */ 1693 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_M_P_H_PrevAndNext( 1694 long folderId, long groupId, boolean mountPoint, long parentFolderId, 1695 boolean hidden, 1696 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1697 throws com.liferay.portal.kernel.exception.SystemException, 1698 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1699 return getPersistence() 1700 .findByG_M_P_H_PrevAndNext(folderId, groupId, mountPoint, 1701 parentFolderId, hidden, orderByComparator); 1702 } 1703 1704 /** 1705 * Returns all the document library folders that the user has permission to view where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ?. 1706 * 1707 * @param groupId the group ID 1708 * @param mountPoint the mount point 1709 * @param parentFolderId the parent folder ID 1710 * @param hidden the hidden 1711 * @return the matching document library folders that the user has permission to view 1712 * @throws SystemException if a system exception occurred 1713 */ 1714 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H( 1715 long groupId, boolean mountPoint, long parentFolderId, boolean hidden) 1716 throws com.liferay.portal.kernel.exception.SystemException { 1717 return getPersistence() 1718 .filterFindByG_M_P_H(groupId, mountPoint, parentFolderId, 1719 hidden); 1720 } 1721 1722 /** 1723 * Returns a range of all the document library folders that the user has permission to view where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ?. 1724 * 1725 * <p> 1726 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1727 * </p> 1728 * 1729 * @param groupId the group ID 1730 * @param mountPoint the mount point 1731 * @param parentFolderId the parent folder ID 1732 * @param hidden the hidden 1733 * @param start the lower bound of the range of document library folders 1734 * @param end the upper bound of the range of document library folders (not inclusive) 1735 * @return the range of matching document library folders that the user has permission to view 1736 * @throws SystemException if a system exception occurred 1737 */ 1738 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H( 1739 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 1740 int start, int end) 1741 throws com.liferay.portal.kernel.exception.SystemException { 1742 return getPersistence() 1743 .filterFindByG_M_P_H(groupId, mountPoint, parentFolderId, 1744 hidden, start, end); 1745 } 1746 1747 /** 1748 * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ?. 1749 * 1750 * <p> 1751 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1752 * </p> 1753 * 1754 * @param groupId the group ID 1755 * @param mountPoint the mount point 1756 * @param parentFolderId the parent folder ID 1757 * @param hidden the hidden 1758 * @param start the lower bound of the range of document library folders 1759 * @param end the upper bound of the range of document library folders (not inclusive) 1760 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1761 * @return the ordered range of matching document library folders that the user has permission to view 1762 * @throws SystemException if a system exception occurred 1763 */ 1764 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H( 1765 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 1766 int start, int end, 1767 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1768 throws com.liferay.portal.kernel.exception.SystemException { 1769 return getPersistence() 1770 .filterFindByG_M_P_H(groupId, mountPoint, parentFolderId, 1771 hidden, start, end, orderByComparator); 1772 } 1773 1774 /** 1775 * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ?. 1776 * 1777 * @param folderId the primary key of the current document library folder 1778 * @param groupId the group ID 1779 * @param mountPoint the mount point 1780 * @param parentFolderId the parent folder ID 1781 * @param hidden the hidden 1782 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1783 * @return the previous, current, and next document library folder 1784 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 1785 * @throws SystemException if a system exception occurred 1786 */ 1787 public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_M_P_H_PrevAndNext( 1788 long folderId, long groupId, boolean mountPoint, long parentFolderId, 1789 boolean hidden, 1790 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1791 throws com.liferay.portal.kernel.exception.SystemException, 1792 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1793 return getPersistence() 1794 .filterFindByG_M_P_H_PrevAndNext(folderId, groupId, 1795 mountPoint, parentFolderId, hidden, orderByComparator); 1796 } 1797 1798 /** 1799 * Removes all the document library folders where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? from the database. 1800 * 1801 * @param groupId the group ID 1802 * @param mountPoint the mount point 1803 * @param parentFolderId the parent folder ID 1804 * @param hidden the hidden 1805 * @throws SystemException if a system exception occurred 1806 */ 1807 public static void removeByG_M_P_H(long groupId, boolean mountPoint, 1808 long parentFolderId, boolean hidden) 1809 throws com.liferay.portal.kernel.exception.SystemException { 1810 getPersistence() 1811 .removeByG_M_P_H(groupId, mountPoint, parentFolderId, hidden); 1812 } 1813 1814 /** 1815 * Returns the number of document library folders where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ?. 1816 * 1817 * @param groupId the group ID 1818 * @param mountPoint the mount point 1819 * @param parentFolderId the parent folder ID 1820 * @param hidden the hidden 1821 * @return the number of matching document library folders 1822 * @throws SystemException if a system exception occurred 1823 */ 1824 public static int countByG_M_P_H(long groupId, boolean mountPoint, 1825 long parentFolderId, boolean hidden) 1826 throws com.liferay.portal.kernel.exception.SystemException { 1827 return getPersistence() 1828 .countByG_M_P_H(groupId, mountPoint, parentFolderId, hidden); 1829 } 1830 1831 /** 1832 * Returns the number of document library folders that the user has permission to view where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ?. 1833 * 1834 * @param groupId the group ID 1835 * @param mountPoint the mount point 1836 * @param parentFolderId the parent folder ID 1837 * @param hidden the hidden 1838 * @return the number of matching document library folders that the user has permission to view 1839 * @throws SystemException if a system exception occurred 1840 */ 1841 public static int filterCountByG_M_P_H(long groupId, boolean mountPoint, 1842 long parentFolderId, boolean hidden) 1843 throws com.liferay.portal.kernel.exception.SystemException { 1844 return getPersistence() 1845 .filterCountByG_M_P_H(groupId, mountPoint, parentFolderId, 1846 hidden); 1847 } 1848 1849 /** 1850 * Returns all the document library folders where groupId = ? and parentFolderId = ? and hidden = ? and status = ?. 1851 * 1852 * @param groupId the group ID 1853 * @param parentFolderId the parent folder ID 1854 * @param hidden the hidden 1855 * @param status the status 1856 * @return the matching document library folders 1857 * @throws SystemException if a system exception occurred 1858 */ 1859 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_H_S( 1860 long groupId, long parentFolderId, boolean hidden, int status) 1861 throws com.liferay.portal.kernel.exception.SystemException { 1862 return getPersistence() 1863 .findByG_P_H_S(groupId, parentFolderId, hidden, status); 1864 } 1865 1866 /** 1867 * Returns a range of all the document library folders where groupId = ? and parentFolderId = ? and hidden = ? and status = ?. 1868 * 1869 * <p> 1870 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1871 * </p> 1872 * 1873 * @param groupId the group ID 1874 * @param parentFolderId the parent folder ID 1875 * @param hidden the hidden 1876 * @param status the status 1877 * @param start the lower bound of the range of document library folders 1878 * @param end the upper bound of the range of document library folders (not inclusive) 1879 * @return the range of matching document library folders 1880 * @throws SystemException if a system exception occurred 1881 */ 1882 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_H_S( 1883 long groupId, long parentFolderId, boolean hidden, int status, 1884 int start, int end) 1885 throws com.liferay.portal.kernel.exception.SystemException { 1886 return getPersistence() 1887 .findByG_P_H_S(groupId, parentFolderId, hidden, status, 1888 start, end); 1889 } 1890 1891 /** 1892 * Returns an ordered range of all the document library folders where groupId = ? and parentFolderId = ? and hidden = ? and status = ?. 1893 * 1894 * <p> 1895 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1896 * </p> 1897 * 1898 * @param groupId the group ID 1899 * @param parentFolderId the parent folder ID 1900 * @param hidden the hidden 1901 * @param status the status 1902 * @param start the lower bound of the range of document library folders 1903 * @param end the upper bound of the range of document library folders (not inclusive) 1904 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1905 * @return the ordered range of matching document library folders 1906 * @throws SystemException if a system exception occurred 1907 */ 1908 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_H_S( 1909 long groupId, long parentFolderId, boolean hidden, int status, 1910 int start, int end, 1911 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1912 throws com.liferay.portal.kernel.exception.SystemException { 1913 return getPersistence() 1914 .findByG_P_H_S(groupId, parentFolderId, hidden, status, 1915 start, end, orderByComparator); 1916 } 1917 1918 /** 1919 * Returns the first document library folder in the ordered set where groupId = ? and parentFolderId = ? and hidden = ? and status = ?. 1920 * 1921 * @param groupId the group ID 1922 * @param parentFolderId the parent folder ID 1923 * @param hidden the hidden 1924 * @param status the status 1925 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1926 * @return the first matching document library folder 1927 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1928 * @throws SystemException if a system exception occurred 1929 */ 1930 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_H_S_First( 1931 long groupId, long parentFolderId, boolean hidden, int status, 1932 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1933 throws com.liferay.portal.kernel.exception.SystemException, 1934 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1935 return getPersistence() 1936 .findByG_P_H_S_First(groupId, parentFolderId, hidden, 1937 status, orderByComparator); 1938 } 1939 1940 /** 1941 * Returns the first document library folder in the ordered set where groupId = ? and parentFolderId = ? and hidden = ? and status = ?. 1942 * 1943 * @param groupId the group ID 1944 * @param parentFolderId the parent folder ID 1945 * @param hidden the hidden 1946 * @param status the status 1947 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1948 * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found 1949 * @throws SystemException if a system exception occurred 1950 */ 1951 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_H_S_First( 1952 long groupId, long parentFolderId, boolean hidden, int status, 1953 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1954 throws com.liferay.portal.kernel.exception.SystemException { 1955 return getPersistence() 1956 .fetchByG_P_H_S_First(groupId, parentFolderId, hidden, 1957 status, orderByComparator); 1958 } 1959 1960 /** 1961 * Returns the last document library folder in the ordered set where groupId = ? and parentFolderId = ? and hidden = ? and status = ?. 1962 * 1963 * @param groupId the group ID 1964 * @param parentFolderId the parent folder ID 1965 * @param hidden the hidden 1966 * @param status the status 1967 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1968 * @return the last matching document library folder 1969 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1970 * @throws SystemException if a system exception occurred 1971 */ 1972 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_H_S_Last( 1973 long groupId, long parentFolderId, boolean hidden, int status, 1974 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1975 throws com.liferay.portal.kernel.exception.SystemException, 1976 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1977 return getPersistence() 1978 .findByG_P_H_S_Last(groupId, parentFolderId, hidden, status, 1979 orderByComparator); 1980 } 1981 1982 /** 1983 * Returns the last document library folder in the ordered set where groupId = ? and parentFolderId = ? and hidden = ? and status = ?. 1984 * 1985 * @param groupId the group ID 1986 * @param parentFolderId the parent folder ID 1987 * @param hidden the hidden 1988 * @param status the status 1989 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1990 * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found 1991 * @throws SystemException if a system exception occurred 1992 */ 1993 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_H_S_Last( 1994 long groupId, long parentFolderId, boolean hidden, int status, 1995 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1996 throws com.liferay.portal.kernel.exception.SystemException { 1997 return getPersistence() 1998 .fetchByG_P_H_S_Last(groupId, parentFolderId, hidden, 1999 status, orderByComparator); 2000 } 2001 2002 /** 2003 * Returns the document library folders before and after the current document library folder in the ordered set where groupId = ? and parentFolderId = ? and hidden = ? and status = ?. 2004 * 2005 * @param folderId the primary key of the current document library folder 2006 * @param groupId the group ID 2007 * @param parentFolderId the parent folder ID 2008 * @param hidden the hidden 2009 * @param status the status 2010 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2011 * @return the previous, current, and next document library folder 2012 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 2013 * @throws SystemException if a system exception occurred 2014 */ 2015 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_H_S_PrevAndNext( 2016 long folderId, long groupId, long parentFolderId, boolean hidden, 2017 int status, 2018 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2019 throws com.liferay.portal.kernel.exception.SystemException, 2020 com.liferay.portlet.documentlibrary.NoSuchFolderException { 2021 return getPersistence() 2022 .findByG_P_H_S_PrevAndNext(folderId, groupId, 2023 parentFolderId, hidden, status, orderByComparator); 2024 } 2025 2026 /** 2027 * Returns all the document library folders that the user has permission to view where groupId = ? and parentFolderId = ? and hidden = ? and status = ?. 2028 * 2029 * @param groupId the group ID 2030 * @param parentFolderId the parent folder ID 2031 * @param hidden the hidden 2032 * @param status the status 2033 * @return the matching document library folders that the user has permission to view 2034 * @throws SystemException if a system exception occurred 2035 */ 2036 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_H_S( 2037 long groupId, long parentFolderId, boolean hidden, int status) 2038 throws com.liferay.portal.kernel.exception.SystemException { 2039 return getPersistence() 2040 .filterFindByG_P_H_S(groupId, parentFolderId, hidden, status); 2041 } 2042 2043 /** 2044 * Returns a range of all the document library folders that the user has permission to view where groupId = ? and parentFolderId = ? and hidden = ? and status = ?. 2045 * 2046 * <p> 2047 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2048 * </p> 2049 * 2050 * @param groupId the group ID 2051 * @param parentFolderId the parent folder ID 2052 * @param hidden the hidden 2053 * @param status the status 2054 * @param start the lower bound of the range of document library folders 2055 * @param end the upper bound of the range of document library folders (not inclusive) 2056 * @return the range of matching document library folders that the user has permission to view 2057 * @throws SystemException if a system exception occurred 2058 */ 2059 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_H_S( 2060 long groupId, long parentFolderId, boolean hidden, int status, 2061 int start, int end) 2062 throws com.liferay.portal.kernel.exception.SystemException { 2063 return getPersistence() 2064 .filterFindByG_P_H_S(groupId, parentFolderId, hidden, 2065 status, start, end); 2066 } 2067 2068 /** 2069 * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = ? and parentFolderId = ? and hidden = ? and status = ?. 2070 * 2071 * <p> 2072 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2073 * </p> 2074 * 2075 * @param groupId the group ID 2076 * @param parentFolderId the parent folder ID 2077 * @param hidden the hidden 2078 * @param status the status 2079 * @param start the lower bound of the range of document library folders 2080 * @param end the upper bound of the range of document library folders (not inclusive) 2081 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2082 * @return the ordered range of matching document library folders that the user has permission to view 2083 * @throws SystemException if a system exception occurred 2084 */ 2085 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_H_S( 2086 long groupId, long parentFolderId, boolean hidden, int status, 2087 int start, int end, 2088 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2089 throws com.liferay.portal.kernel.exception.SystemException { 2090 return getPersistence() 2091 .filterFindByG_P_H_S(groupId, parentFolderId, hidden, 2092 status, start, end, orderByComparator); 2093 } 2094 2095 /** 2096 * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = ? and parentFolderId = ? and hidden = ? and status = ?. 2097 * 2098 * @param folderId the primary key of the current document library folder 2099 * @param groupId the group ID 2100 * @param parentFolderId the parent folder ID 2101 * @param hidden the hidden 2102 * @param status the status 2103 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2104 * @return the previous, current, and next document library folder 2105 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 2106 * @throws SystemException if a system exception occurred 2107 */ 2108 public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_P_H_S_PrevAndNext( 2109 long folderId, long groupId, long parentFolderId, boolean hidden, 2110 int status, 2111 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2112 throws com.liferay.portal.kernel.exception.SystemException, 2113 com.liferay.portlet.documentlibrary.NoSuchFolderException { 2114 return getPersistence() 2115 .filterFindByG_P_H_S_PrevAndNext(folderId, groupId, 2116 parentFolderId, hidden, status, orderByComparator); 2117 } 2118 2119 /** 2120 * Removes all the document library folders where groupId = ? and parentFolderId = ? and hidden = ? and status = ? from the database. 2121 * 2122 * @param groupId the group ID 2123 * @param parentFolderId the parent folder ID 2124 * @param hidden the hidden 2125 * @param status the status 2126 * @throws SystemException if a system exception occurred 2127 */ 2128 public static void removeByG_P_H_S(long groupId, long parentFolderId, 2129 boolean hidden, int status) 2130 throws com.liferay.portal.kernel.exception.SystemException { 2131 getPersistence().removeByG_P_H_S(groupId, parentFolderId, hidden, status); 2132 } 2133 2134 /** 2135 * Returns the number of document library folders where groupId = ? and parentFolderId = ? and hidden = ? and status = ?. 2136 * 2137 * @param groupId the group ID 2138 * @param parentFolderId the parent folder ID 2139 * @param hidden the hidden 2140 * @param status the status 2141 * @return the number of matching document library folders 2142 * @throws SystemException if a system exception occurred 2143 */ 2144 public static int countByG_P_H_S(long groupId, long parentFolderId, 2145 boolean hidden, int status) 2146 throws com.liferay.portal.kernel.exception.SystemException { 2147 return getPersistence() 2148 .countByG_P_H_S(groupId, parentFolderId, hidden, status); 2149 } 2150 2151 /** 2152 * Returns the number of document library folders that the user has permission to view where groupId = ? and parentFolderId = ? and hidden = ? and status = ?. 2153 * 2154 * @param groupId the group ID 2155 * @param parentFolderId the parent folder ID 2156 * @param hidden the hidden 2157 * @param status the status 2158 * @return the number of matching document library folders that the user has permission to view 2159 * @throws SystemException if a system exception occurred 2160 */ 2161 public static int filterCountByG_P_H_S(long groupId, long parentFolderId, 2162 boolean hidden, int status) 2163 throws com.liferay.portal.kernel.exception.SystemException { 2164 return getPersistence() 2165 .filterCountByG_P_H_S(groupId, parentFolderId, hidden, status); 2166 } 2167 2168 /** 2169 * Returns all the document library folders where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? and status = ?. 2170 * 2171 * @param groupId the group ID 2172 * @param mountPoint the mount point 2173 * @param parentFolderId the parent folder ID 2174 * @param hidden the hidden 2175 * @param status the status 2176 * @return the matching document library folders 2177 * @throws SystemException if a system exception occurred 2178 */ 2179 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H_S( 2180 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 2181 int status) throws com.liferay.portal.kernel.exception.SystemException { 2182 return getPersistence() 2183 .findByG_M_P_H_S(groupId, mountPoint, parentFolderId, 2184 hidden, status); 2185 } 2186 2187 /** 2188 * Returns a range of all the document library folders where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? and status = ?. 2189 * 2190 * <p> 2191 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2192 * </p> 2193 * 2194 * @param groupId the group ID 2195 * @param mountPoint the mount point 2196 * @param parentFolderId the parent folder ID 2197 * @param hidden the hidden 2198 * @param status the status 2199 * @param start the lower bound of the range of document library folders 2200 * @param end the upper bound of the range of document library folders (not inclusive) 2201 * @return the range of matching document library folders 2202 * @throws SystemException if a system exception occurred 2203 */ 2204 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H_S( 2205 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 2206 int status, int start, int end) 2207 throws com.liferay.portal.kernel.exception.SystemException { 2208 return getPersistence() 2209 .findByG_M_P_H_S(groupId, mountPoint, parentFolderId, 2210 hidden, status, start, end); 2211 } 2212 2213 /** 2214 * Returns an ordered range of all the document library folders where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? and status = ?. 2215 * 2216 * <p> 2217 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2218 * </p> 2219 * 2220 * @param groupId the group ID 2221 * @param mountPoint the mount point 2222 * @param parentFolderId the parent folder ID 2223 * @param hidden the hidden 2224 * @param status the status 2225 * @param start the lower bound of the range of document library folders 2226 * @param end the upper bound of the range of document library folders (not inclusive) 2227 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2228 * @return the ordered range of matching document library folders 2229 * @throws SystemException if a system exception occurred 2230 */ 2231 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H_S( 2232 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 2233 int status, int start, int end, 2234 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2235 throws com.liferay.portal.kernel.exception.SystemException { 2236 return getPersistence() 2237 .findByG_M_P_H_S(groupId, mountPoint, parentFolderId, 2238 hidden, status, start, end, orderByComparator); 2239 } 2240 2241 /** 2242 * Returns the first document library folder in the ordered set where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? and status = ?. 2243 * 2244 * @param groupId the group ID 2245 * @param mountPoint the mount point 2246 * @param parentFolderId the parent folder ID 2247 * @param hidden the hidden 2248 * @param status the status 2249 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2250 * @return the first matching document library folder 2251 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 2252 * @throws SystemException if a system exception occurred 2253 */ 2254 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_S_First( 2255 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 2256 int status, 2257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2258 throws com.liferay.portal.kernel.exception.SystemException, 2259 com.liferay.portlet.documentlibrary.NoSuchFolderException { 2260 return getPersistence() 2261 .findByG_M_P_H_S_First(groupId, mountPoint, parentFolderId, 2262 hidden, status, orderByComparator); 2263 } 2264 2265 /** 2266 * Returns the first document library folder in the ordered set where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? and status = ?. 2267 * 2268 * @param groupId the group ID 2269 * @param mountPoint the mount point 2270 * @param parentFolderId the parent folder ID 2271 * @param hidden the hidden 2272 * @param status the status 2273 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2274 * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found 2275 * @throws SystemException if a system exception occurred 2276 */ 2277 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_S_First( 2278 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 2279 int status, 2280 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2281 throws com.liferay.portal.kernel.exception.SystemException { 2282 return getPersistence() 2283 .fetchByG_M_P_H_S_First(groupId, mountPoint, parentFolderId, 2284 hidden, status, orderByComparator); 2285 } 2286 2287 /** 2288 * Returns the last document library folder in the ordered set where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? and status = ?. 2289 * 2290 * @param groupId the group ID 2291 * @param mountPoint the mount point 2292 * @param parentFolderId the parent folder ID 2293 * @param hidden the hidden 2294 * @param status the status 2295 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2296 * @return the last matching document library folder 2297 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 2298 * @throws SystemException if a system exception occurred 2299 */ 2300 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_S_Last( 2301 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 2302 int status, 2303 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2304 throws com.liferay.portal.kernel.exception.SystemException, 2305 com.liferay.portlet.documentlibrary.NoSuchFolderException { 2306 return getPersistence() 2307 .findByG_M_P_H_S_Last(groupId, mountPoint, parentFolderId, 2308 hidden, status, orderByComparator); 2309 } 2310 2311 /** 2312 * Returns the last document library folder in the ordered set where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? and status = ?. 2313 * 2314 * @param groupId the group ID 2315 * @param mountPoint the mount point 2316 * @param parentFolderId the parent folder ID 2317 * @param hidden the hidden 2318 * @param status the status 2319 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2320 * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found 2321 * @throws SystemException if a system exception occurred 2322 */ 2323 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_S_Last( 2324 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 2325 int status, 2326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2327 throws com.liferay.portal.kernel.exception.SystemException { 2328 return getPersistence() 2329 .fetchByG_M_P_H_S_Last(groupId, mountPoint, parentFolderId, 2330 hidden, status, orderByComparator); 2331 } 2332 2333 /** 2334 * Returns the document library folders before and after the current document library folder in the ordered set where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? and status = ?. 2335 * 2336 * @param folderId the primary key of the current document library folder 2337 * @param groupId the group ID 2338 * @param mountPoint the mount point 2339 * @param parentFolderId the parent folder ID 2340 * @param hidden the hidden 2341 * @param status the status 2342 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2343 * @return the previous, current, and next document library folder 2344 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 2345 * @throws SystemException if a system exception occurred 2346 */ 2347 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_M_P_H_S_PrevAndNext( 2348 long folderId, long groupId, boolean mountPoint, long parentFolderId, 2349 boolean hidden, int status, 2350 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2351 throws com.liferay.portal.kernel.exception.SystemException, 2352 com.liferay.portlet.documentlibrary.NoSuchFolderException { 2353 return getPersistence() 2354 .findByG_M_P_H_S_PrevAndNext(folderId, groupId, mountPoint, 2355 parentFolderId, hidden, status, orderByComparator); 2356 } 2357 2358 /** 2359 * Returns all the document library folders that the user has permission to view where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? and status = ?. 2360 * 2361 * @param groupId the group ID 2362 * @param mountPoint the mount point 2363 * @param parentFolderId the parent folder ID 2364 * @param hidden the hidden 2365 * @param status the status 2366 * @return the matching document library folders that the user has permission to view 2367 * @throws SystemException if a system exception occurred 2368 */ 2369 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H_S( 2370 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 2371 int status) throws com.liferay.portal.kernel.exception.SystemException { 2372 return getPersistence() 2373 .filterFindByG_M_P_H_S(groupId, mountPoint, parentFolderId, 2374 hidden, status); 2375 } 2376 2377 /** 2378 * Returns a range of all the document library folders that the user has permission to view where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? and status = ?. 2379 * 2380 * <p> 2381 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2382 * </p> 2383 * 2384 * @param groupId the group ID 2385 * @param mountPoint the mount point 2386 * @param parentFolderId the parent folder ID 2387 * @param hidden the hidden 2388 * @param status the status 2389 * @param start the lower bound of the range of document library folders 2390 * @param end the upper bound of the range of document library folders (not inclusive) 2391 * @return the range of matching document library folders that the user has permission to view 2392 * @throws SystemException if a system exception occurred 2393 */ 2394 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H_S( 2395 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 2396 int status, int start, int end) 2397 throws com.liferay.portal.kernel.exception.SystemException { 2398 return getPersistence() 2399 .filterFindByG_M_P_H_S(groupId, mountPoint, parentFolderId, 2400 hidden, status, start, end); 2401 } 2402 2403 /** 2404 * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? and status = ?. 2405 * 2406 * <p> 2407 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2408 * </p> 2409 * 2410 * @param groupId the group ID 2411 * @param mountPoint the mount point 2412 * @param parentFolderId the parent folder ID 2413 * @param hidden the hidden 2414 * @param status the status 2415 * @param start the lower bound of the range of document library folders 2416 * @param end the upper bound of the range of document library folders (not inclusive) 2417 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2418 * @return the ordered range of matching document library folders that the user has permission to view 2419 * @throws SystemException if a system exception occurred 2420 */ 2421 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H_S( 2422 long groupId, boolean mountPoint, long parentFolderId, boolean hidden, 2423 int status, int start, int end, 2424 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2425 throws com.liferay.portal.kernel.exception.SystemException { 2426 return getPersistence() 2427 .filterFindByG_M_P_H_S(groupId, mountPoint, parentFolderId, 2428 hidden, status, start, end, orderByComparator); 2429 } 2430 2431 /** 2432 * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? and status = ?. 2433 * 2434 * @param folderId the primary key of the current document library folder 2435 * @param groupId the group ID 2436 * @param mountPoint the mount point 2437 * @param parentFolderId the parent folder ID 2438 * @param hidden the hidden 2439 * @param status the status 2440 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2441 * @return the previous, current, and next document library folder 2442 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 2443 * @throws SystemException if a system exception occurred 2444 */ 2445 public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_M_P_H_S_PrevAndNext( 2446 long folderId, long groupId, boolean mountPoint, long parentFolderId, 2447 boolean hidden, int status, 2448 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2449 throws com.liferay.portal.kernel.exception.SystemException, 2450 com.liferay.portlet.documentlibrary.NoSuchFolderException { 2451 return getPersistence() 2452 .filterFindByG_M_P_H_S_PrevAndNext(folderId, groupId, 2453 mountPoint, parentFolderId, hidden, status, orderByComparator); 2454 } 2455 2456 /** 2457 * Removes all the document library folders where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? and status = ? from the database. 2458 * 2459 * @param groupId the group ID 2460 * @param mountPoint the mount point 2461 * @param parentFolderId the parent folder ID 2462 * @param hidden the hidden 2463 * @param status the status 2464 * @throws SystemException if a system exception occurred 2465 */ 2466 public static void removeByG_M_P_H_S(long groupId, boolean mountPoint, 2467 long parentFolderId, boolean hidden, int status) 2468 throws com.liferay.portal.kernel.exception.SystemException { 2469 getPersistence() 2470 .removeByG_M_P_H_S(groupId, mountPoint, parentFolderId, hidden, 2471 status); 2472 } 2473 2474 /** 2475 * Returns the number of document library folders where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? and status = ?. 2476 * 2477 * @param groupId the group ID 2478 * @param mountPoint the mount point 2479 * @param parentFolderId the parent folder ID 2480 * @param hidden the hidden 2481 * @param status the status 2482 * @return the number of matching document library folders 2483 * @throws SystemException if a system exception occurred 2484 */ 2485 public static int countByG_M_P_H_S(long groupId, boolean mountPoint, 2486 long parentFolderId, boolean hidden, int status) 2487 throws com.liferay.portal.kernel.exception.SystemException { 2488 return getPersistence() 2489 .countByG_M_P_H_S(groupId, mountPoint, parentFolderId, 2490 hidden, status); 2491 } 2492 2493 /** 2494 * Returns the number of document library folders that the user has permission to view where groupId = ? and mountPoint = ? and parentFolderId = ? and hidden = ? and status = ?. 2495 * 2496 * @param groupId the group ID 2497 * @param mountPoint the mount point 2498 * @param parentFolderId the parent folder ID 2499 * @param hidden the hidden 2500 * @param status the status 2501 * @return the number of matching document library folders that the user has permission to view 2502 * @throws SystemException if a system exception occurred 2503 */ 2504 public static int filterCountByG_M_P_H_S(long groupId, boolean mountPoint, 2505 long parentFolderId, boolean hidden, int status) 2506 throws com.liferay.portal.kernel.exception.SystemException { 2507 return getPersistence() 2508 .filterCountByG_M_P_H_S(groupId, mountPoint, parentFolderId, 2509 hidden, status); 2510 } 2511 2512 /** 2513 * Caches the document library folder in the entity cache if it is enabled. 2514 * 2515 * @param dlFolder the document library folder 2516 */ 2517 public static void cacheResult( 2518 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) { 2519 getPersistence().cacheResult(dlFolder); 2520 } 2521 2522 /** 2523 * Caches the document library folders in the entity cache if it is enabled. 2524 * 2525 * @param dlFolders the document library folders 2526 */ 2527 public static void cacheResult( 2528 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders) { 2529 getPersistence().cacheResult(dlFolders); 2530 } 2531 2532 /** 2533 * Creates a new document library folder with the primary key. Does not add the document library folder to the database. 2534 * 2535 * @param folderId the primary key for the new document library folder 2536 * @return the new document library folder 2537 */ 2538 public static com.liferay.portlet.documentlibrary.model.DLFolder create( 2539 long folderId) { 2540 return getPersistence().create(folderId); 2541 } 2542 2543 /** 2544 * Removes the document library folder with the primary key from the database. Also notifies the appropriate model listeners. 2545 * 2546 * @param folderId the primary key of the document library folder 2547 * @return the document library folder that was removed 2548 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 2549 * @throws SystemException if a system exception occurred 2550 */ 2551 public static com.liferay.portlet.documentlibrary.model.DLFolder remove( 2552 long folderId) 2553 throws com.liferay.portal.kernel.exception.SystemException, 2554 com.liferay.portlet.documentlibrary.NoSuchFolderException { 2555 return getPersistence().remove(folderId); 2556 } 2557 2558 public static com.liferay.portlet.documentlibrary.model.DLFolder updateImpl( 2559 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) 2560 throws com.liferay.portal.kernel.exception.SystemException { 2561 return getPersistence().updateImpl(dlFolder); 2562 } 2563 2564 /** 2565 * Returns the document library folder with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found. 2566 * 2567 * @param folderId the primary key of the document library folder 2568 * @return the document library folder 2569 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 2570 * @throws SystemException if a system exception occurred 2571 */ 2572 public static com.liferay.portlet.documentlibrary.model.DLFolder findByPrimaryKey( 2573 long folderId) 2574 throws com.liferay.portal.kernel.exception.SystemException, 2575 com.liferay.portlet.documentlibrary.NoSuchFolderException { 2576 return getPersistence().findByPrimaryKey(folderId); 2577 } 2578 2579 /** 2580 * Returns the document library folder with the primary key or returns <code>null</code> if it could not be found. 2581 * 2582 * @param folderId the primary key of the document library folder 2583 * @return the document library folder, or <code>null</code> if a document library folder with the primary key could not be found 2584 * @throws SystemException if a system exception occurred 2585 */ 2586 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByPrimaryKey( 2587 long folderId) 2588 throws com.liferay.portal.kernel.exception.SystemException { 2589 return getPersistence().fetchByPrimaryKey(folderId); 2590 } 2591 2592 /** 2593 * Returns all the document library folders. 2594 * 2595 * @return the document library folders 2596 * @throws SystemException if a system exception occurred 2597 */ 2598 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll() 2599 throws com.liferay.portal.kernel.exception.SystemException { 2600 return getPersistence().findAll(); 2601 } 2602 2603 /** 2604 * Returns a range of all the document library folders. 2605 * 2606 * <p> 2607 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2608 * </p> 2609 * 2610 * @param start the lower bound of the range of document library folders 2611 * @param end the upper bound of the range of document library folders (not inclusive) 2612 * @return the range of document library folders 2613 * @throws SystemException if a system exception occurred 2614 */ 2615 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll( 2616 int start, int end) 2617 throws com.liferay.portal.kernel.exception.SystemException { 2618 return getPersistence().findAll(start, end); 2619 } 2620 2621 /** 2622 * Returns an ordered range of all the document library folders. 2623 * 2624 * <p> 2625 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2626 * </p> 2627 * 2628 * @param start the lower bound of the range of document library folders 2629 * @param end the upper bound of the range of document library folders (not inclusive) 2630 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2631 * @return the ordered range of document library folders 2632 * @throws SystemException if a system exception occurred 2633 */ 2634 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll( 2635 int start, int end, 2636 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2637 throws com.liferay.portal.kernel.exception.SystemException { 2638 return getPersistence().findAll(start, end, orderByComparator); 2639 } 2640 2641 /** 2642 * Removes all the document library folders from the database. 2643 * 2644 * @throws SystemException if a system exception occurred 2645 */ 2646 public static void removeAll() 2647 throws com.liferay.portal.kernel.exception.SystemException { 2648 getPersistence().removeAll(); 2649 } 2650 2651 /** 2652 * Returns the number of document library folders. 2653 * 2654 * @return the number of document library folders 2655 * @throws SystemException if a system exception occurred 2656 */ 2657 public static int countAll() 2658 throws com.liferay.portal.kernel.exception.SystemException { 2659 return getPersistence().countAll(); 2660 } 2661 2662 /** 2663 * Returns all the document library file entry types associated with the document library folder. 2664 * 2665 * @param pk the primary key of the document library folder 2666 * @return the document library file entry types associated with the document library folder 2667 * @throws SystemException if a system exception occurred 2668 */ 2669 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes( 2670 long pk) throws com.liferay.portal.kernel.exception.SystemException { 2671 return getPersistence().getDLFileEntryTypes(pk); 2672 } 2673 2674 /** 2675 * Returns a range of all the document library file entry types associated with the document library folder. 2676 * 2677 * <p> 2678 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2679 * </p> 2680 * 2681 * @param pk the primary key of the document library folder 2682 * @param start the lower bound of the range of document library folders 2683 * @param end the upper bound of the range of document library folders (not inclusive) 2684 * @return the range of document library file entry types associated with the document library folder 2685 * @throws SystemException if a system exception occurred 2686 */ 2687 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes( 2688 long pk, int start, int end) 2689 throws com.liferay.portal.kernel.exception.SystemException { 2690 return getPersistence().getDLFileEntryTypes(pk, start, end); 2691 } 2692 2693 /** 2694 * Returns an ordered range of all the document library file entry types associated with the document library folder. 2695 * 2696 * <p> 2697 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 2698 * </p> 2699 * 2700 * @param pk the primary key of the document library folder 2701 * @param start the lower bound of the range of document library folders 2702 * @param end the upper bound of the range of document library folders (not inclusive) 2703 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2704 * @return the ordered range of document library file entry types associated with the document library folder 2705 * @throws SystemException if a system exception occurred 2706 */ 2707 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes( 2708 long pk, int start, int end, 2709 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2710 throws com.liferay.portal.kernel.exception.SystemException { 2711 return getPersistence() 2712 .getDLFileEntryTypes(pk, start, end, orderByComparator); 2713 } 2714 2715 /** 2716 * Returns the number of document library file entry types associated with the document library folder. 2717 * 2718 * @param pk the primary key of the document library folder 2719 * @return the number of document library file entry types associated with the document library folder 2720 * @throws SystemException if a system exception occurred 2721 */ 2722 public static int getDLFileEntryTypesSize(long pk) 2723 throws com.liferay.portal.kernel.exception.SystemException { 2724 return getPersistence().getDLFileEntryTypesSize(pk); 2725 } 2726 2727 /** 2728 * Returns <code>true</code> if the document library file entry type is associated with the document library folder. 2729 * 2730 * @param pk the primary key of the document library folder 2731 * @param dlFileEntryTypePK the primary key of the document library file entry type 2732 * @return <code>true</code> if the document library file entry type is associated with the document library folder; <code>false</code> otherwise 2733 * @throws SystemException if a system exception occurred 2734 */ 2735 public static boolean containsDLFileEntryType(long pk, 2736 long dlFileEntryTypePK) 2737 throws com.liferay.portal.kernel.exception.SystemException { 2738 return getPersistence().containsDLFileEntryType(pk, dlFileEntryTypePK); 2739 } 2740 2741 /** 2742 * Returns <code>true</code> if the document library folder has any document library file entry types associated with it. 2743 * 2744 * @param pk the primary key of the document library folder to check for associations with document library file entry types 2745 * @return <code>true</code> if the document library folder has any document library file entry types associated with it; <code>false</code> otherwise 2746 * @throws SystemException if a system exception occurred 2747 */ 2748 public static boolean containsDLFileEntryTypes(long pk) 2749 throws com.liferay.portal.kernel.exception.SystemException { 2750 return getPersistence().containsDLFileEntryTypes(pk); 2751 } 2752 2753 /** 2754 * Adds an association between the document library folder and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2755 * 2756 * @param pk the primary key of the document library folder 2757 * @param dlFileEntryTypePK the primary key of the document library file entry type 2758 * @throws SystemException if a system exception occurred 2759 */ 2760 public static void addDLFileEntryType(long pk, long dlFileEntryTypePK) 2761 throws com.liferay.portal.kernel.exception.SystemException { 2762 getPersistence().addDLFileEntryType(pk, dlFileEntryTypePK); 2763 } 2764 2765 /** 2766 * Adds an association between the document library folder and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2767 * 2768 * @param pk the primary key of the document library folder 2769 * @param dlFileEntryType the document library file entry type 2770 * @throws SystemException if a system exception occurred 2771 */ 2772 public static void addDLFileEntryType(long pk, 2773 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) 2774 throws com.liferay.portal.kernel.exception.SystemException { 2775 getPersistence().addDLFileEntryType(pk, dlFileEntryType); 2776 } 2777 2778 /** 2779 * Adds an association between the document library folder and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2780 * 2781 * @param pk the primary key of the document library folder 2782 * @param dlFileEntryTypePKs the primary keys of the document library file entry types 2783 * @throws SystemException if a system exception occurred 2784 */ 2785 public static void addDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs) 2786 throws com.liferay.portal.kernel.exception.SystemException { 2787 getPersistence().addDLFileEntryTypes(pk, dlFileEntryTypePKs); 2788 } 2789 2790 /** 2791 * Adds an association between the document library folder and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2792 * 2793 * @param pk the primary key of the document library folder 2794 * @param dlFileEntryTypes the document library file entry types 2795 * @throws SystemException if a system exception occurred 2796 */ 2797 public static void addDLFileEntryTypes(long pk, 2798 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) 2799 throws com.liferay.portal.kernel.exception.SystemException { 2800 getPersistence().addDLFileEntryTypes(pk, dlFileEntryTypes); 2801 } 2802 2803 /** 2804 * Clears all associations between the document library folder and its document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2805 * 2806 * @param pk the primary key of the document library folder to clear the associated document library file entry types from 2807 * @throws SystemException if a system exception occurred 2808 */ 2809 public static void clearDLFileEntryTypes(long pk) 2810 throws com.liferay.portal.kernel.exception.SystemException { 2811 getPersistence().clearDLFileEntryTypes(pk); 2812 } 2813 2814 /** 2815 * Removes the association between the document library folder and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2816 * 2817 * @param pk the primary key of the document library folder 2818 * @param dlFileEntryTypePK the primary key of the document library file entry type 2819 * @throws SystemException if a system exception occurred 2820 */ 2821 public static void removeDLFileEntryType(long pk, long dlFileEntryTypePK) 2822 throws com.liferay.portal.kernel.exception.SystemException { 2823 getPersistence().removeDLFileEntryType(pk, dlFileEntryTypePK); 2824 } 2825 2826 /** 2827 * Removes the association between the document library folder and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2828 * 2829 * @param pk the primary key of the document library folder 2830 * @param dlFileEntryType the document library file entry type 2831 * @throws SystemException if a system exception occurred 2832 */ 2833 public static void removeDLFileEntryType(long pk, 2834 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) 2835 throws com.liferay.portal.kernel.exception.SystemException { 2836 getPersistence().removeDLFileEntryType(pk, dlFileEntryType); 2837 } 2838 2839 /** 2840 * Removes the association between the document library folder and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2841 * 2842 * @param pk the primary key of the document library folder 2843 * @param dlFileEntryTypePKs the primary keys of the document library file entry types 2844 * @throws SystemException if a system exception occurred 2845 */ 2846 public static void removeDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs) 2847 throws com.liferay.portal.kernel.exception.SystemException { 2848 getPersistence().removeDLFileEntryTypes(pk, dlFileEntryTypePKs); 2849 } 2850 2851 /** 2852 * Removes the association between the document library folder and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2853 * 2854 * @param pk the primary key of the document library folder 2855 * @param dlFileEntryTypes the document library file entry types 2856 * @throws SystemException if a system exception occurred 2857 */ 2858 public static void removeDLFileEntryTypes(long pk, 2859 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) 2860 throws com.liferay.portal.kernel.exception.SystemException { 2861 getPersistence().removeDLFileEntryTypes(pk, dlFileEntryTypes); 2862 } 2863 2864 /** 2865 * Sets the document library file entry types associated with the document library folder, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2866 * 2867 * @param pk the primary key of the document library folder 2868 * @param dlFileEntryTypePKs the primary keys of the document library file entry types to be associated with the document library folder 2869 * @throws SystemException if a system exception occurred 2870 */ 2871 public static void setDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs) 2872 throws com.liferay.portal.kernel.exception.SystemException { 2873 getPersistence().setDLFileEntryTypes(pk, dlFileEntryTypePKs); 2874 } 2875 2876 /** 2877 * Sets the document library file entry types associated with the document library folder, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 2878 * 2879 * @param pk the primary key of the document library folder 2880 * @param dlFileEntryTypes the document library file entry types to be associated with the document library folder 2881 * @throws SystemException if a system exception occurred 2882 */ 2883 public static void setDLFileEntryTypes(long pk, 2884 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) 2885 throws com.liferay.portal.kernel.exception.SystemException { 2886 getPersistence().setDLFileEntryTypes(pk, dlFileEntryTypes); 2887 } 2888 2889 public static DLFolderPersistence getPersistence() { 2890 if (_persistence == null) { 2891 _persistence = (DLFolderPersistence)PortalBeanLocatorUtil.locate(DLFolderPersistence.class.getName()); 2892 2893 ReferenceRegistry.registerReference(DLFolderUtil.class, 2894 "_persistence"); 2895 } 2896 2897 return _persistence; 2898 } 2899 2900 /** 2901 * @deprecated As of 6.2.0 2902 */ 2903 public void setPersistence(DLFolderPersistence persistence) { 2904 } 2905 2906 private static DLFolderPersistence _persistence; 2907 }