001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.documentlibrary.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.documentlibrary.model.DLFileEntryType; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the document library file entry type service. This utility wraps {@link DLFileEntryTypePersistenceImpl} 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 DLFileEntryTypePersistence 037 * @see DLFileEntryTypePersistenceImpl 038 * @generated 039 */ 040 public class DLFileEntryTypeUtil { 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(DLFileEntryType dlFileEntryType) { 058 getPersistence().clearCache(dlFileEntryType); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<DLFileEntryType> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) 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<DLFileEntryType> 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<DLFileEntryType> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 099 */ 100 public static DLFileEntryType update(DLFileEntryType dlFileEntryType) 101 throws SystemException { 102 return getPersistence().update(dlFileEntryType); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static DLFileEntryType update(DLFileEntryType dlFileEntryType, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(dlFileEntryType, serviceContext); 111 } 112 113 /** 114 * Returns all the document library file entry types where uuid = ?. 115 * 116 * @param uuid the uuid 117 * @return the matching document library file entry types 118 * @throws SystemException if a system exception occurred 119 */ 120 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByUuid( 121 java.lang.String uuid) 122 throws com.liferay.portal.kernel.exception.SystemException { 123 return getPersistence().findByUuid(uuid); 124 } 125 126 /** 127 * Returns a range of all the document library file entry types where uuid = ?. 128 * 129 * <p> 130 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 131 * </p> 132 * 133 * @param uuid the uuid 134 * @param start the lower bound of the range of document library file entry types 135 * @param end the upper bound of the range of document library file entry types (not inclusive) 136 * @return the range of matching document library file entry types 137 * @throws SystemException if a system exception occurred 138 */ 139 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByUuid( 140 java.lang.String uuid, int start, int end) 141 throws com.liferay.portal.kernel.exception.SystemException { 142 return getPersistence().findByUuid(uuid, start, end); 143 } 144 145 /** 146 * Returns an ordered range of all the document library file entry types where uuid = ?. 147 * 148 * <p> 149 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 150 * </p> 151 * 152 * @param uuid the uuid 153 * @param start the lower bound of the range of document library file entry types 154 * @param end the upper bound of the range of document library file entry types (not inclusive) 155 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 156 * @return the ordered range of matching document library file entry types 157 * @throws SystemException if a system exception occurred 158 */ 159 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByUuid( 160 java.lang.String uuid, int start, int end, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 164 } 165 166 /** 167 * Returns the first document library file entry type in the ordered set where uuid = ?. 168 * 169 * @param uuid the uuid 170 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 171 * @return the first matching document library file entry type 172 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByUuid_First( 176 java.lang.String uuid, 177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 178 throws com.liferay.portal.kernel.exception.SystemException, 179 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 180 return getPersistence().findByUuid_First(uuid, orderByComparator); 181 } 182 183 /** 184 * Returns the first document library file entry type in the ordered set where uuid = ?. 185 * 186 * @param uuid the uuid 187 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 188 * @return the first matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found 189 * @throws SystemException if a system exception occurred 190 */ 191 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByUuid_First( 192 java.lang.String uuid, 193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 194 throws com.liferay.portal.kernel.exception.SystemException { 195 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 196 } 197 198 /** 199 * Returns the last document library file entry type in the ordered set where uuid = ?. 200 * 201 * @param uuid the uuid 202 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 203 * @return the last matching document library file entry type 204 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found 205 * @throws SystemException if a system exception occurred 206 */ 207 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByUuid_Last( 208 java.lang.String uuid, 209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 210 throws com.liferay.portal.kernel.exception.SystemException, 211 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 212 return getPersistence().findByUuid_Last(uuid, orderByComparator); 213 } 214 215 /** 216 * Returns the last document library file entry type in the ordered set where uuid = ?. 217 * 218 * @param uuid the uuid 219 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 220 * @return the last matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found 221 * @throws SystemException if a system exception occurred 222 */ 223 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByUuid_Last( 224 java.lang.String uuid, 225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 226 throws com.liferay.portal.kernel.exception.SystemException { 227 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 228 } 229 230 /** 231 * Returns the document library file entry types before and after the current document library file entry type in the ordered set where uuid = ?. 232 * 233 * @param fileEntryTypeId the primary key of the current document library file entry type 234 * @param uuid the uuid 235 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 236 * @return the previous, current, and next document library file entry type 237 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found 238 * @throws SystemException if a system exception occurred 239 */ 240 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType[] findByUuid_PrevAndNext( 241 long fileEntryTypeId, java.lang.String uuid, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException, 244 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 245 return getPersistence() 246 .findByUuid_PrevAndNext(fileEntryTypeId, uuid, 247 orderByComparator); 248 } 249 250 /** 251 * Removes all the document library file entry types where uuid = ? from the database. 252 * 253 * @param uuid the uuid 254 * @throws SystemException if a system exception occurred 255 */ 256 public static void removeByUuid(java.lang.String uuid) 257 throws com.liferay.portal.kernel.exception.SystemException { 258 getPersistence().removeByUuid(uuid); 259 } 260 261 /** 262 * Returns the number of document library file entry types where uuid = ?. 263 * 264 * @param uuid the uuid 265 * @return the number of matching document library file entry types 266 * @throws SystemException if a system exception occurred 267 */ 268 public static int countByUuid(java.lang.String uuid) 269 throws com.liferay.portal.kernel.exception.SystemException { 270 return getPersistence().countByUuid(uuid); 271 } 272 273 /** 274 * Returns the document library file entry type where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException} if it could not be found. 275 * 276 * @param uuid the uuid 277 * @param groupId the group ID 278 * @return the matching document library file entry type 279 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found 280 * @throws SystemException if a system exception occurred 281 */ 282 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByUUID_G( 283 java.lang.String uuid, long groupId) 284 throws com.liferay.portal.kernel.exception.SystemException, 285 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 286 return getPersistence().findByUUID_G(uuid, groupId); 287 } 288 289 /** 290 * Returns the document library file entry type where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 291 * 292 * @param uuid the uuid 293 * @param groupId the group ID 294 * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found 295 * @throws SystemException if a system exception occurred 296 */ 297 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByUUID_G( 298 java.lang.String uuid, long groupId) 299 throws com.liferay.portal.kernel.exception.SystemException { 300 return getPersistence().fetchByUUID_G(uuid, groupId); 301 } 302 303 /** 304 * Returns the document library file entry type where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 305 * 306 * @param uuid the uuid 307 * @param groupId the group ID 308 * @param retrieveFromCache whether to use the finder cache 309 * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found 310 * @throws SystemException if a system exception occurred 311 */ 312 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByUUID_G( 313 java.lang.String uuid, long groupId, boolean retrieveFromCache) 314 throws com.liferay.portal.kernel.exception.SystemException { 315 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 316 } 317 318 /** 319 * Removes the document library file entry type where uuid = ? and groupId = ? from the database. 320 * 321 * @param uuid the uuid 322 * @param groupId the group ID 323 * @return the document library file entry type that was removed 324 * @throws SystemException if a system exception occurred 325 */ 326 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType removeByUUID_G( 327 java.lang.String uuid, long groupId) 328 throws com.liferay.portal.kernel.exception.SystemException, 329 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 330 return getPersistence().removeByUUID_G(uuid, groupId); 331 } 332 333 /** 334 * Returns the number of document library file entry types where uuid = ? and groupId = ?. 335 * 336 * @param uuid the uuid 337 * @param groupId the group ID 338 * @return the number of matching document library file entry types 339 * @throws SystemException if a system exception occurred 340 */ 341 public static int countByUUID_G(java.lang.String uuid, long groupId) 342 throws com.liferay.portal.kernel.exception.SystemException { 343 return getPersistence().countByUUID_G(uuid, groupId); 344 } 345 346 /** 347 * Returns all the document library file entry types where uuid = ? and companyId = ?. 348 * 349 * @param uuid the uuid 350 * @param companyId the company ID 351 * @return the matching document library file entry types 352 * @throws SystemException if a system exception occurred 353 */ 354 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByUuid_C( 355 java.lang.String uuid, long companyId) 356 throws com.liferay.portal.kernel.exception.SystemException { 357 return getPersistence().findByUuid_C(uuid, companyId); 358 } 359 360 /** 361 * Returns a range of all the document library file entry types where uuid = ? and companyId = ?. 362 * 363 * <p> 364 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 365 * </p> 366 * 367 * @param uuid the uuid 368 * @param companyId the company ID 369 * @param start the lower bound of the range of document library file entry types 370 * @param end the upper bound of the range of document library file entry types (not inclusive) 371 * @return the range of matching document library file entry types 372 * @throws SystemException if a system exception occurred 373 */ 374 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByUuid_C( 375 java.lang.String uuid, long companyId, int start, int end) 376 throws com.liferay.portal.kernel.exception.SystemException { 377 return getPersistence().findByUuid_C(uuid, companyId, start, end); 378 } 379 380 /** 381 * Returns an ordered range of all the document library file entry types where uuid = ? and companyId = ?. 382 * 383 * <p> 384 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 385 * </p> 386 * 387 * @param uuid the uuid 388 * @param companyId the company ID 389 * @param start the lower bound of the range of document library file entry types 390 * @param end the upper bound of the range of document library file entry types (not inclusive) 391 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 392 * @return the ordered range of matching document library file entry types 393 * @throws SystemException if a system exception occurred 394 */ 395 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByUuid_C( 396 java.lang.String uuid, long companyId, int start, int end, 397 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 398 throws com.liferay.portal.kernel.exception.SystemException { 399 return getPersistence() 400 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 401 } 402 403 /** 404 * Returns the first document library file entry type in the ordered set where uuid = ? and companyId = ?. 405 * 406 * @param uuid the uuid 407 * @param companyId the company ID 408 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 409 * @return the first matching document library file entry type 410 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found 411 * @throws SystemException if a system exception occurred 412 */ 413 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByUuid_C_First( 414 java.lang.String uuid, long companyId, 415 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 416 throws com.liferay.portal.kernel.exception.SystemException, 417 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 418 return getPersistence() 419 .findByUuid_C_First(uuid, companyId, orderByComparator); 420 } 421 422 /** 423 * Returns the first document library file entry type in the ordered set where uuid = ? and companyId = ?. 424 * 425 * @param uuid the uuid 426 * @param companyId the company ID 427 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 428 * @return the first matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found 429 * @throws SystemException if a system exception occurred 430 */ 431 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByUuid_C_First( 432 java.lang.String uuid, long companyId, 433 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 434 throws com.liferay.portal.kernel.exception.SystemException { 435 return getPersistence() 436 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 437 } 438 439 /** 440 * Returns the last document library file entry type in the ordered set where uuid = ? and companyId = ?. 441 * 442 * @param uuid the uuid 443 * @param companyId the company ID 444 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 445 * @return the last matching document library file entry type 446 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found 447 * @throws SystemException if a system exception occurred 448 */ 449 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByUuid_C_Last( 450 java.lang.String uuid, long companyId, 451 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 452 throws com.liferay.portal.kernel.exception.SystemException, 453 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 454 return getPersistence() 455 .findByUuid_C_Last(uuid, companyId, orderByComparator); 456 } 457 458 /** 459 * Returns the last document library file entry type in the ordered set where uuid = ? and companyId = ?. 460 * 461 * @param uuid the uuid 462 * @param companyId the company ID 463 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 464 * @return the last matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found 465 * @throws SystemException if a system exception occurred 466 */ 467 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByUuid_C_Last( 468 java.lang.String uuid, long companyId, 469 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 470 throws com.liferay.portal.kernel.exception.SystemException { 471 return getPersistence() 472 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 473 } 474 475 /** 476 * Returns the document library file entry types before and after the current document library file entry type in the ordered set where uuid = ? and companyId = ?. 477 * 478 * @param fileEntryTypeId the primary key of the current document library file entry type 479 * @param uuid the uuid 480 * @param companyId the company ID 481 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 482 * @return the previous, current, and next document library file entry type 483 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found 484 * @throws SystemException if a system exception occurred 485 */ 486 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType[] findByUuid_C_PrevAndNext( 487 long fileEntryTypeId, java.lang.String uuid, long companyId, 488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 489 throws com.liferay.portal.kernel.exception.SystemException, 490 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 491 return getPersistence() 492 .findByUuid_C_PrevAndNext(fileEntryTypeId, uuid, companyId, 493 orderByComparator); 494 } 495 496 /** 497 * Removes all the document library file entry types where uuid = ? and companyId = ? from the database. 498 * 499 * @param uuid the uuid 500 * @param companyId the company ID 501 * @throws SystemException if a system exception occurred 502 */ 503 public static void removeByUuid_C(java.lang.String uuid, long companyId) 504 throws com.liferay.portal.kernel.exception.SystemException { 505 getPersistence().removeByUuid_C(uuid, companyId); 506 } 507 508 /** 509 * Returns the number of document library file entry types where uuid = ? and companyId = ?. 510 * 511 * @param uuid the uuid 512 * @param companyId the company ID 513 * @return the number of matching document library file entry types 514 * @throws SystemException if a system exception occurred 515 */ 516 public static int countByUuid_C(java.lang.String uuid, long companyId) 517 throws com.liferay.portal.kernel.exception.SystemException { 518 return getPersistence().countByUuid_C(uuid, companyId); 519 } 520 521 /** 522 * Returns all the document library file entry types where groupId = ?. 523 * 524 * @param groupId the group ID 525 * @return the matching document library file entry types 526 * @throws SystemException if a system exception occurred 527 */ 528 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId( 529 long groupId) 530 throws com.liferay.portal.kernel.exception.SystemException { 531 return getPersistence().findByGroupId(groupId); 532 } 533 534 /** 535 * Returns a range of all the document library file entry types where groupId = ?. 536 * 537 * <p> 538 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 539 * </p> 540 * 541 * @param groupId the group ID 542 * @param start the lower bound of the range of document library file entry types 543 * @param end the upper bound of the range of document library file entry types (not inclusive) 544 * @return the range of matching document library file entry types 545 * @throws SystemException if a system exception occurred 546 */ 547 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId( 548 long groupId, int start, int end) 549 throws com.liferay.portal.kernel.exception.SystemException { 550 return getPersistence().findByGroupId(groupId, start, end); 551 } 552 553 /** 554 * Returns an ordered range of all the document library file entry types where groupId = ?. 555 * 556 * <p> 557 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 558 * </p> 559 * 560 * @param groupId the group ID 561 * @param start the lower bound of the range of document library file entry types 562 * @param end the upper bound of the range of document library file entry types (not inclusive) 563 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 564 * @return the ordered range of matching document library file entry types 565 * @throws SystemException if a system exception occurred 566 */ 567 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId( 568 long groupId, int start, int end, 569 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 570 throws com.liferay.portal.kernel.exception.SystemException { 571 return getPersistence() 572 .findByGroupId(groupId, start, end, orderByComparator); 573 } 574 575 /** 576 * Returns the first document library file entry type in the ordered set where groupId = ?. 577 * 578 * @param groupId the group ID 579 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 580 * @return the first matching document library file entry type 581 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found 582 * @throws SystemException if a system exception occurred 583 */ 584 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByGroupId_First( 585 long groupId, 586 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 587 throws com.liferay.portal.kernel.exception.SystemException, 588 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 589 return getPersistence().findByGroupId_First(groupId, orderByComparator); 590 } 591 592 /** 593 * Returns the first document library file entry type in the ordered set where groupId = ?. 594 * 595 * @param groupId the group ID 596 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 597 * @return the first matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found 598 * @throws SystemException if a system exception occurred 599 */ 600 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByGroupId_First( 601 long groupId, 602 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 603 throws com.liferay.portal.kernel.exception.SystemException { 604 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 605 } 606 607 /** 608 * Returns the last document library file entry type in the ordered set where groupId = ?. 609 * 610 * @param groupId the group ID 611 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 612 * @return the last matching document library file entry type 613 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found 614 * @throws SystemException if a system exception occurred 615 */ 616 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByGroupId_Last( 617 long groupId, 618 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 619 throws com.liferay.portal.kernel.exception.SystemException, 620 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 621 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 622 } 623 624 /** 625 * Returns the last document library file entry type in the ordered set where groupId = ?. 626 * 627 * @param groupId the group ID 628 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 629 * @return the last matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found 630 * @throws SystemException if a system exception occurred 631 */ 632 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByGroupId_Last( 633 long groupId, 634 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 635 throws com.liferay.portal.kernel.exception.SystemException { 636 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 637 } 638 639 /** 640 * Returns the document library file entry types before and after the current document library file entry type in the ordered set where groupId = ?. 641 * 642 * @param fileEntryTypeId the primary key of the current document library file entry type 643 * @param groupId the group ID 644 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 645 * @return the previous, current, and next document library file entry type 646 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found 647 * @throws SystemException if a system exception occurred 648 */ 649 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType[] findByGroupId_PrevAndNext( 650 long fileEntryTypeId, long groupId, 651 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 652 throws com.liferay.portal.kernel.exception.SystemException, 653 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 654 return getPersistence() 655 .findByGroupId_PrevAndNext(fileEntryTypeId, groupId, 656 orderByComparator); 657 } 658 659 /** 660 * Returns all the document library file entry types that the user has permission to view where groupId = ?. 661 * 662 * @param groupId the group ID 663 * @return the matching document library file entry types that the user has permission to view 664 * @throws SystemException if a system exception occurred 665 */ 666 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId( 667 long groupId) 668 throws com.liferay.portal.kernel.exception.SystemException { 669 return getPersistence().filterFindByGroupId(groupId); 670 } 671 672 /** 673 * Returns a range of all the document library file entry types that the user has permission to view where groupId = ?. 674 * 675 * <p> 676 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 677 * </p> 678 * 679 * @param groupId the group ID 680 * @param start the lower bound of the range of document library file entry types 681 * @param end the upper bound of the range of document library file entry types (not inclusive) 682 * @return the range of matching document library file entry types that the user has permission to view 683 * @throws SystemException if a system exception occurred 684 */ 685 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId( 686 long groupId, int start, int end) 687 throws com.liferay.portal.kernel.exception.SystemException { 688 return getPersistence().filterFindByGroupId(groupId, start, end); 689 } 690 691 /** 692 * Returns an ordered range of all the document library file entry types that the user has permissions to view where groupId = ?. 693 * 694 * <p> 695 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 696 * </p> 697 * 698 * @param groupId the group ID 699 * @param start the lower bound of the range of document library file entry types 700 * @param end the upper bound of the range of document library file entry types (not inclusive) 701 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 702 * @return the ordered range of matching document library file entry types that the user has permission to view 703 * @throws SystemException if a system exception occurred 704 */ 705 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId( 706 long groupId, int start, int end, 707 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 708 throws com.liferay.portal.kernel.exception.SystemException { 709 return getPersistence() 710 .filterFindByGroupId(groupId, start, end, orderByComparator); 711 } 712 713 /** 714 * Returns the document library file entry types before and after the current document library file entry type in the ordered set of document library file entry types that the user has permission to view where groupId = ?. 715 * 716 * @param fileEntryTypeId the primary key of the current document library file entry type 717 * @param groupId the group ID 718 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 719 * @return the previous, current, and next document library file entry type 720 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found 721 * @throws SystemException if a system exception occurred 722 */ 723 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType[] filterFindByGroupId_PrevAndNext( 724 long fileEntryTypeId, long groupId, 725 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 726 throws com.liferay.portal.kernel.exception.SystemException, 727 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 728 return getPersistence() 729 .filterFindByGroupId_PrevAndNext(fileEntryTypeId, groupId, 730 orderByComparator); 731 } 732 733 /** 734 * Returns all the document library file entry types that the user has permission to view where groupId = any ?. 735 * 736 * @param groupIds the group IDs 737 * @return the matching document library file entry types that the user has permission to view 738 * @throws SystemException if a system exception occurred 739 */ 740 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId( 741 long[] groupIds) 742 throws com.liferay.portal.kernel.exception.SystemException { 743 return getPersistence().filterFindByGroupId(groupIds); 744 } 745 746 /** 747 * Returns a range of all the document library file entry types that the user has permission to view where groupId = any ?. 748 * 749 * <p> 750 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 751 * </p> 752 * 753 * @param groupIds the group IDs 754 * @param start the lower bound of the range of document library file entry types 755 * @param end the upper bound of the range of document library file entry types (not inclusive) 756 * @return the range of matching document library file entry types that the user has permission to view 757 * @throws SystemException if a system exception occurred 758 */ 759 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId( 760 long[] groupIds, int start, int end) 761 throws com.liferay.portal.kernel.exception.SystemException { 762 return getPersistence().filterFindByGroupId(groupIds, start, end); 763 } 764 765 /** 766 * Returns an ordered range of all the document library file entry types that the user has permission to view where groupId = any ?. 767 * 768 * <p> 769 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 770 * </p> 771 * 772 * @param groupIds the group IDs 773 * @param start the lower bound of the range of document library file entry types 774 * @param end the upper bound of the range of document library file entry types (not inclusive) 775 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 776 * @return the ordered range of matching document library file entry types that the user has permission to view 777 * @throws SystemException if a system exception occurred 778 */ 779 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId( 780 long[] groupIds, int start, int end, 781 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 782 throws com.liferay.portal.kernel.exception.SystemException { 783 return getPersistence() 784 .filterFindByGroupId(groupIds, start, end, orderByComparator); 785 } 786 787 /** 788 * Returns all the document library file entry types where groupId = any ?. 789 * 790 * <p> 791 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 792 * </p> 793 * 794 * @param groupIds the group IDs 795 * @return the matching document library file entry types 796 * @throws SystemException if a system exception occurred 797 */ 798 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId( 799 long[] groupIds) 800 throws com.liferay.portal.kernel.exception.SystemException { 801 return getPersistence().findByGroupId(groupIds); 802 } 803 804 /** 805 * Returns a range of all the document library file entry types where groupId = any ?. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 809 * </p> 810 * 811 * @param groupIds the group IDs 812 * @param start the lower bound of the range of document library file entry types 813 * @param end the upper bound of the range of document library file entry types (not inclusive) 814 * @return the range of matching document library file entry types 815 * @throws SystemException if a system exception occurred 816 */ 817 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId( 818 long[] groupIds, int start, int end) 819 throws com.liferay.portal.kernel.exception.SystemException { 820 return getPersistence().findByGroupId(groupIds, start, end); 821 } 822 823 /** 824 * Returns an ordered range of all the document library file entry types where groupId = any ?. 825 * 826 * <p> 827 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 828 * </p> 829 * 830 * @param groupIds the group IDs 831 * @param start the lower bound of the range of document library file entry types 832 * @param end the upper bound of the range of document library file entry types (not inclusive) 833 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 834 * @return the ordered range of matching document library file entry types 835 * @throws SystemException if a system exception occurred 836 */ 837 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId( 838 long[] groupIds, int start, int end, 839 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 840 throws com.liferay.portal.kernel.exception.SystemException { 841 return getPersistence() 842 .findByGroupId(groupIds, start, end, orderByComparator); 843 } 844 845 /** 846 * Removes all the document library file entry types where groupId = ? from the database. 847 * 848 * @param groupId the group ID 849 * @throws SystemException if a system exception occurred 850 */ 851 public static void removeByGroupId(long groupId) 852 throws com.liferay.portal.kernel.exception.SystemException { 853 getPersistence().removeByGroupId(groupId); 854 } 855 856 /** 857 * Returns the number of document library file entry types where groupId = ?. 858 * 859 * @param groupId the group ID 860 * @return the number of matching document library file entry types 861 * @throws SystemException if a system exception occurred 862 */ 863 public static int countByGroupId(long groupId) 864 throws com.liferay.portal.kernel.exception.SystemException { 865 return getPersistence().countByGroupId(groupId); 866 } 867 868 /** 869 * Returns the number of document library file entry types where groupId = any ?. 870 * 871 * @param groupIds the group IDs 872 * @return the number of matching document library file entry types 873 * @throws SystemException if a system exception occurred 874 */ 875 public static int countByGroupId(long[] groupIds) 876 throws com.liferay.portal.kernel.exception.SystemException { 877 return getPersistence().countByGroupId(groupIds); 878 } 879 880 /** 881 * Returns the number of document library file entry types that the user has permission to view where groupId = ?. 882 * 883 * @param groupId the group ID 884 * @return the number of matching document library file entry types that the user has permission to view 885 * @throws SystemException if a system exception occurred 886 */ 887 public static int filterCountByGroupId(long groupId) 888 throws com.liferay.portal.kernel.exception.SystemException { 889 return getPersistence().filterCountByGroupId(groupId); 890 } 891 892 /** 893 * Returns the number of document library file entry types that the user has permission to view where groupId = any ?. 894 * 895 * @param groupIds the group IDs 896 * @return the number of matching document library file entry types that the user has permission to view 897 * @throws SystemException if a system exception occurred 898 */ 899 public static int filterCountByGroupId(long[] groupIds) 900 throws com.liferay.portal.kernel.exception.SystemException { 901 return getPersistence().filterCountByGroupId(groupIds); 902 } 903 904 /** 905 * Returns the document library file entry type where groupId = ? and fileEntryTypeKey = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException} if it could not be found. 906 * 907 * @param groupId the group ID 908 * @param fileEntryTypeKey the file entry type key 909 * @return the matching document library file entry type 910 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found 911 * @throws SystemException if a system exception occurred 912 */ 913 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByG_F( 914 long groupId, java.lang.String fileEntryTypeKey) 915 throws com.liferay.portal.kernel.exception.SystemException, 916 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 917 return getPersistence().findByG_F(groupId, fileEntryTypeKey); 918 } 919 920 /** 921 * Returns the document library file entry type where groupId = ? and fileEntryTypeKey = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 922 * 923 * @param groupId the group ID 924 * @param fileEntryTypeKey the file entry type key 925 * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found 926 * @throws SystemException if a system exception occurred 927 */ 928 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByG_F( 929 long groupId, java.lang.String fileEntryTypeKey) 930 throws com.liferay.portal.kernel.exception.SystemException { 931 return getPersistence().fetchByG_F(groupId, fileEntryTypeKey); 932 } 933 934 /** 935 * Returns the document library file entry type where groupId = ? and fileEntryTypeKey = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 936 * 937 * @param groupId the group ID 938 * @param fileEntryTypeKey the file entry type key 939 * @param retrieveFromCache whether to use the finder cache 940 * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found 941 * @throws SystemException if a system exception occurred 942 */ 943 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByG_F( 944 long groupId, java.lang.String fileEntryTypeKey, 945 boolean retrieveFromCache) 946 throws com.liferay.portal.kernel.exception.SystemException { 947 return getPersistence() 948 .fetchByG_F(groupId, fileEntryTypeKey, retrieveFromCache); 949 } 950 951 /** 952 * Removes the document library file entry type where groupId = ? and fileEntryTypeKey = ? from the database. 953 * 954 * @param groupId the group ID 955 * @param fileEntryTypeKey the file entry type key 956 * @return the document library file entry type that was removed 957 * @throws SystemException if a system exception occurred 958 */ 959 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType removeByG_F( 960 long groupId, java.lang.String fileEntryTypeKey) 961 throws com.liferay.portal.kernel.exception.SystemException, 962 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 963 return getPersistence().removeByG_F(groupId, fileEntryTypeKey); 964 } 965 966 /** 967 * Returns the number of document library file entry types where groupId = ? and fileEntryTypeKey = ?. 968 * 969 * @param groupId the group ID 970 * @param fileEntryTypeKey the file entry type key 971 * @return the number of matching document library file entry types 972 * @throws SystemException if a system exception occurred 973 */ 974 public static int countByG_F(long groupId, java.lang.String fileEntryTypeKey) 975 throws com.liferay.portal.kernel.exception.SystemException { 976 return getPersistence().countByG_F(groupId, fileEntryTypeKey); 977 } 978 979 /** 980 * Caches the document library file entry type in the entity cache if it is enabled. 981 * 982 * @param dlFileEntryType the document library file entry type 983 */ 984 public static void cacheResult( 985 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) { 986 getPersistence().cacheResult(dlFileEntryType); 987 } 988 989 /** 990 * Caches the document library file entry types in the entity cache if it is enabled. 991 * 992 * @param dlFileEntryTypes the document library file entry types 993 */ 994 public static void cacheResult( 995 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) { 996 getPersistence().cacheResult(dlFileEntryTypes); 997 } 998 999 /** 1000 * Creates a new document library file entry type with the primary key. Does not add the document library file entry type to the database. 1001 * 1002 * @param fileEntryTypeId the primary key for the new document library file entry type 1003 * @return the new document library file entry type 1004 */ 1005 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType create( 1006 long fileEntryTypeId) { 1007 return getPersistence().create(fileEntryTypeId); 1008 } 1009 1010 /** 1011 * Removes the document library file entry type with the primary key from the database. Also notifies the appropriate model listeners. 1012 * 1013 * @param fileEntryTypeId the primary key of the document library file entry type 1014 * @return the document library file entry type that was removed 1015 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found 1016 * @throws SystemException if a system exception occurred 1017 */ 1018 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType remove( 1019 long fileEntryTypeId) 1020 throws com.liferay.portal.kernel.exception.SystemException, 1021 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 1022 return getPersistence().remove(fileEntryTypeId); 1023 } 1024 1025 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType updateImpl( 1026 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) 1027 throws com.liferay.portal.kernel.exception.SystemException { 1028 return getPersistence().updateImpl(dlFileEntryType); 1029 } 1030 1031 /** 1032 * Returns the document library file entry type with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException} if it could not be found. 1033 * 1034 * @param fileEntryTypeId the primary key of the document library file entry type 1035 * @return the document library file entry type 1036 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found 1037 * @throws SystemException if a system exception occurred 1038 */ 1039 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByPrimaryKey( 1040 long fileEntryTypeId) 1041 throws com.liferay.portal.kernel.exception.SystemException, 1042 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 1043 return getPersistence().findByPrimaryKey(fileEntryTypeId); 1044 } 1045 1046 /** 1047 * Returns the document library file entry type with the primary key or returns <code>null</code> if it could not be found. 1048 * 1049 * @param fileEntryTypeId the primary key of the document library file entry type 1050 * @return the document library file entry type, or <code>null</code> if a document library file entry type with the primary key could not be found 1051 * @throws SystemException if a system exception occurred 1052 */ 1053 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByPrimaryKey( 1054 long fileEntryTypeId) 1055 throws com.liferay.portal.kernel.exception.SystemException { 1056 return getPersistence().fetchByPrimaryKey(fileEntryTypeId); 1057 } 1058 1059 /** 1060 * Returns all the document library file entry types. 1061 * 1062 * @return the document library file entry types 1063 * @throws SystemException if a system exception occurred 1064 */ 1065 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll() 1066 throws com.liferay.portal.kernel.exception.SystemException { 1067 return getPersistence().findAll(); 1068 } 1069 1070 /** 1071 * Returns a range of all the document library file entry types. 1072 * 1073 * <p> 1074 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1075 * </p> 1076 * 1077 * @param start the lower bound of the range of document library file entry types 1078 * @param end the upper bound of the range of document library file entry types (not inclusive) 1079 * @return the range of document library file entry types 1080 * @throws SystemException if a system exception occurred 1081 */ 1082 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll( 1083 int start, int end) 1084 throws com.liferay.portal.kernel.exception.SystemException { 1085 return getPersistence().findAll(start, end); 1086 } 1087 1088 /** 1089 * Returns an ordered range of all the document library file entry types. 1090 * 1091 * <p> 1092 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1093 * </p> 1094 * 1095 * @param start the lower bound of the range of document library file entry types 1096 * @param end the upper bound of the range of document library file entry types (not inclusive) 1097 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1098 * @return the ordered range of document library file entry types 1099 * @throws SystemException if a system exception occurred 1100 */ 1101 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll( 1102 int start, int end, 1103 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1104 throws com.liferay.portal.kernel.exception.SystemException { 1105 return getPersistence().findAll(start, end, orderByComparator); 1106 } 1107 1108 /** 1109 * Removes all the document library file entry types from the database. 1110 * 1111 * @throws SystemException if a system exception occurred 1112 */ 1113 public static void removeAll() 1114 throws com.liferay.portal.kernel.exception.SystemException { 1115 getPersistence().removeAll(); 1116 } 1117 1118 /** 1119 * Returns the number of document library file entry types. 1120 * 1121 * @return the number of document library file entry types 1122 * @throws SystemException if a system exception occurred 1123 */ 1124 public static int countAll() 1125 throws com.liferay.portal.kernel.exception.SystemException { 1126 return getPersistence().countAll(); 1127 } 1128 1129 /** 1130 * Returns all the document library folders associated with the document library file entry type. 1131 * 1132 * @param pk the primary key of the document library file entry type 1133 * @return the document library folders associated with the document library file entry type 1134 * @throws SystemException if a system exception occurred 1135 */ 1136 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders( 1137 long pk) throws com.liferay.portal.kernel.exception.SystemException { 1138 return getPersistence().getDLFolders(pk); 1139 } 1140 1141 /** 1142 * Returns a range of all the document library folders associated with the document library file entry type. 1143 * 1144 * <p> 1145 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1146 * </p> 1147 * 1148 * @param pk the primary key of the document library file entry type 1149 * @param start the lower bound of the range of document library file entry types 1150 * @param end the upper bound of the range of document library file entry types (not inclusive) 1151 * @return the range of document library folders associated with the document library file entry type 1152 * @throws SystemException if a system exception occurred 1153 */ 1154 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders( 1155 long pk, int start, int end) 1156 throws com.liferay.portal.kernel.exception.SystemException { 1157 return getPersistence().getDLFolders(pk, start, end); 1158 } 1159 1160 /** 1161 * Returns an ordered range of all the document library folders associated with the document library file entry type. 1162 * 1163 * <p> 1164 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1165 * </p> 1166 * 1167 * @param pk the primary key of the document library file entry type 1168 * @param start the lower bound of the range of document library file entry types 1169 * @param end the upper bound of the range of document library file entry types (not inclusive) 1170 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1171 * @return the ordered range of document library folders associated with the document library file entry type 1172 * @throws SystemException if a system exception occurred 1173 */ 1174 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders( 1175 long pk, int start, int end, 1176 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1177 throws com.liferay.portal.kernel.exception.SystemException { 1178 return getPersistence().getDLFolders(pk, start, end, orderByComparator); 1179 } 1180 1181 /** 1182 * Returns the number of document library folders associated with the document library file entry type. 1183 * 1184 * @param pk the primary key of the document library file entry type 1185 * @return the number of document library folders associated with the document library file entry type 1186 * @throws SystemException if a system exception occurred 1187 */ 1188 public static int getDLFoldersSize(long pk) 1189 throws com.liferay.portal.kernel.exception.SystemException { 1190 return getPersistence().getDLFoldersSize(pk); 1191 } 1192 1193 /** 1194 * Returns <code>true</code> if the document library folder is associated with the document library file entry type. 1195 * 1196 * @param pk the primary key of the document library file entry type 1197 * @param dlFolderPK the primary key of the document library folder 1198 * @return <code>true</code> if the document library folder is associated with the document library file entry type; <code>false</code> otherwise 1199 * @throws SystemException if a system exception occurred 1200 */ 1201 public static boolean containsDLFolder(long pk, long dlFolderPK) 1202 throws com.liferay.portal.kernel.exception.SystemException { 1203 return getPersistence().containsDLFolder(pk, dlFolderPK); 1204 } 1205 1206 /** 1207 * Returns <code>true</code> if the document library file entry type has any document library folders associated with it. 1208 * 1209 * @param pk the primary key of the document library file entry type to check for associations with document library folders 1210 * @return <code>true</code> if the document library file entry type has any document library folders associated with it; <code>false</code> otherwise 1211 * @throws SystemException if a system exception occurred 1212 */ 1213 public static boolean containsDLFolders(long pk) 1214 throws com.liferay.portal.kernel.exception.SystemException { 1215 return getPersistence().containsDLFolders(pk); 1216 } 1217 1218 /** 1219 * Adds an association between the document library file entry type and the document library folder. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1220 * 1221 * @param pk the primary key of the document library file entry type 1222 * @param dlFolderPK the primary key of the document library folder 1223 * @throws SystemException if a system exception occurred 1224 */ 1225 public static void addDLFolder(long pk, long dlFolderPK) 1226 throws com.liferay.portal.kernel.exception.SystemException { 1227 getPersistence().addDLFolder(pk, dlFolderPK); 1228 } 1229 1230 /** 1231 * Adds an association between the document library file entry type and the document library folder. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1232 * 1233 * @param pk the primary key of the document library file entry type 1234 * @param dlFolder the document library folder 1235 * @throws SystemException if a system exception occurred 1236 */ 1237 public static void addDLFolder(long pk, 1238 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) 1239 throws com.liferay.portal.kernel.exception.SystemException { 1240 getPersistence().addDLFolder(pk, dlFolder); 1241 } 1242 1243 /** 1244 * Adds an association between the document library file entry type and the document library folders. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1245 * 1246 * @param pk the primary key of the document library file entry type 1247 * @param dlFolderPKs the primary keys of the document library folders 1248 * @throws SystemException if a system exception occurred 1249 */ 1250 public static void addDLFolders(long pk, long[] dlFolderPKs) 1251 throws com.liferay.portal.kernel.exception.SystemException { 1252 getPersistence().addDLFolders(pk, dlFolderPKs); 1253 } 1254 1255 /** 1256 * Adds an association between the document library file entry type and the document library folders. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1257 * 1258 * @param pk the primary key of the document library file entry type 1259 * @param dlFolders the document library folders 1260 * @throws SystemException if a system exception occurred 1261 */ 1262 public static void addDLFolders(long pk, 1263 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders) 1264 throws com.liferay.portal.kernel.exception.SystemException { 1265 getPersistence().addDLFolders(pk, dlFolders); 1266 } 1267 1268 /** 1269 * Clears all associations between the document library file entry type and its document library folders. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1270 * 1271 * @param pk the primary key of the document library file entry type to clear the associated document library folders from 1272 * @throws SystemException if a system exception occurred 1273 */ 1274 public static void clearDLFolders(long pk) 1275 throws com.liferay.portal.kernel.exception.SystemException { 1276 getPersistence().clearDLFolders(pk); 1277 } 1278 1279 /** 1280 * Removes the association between the document library file entry type and the document library folder. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1281 * 1282 * @param pk the primary key of the document library file entry type 1283 * @param dlFolderPK the primary key of the document library folder 1284 * @throws SystemException if a system exception occurred 1285 */ 1286 public static void removeDLFolder(long pk, long dlFolderPK) 1287 throws com.liferay.portal.kernel.exception.SystemException { 1288 getPersistence().removeDLFolder(pk, dlFolderPK); 1289 } 1290 1291 /** 1292 * Removes the association between the document library file entry type and the document library folder. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1293 * 1294 * @param pk the primary key of the document library file entry type 1295 * @param dlFolder the document library folder 1296 * @throws SystemException if a system exception occurred 1297 */ 1298 public static void removeDLFolder(long pk, 1299 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) 1300 throws com.liferay.portal.kernel.exception.SystemException { 1301 getPersistence().removeDLFolder(pk, dlFolder); 1302 } 1303 1304 /** 1305 * Removes the association between the document library file entry type and the document library folders. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1306 * 1307 * @param pk the primary key of the document library file entry type 1308 * @param dlFolderPKs the primary keys of the document library folders 1309 * @throws SystemException if a system exception occurred 1310 */ 1311 public static void removeDLFolders(long pk, long[] dlFolderPKs) 1312 throws com.liferay.portal.kernel.exception.SystemException { 1313 getPersistence().removeDLFolders(pk, dlFolderPKs); 1314 } 1315 1316 /** 1317 * Removes the association between the document library file entry type and the document library folders. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1318 * 1319 * @param pk the primary key of the document library file entry type 1320 * @param dlFolders the document library folders 1321 * @throws SystemException if a system exception occurred 1322 */ 1323 public static void removeDLFolders(long pk, 1324 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders) 1325 throws com.liferay.portal.kernel.exception.SystemException { 1326 getPersistence().removeDLFolders(pk, dlFolders); 1327 } 1328 1329 /** 1330 * Sets the document library folders associated with the document library file entry type, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1331 * 1332 * @param pk the primary key of the document library file entry type 1333 * @param dlFolderPKs the primary keys of the document library folders to be associated with the document library file entry type 1334 * @throws SystemException if a system exception occurred 1335 */ 1336 public static void setDLFolders(long pk, long[] dlFolderPKs) 1337 throws com.liferay.portal.kernel.exception.SystemException { 1338 getPersistence().setDLFolders(pk, dlFolderPKs); 1339 } 1340 1341 /** 1342 * Sets the document library folders associated with the document library file entry type, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1343 * 1344 * @param pk the primary key of the document library file entry type 1345 * @param dlFolders the document library folders to be associated with the document library file entry type 1346 * @throws SystemException if a system exception occurred 1347 */ 1348 public static void setDLFolders(long pk, 1349 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders) 1350 throws com.liferay.portal.kernel.exception.SystemException { 1351 getPersistence().setDLFolders(pk, dlFolders); 1352 } 1353 1354 /** 1355 * Returns all the d d m structures associated with the document library file entry type. 1356 * 1357 * @param pk the primary key of the document library file entry type 1358 * @return the d d m structures associated with the document library file entry type 1359 * @throws SystemException if a system exception occurred 1360 */ 1361 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures( 1362 long pk) throws com.liferay.portal.kernel.exception.SystemException { 1363 return getPersistence().getDDMStructures(pk); 1364 } 1365 1366 /** 1367 * Returns a range of all the d d m structures associated with the document library file entry type. 1368 * 1369 * <p> 1370 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1371 * </p> 1372 * 1373 * @param pk the primary key of the document library file entry type 1374 * @param start the lower bound of the range of document library file entry types 1375 * @param end the upper bound of the range of document library file entry types (not inclusive) 1376 * @return the range of d d m structures associated with the document library file entry type 1377 * @throws SystemException if a system exception occurred 1378 */ 1379 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures( 1380 long pk, int start, int end) 1381 throws com.liferay.portal.kernel.exception.SystemException { 1382 return getPersistence().getDDMStructures(pk, start, end); 1383 } 1384 1385 /** 1386 * Returns an ordered range of all the d d m structures associated with the document library file entry type. 1387 * 1388 * <p> 1389 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1390 * </p> 1391 * 1392 * @param pk the primary key of the document library file entry type 1393 * @param start the lower bound of the range of document library file entry types 1394 * @param end the upper bound of the range of document library file entry types (not inclusive) 1395 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1396 * @return the ordered range of d d m structures associated with the document library file entry type 1397 * @throws SystemException if a system exception occurred 1398 */ 1399 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures( 1400 long pk, int start, int end, 1401 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1402 throws com.liferay.portal.kernel.exception.SystemException { 1403 return getPersistence() 1404 .getDDMStructures(pk, start, end, orderByComparator); 1405 } 1406 1407 /** 1408 * Returns the number of d d m structures associated with the document library file entry type. 1409 * 1410 * @param pk the primary key of the document library file entry type 1411 * @return the number of d d m structures associated with the document library file entry type 1412 * @throws SystemException if a system exception occurred 1413 */ 1414 public static int getDDMStructuresSize(long pk) 1415 throws com.liferay.portal.kernel.exception.SystemException { 1416 return getPersistence().getDDMStructuresSize(pk); 1417 } 1418 1419 /** 1420 * Returns <code>true</code> if the d d m structure is associated with the document library file entry type. 1421 * 1422 * @param pk the primary key of the document library file entry type 1423 * @param ddmStructurePK the primary key of the d d m structure 1424 * @return <code>true</code> if the d d m structure is associated with the document library file entry type; <code>false</code> otherwise 1425 * @throws SystemException if a system exception occurred 1426 */ 1427 public static boolean containsDDMStructure(long pk, long ddmStructurePK) 1428 throws com.liferay.portal.kernel.exception.SystemException { 1429 return getPersistence().containsDDMStructure(pk, ddmStructurePK); 1430 } 1431 1432 /** 1433 * Returns <code>true</code> if the document library file entry type has any d d m structures associated with it. 1434 * 1435 * @param pk the primary key of the document library file entry type to check for associations with d d m structures 1436 * @return <code>true</code> if the document library file entry type has any d d m structures associated with it; <code>false</code> otherwise 1437 * @throws SystemException if a system exception occurred 1438 */ 1439 public static boolean containsDDMStructures(long pk) 1440 throws com.liferay.portal.kernel.exception.SystemException { 1441 return getPersistence().containsDDMStructures(pk); 1442 } 1443 1444 /** 1445 * Adds an association between the document library file entry type and the d d m structure. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1446 * 1447 * @param pk the primary key of the document library file entry type 1448 * @param ddmStructurePK the primary key of the d d m structure 1449 * @throws SystemException if a system exception occurred 1450 */ 1451 public static void addDDMStructure(long pk, long ddmStructurePK) 1452 throws com.liferay.portal.kernel.exception.SystemException { 1453 getPersistence().addDDMStructure(pk, ddmStructurePK); 1454 } 1455 1456 /** 1457 * Adds an association between the document library file entry type and the d d m structure. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1458 * 1459 * @param pk the primary key of the document library file entry type 1460 * @param ddmStructure the d d m structure 1461 * @throws SystemException if a system exception occurred 1462 */ 1463 public static void addDDMStructure(long pk, 1464 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure) 1465 throws com.liferay.portal.kernel.exception.SystemException { 1466 getPersistence().addDDMStructure(pk, ddmStructure); 1467 } 1468 1469 /** 1470 * Adds an association between the document library file entry type and the d d m structures. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1471 * 1472 * @param pk the primary key of the document library file entry type 1473 * @param ddmStructurePKs the primary keys of the d d m structures 1474 * @throws SystemException if a system exception occurred 1475 */ 1476 public static void addDDMStructures(long pk, long[] ddmStructurePKs) 1477 throws com.liferay.portal.kernel.exception.SystemException { 1478 getPersistence().addDDMStructures(pk, ddmStructurePKs); 1479 } 1480 1481 /** 1482 * Adds an association between the document library file entry type and the d d m structures. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1483 * 1484 * @param pk the primary key of the document library file entry type 1485 * @param ddmStructures the d d m structures 1486 * @throws SystemException if a system exception occurred 1487 */ 1488 public static void addDDMStructures(long pk, 1489 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures) 1490 throws com.liferay.portal.kernel.exception.SystemException { 1491 getPersistence().addDDMStructures(pk, ddmStructures); 1492 } 1493 1494 /** 1495 * Clears all associations between the document library file entry type and its d d m structures. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1496 * 1497 * @param pk the primary key of the document library file entry type to clear the associated d d m structures from 1498 * @throws SystemException if a system exception occurred 1499 */ 1500 public static void clearDDMStructures(long pk) 1501 throws com.liferay.portal.kernel.exception.SystemException { 1502 getPersistence().clearDDMStructures(pk); 1503 } 1504 1505 /** 1506 * Removes the association between the document library file entry type and the d d m structure. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1507 * 1508 * @param pk the primary key of the document library file entry type 1509 * @param ddmStructurePK the primary key of the d d m structure 1510 * @throws SystemException if a system exception occurred 1511 */ 1512 public static void removeDDMStructure(long pk, long ddmStructurePK) 1513 throws com.liferay.portal.kernel.exception.SystemException { 1514 getPersistence().removeDDMStructure(pk, ddmStructurePK); 1515 } 1516 1517 /** 1518 * Removes the association between the document library file entry type and the d d m structure. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1519 * 1520 * @param pk the primary key of the document library file entry type 1521 * @param ddmStructure the d d m structure 1522 * @throws SystemException if a system exception occurred 1523 */ 1524 public static void removeDDMStructure(long pk, 1525 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure) 1526 throws com.liferay.portal.kernel.exception.SystemException { 1527 getPersistence().removeDDMStructure(pk, ddmStructure); 1528 } 1529 1530 /** 1531 * Removes the association between the document library file entry type and the d d m structures. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1532 * 1533 * @param pk the primary key of the document library file entry type 1534 * @param ddmStructurePKs the primary keys of the d d m structures 1535 * @throws SystemException if a system exception occurred 1536 */ 1537 public static void removeDDMStructures(long pk, long[] ddmStructurePKs) 1538 throws com.liferay.portal.kernel.exception.SystemException { 1539 getPersistence().removeDDMStructures(pk, ddmStructurePKs); 1540 } 1541 1542 /** 1543 * Removes the association between the document library file entry type and the d d m structures. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1544 * 1545 * @param pk the primary key of the document library file entry type 1546 * @param ddmStructures the d d m structures 1547 * @throws SystemException if a system exception occurred 1548 */ 1549 public static void removeDDMStructures(long pk, 1550 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures) 1551 throws com.liferay.portal.kernel.exception.SystemException { 1552 getPersistence().removeDDMStructures(pk, ddmStructures); 1553 } 1554 1555 /** 1556 * Sets the d d m structures associated with the document library file entry type, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1557 * 1558 * @param pk the primary key of the document library file entry type 1559 * @param ddmStructurePKs the primary keys of the d d m structures to be associated with the document library file entry type 1560 * @throws SystemException if a system exception occurred 1561 */ 1562 public static void setDDMStructures(long pk, long[] ddmStructurePKs) 1563 throws com.liferay.portal.kernel.exception.SystemException { 1564 getPersistence().setDDMStructures(pk, ddmStructurePKs); 1565 } 1566 1567 /** 1568 * Sets the d d m structures associated with the document library file entry type, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. 1569 * 1570 * @param pk the primary key of the document library file entry type 1571 * @param ddmStructures the d d m structures to be associated with the document library file entry type 1572 * @throws SystemException if a system exception occurred 1573 */ 1574 public static void setDDMStructures(long pk, 1575 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures) 1576 throws com.liferay.portal.kernel.exception.SystemException { 1577 getPersistence().setDDMStructures(pk, ddmStructures); 1578 } 1579 1580 public static DLFileEntryTypePersistence getPersistence() { 1581 if (_persistence == null) { 1582 _persistence = (DLFileEntryTypePersistence)PortalBeanLocatorUtil.locate(DLFileEntryTypePersistence.class.getName()); 1583 1584 ReferenceRegistry.registerReference(DLFileEntryTypeUtil.class, 1585 "_persistence"); 1586 } 1587 1588 return _persistence; 1589 } 1590 1591 /** 1592 * @deprecated As of 6.2.0 1593 */ 1594 public void setPersistence(DLFileEntryTypePersistence persistence) { 1595 } 1596 1597 private static DLFileEntryTypePersistence _persistence; 1598 }