001 /** 002 * Copyright (c) 2000-2011 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#remove(com.liferay.portal.model.BaseModel) 099 */ 100 public static DLFileEntryType remove(DLFileEntryType dlFileEntryType) 101 throws SystemException { 102 return getPersistence().remove(dlFileEntryType); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 107 */ 108 public static DLFileEntryType update(DLFileEntryType dlFileEntryType, 109 boolean merge) throws SystemException { 110 return getPersistence().update(dlFileEntryType, merge); 111 } 112 113 /** 114 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 115 */ 116 public static DLFileEntryType update(DLFileEntryType dlFileEntryType, 117 boolean merge, ServiceContext serviceContext) throws SystemException { 118 return getPersistence().update(dlFileEntryType, merge, serviceContext); 119 } 120 121 /** 122 * Caches the document library file entry type in the entity cache if it is enabled. 123 * 124 * @param dlFileEntryType the document library file entry type 125 */ 126 public static void cacheResult( 127 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) { 128 getPersistence().cacheResult(dlFileEntryType); 129 } 130 131 /** 132 * Caches the document library file entry types in the entity cache if it is enabled. 133 * 134 * @param dlFileEntryTypes the document library file entry types 135 */ 136 public static void cacheResult( 137 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) { 138 getPersistence().cacheResult(dlFileEntryTypes); 139 } 140 141 /** 142 * Creates a new document library file entry type with the primary key. Does not add the document library file entry type to the database. 143 * 144 * @param fileEntryTypeId the primary key for the new document library file entry type 145 * @return the new document library file entry type 146 */ 147 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType create( 148 long fileEntryTypeId) { 149 return getPersistence().create(fileEntryTypeId); 150 } 151 152 /** 153 * Removes the document library file entry type with the primary key from the database. Also notifies the appropriate model listeners. 154 * 155 * @param fileEntryTypeId the primary key of the document library file entry type 156 * @return the document library file entry type that was removed 157 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found 158 * @throws SystemException if a system exception occurred 159 */ 160 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType remove( 161 long fileEntryTypeId) 162 throws com.liferay.portal.kernel.exception.SystemException, 163 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 164 return getPersistence().remove(fileEntryTypeId); 165 } 166 167 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType updateImpl( 168 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType, 169 boolean merge) 170 throws com.liferay.portal.kernel.exception.SystemException { 171 return getPersistence().updateImpl(dlFileEntryType, merge); 172 } 173 174 /** 175 * 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. 176 * 177 * @param fileEntryTypeId the primary key of the document library file entry type 178 * @return the document library file entry type 179 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found 180 * @throws SystemException if a system exception occurred 181 */ 182 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByPrimaryKey( 183 long fileEntryTypeId) 184 throws com.liferay.portal.kernel.exception.SystemException, 185 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 186 return getPersistence().findByPrimaryKey(fileEntryTypeId); 187 } 188 189 /** 190 * Returns the document library file entry type with the primary key or returns <code>null</code> if it could not be found. 191 * 192 * @param fileEntryTypeId the primary key of the document library file entry type 193 * @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 194 * @throws SystemException if a system exception occurred 195 */ 196 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByPrimaryKey( 197 long fileEntryTypeId) 198 throws com.liferay.portal.kernel.exception.SystemException { 199 return getPersistence().fetchByPrimaryKey(fileEntryTypeId); 200 } 201 202 /** 203 * Returns all the document library file entry types where groupId = ?. 204 * 205 * @param groupId the group ID 206 * @return the matching document library file entry types 207 * @throws SystemException if a system exception occurred 208 */ 209 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId( 210 long groupId) 211 throws com.liferay.portal.kernel.exception.SystemException { 212 return getPersistence().findByGroupId(groupId); 213 } 214 215 /** 216 * Returns a range of all the document library file entry types where groupId = ?. 217 * 218 * <p> 219 * 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. 220 * </p> 221 * 222 * @param groupId the group ID 223 * @param start the lower bound of the range of document library file entry types 224 * @param end the upper bound of the range of document library file entry types (not inclusive) 225 * @return the range of matching document library file entry types 226 * @throws SystemException if a system exception occurred 227 */ 228 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId( 229 long groupId, int start, int end) 230 throws com.liferay.portal.kernel.exception.SystemException { 231 return getPersistence().findByGroupId(groupId, start, end); 232 } 233 234 /** 235 * Returns an ordered range of all the document library file entry types where groupId = ?. 236 * 237 * <p> 238 * 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. 239 * </p> 240 * 241 * @param groupId the group ID 242 * @param start the lower bound of the range of document library file entry types 243 * @param end the upper bound of the range of document library file entry types (not inclusive) 244 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 245 * @return the ordered range of matching document library file entry types 246 * @throws SystemException if a system exception occurred 247 */ 248 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId( 249 long groupId, int start, int end, 250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 251 throws com.liferay.portal.kernel.exception.SystemException { 252 return getPersistence() 253 .findByGroupId(groupId, start, end, orderByComparator); 254 } 255 256 /** 257 * Returns the first document library file entry type in the ordered set where groupId = ?. 258 * 259 * <p> 260 * 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. 261 * </p> 262 * 263 * @param groupId the group ID 264 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 265 * @return the first matching document library file entry type 266 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found 267 * @throws SystemException if a system exception occurred 268 */ 269 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByGroupId_First( 270 long groupId, 271 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 272 throws com.liferay.portal.kernel.exception.SystemException, 273 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 274 return getPersistence().findByGroupId_First(groupId, orderByComparator); 275 } 276 277 /** 278 * Returns the last document library file entry type in the ordered set where groupId = ?. 279 * 280 * <p> 281 * 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. 282 * </p> 283 * 284 * @param groupId the group ID 285 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 286 * @return the last matching document library file entry type 287 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found 288 * @throws SystemException if a system exception occurred 289 */ 290 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByGroupId_Last( 291 long groupId, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.kernel.exception.SystemException, 294 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 295 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 296 } 297 298 /** 299 * Returns the document library file entry types before and after the current document library file entry type in the ordered set where groupId = ?. 300 * 301 * <p> 302 * 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. 303 * </p> 304 * 305 * @param fileEntryTypeId the primary key of the current document library file entry type 306 * @param groupId the group ID 307 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 308 * @return the previous, current, and next document library file entry type 309 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found 310 * @throws SystemException if a system exception occurred 311 */ 312 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType[] findByGroupId_PrevAndNext( 313 long fileEntryTypeId, long groupId, 314 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 315 throws com.liferay.portal.kernel.exception.SystemException, 316 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 317 return getPersistence() 318 .findByGroupId_PrevAndNext(fileEntryTypeId, groupId, 319 orderByComparator); 320 } 321 322 /** 323 * Returns all the document library file entry types where groupId = any ?. 324 * 325 * <p> 326 * 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. 327 * </p> 328 * 329 * @param groupIds the group IDs 330 * @return the matching document library file entry types 331 * @throws SystemException if a system exception occurred 332 */ 333 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId( 334 long[] groupIds) 335 throws com.liferay.portal.kernel.exception.SystemException { 336 return getPersistence().findByGroupId(groupIds); 337 } 338 339 /** 340 * Returns a range of all the document library file entry types where groupId = any ?. 341 * 342 * <p> 343 * 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. 344 * </p> 345 * 346 * @param groupIds the group IDs 347 * @param start the lower bound of the range of document library file entry types 348 * @param end the upper bound of the range of document library file entry types (not inclusive) 349 * @return the range of matching document library file entry types 350 * @throws SystemException if a system exception occurred 351 */ 352 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId( 353 long[] groupIds, int start, int end) 354 throws com.liferay.portal.kernel.exception.SystemException { 355 return getPersistence().findByGroupId(groupIds, start, end); 356 } 357 358 /** 359 * Returns an ordered range of all the document library file entry types where groupId = any ?. 360 * 361 * <p> 362 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 363 * </p> 364 * 365 * @param groupIds the group IDs 366 * @param start the lower bound of the range of document library file entry types 367 * @param end the upper bound of the range of document library file entry types (not inclusive) 368 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 369 * @return the ordered range of matching document library file entry types 370 * @throws SystemException if a system exception occurred 371 */ 372 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId( 373 long[] groupIds, int start, int end, 374 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 375 throws com.liferay.portal.kernel.exception.SystemException { 376 return getPersistence() 377 .findByGroupId(groupIds, start, end, orderByComparator); 378 } 379 380 /** 381 * Returns all the document library file entry types that the user has permission to view where groupId = ?. 382 * 383 * @param groupId the group ID 384 * @return the matching document library file entry types that the user has permission to view 385 * @throws SystemException if a system exception occurred 386 */ 387 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId( 388 long groupId) 389 throws com.liferay.portal.kernel.exception.SystemException { 390 return getPersistence().filterFindByGroupId(groupId); 391 } 392 393 /** 394 * Returns a range of all the document library file entry types that the user has permission to view where groupId = ?. 395 * 396 * <p> 397 * 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. 398 * </p> 399 * 400 * @param groupId the group ID 401 * @param start the lower bound of the range of document library file entry types 402 * @param end the upper bound of the range of document library file entry types (not inclusive) 403 * @return the range of matching document library file entry types that the user has permission to view 404 * @throws SystemException if a system exception occurred 405 */ 406 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId( 407 long groupId, int start, int end) 408 throws com.liferay.portal.kernel.exception.SystemException { 409 return getPersistence().filterFindByGroupId(groupId, start, end); 410 } 411 412 /** 413 * Returns an ordered range of all the document library file entry types that the user has permissions to view where groupId = ?. 414 * 415 * <p> 416 * 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. 417 * </p> 418 * 419 * @param groupId the group ID 420 * @param start the lower bound of the range of document library file entry types 421 * @param end the upper bound of the range of document library file entry types (not inclusive) 422 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 423 * @return the ordered range of matching document library file entry types that the user has permission to view 424 * @throws SystemException if a system exception occurred 425 */ 426 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId( 427 long groupId, int start, int end, 428 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 429 throws com.liferay.portal.kernel.exception.SystemException { 430 return getPersistence() 431 .filterFindByGroupId(groupId, start, end, orderByComparator); 432 } 433 434 /** 435 * 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 = ?. 436 * 437 * @param fileEntryTypeId the primary key of the current document library file entry type 438 * @param groupId the group ID 439 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 440 * @return the previous, current, and next document library file entry type 441 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found 442 * @throws SystemException if a system exception occurred 443 */ 444 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType[] filterFindByGroupId_PrevAndNext( 445 long fileEntryTypeId, long groupId, 446 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 447 throws com.liferay.portal.kernel.exception.SystemException, 448 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 449 return getPersistence() 450 .filterFindByGroupId_PrevAndNext(fileEntryTypeId, groupId, 451 orderByComparator); 452 } 453 454 /** 455 * Returns all the document library file entry types that the user has permission to view where groupId = any ?. 456 * 457 * @param groupIds the group IDs 458 * @return the matching document library file entry types that the user has permission to view 459 * @throws SystemException if a system exception occurred 460 */ 461 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId( 462 long[] groupIds) 463 throws com.liferay.portal.kernel.exception.SystemException { 464 return getPersistence().filterFindByGroupId(groupIds); 465 } 466 467 /** 468 * Returns a range of all the document library file entry types that the user has permission to view where groupId = any ?. 469 * 470 * <p> 471 * 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. 472 * </p> 473 * 474 * @param groupIds the group IDs 475 * @param start the lower bound of the range of document library file entry types 476 * @param end the upper bound of the range of document library file entry types (not inclusive) 477 * @return the range of matching document library file entry types that the user has permission to view 478 * @throws SystemException if a system exception occurred 479 */ 480 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId( 481 long[] groupIds, int start, int end) 482 throws com.liferay.portal.kernel.exception.SystemException { 483 return getPersistence().filterFindByGroupId(groupIds, start, end); 484 } 485 486 /** 487 * Returns an ordered range of all the document library file entry types that the user has permission to view where groupId = any ?. 488 * 489 * <p> 490 * 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. 491 * </p> 492 * 493 * @param groupIds the group IDs 494 * @param start the lower bound of the range of document library file entry types 495 * @param end the upper bound of the range of document library file entry types (not inclusive) 496 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 497 * @return the ordered range of matching document library file entry types that the user has permission to view 498 * @throws SystemException if a system exception occurred 499 */ 500 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId( 501 long[] groupIds, int start, int end, 502 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 503 throws com.liferay.portal.kernel.exception.SystemException { 504 return getPersistence() 505 .filterFindByGroupId(groupIds, start, end, orderByComparator); 506 } 507 508 /** 509 * 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. 510 * 511 * @param groupId the group ID 512 * @param name the name 513 * @return the matching document library file entry type 514 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found 515 * @throws SystemException if a system exception occurred 516 */ 517 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByG_N( 518 long groupId, java.lang.String name) 519 throws com.liferay.portal.kernel.exception.SystemException, 520 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 521 return getPersistence().findByG_N(groupId, name); 522 } 523 524 /** 525 * 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. 526 * 527 * @param groupId the group ID 528 * @param name the name 529 * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found 530 * @throws SystemException if a system exception occurred 531 */ 532 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByG_N( 533 long groupId, java.lang.String name) 534 throws com.liferay.portal.kernel.exception.SystemException { 535 return getPersistence().fetchByG_N(groupId, name); 536 } 537 538 /** 539 * 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. 540 * 541 * @param groupId the group ID 542 * @param name the name 543 * @param retrieveFromCache whether to use the finder cache 544 * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found 545 * @throws SystemException if a system exception occurred 546 */ 547 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByG_N( 548 long groupId, java.lang.String name, boolean retrieveFromCache) 549 throws com.liferay.portal.kernel.exception.SystemException { 550 return getPersistence().fetchByG_N(groupId, name, retrieveFromCache); 551 } 552 553 /** 554 * Returns all the document library file entry types. 555 * 556 * @return the document library file entry types 557 * @throws SystemException if a system exception occurred 558 */ 559 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll() 560 throws com.liferay.portal.kernel.exception.SystemException { 561 return getPersistence().findAll(); 562 } 563 564 /** 565 * Returns a range of all the document library file entry types. 566 * 567 * <p> 568 * 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. 569 * </p> 570 * 571 * @param start the lower bound of the range of document library file entry types 572 * @param end the upper bound of the range of document library file entry types (not inclusive) 573 * @return the range of document library file entry types 574 * @throws SystemException if a system exception occurred 575 */ 576 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll( 577 int start, int end) 578 throws com.liferay.portal.kernel.exception.SystemException { 579 return getPersistence().findAll(start, end); 580 } 581 582 /** 583 * Returns an ordered range of all the document library file entry types. 584 * 585 * <p> 586 * 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. 587 * </p> 588 * 589 * @param start the lower bound of the range of document library file entry types 590 * @param end the upper bound of the range of document library file entry types (not inclusive) 591 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 592 * @return the ordered range of document library file entry types 593 * @throws SystemException if a system exception occurred 594 */ 595 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll( 596 int start, int end, 597 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 598 throws com.liferay.portal.kernel.exception.SystemException { 599 return getPersistence().findAll(start, end, orderByComparator); 600 } 601 602 /** 603 * Removes all the document library file entry types where groupId = ? from the database. 604 * 605 * @param groupId the group ID 606 * @throws SystemException if a system exception occurred 607 */ 608 public static void removeByGroupId(long groupId) 609 throws com.liferay.portal.kernel.exception.SystemException { 610 getPersistence().removeByGroupId(groupId); 611 } 612 613 /** 614 * Removes the document library file entry type where groupId = ? and name = ? from the database. 615 * 616 * @param groupId the group ID 617 * @param name the name 618 * @throws SystemException if a system exception occurred 619 */ 620 public static void removeByG_N(long groupId, java.lang.String name) 621 throws com.liferay.portal.kernel.exception.SystemException, 622 com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException { 623 getPersistence().removeByG_N(groupId, name); 624 } 625 626 /** 627 * Removes all the document library file entry types from the database. 628 * 629 * @throws SystemException if a system exception occurred 630 */ 631 public static void removeAll() 632 throws com.liferay.portal.kernel.exception.SystemException { 633 getPersistence().removeAll(); 634 } 635 636 /** 637 * Returns the number of document library file entry types where groupId = ?. 638 * 639 * @param groupId the group ID 640 * @return the number of matching document library file entry types 641 * @throws SystemException if a system exception occurred 642 */ 643 public static int countByGroupId(long groupId) 644 throws com.liferay.portal.kernel.exception.SystemException { 645 return getPersistence().countByGroupId(groupId); 646 } 647 648 /** 649 * Returns the number of document library file entry types where groupId = any ?. 650 * 651 * @param groupIds the group IDs 652 * @return the number of matching document library file entry types 653 * @throws SystemException if a system exception occurred 654 */ 655 public static int countByGroupId(long[] groupIds) 656 throws com.liferay.portal.kernel.exception.SystemException { 657 return getPersistence().countByGroupId(groupIds); 658 } 659 660 /** 661 * Returns the number of document library file entry types that the user has permission to view where groupId = ?. 662 * 663 * @param groupId the group ID 664 * @return the number of matching document library file entry types that the user has permission to view 665 * @throws SystemException if a system exception occurred 666 */ 667 public static int filterCountByGroupId(long groupId) 668 throws com.liferay.portal.kernel.exception.SystemException { 669 return getPersistence().filterCountByGroupId(groupId); 670 } 671 672 /** 673 * Returns the number of document library file entry types that the user has permission to view where groupId = any ?. 674 * 675 * @param groupIds the group IDs 676 * @return the number of matching document library file entry types that the user has permission to view 677 * @throws SystemException if a system exception occurred 678 */ 679 public static int filterCountByGroupId(long[] groupIds) 680 throws com.liferay.portal.kernel.exception.SystemException { 681 return getPersistence().filterCountByGroupId(groupIds); 682 } 683 684 /** 685 * Returns the number of document library file entry types where groupId = ? and name = ?. 686 * 687 * @param groupId the group ID 688 * @param name the name 689 * @return the number of matching document library file entry types 690 * @throws SystemException if a system exception occurred 691 */ 692 public static int countByG_N(long groupId, java.lang.String name) 693 throws com.liferay.portal.kernel.exception.SystemException { 694 return getPersistence().countByG_N(groupId, name); 695 } 696 697 /** 698 * Returns the number of document library file entry types. 699 * 700 * @return the number of document library file entry types 701 * @throws SystemException if a system exception occurred 702 */ 703 public static int countAll() 704 throws com.liferay.portal.kernel.exception.SystemException { 705 return getPersistence().countAll(); 706 } 707 708 /** 709 * Returns all the document library folders associated with the document library file entry type. 710 * 711 * @param pk the primary key of the document library file entry type 712 * @return the document library folders associated with the document library file entry type 713 * @throws SystemException if a system exception occurred 714 */ 715 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders( 716 long pk) throws com.liferay.portal.kernel.exception.SystemException { 717 return getPersistence().getDLFolders(pk); 718 } 719 720 /** 721 * Returns a range of all the document library folders associated with the document library file entry type. 722 * 723 * <p> 724 * 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. 725 * </p> 726 * 727 * @param pk the primary key of the document library file entry type 728 * @param start the lower bound of the range of document library file entry types 729 * @param end the upper bound of the range of document library file entry types (not inclusive) 730 * @return the range of document library folders associated with the document library file entry type 731 * @throws SystemException if a system exception occurred 732 */ 733 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders( 734 long pk, int start, int end) 735 throws com.liferay.portal.kernel.exception.SystemException { 736 return getPersistence().getDLFolders(pk, start, end); 737 } 738 739 /** 740 * Returns an ordered range of all the document library folders associated with the document library file entry type. 741 * 742 * <p> 743 * 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. 744 * </p> 745 * 746 * @param pk the primary key of the document library file entry type 747 * @param start the lower bound of the range of document library file entry types 748 * @param end the upper bound of the range of document library file entry types (not inclusive) 749 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 750 * @return the ordered range of document library folders associated with the document library file entry type 751 * @throws SystemException if a system exception occurred 752 */ 753 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders( 754 long pk, int start, int end, 755 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 756 throws com.liferay.portal.kernel.exception.SystemException { 757 return getPersistence().getDLFolders(pk, start, end, orderByComparator); 758 } 759 760 /** 761 * Returns the number of document library folders associated with the document library file entry type. 762 * 763 * @param pk the primary key of the document library file entry type 764 * @return the number of document library folders associated with the document library file entry type 765 * @throws SystemException if a system exception occurred 766 */ 767 public static int getDLFoldersSize(long pk) 768 throws com.liferay.portal.kernel.exception.SystemException { 769 return getPersistence().getDLFoldersSize(pk); 770 } 771 772 /** 773 * Returns <code>true</code> if the document library folder is associated with the document library file entry type. 774 * 775 * @param pk the primary key of the document library file entry type 776 * @param dlFolderPK the primary key of the document library folder 777 * @return <code>true</code> if the document library folder is associated with the document library file entry type; <code>false</code> otherwise 778 * @throws SystemException if a system exception occurred 779 */ 780 public static boolean containsDLFolder(long pk, long dlFolderPK) 781 throws com.liferay.portal.kernel.exception.SystemException { 782 return getPersistence().containsDLFolder(pk, dlFolderPK); 783 } 784 785 /** 786 * Returns <code>true</code> if the document library file entry type has any document library folders associated with it. 787 * 788 * @param pk the primary key of the document library file entry type to check for associations with document library folders 789 * @return <code>true</code> if the document library file entry type has any document library folders associated with it; <code>false</code> otherwise 790 * @throws SystemException if a system exception occurred 791 */ 792 public static boolean containsDLFolders(long pk) 793 throws com.liferay.portal.kernel.exception.SystemException { 794 return getPersistence().containsDLFolders(pk); 795 } 796 797 /** 798 * 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. 799 * 800 * @param pk the primary key of the document library file entry type 801 * @param dlFolderPK the primary key of the document library folder 802 * @throws SystemException if a system exception occurred 803 */ 804 public static void addDLFolder(long pk, long dlFolderPK) 805 throws com.liferay.portal.kernel.exception.SystemException { 806 getPersistence().addDLFolder(pk, dlFolderPK); 807 } 808 809 /** 810 * 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. 811 * 812 * @param pk the primary key of the document library file entry type 813 * @param dlFolder the document library folder 814 * @throws SystemException if a system exception occurred 815 */ 816 public static void addDLFolder(long pk, 817 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) 818 throws com.liferay.portal.kernel.exception.SystemException { 819 getPersistence().addDLFolder(pk, dlFolder); 820 } 821 822 /** 823 * 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. 824 * 825 * @param pk the primary key of the document library file entry type 826 * @param dlFolderPKs the primary keys of the document library folders 827 * @throws SystemException if a system exception occurred 828 */ 829 public static void addDLFolders(long pk, long[] dlFolderPKs) 830 throws com.liferay.portal.kernel.exception.SystemException { 831 getPersistence().addDLFolders(pk, dlFolderPKs); 832 } 833 834 /** 835 * 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. 836 * 837 * @param pk the primary key of the document library file entry type 838 * @param dlFolders the document library folders 839 * @throws SystemException if a system exception occurred 840 */ 841 public static void addDLFolders(long pk, 842 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders) 843 throws com.liferay.portal.kernel.exception.SystemException { 844 getPersistence().addDLFolders(pk, dlFolders); 845 } 846 847 /** 848 * 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. 849 * 850 * @param pk the primary key of the document library file entry type to clear the associated document library folders from 851 * @throws SystemException if a system exception occurred 852 */ 853 public static void clearDLFolders(long pk) 854 throws com.liferay.portal.kernel.exception.SystemException { 855 getPersistence().clearDLFolders(pk); 856 } 857 858 /** 859 * 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. 860 * 861 * @param pk the primary key of the document library file entry type 862 * @param dlFolderPK the primary key of the document library folder 863 * @throws SystemException if a system exception occurred 864 */ 865 public static void removeDLFolder(long pk, long dlFolderPK) 866 throws com.liferay.portal.kernel.exception.SystemException { 867 getPersistence().removeDLFolder(pk, dlFolderPK); 868 } 869 870 /** 871 * 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. 872 * 873 * @param pk the primary key of the document library file entry type 874 * @param dlFolder the document library folder 875 * @throws SystemException if a system exception occurred 876 */ 877 public static void removeDLFolder(long pk, 878 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) 879 throws com.liferay.portal.kernel.exception.SystemException { 880 getPersistence().removeDLFolder(pk, dlFolder); 881 } 882 883 /** 884 * 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. 885 * 886 * @param pk the primary key of the document library file entry type 887 * @param dlFolderPKs the primary keys of the document library folders 888 * @throws SystemException if a system exception occurred 889 */ 890 public static void removeDLFolders(long pk, long[] dlFolderPKs) 891 throws com.liferay.portal.kernel.exception.SystemException { 892 getPersistence().removeDLFolders(pk, dlFolderPKs); 893 } 894 895 /** 896 * 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. 897 * 898 * @param pk the primary key of the document library file entry type 899 * @param dlFolders the document library folders 900 * @throws SystemException if a system exception occurred 901 */ 902 public static void removeDLFolders(long pk, 903 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders) 904 throws com.liferay.portal.kernel.exception.SystemException { 905 getPersistence().removeDLFolders(pk, dlFolders); 906 } 907 908 /** 909 * 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. 910 * 911 * @param pk the primary key of the document library file entry type 912 * @param dlFolderPKs the primary keys of the document library folders to be associated with the document library file entry type 913 * @throws SystemException if a system exception occurred 914 */ 915 public static void setDLFolders(long pk, long[] dlFolderPKs) 916 throws com.liferay.portal.kernel.exception.SystemException { 917 getPersistence().setDLFolders(pk, dlFolderPKs); 918 } 919 920 /** 921 * 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. 922 * 923 * @param pk the primary key of the document library file entry type 924 * @param dlFolders the document library folders to be associated with the document library file entry type 925 * @throws SystemException if a system exception occurred 926 */ 927 public static void setDLFolders(long pk, 928 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders) 929 throws com.liferay.portal.kernel.exception.SystemException { 930 getPersistence().setDLFolders(pk, dlFolders); 931 } 932 933 /** 934 * Returns all the d d m structures associated with the document library file entry type. 935 * 936 * @param pk the primary key of the document library file entry type 937 * @return the d d m structures associated with the document library file entry type 938 * @throws SystemException if a system exception occurred 939 */ 940 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures( 941 long pk) throws com.liferay.portal.kernel.exception.SystemException { 942 return getPersistence().getDDMStructures(pk); 943 } 944 945 /** 946 * Returns a range of all the d d m structures associated with the document library file entry type. 947 * 948 * <p> 949 * 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. 950 * </p> 951 * 952 * @param pk the primary key of the document library file entry type 953 * @param start the lower bound of the range of document library file entry types 954 * @param end the upper bound of the range of document library file entry types (not inclusive) 955 * @return the range of d d m structures associated with the document library file entry type 956 * @throws SystemException if a system exception occurred 957 */ 958 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures( 959 long pk, int start, int end) 960 throws com.liferay.portal.kernel.exception.SystemException { 961 return getPersistence().getDDMStructures(pk, start, end); 962 } 963 964 /** 965 * Returns an ordered range of all the d d m structures associated with the document library file entry type. 966 * 967 * <p> 968 * 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. 969 * </p> 970 * 971 * @param pk the primary key of the document library file entry type 972 * @param start the lower bound of the range of document library file entry types 973 * @param end the upper bound of the range of document library file entry types (not inclusive) 974 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 975 * @return the ordered range of d d m structures associated with the document library file entry type 976 * @throws SystemException if a system exception occurred 977 */ 978 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures( 979 long pk, int start, int end, 980 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 981 throws com.liferay.portal.kernel.exception.SystemException { 982 return getPersistence() 983 .getDDMStructures(pk, start, end, orderByComparator); 984 } 985 986 /** 987 * Returns the number of d d m structures associated with the document library file entry type. 988 * 989 * @param pk the primary key of the document library file entry type 990 * @return the number of d d m structures associated with the document library file entry type 991 * @throws SystemException if a system exception occurred 992 */ 993 public static int getDDMStructuresSize(long pk) 994 throws com.liferay.portal.kernel.exception.SystemException { 995 return getPersistence().getDDMStructuresSize(pk); 996 } 997 998 /** 999 * Returns <code>true</code> if the d d m structure is associated with the document library file entry type. 1000 * 1001 * @param pk the primary key of the document library file entry type 1002 * @param ddmStructurePK the primary key of the d d m structure 1003 * @return <code>true</code> if the d d m structure is associated with the document library file entry type; <code>false</code> otherwise 1004 * @throws SystemException if a system exception occurred 1005 */ 1006 public static boolean containsDDMStructure(long pk, long ddmStructurePK) 1007 throws com.liferay.portal.kernel.exception.SystemException { 1008 return getPersistence().containsDDMStructure(pk, ddmStructurePK); 1009 } 1010 1011 /** 1012 * Returns <code>true</code> if the document library file entry type has any d d m structures associated with it. 1013 * 1014 * @param pk the primary key of the document library file entry type to check for associations with d d m structures 1015 * @return <code>true</code> if the document library file entry type has any d d m structures associated with it; <code>false</code> otherwise 1016 * @throws SystemException if a system exception occurred 1017 */ 1018 public static boolean containsDDMStructures(long pk) 1019 throws com.liferay.portal.kernel.exception.SystemException { 1020 return getPersistence().containsDDMStructures(pk); 1021 } 1022 1023 /** 1024 * 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. 1025 * 1026 * @param pk the primary key of the document library file entry type 1027 * @param ddmStructurePK the primary key of the d d m structure 1028 * @throws SystemException if a system exception occurred 1029 */ 1030 public static void addDDMStructure(long pk, long ddmStructurePK) 1031 throws com.liferay.portal.kernel.exception.SystemException { 1032 getPersistence().addDDMStructure(pk, ddmStructurePK); 1033 } 1034 1035 /** 1036 * 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. 1037 * 1038 * @param pk the primary key of the document library file entry type 1039 * @param ddmStructure the d d m structure 1040 * @throws SystemException if a system exception occurred 1041 */ 1042 public static void addDDMStructure(long pk, 1043 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure) 1044 throws com.liferay.portal.kernel.exception.SystemException { 1045 getPersistence().addDDMStructure(pk, ddmStructure); 1046 } 1047 1048 /** 1049 * 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. 1050 * 1051 * @param pk the primary key of the document library file entry type 1052 * @param ddmStructurePKs the primary keys of the d d m structures 1053 * @throws SystemException if a system exception occurred 1054 */ 1055 public static void addDDMStructures(long pk, long[] ddmStructurePKs) 1056 throws com.liferay.portal.kernel.exception.SystemException { 1057 getPersistence().addDDMStructures(pk, ddmStructurePKs); 1058 } 1059 1060 /** 1061 * 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. 1062 * 1063 * @param pk the primary key of the document library file entry type 1064 * @param ddmStructures the d d m structures 1065 * @throws SystemException if a system exception occurred 1066 */ 1067 public static void addDDMStructures(long pk, 1068 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures) 1069 throws com.liferay.portal.kernel.exception.SystemException { 1070 getPersistence().addDDMStructures(pk, ddmStructures); 1071 } 1072 1073 /** 1074 * 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. 1075 * 1076 * @param pk the primary key of the document library file entry type to clear the associated d d m structures from 1077 * @throws SystemException if a system exception occurred 1078 */ 1079 public static void clearDDMStructures(long pk) 1080 throws com.liferay.portal.kernel.exception.SystemException { 1081 getPersistence().clearDDMStructures(pk); 1082 } 1083 1084 /** 1085 * 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. 1086 * 1087 * @param pk the primary key of the document library file entry type 1088 * @param ddmStructurePK the primary key of the d d m structure 1089 * @throws SystemException if a system exception occurred 1090 */ 1091 public static void removeDDMStructure(long pk, long ddmStructurePK) 1092 throws com.liferay.portal.kernel.exception.SystemException { 1093 getPersistence().removeDDMStructure(pk, ddmStructurePK); 1094 } 1095 1096 /** 1097 * 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. 1098 * 1099 * @param pk the primary key of the document library file entry type 1100 * @param ddmStructure the d d m structure 1101 * @throws SystemException if a system exception occurred 1102 */ 1103 public static void removeDDMStructure(long pk, 1104 com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure) 1105 throws com.liferay.portal.kernel.exception.SystemException { 1106 getPersistence().removeDDMStructure(pk, ddmStructure); 1107 } 1108 1109 /** 1110 * 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. 1111 * 1112 * @param pk the primary key of the document library file entry type 1113 * @param ddmStructurePKs the primary keys of the d d m structures 1114 * @throws SystemException if a system exception occurred 1115 */ 1116 public static void removeDDMStructures(long pk, long[] ddmStructurePKs) 1117 throws com.liferay.portal.kernel.exception.SystemException { 1118 getPersistence().removeDDMStructures(pk, ddmStructurePKs); 1119 } 1120 1121 /** 1122 * 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. 1123 * 1124 * @param pk the primary key of the document library file entry type 1125 * @param ddmStructures the d d m structures 1126 * @throws SystemException if a system exception occurred 1127 */ 1128 public static void removeDDMStructures(long pk, 1129 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures) 1130 throws com.liferay.portal.kernel.exception.SystemException { 1131 getPersistence().removeDDMStructures(pk, ddmStructures); 1132 } 1133 1134 /** 1135 * 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. 1136 * 1137 * @param pk the primary key of the document library file entry type 1138 * @param ddmStructurePKs the primary keys of the d d m structures to be associated with the document library file entry type 1139 * @throws SystemException if a system exception occurred 1140 */ 1141 public static void setDDMStructures(long pk, long[] ddmStructurePKs) 1142 throws com.liferay.portal.kernel.exception.SystemException { 1143 getPersistence().setDDMStructures(pk, ddmStructurePKs); 1144 } 1145 1146 /** 1147 * 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. 1148 * 1149 * @param pk the primary key of the document library file entry type 1150 * @param ddmStructures the d d m structures to be associated with the document library file entry type 1151 * @throws SystemException if a system exception occurred 1152 */ 1153 public static void setDDMStructures(long pk, 1154 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures) 1155 throws com.liferay.portal.kernel.exception.SystemException { 1156 getPersistence().setDDMStructures(pk, ddmStructures); 1157 } 1158 1159 public static DLFileEntryTypePersistence getPersistence() { 1160 if (_persistence == null) { 1161 _persistence = (DLFileEntryTypePersistence)PortalBeanLocatorUtil.locate(DLFileEntryTypePersistence.class.getName()); 1162 1163 ReferenceRegistry.registerReference(DLFileEntryTypeUtil.class, 1164 "_persistence"); 1165 } 1166 1167 return _persistence; 1168 } 1169 1170 public void setPersistence(DLFileEntryTypePersistence persistence) { 1171 _persistence = persistence; 1172 1173 ReferenceRegistry.registerReference(DLFileEntryTypeUtil.class, 1174 "_persistence"); 1175 } 1176 1177 private static DLFileEntryTypePersistence _persistence; 1178 }