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