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