001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.documentlibrary.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.documentlibrary.model.DLFolder; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the document library folder service. This utility wraps {@link DLFolderPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see DLFolderPersistence 037 * @see DLFolderPersistenceImpl 038 * @generated 039 */ 040 public class DLFolderUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(DLFolder dlFolder) { 058 getPersistence().clearCache(dlFolder); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<DLFolder> findWithDynamicQuery(DynamicQuery dynamicQuery) 073 throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<DLFolder> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<DLFolder> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 099 */ 100 public static DLFolder remove(DLFolder dlFolder) throws SystemException { 101 return getPersistence().remove(dlFolder); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 106 */ 107 public static DLFolder update(DLFolder dlFolder, boolean merge) 108 throws SystemException { 109 return getPersistence().update(dlFolder, merge); 110 } 111 112 /** 113 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 114 */ 115 public static DLFolder update(DLFolder dlFolder, boolean merge, 116 ServiceContext serviceContext) throws SystemException { 117 return getPersistence().update(dlFolder, merge, serviceContext); 118 } 119 120 /** 121 * Caches the document library folder in the entity cache if it is enabled. 122 * 123 * @param dlFolder the document library folder 124 */ 125 public static void cacheResult( 126 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) { 127 getPersistence().cacheResult(dlFolder); 128 } 129 130 /** 131 * Caches the document library folders in the entity cache if it is enabled. 132 * 133 * @param dlFolders the document library folders 134 */ 135 public static void cacheResult( 136 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders) { 137 getPersistence().cacheResult(dlFolders); 138 } 139 140 /** 141 * Creates a new document library folder with the primary key. Does not add the document library folder to the database. 142 * 143 * @param folderId the primary key for the new document library folder 144 * @return the new document library folder 145 */ 146 public static com.liferay.portlet.documentlibrary.model.DLFolder create( 147 long folderId) { 148 return getPersistence().create(folderId); 149 } 150 151 /** 152 * Removes the document library folder with the primary key from the database. Also notifies the appropriate model listeners. 153 * 154 * @param folderId the primary key of the document library folder 155 * @return the document library folder that was removed 156 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 157 * @throws SystemException if a system exception occurred 158 */ 159 public static com.liferay.portlet.documentlibrary.model.DLFolder remove( 160 long folderId) 161 throws com.liferay.portal.kernel.exception.SystemException, 162 com.liferay.portlet.documentlibrary.NoSuchFolderException { 163 return getPersistence().remove(folderId); 164 } 165 166 public static com.liferay.portlet.documentlibrary.model.DLFolder updateImpl( 167 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder, 168 boolean merge) 169 throws com.liferay.portal.kernel.exception.SystemException { 170 return getPersistence().updateImpl(dlFolder, merge); 171 } 172 173 /** 174 * Returns the document library folder with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found. 175 * 176 * @param folderId the primary key of the document library folder 177 * @return the document library folder 178 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 179 * @throws SystemException if a system exception occurred 180 */ 181 public static com.liferay.portlet.documentlibrary.model.DLFolder findByPrimaryKey( 182 long folderId) 183 throws com.liferay.portal.kernel.exception.SystemException, 184 com.liferay.portlet.documentlibrary.NoSuchFolderException { 185 return getPersistence().findByPrimaryKey(folderId); 186 } 187 188 /** 189 * Returns the document library folder with the primary key or returns <code>null</code> if it could not be found. 190 * 191 * @param folderId the primary key of the document library folder 192 * @return the document library folder, or <code>null</code> if a document library folder with the primary key could not be found 193 * @throws SystemException if a system exception occurred 194 */ 195 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByPrimaryKey( 196 long folderId) 197 throws com.liferay.portal.kernel.exception.SystemException { 198 return getPersistence().fetchByPrimaryKey(folderId); 199 } 200 201 /** 202 * Returns all the document library folders where uuid = ?. 203 * 204 * @param uuid the uuid 205 * @return the matching document library folders 206 * @throws SystemException if a system exception occurred 207 */ 208 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid( 209 java.lang.String uuid) 210 throws com.liferay.portal.kernel.exception.SystemException { 211 return getPersistence().findByUuid(uuid); 212 } 213 214 /** 215 * Returns a range of all the document library folders where uuid = ?. 216 * 217 * <p> 218 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 219 * </p> 220 * 221 * @param uuid the uuid 222 * @param start the lower bound of the range of document library folders 223 * @param end the upper bound of the range of document library folders (not inclusive) 224 * @return the range of matching document library folders 225 * @throws SystemException if a system exception occurred 226 */ 227 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid( 228 java.lang.String uuid, int start, int end) 229 throws com.liferay.portal.kernel.exception.SystemException { 230 return getPersistence().findByUuid(uuid, start, end); 231 } 232 233 /** 234 * Returns an ordered range of all the document library folders where uuid = ?. 235 * 236 * <p> 237 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 238 * </p> 239 * 240 * @param uuid the uuid 241 * @param start the lower bound of the range of document library folders 242 * @param end the upper bound of the range of document library folders (not inclusive) 243 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 244 * @return the ordered range of matching document library folders 245 * @throws SystemException if a system exception occurred 246 */ 247 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid( 248 java.lang.String uuid, int start, int end, 249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 250 throws com.liferay.portal.kernel.exception.SystemException { 251 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 252 } 253 254 /** 255 * Returns the first document library folder in the ordered set where uuid = ?. 256 * 257 * <p> 258 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 259 * </p> 260 * 261 * @param uuid the uuid 262 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 263 * @return the first matching document library folder 264 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 265 * @throws SystemException if a system exception occurred 266 */ 267 public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_First( 268 java.lang.String uuid, 269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 270 throws com.liferay.portal.kernel.exception.SystemException, 271 com.liferay.portlet.documentlibrary.NoSuchFolderException { 272 return getPersistence().findByUuid_First(uuid, orderByComparator); 273 } 274 275 /** 276 * Returns the last document library folder in the ordered set where uuid = ?. 277 * 278 * <p> 279 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 280 * </p> 281 * 282 * @param uuid the uuid 283 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 284 * @return the last matching document library folder 285 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 286 * @throws SystemException if a system exception occurred 287 */ 288 public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_Last( 289 java.lang.String uuid, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.kernel.exception.SystemException, 292 com.liferay.portlet.documentlibrary.NoSuchFolderException { 293 return getPersistence().findByUuid_Last(uuid, orderByComparator); 294 } 295 296 /** 297 * Returns the document library folders before and after the current document library folder in the ordered set where uuid = ?. 298 * 299 * <p> 300 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 301 * </p> 302 * 303 * @param folderId the primary key of the current document library folder 304 * @param uuid the uuid 305 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 306 * @return the previous, current, and next document library folder 307 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 308 * @throws SystemException if a system exception occurred 309 */ 310 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByUuid_PrevAndNext( 311 long folderId, java.lang.String uuid, 312 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 313 throws com.liferay.portal.kernel.exception.SystemException, 314 com.liferay.portlet.documentlibrary.NoSuchFolderException { 315 return getPersistence() 316 .findByUuid_PrevAndNext(folderId, uuid, orderByComparator); 317 } 318 319 /** 320 * Returns the document library folder where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found. 321 * 322 * @param uuid the uuid 323 * @param groupId the group ID 324 * @return the matching document library folder 325 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 326 * @throws SystemException if a system exception occurred 327 */ 328 public static com.liferay.portlet.documentlibrary.model.DLFolder findByUUID_G( 329 java.lang.String uuid, long groupId) 330 throws com.liferay.portal.kernel.exception.SystemException, 331 com.liferay.portlet.documentlibrary.NoSuchFolderException { 332 return getPersistence().findByUUID_G(uuid, groupId); 333 } 334 335 /** 336 * Returns the document library folder where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 337 * 338 * @param uuid the uuid 339 * @param groupId the group ID 340 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 341 * @throws SystemException if a system exception occurred 342 */ 343 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G( 344 java.lang.String uuid, long groupId) 345 throws com.liferay.portal.kernel.exception.SystemException { 346 return getPersistence().fetchByUUID_G(uuid, groupId); 347 } 348 349 /** 350 * 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. 351 * 352 * @param uuid the uuid 353 * @param groupId the group ID 354 * @param retrieveFromCache whether to use the finder cache 355 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 356 * @throws SystemException if a system exception occurred 357 */ 358 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G( 359 java.lang.String uuid, long groupId, boolean retrieveFromCache) 360 throws com.liferay.portal.kernel.exception.SystemException { 361 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 362 } 363 364 /** 365 * Returns all the document library folders where groupId = ?. 366 * 367 * @param groupId the group ID 368 * @return the matching document library folders 369 * @throws SystemException if a system exception occurred 370 */ 371 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId( 372 long groupId) 373 throws com.liferay.portal.kernel.exception.SystemException { 374 return getPersistence().findByGroupId(groupId); 375 } 376 377 /** 378 * Returns a range of all the document library folders where groupId = ?. 379 * 380 * <p> 381 * 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. 382 * </p> 383 * 384 * @param groupId the group ID 385 * @param start the lower bound of the range of document library folders 386 * @param end the upper bound of the range of document library folders (not inclusive) 387 * @return the range of matching document library folders 388 * @throws SystemException if a system exception occurred 389 */ 390 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId( 391 long groupId, int start, int end) 392 throws com.liferay.portal.kernel.exception.SystemException { 393 return getPersistence().findByGroupId(groupId, start, end); 394 } 395 396 /** 397 * Returns an ordered range of all the document library folders where groupId = ?. 398 * 399 * <p> 400 * 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. 401 * </p> 402 * 403 * @param groupId the group ID 404 * @param start the lower bound of the range of document library folders 405 * @param end the upper bound of the range of document library folders (not inclusive) 406 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 407 * @return the ordered range of matching document library folders 408 * @throws SystemException if a system exception occurred 409 */ 410 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId( 411 long groupId, int start, int end, 412 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 413 throws com.liferay.portal.kernel.exception.SystemException { 414 return getPersistence() 415 .findByGroupId(groupId, start, end, orderByComparator); 416 } 417 418 /** 419 * Returns the first document library folder in the ordered set where groupId = ?. 420 * 421 * <p> 422 * 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. 423 * </p> 424 * 425 * @param groupId the group ID 426 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 427 * @return the first matching document library folder 428 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 429 * @throws SystemException if a system exception occurred 430 */ 431 public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_First( 432 long groupId, 433 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 434 throws com.liferay.portal.kernel.exception.SystemException, 435 com.liferay.portlet.documentlibrary.NoSuchFolderException { 436 return getPersistence().findByGroupId_First(groupId, orderByComparator); 437 } 438 439 /** 440 * Returns the last document library folder in the ordered set where groupId = ?. 441 * 442 * <p> 443 * 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. 444 * </p> 445 * 446 * @param groupId the group ID 447 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 448 * @return the last matching document library folder 449 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 450 * @throws SystemException if a system exception occurred 451 */ 452 public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last( 453 long groupId, 454 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 455 throws com.liferay.portal.kernel.exception.SystemException, 456 com.liferay.portlet.documentlibrary.NoSuchFolderException { 457 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 458 } 459 460 /** 461 * Returns the document library folders before and after the current document library folder in the ordered set where groupId = ?. 462 * 463 * <p> 464 * 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. 465 * </p> 466 * 467 * @param folderId the primary key of the current document library folder 468 * @param groupId the group ID 469 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 470 * @return the previous, current, and next document library folder 471 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 472 * @throws SystemException if a system exception occurred 473 */ 474 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByGroupId_PrevAndNext( 475 long folderId, long groupId, 476 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 477 throws com.liferay.portal.kernel.exception.SystemException, 478 com.liferay.portlet.documentlibrary.NoSuchFolderException { 479 return getPersistence() 480 .findByGroupId_PrevAndNext(folderId, groupId, 481 orderByComparator); 482 } 483 484 /** 485 * Returns all the document library folders that the user has permission to view where groupId = ?. 486 * 487 * @param groupId the group ID 488 * @return the matching document library folders that the user has permission to view 489 * @throws SystemException if a system exception occurred 490 */ 491 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId( 492 long groupId) 493 throws com.liferay.portal.kernel.exception.SystemException { 494 return getPersistence().filterFindByGroupId(groupId); 495 } 496 497 /** 498 * Returns a range of all the document library folders that the user has permission to view where groupId = ?. 499 * 500 * <p> 501 * 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. 502 * </p> 503 * 504 * @param groupId the group ID 505 * @param start the lower bound of the range of document library folders 506 * @param end the upper bound of the range of document library folders (not inclusive) 507 * @return the range of matching document library folders that the user has permission to view 508 * @throws SystemException if a system exception occurred 509 */ 510 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId( 511 long groupId, int start, int end) 512 throws com.liferay.portal.kernel.exception.SystemException { 513 return getPersistence().filterFindByGroupId(groupId, start, end); 514 } 515 516 /** 517 * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = ?. 518 * 519 * <p> 520 * 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. 521 * </p> 522 * 523 * @param groupId the group ID 524 * @param start the lower bound of the range of document library folders 525 * @param end the upper bound of the range of document library folders (not inclusive) 526 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 527 * @return the ordered range of matching document library folders that the user has permission to view 528 * @throws SystemException if a system exception occurred 529 */ 530 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId( 531 long groupId, int start, int end, 532 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 533 throws com.liferay.portal.kernel.exception.SystemException { 534 return getPersistence() 535 .filterFindByGroupId(groupId, start, end, orderByComparator); 536 } 537 538 /** 539 * 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 = ?. 540 * 541 * @param folderId the primary key of the current document library folder 542 * @param groupId the group ID 543 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 544 * @return the previous, current, and next document library folder 545 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 546 * @throws SystemException if a system exception occurred 547 */ 548 public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByGroupId_PrevAndNext( 549 long folderId, long groupId, 550 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 551 throws com.liferay.portal.kernel.exception.SystemException, 552 com.liferay.portlet.documentlibrary.NoSuchFolderException { 553 return getPersistence() 554 .filterFindByGroupId_PrevAndNext(folderId, groupId, 555 orderByComparator); 556 } 557 558 /** 559 * Returns all the document library folders where companyId = ?. 560 * 561 * @param companyId the company ID 562 * @return the 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> findByCompanyId( 566 long companyId) 567 throws com.liferay.portal.kernel.exception.SystemException { 568 return getPersistence().findByCompanyId(companyId); 569 } 570 571 /** 572 * Returns a range of all the document library folders where companyId = ?. 573 * 574 * <p> 575 * 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. 576 * </p> 577 * 578 * @param companyId the company ID 579 * @param start the lower bound of the range of document library folders 580 * @param end the upper bound of the range of document library folders (not inclusive) 581 * @return the range of matching document library folders 582 * @throws SystemException if a system exception occurred 583 */ 584 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId( 585 long companyId, int start, int end) 586 throws com.liferay.portal.kernel.exception.SystemException { 587 return getPersistence().findByCompanyId(companyId, start, end); 588 } 589 590 /** 591 * Returns an ordered range of all the document library folders where companyId = ?. 592 * 593 * <p> 594 * 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. 595 * </p> 596 * 597 * @param companyId the company ID 598 * @param start the lower bound of the range of document library folders 599 * @param end the upper bound of the range of document library folders (not inclusive) 600 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 601 * @return the ordered range of matching document library folders 602 * @throws SystemException if a system exception occurred 603 */ 604 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId( 605 long companyId, int start, int end, 606 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 607 throws com.liferay.portal.kernel.exception.SystemException { 608 return getPersistence() 609 .findByCompanyId(companyId, start, end, orderByComparator); 610 } 611 612 /** 613 * Returns the first document library folder in the ordered set where companyId = ?. 614 * 615 * <p> 616 * 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. 617 * </p> 618 * 619 * @param companyId the company ID 620 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 621 * @return the first matching document library folder 622 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 623 * @throws SystemException if a system exception occurred 624 */ 625 public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_First( 626 long companyId, 627 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 628 throws com.liferay.portal.kernel.exception.SystemException, 629 com.liferay.portlet.documentlibrary.NoSuchFolderException { 630 return getPersistence() 631 .findByCompanyId_First(companyId, orderByComparator); 632 } 633 634 /** 635 * Returns the last document library folder in the ordered set where companyId = ?. 636 * 637 * <p> 638 * 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. 639 * </p> 640 * 641 * @param companyId the company ID 642 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 643 * @return the last matching document library folder 644 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 645 * @throws SystemException if a system exception occurred 646 */ 647 public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last( 648 long companyId, 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 .findByCompanyId_Last(companyId, orderByComparator); 654 } 655 656 /** 657 * Returns the document library folders before and after the current document library folder in the ordered set where companyId = ?. 658 * 659 * <p> 660 * 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. 661 * </p> 662 * 663 * @param folderId the primary key of the current document library folder 664 * @param companyId the company ID 665 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 666 * @return the previous, current, and next document library folder 667 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 668 * @throws SystemException if a system exception occurred 669 */ 670 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByCompanyId_PrevAndNext( 671 long folderId, long companyId, 672 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 673 throws com.liferay.portal.kernel.exception.SystemException, 674 com.liferay.portlet.documentlibrary.NoSuchFolderException { 675 return getPersistence() 676 .findByCompanyId_PrevAndNext(folderId, companyId, 677 orderByComparator); 678 } 679 680 /** 681 * Returns the document library folder where repositoryId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found. 682 * 683 * @param repositoryId the repository ID 684 * @return the matching document library folder 685 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 686 * @throws SystemException if a system exception occurred 687 */ 688 public static com.liferay.portlet.documentlibrary.model.DLFolder findByRepositoryId( 689 long repositoryId) 690 throws com.liferay.portal.kernel.exception.SystemException, 691 com.liferay.portlet.documentlibrary.NoSuchFolderException { 692 return getPersistence().findByRepositoryId(repositoryId); 693 } 694 695 /** 696 * Returns the document library folder where repositoryId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 697 * 698 * @param repositoryId the repository ID 699 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 700 * @throws SystemException if a system exception occurred 701 */ 702 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByRepositoryId( 703 long repositoryId) 704 throws com.liferay.portal.kernel.exception.SystemException { 705 return getPersistence().fetchByRepositoryId(repositoryId); 706 } 707 708 /** 709 * Returns the document library folder where repositoryId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 710 * 711 * @param repositoryId the repository ID 712 * @param retrieveFromCache whether to use the finder cache 713 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 714 * @throws SystemException if a system exception occurred 715 */ 716 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByRepositoryId( 717 long repositoryId, boolean retrieveFromCache) 718 throws com.liferay.portal.kernel.exception.SystemException { 719 return getPersistence() 720 .fetchByRepositoryId(repositoryId, retrieveFromCache); 721 } 722 723 /** 724 * Returns all the document library folders where groupId = ? and parentFolderId = ?. 725 * 726 * @param groupId the group ID 727 * @param parentFolderId the parent folder ID 728 * @return the matching document library folders 729 * @throws SystemException if a system exception occurred 730 */ 731 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P( 732 long groupId, long parentFolderId) 733 throws com.liferay.portal.kernel.exception.SystemException { 734 return getPersistence().findByG_P(groupId, parentFolderId); 735 } 736 737 /** 738 * Returns a range of all the document library folders where groupId = ? and parentFolderId = ?. 739 * 740 * <p> 741 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 742 * </p> 743 * 744 * @param groupId the group ID 745 * @param parentFolderId the parent folder ID 746 * @param start the lower bound of the range of document library folders 747 * @param end the upper bound of the range of document library folders (not inclusive) 748 * @return the range of matching document library folders 749 * @throws SystemException if a system exception occurred 750 */ 751 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P( 752 long groupId, long parentFolderId, int start, int end) 753 throws com.liferay.portal.kernel.exception.SystemException { 754 return getPersistence().findByG_P(groupId, parentFolderId, start, end); 755 } 756 757 /** 758 * Returns an ordered range of all the document library folders where groupId = ? and parentFolderId = ?. 759 * 760 * <p> 761 * 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. 762 * </p> 763 * 764 * @param groupId the group ID 765 * @param parentFolderId the parent folder ID 766 * @param start the lower bound of the range of document library folders 767 * @param end the upper bound of the range of document library folders (not inclusive) 768 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 769 * @return the ordered range of matching document library folders 770 * @throws SystemException if a system exception occurred 771 */ 772 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P( 773 long groupId, long parentFolderId, int start, int end, 774 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 775 throws com.liferay.portal.kernel.exception.SystemException { 776 return getPersistence() 777 .findByG_P(groupId, parentFolderId, start, end, 778 orderByComparator); 779 } 780 781 /** 782 * Returns the first document library folder in the ordered set where groupId = ? and parentFolderId = ?. 783 * 784 * <p> 785 * 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. 786 * </p> 787 * 788 * @param groupId the group ID 789 * @param parentFolderId the parent folder ID 790 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 791 * @return the first matching document library folder 792 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 793 * @throws SystemException if a system exception occurred 794 */ 795 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First( 796 long groupId, long parentFolderId, 797 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 798 throws com.liferay.portal.kernel.exception.SystemException, 799 com.liferay.portlet.documentlibrary.NoSuchFolderException { 800 return getPersistence() 801 .findByG_P_First(groupId, parentFolderId, orderByComparator); 802 } 803 804 /** 805 * Returns the last document library folder in the ordered set where groupId = ? and parentFolderId = ?. 806 * 807 * <p> 808 * 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. 809 * </p> 810 * 811 * @param groupId the group ID 812 * @param parentFolderId the parent folder ID 813 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 814 * @return the last matching document library folder 815 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 816 * @throws SystemException if a system exception occurred 817 */ 818 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last( 819 long groupId, long parentFolderId, 820 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 821 throws com.liferay.portal.kernel.exception.SystemException, 822 com.liferay.portlet.documentlibrary.NoSuchFolderException { 823 return getPersistence() 824 .findByG_P_Last(groupId, parentFolderId, orderByComparator); 825 } 826 827 /** 828 * Returns the document library folders before and after the current document library folder in the ordered set where groupId = ? and parentFolderId = ?. 829 * 830 * <p> 831 * 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. 832 * </p> 833 * 834 * @param folderId the primary key of the current document library folder 835 * @param groupId the group ID 836 * @param parentFolderId the parent folder ID 837 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 838 * @return the previous, current, and next document library folder 839 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 840 * @throws SystemException if a system exception occurred 841 */ 842 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext( 843 long folderId, long groupId, long parentFolderId, 844 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 845 throws com.liferay.portal.kernel.exception.SystemException, 846 com.liferay.portlet.documentlibrary.NoSuchFolderException { 847 return getPersistence() 848 .findByG_P_PrevAndNext(folderId, groupId, parentFolderId, 849 orderByComparator); 850 } 851 852 /** 853 * Returns all the document library folders that the user has permission to view where groupId = ? and parentFolderId = ?. 854 * 855 * @param groupId the group ID 856 * @param parentFolderId the parent folder ID 857 * @return the matching document library folders that the user has permission to view 858 * @throws SystemException if a system exception occurred 859 */ 860 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P( 861 long groupId, long parentFolderId) 862 throws com.liferay.portal.kernel.exception.SystemException { 863 return getPersistence().filterFindByG_P(groupId, parentFolderId); 864 } 865 866 /** 867 * Returns a range of all the document library folders that the user has permission to view where groupId = ? and parentFolderId = ?. 868 * 869 * <p> 870 * 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. 871 * </p> 872 * 873 * @param groupId the group ID 874 * @param parentFolderId the parent folder ID 875 * @param start the lower bound of the range of document library folders 876 * @param end the upper bound of the range of document library folders (not inclusive) 877 * @return the range of matching document library folders that the user has permission to view 878 * @throws SystemException if a system exception occurred 879 */ 880 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P( 881 long groupId, long parentFolderId, int start, int end) 882 throws com.liferay.portal.kernel.exception.SystemException { 883 return getPersistence() 884 .filterFindByG_P(groupId, parentFolderId, start, end); 885 } 886 887 /** 888 * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = ? and parentFolderId = ?. 889 * 890 * <p> 891 * 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. 892 * </p> 893 * 894 * @param groupId the group ID 895 * @param parentFolderId the parent folder ID 896 * @param start the lower bound of the range of document library folders 897 * @param end the upper bound of the range of document library folders (not inclusive) 898 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 899 * @return the ordered range of matching document library folders that the user has permission to view 900 * @throws SystemException if a system exception occurred 901 */ 902 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P( 903 long groupId, long parentFolderId, int start, int end, 904 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 905 throws com.liferay.portal.kernel.exception.SystemException { 906 return getPersistence() 907 .filterFindByG_P(groupId, parentFolderId, start, end, 908 orderByComparator); 909 } 910 911 /** 912 * 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 = ?. 913 * 914 * @param folderId the primary key of the current document library folder 915 * @param groupId the group ID 916 * @param parentFolderId the parent folder ID 917 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 918 * @return the previous, current, and next document library folder 919 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 920 * @throws SystemException if a system exception occurred 921 */ 922 public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_P_PrevAndNext( 923 long folderId, long groupId, long parentFolderId, 924 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 925 throws com.liferay.portal.kernel.exception.SystemException, 926 com.liferay.portlet.documentlibrary.NoSuchFolderException { 927 return getPersistence() 928 .filterFindByG_P_PrevAndNext(folderId, groupId, 929 parentFolderId, orderByComparator); 930 } 931 932 /** 933 * Returns all the document library folders where parentFolderId = ? and name = ?. 934 * 935 * @param parentFolderId the parent folder ID 936 * @param name the name 937 * @return the matching document library folders 938 * @throws SystemException if a system exception occurred 939 */ 940 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N( 941 long parentFolderId, java.lang.String name) 942 throws com.liferay.portal.kernel.exception.SystemException { 943 return getPersistence().findByP_N(parentFolderId, name); 944 } 945 946 /** 947 * Returns a range of all the document library folders where parentFolderId = ? and name = ?. 948 * 949 * <p> 950 * 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. 951 * </p> 952 * 953 * @param parentFolderId the parent folder ID 954 * @param name the name 955 * @param start the lower bound of the range of document library folders 956 * @param end the upper bound of the range of document library folders (not inclusive) 957 * @return the range of matching document library folders 958 * @throws SystemException if a system exception occurred 959 */ 960 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N( 961 long parentFolderId, java.lang.String name, int start, int end) 962 throws com.liferay.portal.kernel.exception.SystemException { 963 return getPersistence().findByP_N(parentFolderId, name, start, end); 964 } 965 966 /** 967 * Returns an ordered range of all the document library folders where parentFolderId = ? and name = ?. 968 * 969 * <p> 970 * 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. 971 * </p> 972 * 973 * @param parentFolderId the parent folder ID 974 * @param name the name 975 * @param start the lower bound of the range of document library folders 976 * @param end the upper bound of the range of document library folders (not inclusive) 977 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 978 * @return the ordered range of matching document library folders 979 * @throws SystemException if a system exception occurred 980 */ 981 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N( 982 long parentFolderId, java.lang.String name, int start, int end, 983 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 984 throws com.liferay.portal.kernel.exception.SystemException { 985 return getPersistence() 986 .findByP_N(parentFolderId, name, start, end, 987 orderByComparator); 988 } 989 990 /** 991 * Returns the first document library folder in the ordered set where parentFolderId = ? and name = ?. 992 * 993 * <p> 994 * 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. 995 * </p> 996 * 997 * @param parentFolderId the parent folder ID 998 * @param name the name 999 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1000 * @return the first matching document library folder 1001 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1002 * @throws SystemException if a system exception occurred 1003 */ 1004 public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First( 1005 long parentFolderId, java.lang.String name, 1006 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1007 throws com.liferay.portal.kernel.exception.SystemException, 1008 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1009 return getPersistence() 1010 .findByP_N_First(parentFolderId, name, orderByComparator); 1011 } 1012 1013 /** 1014 * Returns the last document library folder in the ordered set where parentFolderId = ? and name = ?. 1015 * 1016 * <p> 1017 * 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. 1018 * </p> 1019 * 1020 * @param parentFolderId the parent folder ID 1021 * @param name the name 1022 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1023 * @return the last matching document library folder 1024 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1025 * @throws SystemException if a system exception occurred 1026 */ 1027 public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last( 1028 long parentFolderId, java.lang.String name, 1029 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1030 throws com.liferay.portal.kernel.exception.SystemException, 1031 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1032 return getPersistence() 1033 .findByP_N_Last(parentFolderId, name, orderByComparator); 1034 } 1035 1036 /** 1037 * Returns the document library folders before and after the current document library folder in the ordered set where parentFolderId = ? and name = ?. 1038 * 1039 * <p> 1040 * 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. 1041 * </p> 1042 * 1043 * @param folderId the primary key of the current document library folder 1044 * @param parentFolderId the parent folder ID 1045 * @param name the name 1046 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1047 * @return the previous, current, and next document library folder 1048 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 1049 * @throws SystemException if a system exception occurred 1050 */ 1051 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext( 1052 long folderId, long parentFolderId, java.lang.String name, 1053 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1054 throws com.liferay.portal.kernel.exception.SystemException, 1055 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1056 return getPersistence() 1057 .findByP_N_PrevAndNext(folderId, parentFolderId, name, 1058 orderByComparator); 1059 } 1060 1061 /** 1062 * Returns all the document library folders where groupId = ? and parentFolderId = ? and mountPoint = ?. 1063 * 1064 * @param groupId the group ID 1065 * @param parentFolderId the parent folder ID 1066 * @param mountPoint the mount point 1067 * @return the matching document library folders 1068 * @throws SystemException if a system exception occurred 1069 */ 1070 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_M( 1071 long groupId, long parentFolderId, boolean mountPoint) 1072 throws com.liferay.portal.kernel.exception.SystemException { 1073 return getPersistence().findByG_P_M(groupId, parentFolderId, mountPoint); 1074 } 1075 1076 /** 1077 * Returns a range of all the document library folders where groupId = ? and parentFolderId = ? and mountPoint = ?. 1078 * 1079 * <p> 1080 * 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. 1081 * </p> 1082 * 1083 * @param groupId the group ID 1084 * @param parentFolderId the parent folder ID 1085 * @param mountPoint the mount point 1086 * @param start the lower bound of the range of document library folders 1087 * @param end the upper bound of the range of document library folders (not inclusive) 1088 * @return the range of matching document library folders 1089 * @throws SystemException if a system exception occurred 1090 */ 1091 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_M( 1092 long groupId, long parentFolderId, boolean mountPoint, int start, 1093 int end) throws com.liferay.portal.kernel.exception.SystemException { 1094 return getPersistence() 1095 .findByG_P_M(groupId, parentFolderId, mountPoint, start, end); 1096 } 1097 1098 /** 1099 * Returns an ordered range of all the document library folders where groupId = ? and parentFolderId = ? and mountPoint = ?. 1100 * 1101 * <p> 1102 * 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. 1103 * </p> 1104 * 1105 * @param groupId the group ID 1106 * @param parentFolderId the parent folder ID 1107 * @param mountPoint the mount point 1108 * @param start the lower bound of the range of document library folders 1109 * @param end the upper bound of the range of document library folders (not inclusive) 1110 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1111 * @return the ordered range of matching document library folders 1112 * @throws SystemException if a system exception occurred 1113 */ 1114 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_M( 1115 long groupId, long parentFolderId, boolean mountPoint, int start, 1116 int end, 1117 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1118 throws com.liferay.portal.kernel.exception.SystemException { 1119 return getPersistence() 1120 .findByG_P_M(groupId, parentFolderId, mountPoint, start, 1121 end, orderByComparator); 1122 } 1123 1124 /** 1125 * Returns the first document library folder in the ordered set where groupId = ? and parentFolderId = ? and mountPoint = ?. 1126 * 1127 * <p> 1128 * 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. 1129 * </p> 1130 * 1131 * @param groupId the group ID 1132 * @param parentFolderId the parent folder ID 1133 * @param mountPoint the mount point 1134 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1135 * @return the first matching document library folder 1136 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1137 * @throws SystemException if a system exception occurred 1138 */ 1139 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_M_First( 1140 long groupId, long parentFolderId, boolean mountPoint, 1141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1142 throws com.liferay.portal.kernel.exception.SystemException, 1143 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1144 return getPersistence() 1145 .findByG_P_M_First(groupId, parentFolderId, mountPoint, 1146 orderByComparator); 1147 } 1148 1149 /** 1150 * Returns the last document library folder in the ordered set where groupId = ? and parentFolderId = ? and mountPoint = ?. 1151 * 1152 * <p> 1153 * 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. 1154 * </p> 1155 * 1156 * @param groupId the group ID 1157 * @param parentFolderId the parent folder ID 1158 * @param mountPoint the mount point 1159 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1160 * @return the last matching document library folder 1161 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1162 * @throws SystemException if a system exception occurred 1163 */ 1164 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_M_Last( 1165 long groupId, long parentFolderId, boolean mountPoint, 1166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1167 throws com.liferay.portal.kernel.exception.SystemException, 1168 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1169 return getPersistence() 1170 .findByG_P_M_Last(groupId, parentFolderId, mountPoint, 1171 orderByComparator); 1172 } 1173 1174 /** 1175 * Returns the document library folders before and after the current document library folder in the ordered set where groupId = ? and parentFolderId = ? and mountPoint = ?. 1176 * 1177 * <p> 1178 * 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. 1179 * </p> 1180 * 1181 * @param folderId the primary key of the current document library folder 1182 * @param groupId the group ID 1183 * @param parentFolderId the parent folder ID 1184 * @param mountPoint the mount point 1185 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1186 * @return the previous, current, and next document library folder 1187 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 1188 * @throws SystemException if a system exception occurred 1189 */ 1190 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_M_PrevAndNext( 1191 long folderId, long groupId, long parentFolderId, boolean mountPoint, 1192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1193 throws com.liferay.portal.kernel.exception.SystemException, 1194 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1195 return getPersistence() 1196 .findByG_P_M_PrevAndNext(folderId, groupId, parentFolderId, 1197 mountPoint, orderByComparator); 1198 } 1199 1200 /** 1201 * Returns all the document library folders that the user has permission to view where groupId = ? and parentFolderId = ? and mountPoint = ?. 1202 * 1203 * @param groupId the group ID 1204 * @param parentFolderId the parent folder ID 1205 * @param mountPoint the mount point 1206 * @return the matching document library folders that the user has permission to view 1207 * @throws SystemException if a system exception occurred 1208 */ 1209 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_M( 1210 long groupId, long parentFolderId, boolean mountPoint) 1211 throws com.liferay.portal.kernel.exception.SystemException { 1212 return getPersistence() 1213 .filterFindByG_P_M(groupId, parentFolderId, mountPoint); 1214 } 1215 1216 /** 1217 * Returns a range of all the document library folders that the user has permission to view where groupId = ? and parentFolderId = ? and mountPoint = ?. 1218 * 1219 * <p> 1220 * 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. 1221 * </p> 1222 * 1223 * @param groupId the group ID 1224 * @param parentFolderId the parent folder ID 1225 * @param mountPoint the mount point 1226 * @param start the lower bound of the range of document library folders 1227 * @param end the upper bound of the range of document library folders (not inclusive) 1228 * @return the range of matching document library folders that the user has permission to view 1229 * @throws SystemException if a system exception occurred 1230 */ 1231 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_M( 1232 long groupId, long parentFolderId, boolean mountPoint, int start, 1233 int end) throws com.liferay.portal.kernel.exception.SystemException { 1234 return getPersistence() 1235 .filterFindByG_P_M(groupId, parentFolderId, mountPoint, 1236 start, end); 1237 } 1238 1239 /** 1240 * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = ? and parentFolderId = ? and mountPoint = ?. 1241 * 1242 * <p> 1243 * 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. 1244 * </p> 1245 * 1246 * @param groupId the group ID 1247 * @param parentFolderId the parent folder ID 1248 * @param mountPoint the mount point 1249 * @param start the lower bound of the range of document library folders 1250 * @param end the upper bound of the range of document library folders (not inclusive) 1251 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1252 * @return the ordered range of matching document library folders that the user has permission to view 1253 * @throws SystemException if a system exception occurred 1254 */ 1255 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_M( 1256 long groupId, long parentFolderId, boolean mountPoint, int start, 1257 int end, 1258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1259 throws com.liferay.portal.kernel.exception.SystemException { 1260 return getPersistence() 1261 .filterFindByG_P_M(groupId, parentFolderId, mountPoint, 1262 start, end, orderByComparator); 1263 } 1264 1265 /** 1266 * 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 mountPoint = ?. 1267 * 1268 * @param folderId the primary key of the current document library folder 1269 * @param groupId the group ID 1270 * @param parentFolderId the parent folder ID 1271 * @param mountPoint the mount point 1272 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1273 * @return the previous, current, and next document library folder 1274 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found 1275 * @throws SystemException if a system exception occurred 1276 */ 1277 public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_P_M_PrevAndNext( 1278 long folderId, long groupId, long parentFolderId, boolean mountPoint, 1279 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1280 throws com.liferay.portal.kernel.exception.SystemException, 1281 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1282 return getPersistence() 1283 .filterFindByG_P_M_PrevAndNext(folderId, groupId, 1284 parentFolderId, mountPoint, orderByComparator); 1285 } 1286 1287 /** 1288 * 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. 1289 * 1290 * @param groupId the group ID 1291 * @param parentFolderId the parent folder ID 1292 * @param name the name 1293 * @return the matching document library folder 1294 * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found 1295 * @throws SystemException if a system exception occurred 1296 */ 1297 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N( 1298 long groupId, long parentFolderId, java.lang.String name) 1299 throws com.liferay.portal.kernel.exception.SystemException, 1300 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1301 return getPersistence().findByG_P_N(groupId, parentFolderId, name); 1302 } 1303 1304 /** 1305 * 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. 1306 * 1307 * @param groupId the group ID 1308 * @param parentFolderId the parent folder ID 1309 * @param name the name 1310 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 1311 * @throws SystemException if a system exception occurred 1312 */ 1313 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N( 1314 long groupId, long parentFolderId, java.lang.String name) 1315 throws com.liferay.portal.kernel.exception.SystemException { 1316 return getPersistence().fetchByG_P_N(groupId, parentFolderId, name); 1317 } 1318 1319 /** 1320 * 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. 1321 * 1322 * @param groupId the group ID 1323 * @param parentFolderId the parent folder ID 1324 * @param name the name 1325 * @param retrieveFromCache whether to use the finder cache 1326 * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found 1327 * @throws SystemException if a system exception occurred 1328 */ 1329 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N( 1330 long groupId, long parentFolderId, java.lang.String name, 1331 boolean retrieveFromCache) 1332 throws com.liferay.portal.kernel.exception.SystemException { 1333 return getPersistence() 1334 .fetchByG_P_N(groupId, parentFolderId, name, 1335 retrieveFromCache); 1336 } 1337 1338 /** 1339 * Returns all the document library folders. 1340 * 1341 * @return the document library folders 1342 * @throws SystemException if a system exception occurred 1343 */ 1344 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll() 1345 throws com.liferay.portal.kernel.exception.SystemException { 1346 return getPersistence().findAll(); 1347 } 1348 1349 /** 1350 * Returns a range of all the document library folders. 1351 * 1352 * <p> 1353 * 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. 1354 * </p> 1355 * 1356 * @param start the lower bound of the range of document library folders 1357 * @param end the upper bound of the range of document library folders (not inclusive) 1358 * @return the range of document library folders 1359 * @throws SystemException if a system exception occurred 1360 */ 1361 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll( 1362 int start, int end) 1363 throws com.liferay.portal.kernel.exception.SystemException { 1364 return getPersistence().findAll(start, end); 1365 } 1366 1367 /** 1368 * Returns an ordered range of all the document library folders. 1369 * 1370 * <p> 1371 * 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. 1372 * </p> 1373 * 1374 * @param start the lower bound of the range of document library folders 1375 * @param end the upper bound of the range of document library folders (not inclusive) 1376 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1377 * @return the ordered range of document library folders 1378 * @throws SystemException if a system exception occurred 1379 */ 1380 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll( 1381 int start, int end, 1382 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1383 throws com.liferay.portal.kernel.exception.SystemException { 1384 return getPersistence().findAll(start, end, orderByComparator); 1385 } 1386 1387 /** 1388 * Removes all the document library folders where uuid = ? from the database. 1389 * 1390 * @param uuid the uuid 1391 * @throws SystemException if a system exception occurred 1392 */ 1393 public static void removeByUuid(java.lang.String uuid) 1394 throws com.liferay.portal.kernel.exception.SystemException { 1395 getPersistence().removeByUuid(uuid); 1396 } 1397 1398 /** 1399 * Removes the document library folder where uuid = ? and groupId = ? from the database. 1400 * 1401 * @param uuid the uuid 1402 * @param groupId the group ID 1403 * @throws SystemException if a system exception occurred 1404 */ 1405 public static void removeByUUID_G(java.lang.String uuid, long groupId) 1406 throws com.liferay.portal.kernel.exception.SystemException, 1407 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1408 getPersistence().removeByUUID_G(uuid, groupId); 1409 } 1410 1411 /** 1412 * Removes all the document library folders where groupId = ? from the database. 1413 * 1414 * @param groupId the group ID 1415 * @throws SystemException if a system exception occurred 1416 */ 1417 public static void removeByGroupId(long groupId) 1418 throws com.liferay.portal.kernel.exception.SystemException { 1419 getPersistence().removeByGroupId(groupId); 1420 } 1421 1422 /** 1423 * Removes all the document library folders where companyId = ? from the database. 1424 * 1425 * @param companyId the company ID 1426 * @throws SystemException if a system exception occurred 1427 */ 1428 public static void removeByCompanyId(long companyId) 1429 throws com.liferay.portal.kernel.exception.SystemException { 1430 getPersistence().removeByCompanyId(companyId); 1431 } 1432 1433 /** 1434 * Removes the document library folder where repositoryId = ? from the database. 1435 * 1436 * @param repositoryId the repository ID 1437 * @throws SystemException if a system exception occurred 1438 */ 1439 public static void removeByRepositoryId(long repositoryId) 1440 throws com.liferay.portal.kernel.exception.SystemException, 1441 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1442 getPersistence().removeByRepositoryId(repositoryId); 1443 } 1444 1445 /** 1446 * Removes all the document library folders where groupId = ? and parentFolderId = ? from the database. 1447 * 1448 * @param groupId the group ID 1449 * @param parentFolderId the parent folder ID 1450 * @throws SystemException if a system exception occurred 1451 */ 1452 public static void removeByG_P(long groupId, long parentFolderId) 1453 throws com.liferay.portal.kernel.exception.SystemException { 1454 getPersistence().removeByG_P(groupId, parentFolderId); 1455 } 1456 1457 /** 1458 * Removes all the document library folders where parentFolderId = ? and name = ? from the database. 1459 * 1460 * @param parentFolderId the parent folder ID 1461 * @param name the name 1462 * @throws SystemException if a system exception occurred 1463 */ 1464 public static void removeByP_N(long parentFolderId, java.lang.String name) 1465 throws com.liferay.portal.kernel.exception.SystemException { 1466 getPersistence().removeByP_N(parentFolderId, name); 1467 } 1468 1469 /** 1470 * Removes all the document library folders where groupId = ? and parentFolderId = ? and mountPoint = ? from the database. 1471 * 1472 * @param groupId the group ID 1473 * @param parentFolderId the parent folder ID 1474 * @param mountPoint the mount point 1475 * @throws SystemException if a system exception occurred 1476 */ 1477 public static void removeByG_P_M(long groupId, long parentFolderId, 1478 boolean mountPoint) 1479 throws com.liferay.portal.kernel.exception.SystemException { 1480 getPersistence().removeByG_P_M(groupId, parentFolderId, mountPoint); 1481 } 1482 1483 /** 1484 * Removes the document library folder where groupId = ? and parentFolderId = ? and name = ? from the database. 1485 * 1486 * @param groupId the group ID 1487 * @param parentFolderId the parent folder ID 1488 * @param name the name 1489 * @throws SystemException if a system exception occurred 1490 */ 1491 public static void removeByG_P_N(long groupId, long parentFolderId, 1492 java.lang.String name) 1493 throws com.liferay.portal.kernel.exception.SystemException, 1494 com.liferay.portlet.documentlibrary.NoSuchFolderException { 1495 getPersistence().removeByG_P_N(groupId, parentFolderId, name); 1496 } 1497 1498 /** 1499 * Removes all the document library folders from the database. 1500 * 1501 * @throws SystemException if a system exception occurred 1502 */ 1503 public static void removeAll() 1504 throws com.liferay.portal.kernel.exception.SystemException { 1505 getPersistence().removeAll(); 1506 } 1507 1508 /** 1509 * Returns the number of document library folders where uuid = ?. 1510 * 1511 * @param uuid the uuid 1512 * @return the number of matching document library folders 1513 * @throws SystemException if a system exception occurred 1514 */ 1515 public static int countByUuid(java.lang.String uuid) 1516 throws com.liferay.portal.kernel.exception.SystemException { 1517 return getPersistence().countByUuid(uuid); 1518 } 1519 1520 /** 1521 * Returns the number of document library folders where uuid = ? and groupId = ?. 1522 * 1523 * @param uuid the uuid 1524 * @param groupId the group ID 1525 * @return the number of matching document library folders 1526 * @throws SystemException if a system exception occurred 1527 */ 1528 public static int countByUUID_G(java.lang.String uuid, long groupId) 1529 throws com.liferay.portal.kernel.exception.SystemException { 1530 return getPersistence().countByUUID_G(uuid, groupId); 1531 } 1532 1533 /** 1534 * Returns the number of document library folders where groupId = ?. 1535 * 1536 * @param groupId the group ID 1537 * @return the number of matching document library folders 1538 * @throws SystemException if a system exception occurred 1539 */ 1540 public static int countByGroupId(long groupId) 1541 throws com.liferay.portal.kernel.exception.SystemException { 1542 return getPersistence().countByGroupId(groupId); 1543 } 1544 1545 /** 1546 * Returns the number of document library folders that the user has permission to view where groupId = ?. 1547 * 1548 * @param groupId the group ID 1549 * @return the number of matching document library folders that the user has permission to view 1550 * @throws SystemException if a system exception occurred 1551 */ 1552 public static int filterCountByGroupId(long groupId) 1553 throws com.liferay.portal.kernel.exception.SystemException { 1554 return getPersistence().filterCountByGroupId(groupId); 1555 } 1556 1557 /** 1558 * Returns the number of document library folders where companyId = ?. 1559 * 1560 * @param companyId the company ID 1561 * @return the number of matching document library folders 1562 * @throws SystemException if a system exception occurred 1563 */ 1564 public static int countByCompanyId(long companyId) 1565 throws com.liferay.portal.kernel.exception.SystemException { 1566 return getPersistence().countByCompanyId(companyId); 1567 } 1568 1569 /** 1570 * Returns the number of document library folders where repositoryId = ?. 1571 * 1572 * @param repositoryId the repository ID 1573 * @return the number of matching document library folders 1574 * @throws SystemException if a system exception occurred 1575 */ 1576 public static int countByRepositoryId(long repositoryId) 1577 throws com.liferay.portal.kernel.exception.SystemException { 1578 return getPersistence().countByRepositoryId(repositoryId); 1579 } 1580 1581 /** 1582 * Returns the number of document library folders where groupId = ? and parentFolderId = ?. 1583 * 1584 * @param groupId the group ID 1585 * @param parentFolderId the parent folder ID 1586 * @return the number of matching document library folders 1587 * @throws SystemException if a system exception occurred 1588 */ 1589 public static int countByG_P(long groupId, long parentFolderId) 1590 throws com.liferay.portal.kernel.exception.SystemException { 1591 return getPersistence().countByG_P(groupId, parentFolderId); 1592 } 1593 1594 /** 1595 * Returns the number of document library folders that the user has permission to view where groupId = ? and parentFolderId = ?. 1596 * 1597 * @param groupId the group ID 1598 * @param parentFolderId the parent folder ID 1599 * @return the number of matching document library folders that the user has permission to view 1600 * @throws SystemException if a system exception occurred 1601 */ 1602 public static int filterCountByG_P(long groupId, long parentFolderId) 1603 throws com.liferay.portal.kernel.exception.SystemException { 1604 return getPersistence().filterCountByG_P(groupId, parentFolderId); 1605 } 1606 1607 /** 1608 * Returns the number of document library folders where parentFolderId = ? and name = ?. 1609 * 1610 * @param parentFolderId the parent folder ID 1611 * @param name the name 1612 * @return the number of matching document library folders 1613 * @throws SystemException if a system exception occurred 1614 */ 1615 public static int countByP_N(long parentFolderId, java.lang.String name) 1616 throws com.liferay.portal.kernel.exception.SystemException { 1617 return getPersistence().countByP_N(parentFolderId, name); 1618 } 1619 1620 /** 1621 * Returns the number of document library folders where groupId = ? and parentFolderId = ? and mountPoint = ?. 1622 * 1623 * @param groupId the group ID 1624 * @param parentFolderId the parent folder ID 1625 * @param mountPoint the mount point 1626 * @return the number of matching document library folders 1627 * @throws SystemException if a system exception occurred 1628 */ 1629 public static int countByG_P_M(long groupId, long parentFolderId, 1630 boolean mountPoint) 1631 throws com.liferay.portal.kernel.exception.SystemException { 1632 return getPersistence().countByG_P_M(groupId, parentFolderId, mountPoint); 1633 } 1634 1635 /** 1636 * Returns the number of document library folders that the user has permission to view where groupId = ? and parentFolderId = ? and mountPoint = ?. 1637 * 1638 * @param groupId the group ID 1639 * @param parentFolderId the parent folder ID 1640 * @param mountPoint the mount point 1641 * @return the number of matching document library folders that the user has permission to view 1642 * @throws SystemException if a system exception occurred 1643 */ 1644 public static int filterCountByG_P_M(long groupId, long parentFolderId, 1645 boolean mountPoint) 1646 throws com.liferay.portal.kernel.exception.SystemException { 1647 return getPersistence() 1648 .filterCountByG_P_M(groupId, parentFolderId, mountPoint); 1649 } 1650 1651 /** 1652 * Returns the number of document library folders where groupId = ? and parentFolderId = ? and name = ?. 1653 * 1654 * @param groupId the group ID 1655 * @param parentFolderId the parent folder ID 1656 * @param name the name 1657 * @return the number of matching document library folders 1658 * @throws SystemException if a system exception occurred 1659 */ 1660 public static int countByG_P_N(long groupId, long parentFolderId, 1661 java.lang.String name) 1662 throws com.liferay.portal.kernel.exception.SystemException { 1663 return getPersistence().countByG_P_N(groupId, parentFolderId, name); 1664 } 1665 1666 /** 1667 * Returns the number of document library folders. 1668 * 1669 * @return the number of document library folders 1670 * @throws SystemException if a system exception occurred 1671 */ 1672 public static int countAll() 1673 throws com.liferay.portal.kernel.exception.SystemException { 1674 return getPersistence().countAll(); 1675 } 1676 1677 /** 1678 * Returns all the document library file entry types associated with the document library folder. 1679 * 1680 * @param pk the primary key of the document library folder 1681 * @return the document library file entry types associated with the document library folder 1682 * @throws SystemException if a system exception occurred 1683 */ 1684 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes( 1685 long pk) throws com.liferay.portal.kernel.exception.SystemException { 1686 return getPersistence().getDLFileEntryTypes(pk); 1687 } 1688 1689 /** 1690 * Returns a range of all the document library file entry types associated with the document library folder. 1691 * 1692 * <p> 1693 * 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. 1694 * </p> 1695 * 1696 * @param pk the primary key of the document library folder 1697 * @param start the lower bound of the range of document library folders 1698 * @param end the upper bound of the range of document library folders (not inclusive) 1699 * @return the range of document library file entry types associated with the document library folder 1700 * @throws SystemException if a system exception occurred 1701 */ 1702 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes( 1703 long pk, int start, int end) 1704 throws com.liferay.portal.kernel.exception.SystemException { 1705 return getPersistence().getDLFileEntryTypes(pk, start, end); 1706 } 1707 1708 /** 1709 * Returns an ordered range of all the document library file entry types associated with the document library folder. 1710 * 1711 * <p> 1712 * 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. 1713 * </p> 1714 * 1715 * @param pk the primary key of the document library folder 1716 * @param start the lower bound of the range of document library folders 1717 * @param end the upper bound of the range of document library folders (not inclusive) 1718 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1719 * @return the ordered range of document library file entry types associated with the document library folder 1720 * @throws SystemException if a system exception occurred 1721 */ 1722 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes( 1723 long pk, int start, int end, 1724 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1725 throws com.liferay.portal.kernel.exception.SystemException { 1726 return getPersistence() 1727 .getDLFileEntryTypes(pk, start, end, orderByComparator); 1728 } 1729 1730 /** 1731 * Returns the number of document library file entry types associated with the document library folder. 1732 * 1733 * @param pk the primary key of the document library folder 1734 * @return the number of document library file entry types associated with the document library folder 1735 * @throws SystemException if a system exception occurred 1736 */ 1737 public static int getDLFileEntryTypesSize(long pk) 1738 throws com.liferay.portal.kernel.exception.SystemException { 1739 return getPersistence().getDLFileEntryTypesSize(pk); 1740 } 1741 1742 /** 1743 * Returns <code>true</code> if the document library file entry type is associated with the document library folder. 1744 * 1745 * @param pk the primary key of the document library folder 1746 * @param dlFileEntryTypePK the primary key of the document library file entry type 1747 * @return <code>true</code> if the document library file entry type is associated with the document library folder; <code>false</code> otherwise 1748 * @throws SystemException if a system exception occurred 1749 */ 1750 public static boolean containsDLFileEntryType(long pk, 1751 long dlFileEntryTypePK) 1752 throws com.liferay.portal.kernel.exception.SystemException { 1753 return getPersistence().containsDLFileEntryType(pk, dlFileEntryTypePK); 1754 } 1755 1756 /** 1757 * Returns <code>true</code> if the document library folder has any document library file entry types associated with it. 1758 * 1759 * @param pk the primary key of the document library folder to check for associations with document library file entry types 1760 * @return <code>true</code> if the document library folder has any document library file entry types associated with it; <code>false</code> otherwise 1761 * @throws SystemException if a system exception occurred 1762 */ 1763 public static boolean containsDLFileEntryTypes(long pk) 1764 throws com.liferay.portal.kernel.exception.SystemException { 1765 return getPersistence().containsDLFileEntryTypes(pk); 1766 } 1767 1768 /** 1769 * 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. 1770 * 1771 * @param pk the primary key of the document library folder 1772 * @param dlFileEntryTypePK the primary key of the document library file entry type 1773 * @throws SystemException if a system exception occurred 1774 */ 1775 public static void addDLFileEntryType(long pk, long dlFileEntryTypePK) 1776 throws com.liferay.portal.kernel.exception.SystemException { 1777 getPersistence().addDLFileEntryType(pk, dlFileEntryTypePK); 1778 } 1779 1780 /** 1781 * 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. 1782 * 1783 * @param pk the primary key of the document library folder 1784 * @param dlFileEntryType the document library file entry type 1785 * @throws SystemException if a system exception occurred 1786 */ 1787 public static void addDLFileEntryType(long pk, 1788 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) 1789 throws com.liferay.portal.kernel.exception.SystemException { 1790 getPersistence().addDLFileEntryType(pk, dlFileEntryType); 1791 } 1792 1793 /** 1794 * 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. 1795 * 1796 * @param pk the primary key of the document library folder 1797 * @param dlFileEntryTypePKs the primary keys of the document library file entry types 1798 * @throws SystemException if a system exception occurred 1799 */ 1800 public static void addDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs) 1801 throws com.liferay.portal.kernel.exception.SystemException { 1802 getPersistence().addDLFileEntryTypes(pk, dlFileEntryTypePKs); 1803 } 1804 1805 /** 1806 * 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. 1807 * 1808 * @param pk the primary key of the document library folder 1809 * @param dlFileEntryTypes the document library file entry types 1810 * @throws SystemException if a system exception occurred 1811 */ 1812 public static void addDLFileEntryTypes(long pk, 1813 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) 1814 throws com.liferay.portal.kernel.exception.SystemException { 1815 getPersistence().addDLFileEntryTypes(pk, dlFileEntryTypes); 1816 } 1817 1818 /** 1819 * 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. 1820 * 1821 * @param pk the primary key of the document library folder to clear the associated document library file entry types from 1822 * @throws SystemException if a system exception occurred 1823 */ 1824 public static void clearDLFileEntryTypes(long pk) 1825 throws com.liferay.portal.kernel.exception.SystemException { 1826 getPersistence().clearDLFileEntryTypes(pk); 1827 } 1828 1829 /** 1830 * 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. 1831 * 1832 * @param pk the primary key of the document library folder 1833 * @param dlFileEntryTypePK the primary key of the document library file entry type 1834 * @throws SystemException if a system exception occurred 1835 */ 1836 public static void removeDLFileEntryType(long pk, long dlFileEntryTypePK) 1837 throws com.liferay.portal.kernel.exception.SystemException { 1838 getPersistence().removeDLFileEntryType(pk, dlFileEntryTypePK); 1839 } 1840 1841 /** 1842 * 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. 1843 * 1844 * @param pk the primary key of the document library folder 1845 * @param dlFileEntryType the document library file entry type 1846 * @throws SystemException if a system exception occurred 1847 */ 1848 public static void removeDLFileEntryType(long pk, 1849 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) 1850 throws com.liferay.portal.kernel.exception.SystemException { 1851 getPersistence().removeDLFileEntryType(pk, dlFileEntryType); 1852 } 1853 1854 /** 1855 * 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. 1856 * 1857 * @param pk the primary key of the document library folder 1858 * @param dlFileEntryTypePKs the primary keys of the document library file entry types 1859 * @throws SystemException if a system exception occurred 1860 */ 1861 public static void removeDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs) 1862 throws com.liferay.portal.kernel.exception.SystemException { 1863 getPersistence().removeDLFileEntryTypes(pk, dlFileEntryTypePKs); 1864 } 1865 1866 /** 1867 * 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. 1868 * 1869 * @param pk the primary key of the document library folder 1870 * @param dlFileEntryTypes the document library file entry types 1871 * @throws SystemException if a system exception occurred 1872 */ 1873 public static void removeDLFileEntryTypes(long pk, 1874 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) 1875 throws com.liferay.portal.kernel.exception.SystemException { 1876 getPersistence().removeDLFileEntryTypes(pk, dlFileEntryTypes); 1877 } 1878 1879 /** 1880 * 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. 1881 * 1882 * @param pk the primary key of the document library folder 1883 * @param dlFileEntryTypePKs the primary keys of the document library file entry types to be associated with the document library folder 1884 * @throws SystemException if a system exception occurred 1885 */ 1886 public static void setDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs) 1887 throws com.liferay.portal.kernel.exception.SystemException { 1888 getPersistence().setDLFileEntryTypes(pk, dlFileEntryTypePKs); 1889 } 1890 1891 /** 1892 * 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. 1893 * 1894 * @param pk the primary key of the document library folder 1895 * @param dlFileEntryTypes the document library file entry types to be associated with the document library folder 1896 * @throws SystemException if a system exception occurred 1897 */ 1898 public static void setDLFileEntryTypes(long pk, 1899 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) 1900 throws com.liferay.portal.kernel.exception.SystemException { 1901 getPersistence().setDLFileEntryTypes(pk, dlFileEntryTypes); 1902 } 1903 1904 public static DLFolderPersistence getPersistence() { 1905 if (_persistence == null) { 1906 _persistence = (DLFolderPersistence)PortalBeanLocatorUtil.locate(DLFolderPersistence.class.getName()); 1907 1908 ReferenceRegistry.registerReference(DLFolderUtil.class, 1909 "_persistence"); 1910 } 1911 1912 return _persistence; 1913 } 1914 1915 public void setPersistence(DLFolderPersistence persistence) { 1916 _persistence = persistence; 1917 1918 ReferenceRegistry.registerReference(DLFolderUtil.class, "_persistence"); 1919 } 1920 1921 private static DLFolderPersistence _persistence; 1922 }