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 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 name = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException} if it could not be found. 906 * 907 * @param groupId the group ID 908 * @param name the name 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_N( 914 long groupId, java.lang.String name) 915 throws com.liferay.portal.kernel.exception.SystemException, 916 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 917 return getPersistence().findByG_N(groupId, name); 918 } 919 920 /** 921 * Returns the document library file entry type where groupId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 922 * 923 * @param groupId the group ID 924 * @param name the name 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_N( 929 long groupId, java.lang.String name) 930 throws com.liferay.portal.kernel.exception.SystemException { 931 return getPersistence().fetchByG_N(groupId, name); 932 } 933 934 /** 935 * Returns the document library file entry type where groupId = ? and name = ? 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 name the name 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_N( 944 long groupId, java.lang.String name, boolean retrieveFromCache) 945 throws com.liferay.portal.kernel.exception.SystemException { 946 return getPersistence().fetchByG_N(groupId, name, retrieveFromCache); 947 } 948 949 /** 950 * Removes the document library file entry type where groupId = ? and name = ? from the database. 951 * 952 * @param groupId the group ID 953 * @param name the name 954 * @return the document library file entry type that was removed 955 * @throws SystemException if a system exception occurred 956 */ 957 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType removeByG_N( 958 long groupId, java.lang.String name) 959 throws com.liferay.portal.kernel.exception.SystemException, 960 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 961 return getPersistence().removeByG_N(groupId, name); 962 } 963 964 /** 965 * Returns the number of document library file entry types where groupId = ? and name = ?. 966 * 967 * @param groupId the group ID 968 * @param name the name 969 * @return the number of matching document library file entry types 970 * @throws SystemException if a system exception occurred 971 */ 972 public static int countByG_N(long groupId, java.lang.String name) 973 throws com.liferay.portal.kernel.exception.SystemException { 974 return getPersistence().countByG_N(groupId, name); 975 } 976 977 /** 978 * Caches the document library file entry type in the entity cache if it is enabled. 979 * 980 * @param dlFileEntryType the document library file entry type 981 */ 982 public static void cacheResult( 983 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) { 984 getPersistence().cacheResult(dlFileEntryType); 985 } 986 987 /** 988 * Caches the document library file entry types in the entity cache if it is enabled. 989 * 990 * @param dlFileEntryTypes the document library file entry types 991 */ 992 public static void cacheResult( 993 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) { 994 getPersistence().cacheResult(dlFileEntryTypes); 995 } 996 997 /** 998 * Creates a new document library file entry type with the primary key. Does not add the document library file entry type to the database. 999 * 1000 * @param fileEntryTypeId the primary key for the new document library file entry type 1001 * @return the new document library file entry type 1002 */ 1003 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType create( 1004 long fileEntryTypeId) { 1005 return getPersistence().create(fileEntryTypeId); 1006 } 1007 1008 /** 1009 * Removes the document library file entry type with the primary key from the database. Also notifies the appropriate model listeners. 1010 * 1011 * @param fileEntryTypeId the primary key of the document library file entry type 1012 * @return the document library file entry type that was removed 1013 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found 1014 * @throws SystemException if a system exception occurred 1015 */ 1016 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType remove( 1017 long fileEntryTypeId) 1018 throws com.liferay.portal.kernel.exception.SystemException, 1019 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 1020 return getPersistence().remove(fileEntryTypeId); 1021 } 1022 1023 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType updateImpl( 1024 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) 1025 throws com.liferay.portal.kernel.exception.SystemException { 1026 return getPersistence().updateImpl(dlFileEntryType); 1027 } 1028 1029 /** 1030 * 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. 1031 * 1032 * @param fileEntryTypeId the primary key of the document library file entry type 1033 * @return the document library file entry type 1034 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found 1035 * @throws SystemException if a system exception occurred 1036 */ 1037 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByPrimaryKey( 1038 long fileEntryTypeId) 1039 throws com.liferay.portal.kernel.exception.SystemException, 1040 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 1041 return getPersistence().findByPrimaryKey(fileEntryTypeId); 1042 } 1043 1044 /** 1045 * Returns the document library file entry type with the primary key or returns <code>null</code> if it could not be found. 1046 * 1047 * @param fileEntryTypeId the primary key of the document library file entry type 1048 * @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 1049 * @throws SystemException if a system exception occurred 1050 */ 1051 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByPrimaryKey( 1052 long fileEntryTypeId) 1053 throws com.liferay.portal.kernel.exception.SystemException { 1054 return getPersistence().fetchByPrimaryKey(fileEntryTypeId); 1055 } 1056 1057 /** 1058 * Returns all the document library file entry types. 1059 * 1060 * @return the document library file entry types 1061 * @throws SystemException if a system exception occurred 1062 */ 1063 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll() 1064 throws com.liferay.portal.kernel.exception.SystemException { 1065 return getPersistence().findAll(); 1066 } 1067 1068 /** 1069 * Returns a range of all the document library file entry types. 1070 * 1071 * <p> 1072 * 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. 1073 * </p> 1074 * 1075 * @param start the lower bound of the range of document library file entry types 1076 * @param end the upper bound of the range of document library file entry types (not inclusive) 1077 * @return the range of document library file entry types 1078 * @throws SystemException if a system exception occurred 1079 */ 1080 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll( 1081 int start, int end) 1082 throws com.liferay.portal.kernel.exception.SystemException { 1083 return getPersistence().findAll(start, end); 1084 } 1085 1086 /** 1087 * Returns an ordered range of all the document library file entry types. 1088 * 1089 * <p> 1090 * 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. 1091 * </p> 1092 * 1093 * @param start the lower bound of the range of document library file entry types 1094 * @param end the upper bound of the range of document library file entry types (not inclusive) 1095 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1096 * @return the ordered range of document library file entry types 1097 * @throws SystemException if a system exception occurred 1098 */ 1099 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll( 1100 int start, int end, 1101 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1102 throws com.liferay.portal.kernel.exception.SystemException { 1103 return getPersistence().findAll(start, end, orderByComparator); 1104 } 1105 1106 /** 1107 * Removes all the document library file entry types from the database. 1108 * 1109 * @throws SystemException if a system exception occurred 1110 */ 1111 public static void removeAll() 1112 throws com.liferay.portal.kernel.exception.SystemException { 1113 getPersistence().removeAll(); 1114 } 1115 1116 /** 1117 * Returns the number of document library file entry types. 1118 * 1119 * @return the number of document library file entry types 1120 * @throws SystemException if a system exception occurred 1121 */ 1122 public static int countAll() 1123 throws com.liferay.portal.kernel.exception.SystemException { 1124 return getPersistence().countAll(); 1125 } 1126 1127 /** 1128 * Returns all the document library folders associated with the document library file entry type. 1129 * 1130 * @param pk the primary key of the document library file entry type 1131 * @return the document library folders associated with the document library file entry type 1132 * @throws SystemException if a system exception occurred 1133 */ 1134 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders( 1135 long pk) throws com.liferay.portal.kernel.exception.SystemException { 1136 return getPersistence().getDLFolders(pk); 1137 } 1138 1139 /** 1140 * Returns a range of all the document library folders associated with the document library file entry type. 1141 * 1142 * <p> 1143 * 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. 1144 * </p> 1145 * 1146 * @param pk the primary key of the document library file entry type 1147 * @param start the lower bound of the range of document library file entry types 1148 * @param end the upper bound of the range of document library file entry types (not inclusive) 1149 * @return the range of document library folders associated with the document library file entry type 1150 * @throws SystemException if a system exception occurred 1151 */ 1152 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders( 1153 long pk, int start, int end) 1154 throws com.liferay.portal.kernel.exception.SystemException { 1155 return getPersistence().getDLFolders(pk, start, end); 1156 } 1157 1158 /** 1159 * Returns an ordered range of all the document library folders associated with the document library file entry type. 1160 * 1161 * <p> 1162 * 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. 1163 * </p> 1164 * 1165 * @param pk the primary key of the document library file entry type 1166 * @param start the lower bound of the range of document library file entry types 1167 * @param end the upper bound of the range of document library file entry types (not inclusive) 1168 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1169 * @return the ordered range of document library folders associated with the document library file entry type 1170 * @throws SystemException if a system exception occurred 1171 */ 1172 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders( 1173 long pk, int start, int end, 1174 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1175 throws com.liferay.portal.kernel.exception.SystemException { 1176 return getPersistence().getDLFolders(pk, start, end, orderByComparator); 1177 } 1178 1179 /** 1180 * Returns the number of document library folders associated with the document library file entry type. 1181 * 1182 * @param pk the primary key of the document library file entry type 1183 * @return the number of document library folders associated with the document library file entry type 1184 * @throws SystemException if a system exception occurred 1185 */ 1186 public static int getDLFoldersSize(long pk) 1187 throws com.liferay.portal.kernel.exception.SystemException { 1188 return getPersistence().getDLFoldersSize(pk); 1189 } 1190 1191 /** 1192 * Returns <code>true</code> if the document library folder is associated with the document library file entry type. 1193 * 1194 * @param pk the primary key of the document library file entry type 1195 * @param dlFolderPK the primary key of the document library folder 1196 * @return <code>true</code> if the document library folder is associated with the document library file entry type; <code>false</code> otherwise 1197 * @throws SystemException if a system exception occurred 1198 */ 1199 public static boolean containsDLFolder(long pk, long dlFolderPK) 1200 throws com.liferay.portal.kernel.exception.SystemException { 1201 return getPersistence().containsDLFolder(pk, dlFolderPK); 1202 } 1203 1204 /** 1205 * Returns <code>true</code> if the document library file entry type has any document library folders associated with it. 1206 * 1207 * @param pk the primary key of the document library file entry type to check for associations with document library folders 1208 * @return <code>true</code> if the document library file entry type has any document library folders associated with it; <code>false</code> otherwise 1209 * @throws SystemException if a system exception occurred 1210 */ 1211 public static boolean containsDLFolders(long pk) 1212 throws com.liferay.portal.kernel.exception.SystemException { 1213 return getPersistence().containsDLFolders(pk); 1214 } 1215 1216 /** 1217 * 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. 1218 * 1219 * @param pk the primary key of the document library file entry type 1220 * @param dlFolderPK the primary key of the document library folder 1221 * @throws SystemException if a system exception occurred 1222 */ 1223 public static void addDLFolder(long pk, long dlFolderPK) 1224 throws com.liferay.portal.kernel.exception.SystemException { 1225 getPersistence().addDLFolder(pk, dlFolderPK); 1226 } 1227 1228 /** 1229 * 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. 1230 * 1231 * @param pk the primary key of the document library file entry type 1232 * @param dlFolder the document library folder 1233 * @throws SystemException if a system exception occurred 1234 */ 1235 public static void addDLFolder(long pk, 1236 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) 1237 throws com.liferay.portal.kernel.exception.SystemException { 1238 getPersistence().addDLFolder(pk, dlFolder); 1239 } 1240 1241 /** 1242 * 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. 1243 * 1244 * @param pk the primary key of the document library file entry type 1245 * @param dlFolderPKs the primary keys of the document library folders 1246 * @throws SystemException if a system exception occurred 1247 */ 1248 public static void addDLFolders(long pk, long[] dlFolderPKs) 1249 throws com.liferay.portal.kernel.exception.SystemException { 1250 getPersistence().addDLFolders(pk, dlFolderPKs); 1251 } 1252 1253 /** 1254 * 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. 1255 * 1256 * @param pk the primary key of the document library file entry type 1257 * @param dlFolders the document library folders 1258 * @throws SystemException if a system exception occurred 1259 */ 1260 public static void addDLFolders(long pk, 1261 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders) 1262 throws com.liferay.portal.kernel.exception.SystemException { 1263 getPersistence().addDLFolders(pk, dlFolders); 1264 } 1265 1266 /** 1267 * 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. 1268 * 1269 * @param pk the primary key of the document library file entry type to clear the associated document library folders from 1270 * @throws SystemException if a system exception occurred 1271 */ 1272 public static void clearDLFolders(long pk) 1273 throws com.liferay.portal.kernel.exception.SystemException { 1274 getPersistence().clearDLFolders(pk); 1275 } 1276 1277 /** 1278 * 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. 1279 * 1280 * @param pk the primary key of the document library file entry type 1281 * @param dlFolderPK the primary key of the document library folder 1282 * @throws SystemException if a system exception occurred 1283 */ 1284 public static void removeDLFolder(long pk, long dlFolderPK) 1285 throws com.liferay.portal.kernel.exception.SystemException { 1286 getPersistence().removeDLFolder(pk, dlFolderPK); 1287 } 1288 1289 /** 1290 * 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. 1291 * 1292 * @param pk the primary key of the document library file entry type 1293 * @param dlFolder the document library folder 1294 * @throws SystemException if a system exception occurred 1295 */ 1296 public static void removeDLFolder(long pk, 1297 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) 1298 throws com.liferay.portal.kernel.exception.SystemException { 1299 getPersistence().removeDLFolder(pk, dlFolder); 1300 } 1301 1302 /** 1303 * 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. 1304 * 1305 * @param pk the primary key of the document library file entry type 1306 * @param dlFolderPKs the primary keys of the document library folders 1307 * @throws SystemException if a system exception occurred 1308 */ 1309 public static void removeDLFolders(long pk, long[] dlFolderPKs) 1310 throws com.liferay.portal.kernel.exception.SystemException { 1311 getPersistence().removeDLFolders(pk, dlFolderPKs); 1312 } 1313 1314 /** 1315 * 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. 1316 * 1317 * @param pk the primary key of the document library file entry type 1318 * @param dlFolders the document library folders 1319 * @throws SystemException if a system exception occurred 1320 */ 1321 public static void removeDLFolders(long pk, 1322 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders) 1323 throws com.liferay.portal.kernel.exception.SystemException { 1324 getPersistence().removeDLFolders(pk, dlFolders); 1325 } 1326 1327 /** 1328 * 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. 1329 * 1330 * @param pk the primary key of the document library file entry type 1331 * @param dlFolderPKs the primary keys of the document library folders to be associated with the document library file entry type 1332 * @throws SystemException if a system exception occurred 1333 */ 1334 public static void setDLFolders(long pk, long[] dlFolderPKs) 1335 throws com.liferay.portal.kernel.exception.SystemException { 1336 getPersistence().setDLFolders(pk, dlFolderPKs); 1337 } 1338 1339 /** 1340 * 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. 1341 * 1342 * @param pk the primary key of the document library file entry type 1343 * @param dlFolders the document library folders to be associated with the document library file entry type 1344 * @throws SystemException if a system exception occurred 1345 */ 1346 public static void setDLFolders(long pk, 1347 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders) 1348 throws com.liferay.portal.kernel.exception.SystemException { 1349 getPersistence().setDLFolders(pk, dlFolders); 1350 } 1351 1352 /** 1353 * Returns all the d d m structures associated with the document library file entry type. 1354 * 1355 * @param pk the primary key of the document library file entry type 1356 * @return the d d m structures associated with the document library file entry type 1357 * @throws SystemException if a system exception occurred 1358 */ 1359 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures( 1360 long pk) throws com.liferay.portal.kernel.exception.SystemException { 1361 return getPersistence().getDDMStructures(pk); 1362 } 1363 1364 /** 1365 * Returns a range of all the d d m structures associated with the document library file entry type. 1366 * 1367 * <p> 1368 * 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. 1369 * </p> 1370 * 1371 * @param pk the primary key of the document library file entry type 1372 * @param start the lower bound of the range of document library file entry types 1373 * @param end the upper bound of the range of document library file entry types (not inclusive) 1374 * @return the range of d d m structures associated with the document library file entry type 1375 * @throws SystemException if a system exception occurred 1376 */ 1377 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures( 1378 long pk, int start, int end) 1379 throws com.liferay.portal.kernel.exception.SystemException { 1380 return getPersistence().getDDMStructures(pk, start, end); 1381 } 1382 1383 /** 1384 * Returns an ordered range of all the d d m structures associated with the document library file entry type. 1385 * 1386 * <p> 1387 * 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. 1388 * </p> 1389 * 1390 * @param pk the primary key of the document library file entry type 1391 * @param start the lower bound of the range of document library file entry types 1392 * @param end the upper bound of the range of document library file entry types (not inclusive) 1393 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1394 * @return the ordered range of d d m structures associated with the document library file entry type 1395 * @throws SystemException if a system exception occurred 1396 */ 1397 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures( 1398 long pk, int start, int end, 1399 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1400 throws com.liferay.portal.kernel.exception.SystemException { 1401 return getPersistence() 1402 .getDDMStructures(pk, start, end, orderByComparator); 1403 } 1404 1405 /** 1406 * Returns the number of d d m structures associated with the document library file entry type. 1407 * 1408 * @param pk the primary key of the document library file entry type 1409 * @return the number of d d m structures associated with the document library file entry type 1410 * @throws SystemException if a system exception occurred 1411 */ 1412 public static int getDDMStructuresSize(long pk) 1413 throws com.liferay.portal.kernel.exception.SystemException { 1414 return getPersistence().getDDMStructuresSize(pk); 1415 } 1416 1417 /** 1418 * Returns <code>true</code> if the d d m structure is associated with the document library file entry type. 1419 * 1420 * @param pk the primary key of the document library file entry type 1421 * @param ddmStructurePK the primary key of the d d m structure 1422 * @return <code>true</code> if the d d m structure is associated with the document library file entry type; <code>false</code> otherwise 1423 * @throws SystemException if a system exception occurred 1424 */ 1425 public static boolean containsDDMStructure(long pk, long ddmStructurePK) 1426 throws com.liferay.portal.kernel.exception.SystemException { 1427 return getPersistence().containsDDMStructure(pk, ddmStructurePK); 1428 } 1429 1430 /** 1431 * Returns <code>true</code> if the document library file entry type has any d d m structures associated with it. 1432 * 1433 * @param pk the primary key of the document library file entry type to check for associations with d d m structures 1434 * @return <code>true</code> if the document library file entry type has any d d m structures associated with it; <code>false</code> otherwise 1435 * @throws SystemException if a system exception occurred 1436 */ 1437 public static boolean containsDDMStructures(long pk) 1438 throws com.liferay.portal.kernel.exception.SystemException { 1439 return getPersistence().containsDDMStructures(pk); 1440 } 1441 1442 /** 1443 * 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. 1444 * 1445 * @param pk the primary key of the document library file entry type 1446 * @param ddmStructurePK the primary key of the d d m structure 1447 * @throws SystemException if a system exception occurred 1448 */ 1449 public static void addDDMStructure(long pk, long ddmStructurePK) 1450 throws com.liferay.portal.kernel.exception.SystemException { 1451 getPersistence().addDDMStructure(pk, ddmStructurePK); 1452 } 1453 1454 /** 1455 * 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. 1456 * 1457 * @param pk the primary key of the document library file entry type 1458 * @param ddmStructure the d d m structure 1459 * @throws SystemException if a system exception occurred 1460 */ 1461 public static void addDDMStructure(long pk, 1462 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure) 1463 throws com.liferay.portal.kernel.exception.SystemException { 1464 getPersistence().addDDMStructure(pk, ddmStructure); 1465 } 1466 1467 /** 1468 * 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. 1469 * 1470 * @param pk the primary key of the document library file entry type 1471 * @param ddmStructurePKs the primary keys of the d d m structures 1472 * @throws SystemException if a system exception occurred 1473 */ 1474 public static void addDDMStructures(long pk, long[] ddmStructurePKs) 1475 throws com.liferay.portal.kernel.exception.SystemException { 1476 getPersistence().addDDMStructures(pk, ddmStructurePKs); 1477 } 1478 1479 /** 1480 * 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. 1481 * 1482 * @param pk the primary key of the document library file entry type 1483 * @param ddmStructures the d d m structures 1484 * @throws SystemException if a system exception occurred 1485 */ 1486 public static void addDDMStructures(long pk, 1487 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures) 1488 throws com.liferay.portal.kernel.exception.SystemException { 1489 getPersistence().addDDMStructures(pk, ddmStructures); 1490 } 1491 1492 /** 1493 * 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. 1494 * 1495 * @param pk the primary key of the document library file entry type to clear the associated d d m structures from 1496 * @throws SystemException if a system exception occurred 1497 */ 1498 public static void clearDDMStructures(long pk) 1499 throws com.liferay.portal.kernel.exception.SystemException { 1500 getPersistence().clearDDMStructures(pk); 1501 } 1502 1503 /** 1504 * 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. 1505 * 1506 * @param pk the primary key of the document library file entry type 1507 * @param ddmStructurePK the primary key of the d d m structure 1508 * @throws SystemException if a system exception occurred 1509 */ 1510 public static void removeDDMStructure(long pk, long ddmStructurePK) 1511 throws com.liferay.portal.kernel.exception.SystemException { 1512 getPersistence().removeDDMStructure(pk, ddmStructurePK); 1513 } 1514 1515 /** 1516 * 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. 1517 * 1518 * @param pk the primary key of the document library file entry type 1519 * @param ddmStructure the d d m structure 1520 * @throws SystemException if a system exception occurred 1521 */ 1522 public static void removeDDMStructure(long pk, 1523 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure) 1524 throws com.liferay.portal.kernel.exception.SystemException { 1525 getPersistence().removeDDMStructure(pk, ddmStructure); 1526 } 1527 1528 /** 1529 * 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. 1530 * 1531 * @param pk the primary key of the document library file entry type 1532 * @param ddmStructurePKs the primary keys of the d d m structures 1533 * @throws SystemException if a system exception occurred 1534 */ 1535 public static void removeDDMStructures(long pk, long[] ddmStructurePKs) 1536 throws com.liferay.portal.kernel.exception.SystemException { 1537 getPersistence().removeDDMStructures(pk, ddmStructurePKs); 1538 } 1539 1540 /** 1541 * 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. 1542 * 1543 * @param pk the primary key of the document library file entry type 1544 * @param ddmStructures the d d m structures 1545 * @throws SystemException if a system exception occurred 1546 */ 1547 public static void removeDDMStructures(long pk, 1548 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures) 1549 throws com.liferay.portal.kernel.exception.SystemException { 1550 getPersistence().removeDDMStructures(pk, ddmStructures); 1551 } 1552 1553 /** 1554 * 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. 1555 * 1556 * @param pk the primary key of the document library file entry type 1557 * @param ddmStructurePKs the primary keys of the d d m structures to be associated with the document library file entry type 1558 * @throws SystemException if a system exception occurred 1559 */ 1560 public static void setDDMStructures(long pk, long[] ddmStructurePKs) 1561 throws com.liferay.portal.kernel.exception.SystemException { 1562 getPersistence().setDDMStructures(pk, ddmStructurePKs); 1563 } 1564 1565 /** 1566 * 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. 1567 * 1568 * @param pk the primary key of the document library file entry type 1569 * @param ddmStructures the d d m structures to be associated with the document library file entry type 1570 * @throws SystemException if a system exception occurred 1571 */ 1572 public static void setDDMStructures(long pk, 1573 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures) 1574 throws com.liferay.portal.kernel.exception.SystemException { 1575 getPersistence().setDDMStructures(pk, ddmStructures); 1576 } 1577 1578 public static DLFileEntryTypePersistence getPersistence() { 1579 if (_persistence == null) { 1580 _persistence = (DLFileEntryTypePersistence)PortalBeanLocatorUtil.locate(DLFileEntryTypePersistence.class.getName()); 1581 1582 ReferenceRegistry.registerReference(DLFileEntryTypeUtil.class, 1583 "_persistence"); 1584 } 1585 1586 return _persistence; 1587 } 1588 1589 /** 1590 * @deprecated As of 6.2.0 1591 */ 1592 public void setPersistence(DLFileEntryTypePersistence persistence) { 1593 } 1594 1595 private static DLFileEntryTypePersistence _persistence; 1596 }