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