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