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.DLContent; 022 023 /** 024 * The persistence interface for the document library content 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.DLContentPersistenceImpl 032 * @see DLContentUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface DLContentPersistence extends BasePersistence<DLContent> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link DLContentUtil} to access the document library content persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the document library contents where companyId = ? and repositoryId = ?. 045 * 046 * @param companyId the company ID 047 * @param repositoryId the repository ID 048 * @return the matching document library contents 049 */ 050 public java.util.List<DLContent> findByC_R(long companyId, long repositoryId); 051 052 /** 053 * Returns a range of all the document library contents where companyId = ? and repositoryId = ?. 054 * 055 * <p> 056 * 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 DLContentModelImpl}. 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. 057 * </p> 058 * 059 * @param companyId the company ID 060 * @param repositoryId the repository ID 061 * @param start the lower bound of the range of document library contents 062 * @param end the upper bound of the range of document library contents (not inclusive) 063 * @return the range of matching document library contents 064 */ 065 public java.util.List<DLContent> findByC_R(long companyId, 066 long repositoryId, int start, int end); 067 068 /** 069 * Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?. 070 * 071 * <p> 072 * 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 DLContentModelImpl}. 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. 073 * </p> 074 * 075 * @param companyId the company ID 076 * @param repositoryId the repository ID 077 * @param start the lower bound of the range of document library contents 078 * @param end the upper bound of the range of document library contents (not inclusive) 079 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 080 * @return the ordered range of matching document library contents 081 */ 082 public java.util.List<DLContent> findByC_R(long companyId, 083 long repositoryId, int start, int end, 084 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator); 085 086 /** 087 * Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?. 088 * 089 * <p> 090 * 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 DLContentModelImpl}. 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. 091 * </p> 092 * 093 * @param companyId the company ID 094 * @param repositoryId the repository ID 095 * @param start the lower bound of the range of document library contents 096 * @param end the upper bound of the range of document library contents (not inclusive) 097 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 098 * @param retrieveFromCache whether to retrieve from the finder cache 099 * @return the ordered range of matching document library contents 100 */ 101 public java.util.List<DLContent> findByC_R(long companyId, 102 long repositoryId, int start, int end, 103 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, 104 boolean retrieveFromCache); 105 106 /** 107 * Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?. 108 * 109 * @param companyId the company ID 110 * @param repositoryId the repository ID 111 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 112 * @return the first matching document library content 113 * @throws NoSuchContentException if a matching document library content could not be found 114 */ 115 public DLContent findByC_R_First(long companyId, long repositoryId, 116 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) 117 throws com.liferay.portlet.documentlibrary.exception.NoSuchContentException; 118 119 /** 120 * Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?. 121 * 122 * @param companyId the company ID 123 * @param repositoryId the repository ID 124 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 125 * @return the first matching document library content, or <code>null</code> if a matching document library content could not be found 126 */ 127 public DLContent fetchByC_R_First(long companyId, long repositoryId, 128 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator); 129 130 /** 131 * Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?. 132 * 133 * @param companyId the company ID 134 * @param repositoryId the repository ID 135 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 136 * @return the last matching document library content 137 * @throws NoSuchContentException if a matching document library content could not be found 138 */ 139 public DLContent findByC_R_Last(long companyId, long repositoryId, 140 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) 141 throws com.liferay.portlet.documentlibrary.exception.NoSuchContentException; 142 143 /** 144 * Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?. 145 * 146 * @param companyId the company ID 147 * @param repositoryId the repository ID 148 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 149 * @return the last matching document library content, or <code>null</code> if a matching document library content could not be found 150 */ 151 public DLContent fetchByC_R_Last(long companyId, long repositoryId, 152 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator); 153 154 /** 155 * Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ?. 156 * 157 * @param contentId the primary key of the current document library content 158 * @param companyId the company ID 159 * @param repositoryId the repository ID 160 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 161 * @return the previous, current, and next document library content 162 * @throws NoSuchContentException if a document library content with the primary key could not be found 163 */ 164 public DLContent[] findByC_R_PrevAndNext(long contentId, long companyId, 165 long repositoryId, 166 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) 167 throws com.liferay.portlet.documentlibrary.exception.NoSuchContentException; 168 169 /** 170 * Removes all the document library contents where companyId = ? and repositoryId = ? from the database. 171 * 172 * @param companyId the company ID 173 * @param repositoryId the repository ID 174 */ 175 public void removeByC_R(long companyId, long repositoryId); 176 177 /** 178 * Returns the number of document library contents where companyId = ? and repositoryId = ?. 179 * 180 * @param companyId the company ID 181 * @param repositoryId the repository ID 182 * @return the number of matching document library contents 183 */ 184 public int countByC_R(long companyId, long repositoryId); 185 186 /** 187 * Returns all the document library contents where companyId = ? and repositoryId = ? and path = ?. 188 * 189 * @param companyId the company ID 190 * @param repositoryId the repository ID 191 * @param path the path 192 * @return the matching document library contents 193 */ 194 public java.util.List<DLContent> findByC_R_P(long companyId, 195 long repositoryId, java.lang.String path); 196 197 /** 198 * Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path = ?. 199 * 200 * <p> 201 * 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 DLContentModelImpl}. 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. 202 * </p> 203 * 204 * @param companyId the company ID 205 * @param repositoryId the repository ID 206 * @param path the path 207 * @param start the lower bound of the range of document library contents 208 * @param end the upper bound of the range of document library contents (not inclusive) 209 * @return the range of matching document library contents 210 */ 211 public java.util.List<DLContent> findByC_R_P(long companyId, 212 long repositoryId, java.lang.String path, int start, int end); 213 214 /** 215 * Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?. 216 * 217 * <p> 218 * 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 DLContentModelImpl}. 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. 219 * </p> 220 * 221 * @param companyId the company ID 222 * @param repositoryId the repository ID 223 * @param path the path 224 * @param start the lower bound of the range of document library contents 225 * @param end the upper bound of the range of document library contents (not inclusive) 226 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 227 * @return the ordered range of matching document library contents 228 */ 229 public java.util.List<DLContent> findByC_R_P(long companyId, 230 long repositoryId, java.lang.String path, int start, int end, 231 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator); 232 233 /** 234 * Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?. 235 * 236 * <p> 237 * 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 DLContentModelImpl}. 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. 238 * </p> 239 * 240 * @param companyId the company ID 241 * @param repositoryId the repository ID 242 * @param path the path 243 * @param start the lower bound of the range of document library contents 244 * @param end the upper bound of the range of document library contents (not inclusive) 245 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 246 * @param retrieveFromCache whether to retrieve from the finder cache 247 * @return the ordered range of matching document library contents 248 */ 249 public java.util.List<DLContent> findByC_R_P(long companyId, 250 long repositoryId, java.lang.String path, int start, int end, 251 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, 252 boolean retrieveFromCache); 253 254 /** 255 * Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. 256 * 257 * @param companyId the company ID 258 * @param repositoryId the repository ID 259 * @param path the path 260 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 261 * @return the first matching document library content 262 * @throws NoSuchContentException if a matching document library content could not be found 263 */ 264 public DLContent findByC_R_P_First(long companyId, long repositoryId, 265 java.lang.String path, 266 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) 267 throws com.liferay.portlet.documentlibrary.exception.NoSuchContentException; 268 269 /** 270 * Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. 271 * 272 * @param companyId the company ID 273 * @param repositoryId the repository ID 274 * @param path the path 275 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 276 * @return the first matching document library content, or <code>null</code> if a matching document library content could not be found 277 */ 278 public DLContent fetchByC_R_P_First(long companyId, long repositoryId, 279 java.lang.String path, 280 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator); 281 282 /** 283 * Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. 284 * 285 * @param companyId the company ID 286 * @param repositoryId the repository ID 287 * @param path the path 288 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 289 * @return the last matching document library content 290 * @throws NoSuchContentException if a matching document library content could not be found 291 */ 292 public DLContent findByC_R_P_Last(long companyId, long repositoryId, 293 java.lang.String path, 294 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) 295 throws com.liferay.portlet.documentlibrary.exception.NoSuchContentException; 296 297 /** 298 * Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. 299 * 300 * @param companyId the company ID 301 * @param repositoryId the repository ID 302 * @param path the path 303 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 304 * @return the last matching document library content, or <code>null</code> if a matching document library content could not be found 305 */ 306 public DLContent fetchByC_R_P_Last(long companyId, long repositoryId, 307 java.lang.String path, 308 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator); 309 310 /** 311 * Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. 312 * 313 * @param contentId the primary key of the current document library content 314 * @param companyId the company ID 315 * @param repositoryId the repository ID 316 * @param path the path 317 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 318 * @return the previous, current, and next document library content 319 * @throws NoSuchContentException if a document library content with the primary key could not be found 320 */ 321 public DLContent[] findByC_R_P_PrevAndNext(long contentId, long companyId, 322 long repositoryId, java.lang.String path, 323 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) 324 throws com.liferay.portlet.documentlibrary.exception.NoSuchContentException; 325 326 /** 327 * Removes all the document library contents where companyId = ? and repositoryId = ? and path = ? from the database. 328 * 329 * @param companyId the company ID 330 * @param repositoryId the repository ID 331 * @param path the path 332 */ 333 public void removeByC_R_P(long companyId, long repositoryId, 334 java.lang.String path); 335 336 /** 337 * Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ?. 338 * 339 * @param companyId the company ID 340 * @param repositoryId the repository ID 341 * @param path the path 342 * @return the number of matching document library contents 343 */ 344 public int countByC_R_P(long companyId, long repositoryId, 345 java.lang.String path); 346 347 /** 348 * Returns all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?. 349 * 350 * @param companyId the company ID 351 * @param repositoryId the repository ID 352 * @param path the path 353 * @return the matching document library contents 354 */ 355 public java.util.List<DLContent> findByC_R_LikeP(long companyId, 356 long repositoryId, java.lang.String path); 357 358 /** 359 * Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?. 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 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 DLContentModelImpl}. 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. 363 * </p> 364 * 365 * @param companyId the company ID 366 * @param repositoryId the repository ID 367 * @param path the path 368 * @param start the lower bound of the range of document library contents 369 * @param end the upper bound of the range of document library contents (not inclusive) 370 * @return the range of matching document library contents 371 */ 372 public java.util.List<DLContent> findByC_R_LikeP(long companyId, 373 long repositoryId, java.lang.String path, int start, int end); 374 375 /** 376 * Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?. 377 * 378 * <p> 379 * 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 DLContentModelImpl}. 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. 380 * </p> 381 * 382 * @param companyId the company ID 383 * @param repositoryId the repository ID 384 * @param path the path 385 * @param start the lower bound of the range of document library contents 386 * @param end the upper bound of the range of document library contents (not inclusive) 387 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 388 * @return the ordered range of matching document library contents 389 */ 390 public java.util.List<DLContent> findByC_R_LikeP(long companyId, 391 long repositoryId, java.lang.String path, int start, int end, 392 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator); 393 394 /** 395 * Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?. 396 * 397 * <p> 398 * 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 DLContentModelImpl}. 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. 399 * </p> 400 * 401 * @param companyId the company ID 402 * @param repositoryId the repository ID 403 * @param path the path 404 * @param start the lower bound of the range of document library contents 405 * @param end the upper bound of the range of document library contents (not inclusive) 406 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 407 * @param retrieveFromCache whether to retrieve from the finder cache 408 * @return the ordered range of matching document library contents 409 */ 410 public java.util.List<DLContent> findByC_R_LikeP(long companyId, 411 long repositoryId, java.lang.String path, int start, int end, 412 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, 413 boolean retrieveFromCache); 414 415 /** 416 * Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. 417 * 418 * @param companyId the company ID 419 * @param repositoryId the repository ID 420 * @param path the path 421 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 422 * @return the first matching document library content 423 * @throws NoSuchContentException if a matching document library content could not be found 424 */ 425 public DLContent findByC_R_LikeP_First(long companyId, long repositoryId, 426 java.lang.String path, 427 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) 428 throws com.liferay.portlet.documentlibrary.exception.NoSuchContentException; 429 430 /** 431 * Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. 432 * 433 * @param companyId the company ID 434 * @param repositoryId the repository ID 435 * @param path the path 436 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 437 * @return the first matching document library content, or <code>null</code> if a matching document library content could not be found 438 */ 439 public DLContent fetchByC_R_LikeP_First(long companyId, long repositoryId, 440 java.lang.String path, 441 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator); 442 443 /** 444 * Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. 445 * 446 * @param companyId the company ID 447 * @param repositoryId the repository ID 448 * @param path the path 449 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 450 * @return the last matching document library content 451 * @throws NoSuchContentException if a matching document library content could not be found 452 */ 453 public DLContent findByC_R_LikeP_Last(long companyId, long repositoryId, 454 java.lang.String path, 455 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) 456 throws com.liferay.portlet.documentlibrary.exception.NoSuchContentException; 457 458 /** 459 * Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. 460 * 461 * @param companyId the company ID 462 * @param repositoryId the repository ID 463 * @param path the path 464 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 465 * @return the last matching document library content, or <code>null</code> if a matching document library content could not be found 466 */ 467 public DLContent fetchByC_R_LikeP_Last(long companyId, long repositoryId, 468 java.lang.String path, 469 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator); 470 471 /** 472 * Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. 473 * 474 * @param contentId the primary key of the current document library content 475 * @param companyId the company ID 476 * @param repositoryId the repository ID 477 * @param path the path 478 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 479 * @return the previous, current, and next document library content 480 * @throws NoSuchContentException if a document library content with the primary key could not be found 481 */ 482 public DLContent[] findByC_R_LikeP_PrevAndNext(long contentId, 483 long companyId, long repositoryId, java.lang.String path, 484 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) 485 throws com.liferay.portlet.documentlibrary.exception.NoSuchContentException; 486 487 /** 488 * Removes all the document library contents where companyId = ? and repositoryId = ? and path LIKE ? from the database. 489 * 490 * @param companyId the company ID 491 * @param repositoryId the repository ID 492 * @param path the path 493 */ 494 public void removeByC_R_LikeP(long companyId, long repositoryId, 495 java.lang.String path); 496 497 /** 498 * Returns the number of document library contents where companyId = ? and repositoryId = ? and path LIKE ?. 499 * 500 * @param companyId the company ID 501 * @param repositoryId the repository ID 502 * @param path the path 503 * @return the number of matching document library contents 504 */ 505 public int countByC_R_LikeP(long companyId, long repositoryId, 506 java.lang.String path); 507 508 /** 509 * Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or throws a {@link NoSuchContentException} if it could not be found. 510 * 511 * @param companyId the company ID 512 * @param repositoryId the repository ID 513 * @param path the path 514 * @param version the version 515 * @return the matching document library content 516 * @throws NoSuchContentException if a matching document library content could not be found 517 */ 518 public DLContent findByC_R_P_V(long companyId, long repositoryId, 519 java.lang.String path, java.lang.String version) 520 throws com.liferay.portlet.documentlibrary.exception.NoSuchContentException; 521 522 /** 523 * Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 524 * 525 * @param companyId the company ID 526 * @param repositoryId the repository ID 527 * @param path the path 528 * @param version the version 529 * @return the matching document library content, or <code>null</code> if a matching document library content could not be found 530 */ 531 public DLContent fetchByC_R_P_V(long companyId, long repositoryId, 532 java.lang.String path, java.lang.String version); 533 534 /** 535 * Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 536 * 537 * @param companyId the company ID 538 * @param repositoryId the repository ID 539 * @param path the path 540 * @param version the version 541 * @param retrieveFromCache whether to retrieve from the finder cache 542 * @return the matching document library content, or <code>null</code> if a matching document library content could not be found 543 */ 544 public DLContent fetchByC_R_P_V(long companyId, long repositoryId, 545 java.lang.String path, java.lang.String version, 546 boolean retrieveFromCache); 547 548 /** 549 * Removes the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? from the database. 550 * 551 * @param companyId the company ID 552 * @param repositoryId the repository ID 553 * @param path the path 554 * @param version the version 555 * @return the document library content that was removed 556 */ 557 public DLContent removeByC_R_P_V(long companyId, long repositoryId, 558 java.lang.String path, java.lang.String version) 559 throws com.liferay.portlet.documentlibrary.exception.NoSuchContentException; 560 561 /** 562 * Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ? and version = ?. 563 * 564 * @param companyId the company ID 565 * @param repositoryId the repository ID 566 * @param path the path 567 * @param version the version 568 * @return the number of matching document library contents 569 */ 570 public int countByC_R_P_V(long companyId, long repositoryId, 571 java.lang.String path, java.lang.String version); 572 573 /** 574 * Caches the document library content in the entity cache if it is enabled. 575 * 576 * @param dlContent the document library content 577 */ 578 public void cacheResult(DLContent dlContent); 579 580 /** 581 * Caches the document library contents in the entity cache if it is enabled. 582 * 583 * @param dlContents the document library contents 584 */ 585 public void cacheResult(java.util.List<DLContent> dlContents); 586 587 /** 588 * Creates a new document library content with the primary key. Does not add the document library content to the database. 589 * 590 * @param contentId the primary key for the new document library content 591 * @return the new document library content 592 */ 593 public DLContent create(long contentId); 594 595 /** 596 * Removes the document library content with the primary key from the database. Also notifies the appropriate model listeners. 597 * 598 * @param contentId the primary key of the document library content 599 * @return the document library content that was removed 600 * @throws NoSuchContentException if a document library content with the primary key could not be found 601 */ 602 public DLContent remove(long contentId) 603 throws com.liferay.portlet.documentlibrary.exception.NoSuchContentException; 604 605 public DLContent updateImpl(DLContent dlContent); 606 607 /** 608 * Returns the document library content with the primary key or throws a {@link NoSuchContentException} if it could not be found. 609 * 610 * @param contentId the primary key of the document library content 611 * @return the document library content 612 * @throws NoSuchContentException if a document library content with the primary key could not be found 613 */ 614 public DLContent findByPrimaryKey(long contentId) 615 throws com.liferay.portlet.documentlibrary.exception.NoSuchContentException; 616 617 /** 618 * Returns the document library content with the primary key or returns <code>null</code> if it could not be found. 619 * 620 * @param contentId the primary key of the document library content 621 * @return the document library content, or <code>null</code> if a document library content with the primary key could not be found 622 */ 623 public DLContent fetchByPrimaryKey(long contentId); 624 625 @Override 626 public java.util.Map<java.io.Serializable, DLContent> fetchByPrimaryKeys( 627 java.util.Set<java.io.Serializable> primaryKeys); 628 629 /** 630 * Returns all the document library contents. 631 * 632 * @return the document library contents 633 */ 634 public java.util.List<DLContent> findAll(); 635 636 /** 637 * Returns a range of all the document library contents. 638 * 639 * <p> 640 * 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 DLContentModelImpl}. 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. 641 * </p> 642 * 643 * @param start the lower bound of the range of document library contents 644 * @param end the upper bound of the range of document library contents (not inclusive) 645 * @return the range of document library contents 646 */ 647 public java.util.List<DLContent> findAll(int start, int end); 648 649 /** 650 * Returns an ordered range of all the document library contents. 651 * 652 * <p> 653 * 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 DLContentModelImpl}. 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. 654 * </p> 655 * 656 * @param start the lower bound of the range of document library contents 657 * @param end the upper bound of the range of document library contents (not inclusive) 658 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 659 * @return the ordered range of document library contents 660 */ 661 public java.util.List<DLContent> findAll(int start, int end, 662 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator); 663 664 /** 665 * Returns an ordered range of all the document library contents. 666 * 667 * <p> 668 * 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 DLContentModelImpl}. 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. 669 * </p> 670 * 671 * @param start the lower bound of the range of document library contents 672 * @param end the upper bound of the range of document library contents (not inclusive) 673 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 674 * @param retrieveFromCache whether to retrieve from the finder cache 675 * @return the ordered range of document library contents 676 */ 677 public java.util.List<DLContent> findAll(int start, int end, 678 com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, 679 boolean retrieveFromCache); 680 681 /** 682 * Removes all the document library contents from the database. 683 */ 684 public void removeAll(); 685 686 /** 687 * Returns the number of document library contents. 688 * 689 * @return the number of document library contents 690 */ 691 public int countAll(); 692 693 @Override 694 public java.util.Set<java.lang.String> getBadColumnNames(); 695 }