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.portal.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.model.RepositoryEntry; 020 021 /** 022 * The persistence interface for the repository entry service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see com.liferay.portal.service.persistence.impl.RepositoryEntryPersistenceImpl 030 * @see RepositoryEntryUtil 031 * @generated 032 */ 033 @ProviderType 034 public interface RepositoryEntryPersistence extends BasePersistence<RepositoryEntry> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link RepositoryEntryUtil} to access the repository entry persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Returns all the repository entries where uuid = ?. 043 * 044 * @param uuid the uuid 045 * @return the matching repository entries 046 */ 047 public java.util.List<RepositoryEntry> findByUuid(java.lang.String uuid); 048 049 /** 050 * Returns a range of all the repository entries where uuid = ?. 051 * 052 * <p> 053 * 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 RepositoryEntryModelImpl}. 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. 054 * </p> 055 * 056 * @param uuid the uuid 057 * @param start the lower bound of the range of repository entries 058 * @param end the upper bound of the range of repository entries (not inclusive) 059 * @return the range of matching repository entries 060 */ 061 public java.util.List<RepositoryEntry> findByUuid(java.lang.String uuid, 062 int start, int end); 063 064 /** 065 * Returns an ordered range of all the repository entries where uuid = ?. 066 * 067 * <p> 068 * 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 RepositoryEntryModelImpl}. 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. 069 * </p> 070 * 071 * @param uuid the uuid 072 * @param start the lower bound of the range of repository entries 073 * @param end the upper bound of the range of repository entries (not inclusive) 074 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 075 * @return the ordered range of matching repository entries 076 */ 077 public java.util.List<RepositoryEntry> findByUuid(java.lang.String uuid, 078 int start, int end, 079 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 080 081 /** 082 * Returns the first repository entry in the ordered set where uuid = ?. 083 * 084 * @param uuid the uuid 085 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 086 * @return the first matching repository entry 087 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 088 */ 089 public RepositoryEntry findByUuid_First(java.lang.String uuid, 090 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 091 throws com.liferay.portal.NoSuchRepositoryEntryException; 092 093 /** 094 * Returns the first repository entry in the ordered set where uuid = ?. 095 * 096 * @param uuid the uuid 097 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 098 * @return the first matching repository entry, or <code>null</code> if a matching repository entry could not be found 099 */ 100 public RepositoryEntry fetchByUuid_First(java.lang.String uuid, 101 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 102 103 /** 104 * Returns the last repository entry in the ordered set where uuid = ?. 105 * 106 * @param uuid the uuid 107 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 108 * @return the last matching repository entry 109 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 110 */ 111 public RepositoryEntry findByUuid_Last(java.lang.String uuid, 112 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 113 throws com.liferay.portal.NoSuchRepositoryEntryException; 114 115 /** 116 * Returns the last repository entry in the ordered set where uuid = ?. 117 * 118 * @param uuid the uuid 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the last matching repository entry, or <code>null</code> if a matching repository entry could not be found 121 */ 122 public RepositoryEntry fetchByUuid_Last(java.lang.String uuid, 123 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 124 125 /** 126 * Returns the repository entries before and after the current repository entry in the ordered set where uuid = ?. 127 * 128 * @param repositoryEntryId the primary key of the current repository entry 129 * @param uuid the uuid 130 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 131 * @return the previous, current, and next repository entry 132 * @throws NoSuchRepositoryEntryException if a repository entry with the primary key could not be found 133 */ 134 public RepositoryEntry[] findByUuid_PrevAndNext(long repositoryEntryId, 135 java.lang.String uuid, 136 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 137 throws com.liferay.portal.NoSuchRepositoryEntryException; 138 139 /** 140 * Removes all the repository entries where uuid = ? from the database. 141 * 142 * @param uuid the uuid 143 */ 144 public void removeByUuid(java.lang.String uuid); 145 146 /** 147 * Returns the number of repository entries where uuid = ?. 148 * 149 * @param uuid the uuid 150 * @return the number of matching repository entries 151 */ 152 public int countByUuid(java.lang.String uuid); 153 154 /** 155 * Returns the repository entry where uuid = ? and groupId = ? or throws a {@link NoSuchRepositoryEntryException} if it could not be found. 156 * 157 * @param uuid the uuid 158 * @param groupId the group ID 159 * @return the matching repository entry 160 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 161 */ 162 public RepositoryEntry findByUUID_G(java.lang.String uuid, long groupId) 163 throws com.liferay.portal.NoSuchRepositoryEntryException; 164 165 /** 166 * Returns the repository entry where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 167 * 168 * @param uuid the uuid 169 * @param groupId the group ID 170 * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found 171 */ 172 public RepositoryEntry fetchByUUID_G(java.lang.String uuid, long groupId); 173 174 /** 175 * Returns the repository entry where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 176 * 177 * @param uuid the uuid 178 * @param groupId the group ID 179 * @param retrieveFromCache whether to use the finder cache 180 * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found 181 */ 182 public RepositoryEntry fetchByUUID_G(java.lang.String uuid, long groupId, 183 boolean retrieveFromCache); 184 185 /** 186 * Removes the repository entry where uuid = ? and groupId = ? from the database. 187 * 188 * @param uuid the uuid 189 * @param groupId the group ID 190 * @return the repository entry that was removed 191 */ 192 public RepositoryEntry removeByUUID_G(java.lang.String uuid, long groupId) 193 throws com.liferay.portal.NoSuchRepositoryEntryException; 194 195 /** 196 * Returns the number of repository entries where uuid = ? and groupId = ?. 197 * 198 * @param uuid the uuid 199 * @param groupId the group ID 200 * @return the number of matching repository entries 201 */ 202 public int countByUUID_G(java.lang.String uuid, long groupId); 203 204 /** 205 * Returns all the repository entries where uuid = ? and companyId = ?. 206 * 207 * @param uuid the uuid 208 * @param companyId the company ID 209 * @return the matching repository entries 210 */ 211 public java.util.List<RepositoryEntry> findByUuid_C(java.lang.String uuid, 212 long companyId); 213 214 /** 215 * Returns a range of all the repository entries where uuid = ? and companyId = ?. 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 RepositoryEntryModelImpl}. 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 uuid the uuid 222 * @param companyId the company ID 223 * @param start the lower bound of the range of repository entries 224 * @param end the upper bound of the range of repository entries (not inclusive) 225 * @return the range of matching repository entries 226 */ 227 public java.util.List<RepositoryEntry> findByUuid_C(java.lang.String uuid, 228 long companyId, int start, int end); 229 230 /** 231 * Returns an ordered range of all the repository entries where uuid = ? and companyId = ?. 232 * 233 * <p> 234 * 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 RepositoryEntryModelImpl}. 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. 235 * </p> 236 * 237 * @param uuid the uuid 238 * @param companyId the company ID 239 * @param start the lower bound of the range of repository entries 240 * @param end the upper bound of the range of repository entries (not inclusive) 241 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 242 * @return the ordered range of matching repository entries 243 */ 244 public java.util.List<RepositoryEntry> findByUuid_C(java.lang.String uuid, 245 long companyId, int start, int end, 246 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 247 248 /** 249 * Returns the first repository entry in the ordered set where uuid = ? and companyId = ?. 250 * 251 * @param uuid the uuid 252 * @param companyId the company ID 253 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 254 * @return the first matching repository entry 255 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 256 */ 257 public RepositoryEntry findByUuid_C_First(java.lang.String uuid, 258 long companyId, 259 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 260 throws com.liferay.portal.NoSuchRepositoryEntryException; 261 262 /** 263 * Returns the first repository entry in the ordered set where uuid = ? and companyId = ?. 264 * 265 * @param uuid the uuid 266 * @param companyId the company ID 267 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 268 * @return the first matching repository entry, or <code>null</code> if a matching repository entry could not be found 269 */ 270 public RepositoryEntry fetchByUuid_C_First(java.lang.String uuid, 271 long companyId, 272 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 273 274 /** 275 * Returns the last repository entry in the ordered set where uuid = ? and companyId = ?. 276 * 277 * @param uuid the uuid 278 * @param companyId the company ID 279 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 280 * @return the last matching repository entry 281 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 282 */ 283 public RepositoryEntry findByUuid_C_Last(java.lang.String uuid, 284 long companyId, 285 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 286 throws com.liferay.portal.NoSuchRepositoryEntryException; 287 288 /** 289 * Returns the last repository entry in the ordered set where uuid = ? and companyId = ?. 290 * 291 * @param uuid the uuid 292 * @param companyId the company ID 293 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 294 * @return the last matching repository entry, or <code>null</code> if a matching repository entry could not be found 295 */ 296 public RepositoryEntry fetchByUuid_C_Last(java.lang.String uuid, 297 long companyId, 298 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 299 300 /** 301 * Returns the repository entries before and after the current repository entry in the ordered set where uuid = ? and companyId = ?. 302 * 303 * @param repositoryEntryId the primary key of the current repository entry 304 * @param uuid the uuid 305 * @param companyId the company ID 306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 307 * @return the previous, current, and next repository entry 308 * @throws NoSuchRepositoryEntryException if a repository entry with the primary key could not be found 309 */ 310 public RepositoryEntry[] findByUuid_C_PrevAndNext(long repositoryEntryId, 311 java.lang.String uuid, long companyId, 312 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 313 throws com.liferay.portal.NoSuchRepositoryEntryException; 314 315 /** 316 * Removes all the repository entries where uuid = ? and companyId = ? from the database. 317 * 318 * @param uuid the uuid 319 * @param companyId the company ID 320 */ 321 public void removeByUuid_C(java.lang.String uuid, long companyId); 322 323 /** 324 * Returns the number of repository entries where uuid = ? and companyId = ?. 325 * 326 * @param uuid the uuid 327 * @param companyId the company ID 328 * @return the number of matching repository entries 329 */ 330 public int countByUuid_C(java.lang.String uuid, long companyId); 331 332 /** 333 * Returns all the repository entries where repositoryId = ?. 334 * 335 * @param repositoryId the repository ID 336 * @return the matching repository entries 337 */ 338 public java.util.List<RepositoryEntry> findByRepositoryId(long repositoryId); 339 340 /** 341 * Returns a range of all the repository entries where repositoryId = ?. 342 * 343 * <p> 344 * 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 RepositoryEntryModelImpl}. 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. 345 * </p> 346 * 347 * @param repositoryId the repository ID 348 * @param start the lower bound of the range of repository entries 349 * @param end the upper bound of the range of repository entries (not inclusive) 350 * @return the range of matching repository entries 351 */ 352 public java.util.List<RepositoryEntry> findByRepositoryId( 353 long repositoryId, int start, int end); 354 355 /** 356 * Returns an ordered range of all the repository entries where repositoryId = ?. 357 * 358 * <p> 359 * 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 RepositoryEntryModelImpl}. 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. 360 * </p> 361 * 362 * @param repositoryId the repository ID 363 * @param start the lower bound of the range of repository entries 364 * @param end the upper bound of the range of repository entries (not inclusive) 365 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 366 * @return the ordered range of matching repository entries 367 */ 368 public java.util.List<RepositoryEntry> findByRepositoryId( 369 long repositoryId, int start, int end, 370 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 371 372 /** 373 * Returns the first repository entry in the ordered set where repositoryId = ?. 374 * 375 * @param repositoryId the repository ID 376 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 377 * @return the first matching repository entry 378 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 379 */ 380 public RepositoryEntry findByRepositoryId_First(long repositoryId, 381 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 382 throws com.liferay.portal.NoSuchRepositoryEntryException; 383 384 /** 385 * Returns the first repository entry in the ordered set where repositoryId = ?. 386 * 387 * @param repositoryId the repository ID 388 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 389 * @return the first matching repository entry, or <code>null</code> if a matching repository entry could not be found 390 */ 391 public RepositoryEntry fetchByRepositoryId_First(long repositoryId, 392 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 393 394 /** 395 * Returns the last repository entry in the ordered set where repositoryId = ?. 396 * 397 * @param repositoryId the repository ID 398 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 399 * @return the last matching repository entry 400 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 401 */ 402 public RepositoryEntry findByRepositoryId_Last(long repositoryId, 403 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 404 throws com.liferay.portal.NoSuchRepositoryEntryException; 405 406 /** 407 * Returns the last repository entry in the ordered set where repositoryId = ?. 408 * 409 * @param repositoryId the repository ID 410 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 411 * @return the last matching repository entry, or <code>null</code> if a matching repository entry could not be found 412 */ 413 public RepositoryEntry fetchByRepositoryId_Last(long repositoryId, 414 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 415 416 /** 417 * Returns the repository entries before and after the current repository entry in the ordered set where repositoryId = ?. 418 * 419 * @param repositoryEntryId the primary key of the current repository entry 420 * @param repositoryId the repository ID 421 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 422 * @return the previous, current, and next repository entry 423 * @throws NoSuchRepositoryEntryException if a repository entry with the primary key could not be found 424 */ 425 public RepositoryEntry[] findByRepositoryId_PrevAndNext( 426 long repositoryEntryId, long repositoryId, 427 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 428 throws com.liferay.portal.NoSuchRepositoryEntryException; 429 430 /** 431 * Removes all the repository entries where repositoryId = ? from the database. 432 * 433 * @param repositoryId the repository ID 434 */ 435 public void removeByRepositoryId(long repositoryId); 436 437 /** 438 * Returns the number of repository entries where repositoryId = ?. 439 * 440 * @param repositoryId the repository ID 441 * @return the number of matching repository entries 442 */ 443 public int countByRepositoryId(long repositoryId); 444 445 /** 446 * Returns the repository entry where repositoryId = ? and mappedId = ? or throws a {@link NoSuchRepositoryEntryException} if it could not be found. 447 * 448 * @param repositoryId the repository ID 449 * @param mappedId the mapped ID 450 * @return the matching repository entry 451 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 452 */ 453 public RepositoryEntry findByR_M(long repositoryId, 454 java.lang.String mappedId) 455 throws com.liferay.portal.NoSuchRepositoryEntryException; 456 457 /** 458 * Returns the repository entry where repositoryId = ? and mappedId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 459 * 460 * @param repositoryId the repository ID 461 * @param mappedId the mapped ID 462 * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found 463 */ 464 public RepositoryEntry fetchByR_M(long repositoryId, 465 java.lang.String mappedId); 466 467 /** 468 * Returns the repository entry where repositoryId = ? and mappedId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 469 * 470 * @param repositoryId the repository ID 471 * @param mappedId the mapped ID 472 * @param retrieveFromCache whether to use the finder cache 473 * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found 474 */ 475 public RepositoryEntry fetchByR_M(long repositoryId, 476 java.lang.String mappedId, boolean retrieveFromCache); 477 478 /** 479 * Removes the repository entry where repositoryId = ? and mappedId = ? from the database. 480 * 481 * @param repositoryId the repository ID 482 * @param mappedId the mapped ID 483 * @return the repository entry that was removed 484 */ 485 public RepositoryEntry removeByR_M(long repositoryId, 486 java.lang.String mappedId) 487 throws com.liferay.portal.NoSuchRepositoryEntryException; 488 489 /** 490 * Returns the number of repository entries where repositoryId = ? and mappedId = ?. 491 * 492 * @param repositoryId the repository ID 493 * @param mappedId the mapped ID 494 * @return the number of matching repository entries 495 */ 496 public int countByR_M(long repositoryId, java.lang.String mappedId); 497 498 /** 499 * Caches the repository entry in the entity cache if it is enabled. 500 * 501 * @param repositoryEntry the repository entry 502 */ 503 public void cacheResult(RepositoryEntry repositoryEntry); 504 505 /** 506 * Caches the repository entries in the entity cache if it is enabled. 507 * 508 * @param repositoryEntries the repository entries 509 */ 510 public void cacheResult(java.util.List<RepositoryEntry> repositoryEntries); 511 512 /** 513 * Creates a new repository entry with the primary key. Does not add the repository entry to the database. 514 * 515 * @param repositoryEntryId the primary key for the new repository entry 516 * @return the new repository entry 517 */ 518 public RepositoryEntry create(long repositoryEntryId); 519 520 /** 521 * Removes the repository entry with the primary key from the database. Also notifies the appropriate model listeners. 522 * 523 * @param repositoryEntryId the primary key of the repository entry 524 * @return the repository entry that was removed 525 * @throws NoSuchRepositoryEntryException if a repository entry with the primary key could not be found 526 */ 527 public RepositoryEntry remove(long repositoryEntryId) 528 throws com.liferay.portal.NoSuchRepositoryEntryException; 529 530 public RepositoryEntry updateImpl(RepositoryEntry repositoryEntry); 531 532 /** 533 * Returns the repository entry with the primary key or throws a {@link NoSuchRepositoryEntryException} if it could not be found. 534 * 535 * @param repositoryEntryId the primary key of the repository entry 536 * @return the repository entry 537 * @throws NoSuchRepositoryEntryException if a repository entry with the primary key could not be found 538 */ 539 public RepositoryEntry findByPrimaryKey(long repositoryEntryId) 540 throws com.liferay.portal.NoSuchRepositoryEntryException; 541 542 /** 543 * Returns the repository entry with the primary key or returns <code>null</code> if it could not be found. 544 * 545 * @param repositoryEntryId the primary key of the repository entry 546 * @return the repository entry, or <code>null</code> if a repository entry with the primary key could not be found 547 */ 548 public RepositoryEntry fetchByPrimaryKey(long repositoryEntryId); 549 550 @Override 551 public java.util.Map<java.io.Serializable, RepositoryEntry> fetchByPrimaryKeys( 552 java.util.Set<java.io.Serializable> primaryKeys); 553 554 /** 555 * Returns all the repository entries. 556 * 557 * @return the repository entries 558 */ 559 public java.util.List<RepositoryEntry> findAll(); 560 561 /** 562 * Returns a range of all the repository entries. 563 * 564 * <p> 565 * 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 RepositoryEntryModelImpl}. 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. 566 * </p> 567 * 568 * @param start the lower bound of the range of repository entries 569 * @param end the upper bound of the range of repository entries (not inclusive) 570 * @return the range of repository entries 571 */ 572 public java.util.List<RepositoryEntry> findAll(int start, int end); 573 574 /** 575 * Returns an ordered range of all the repository entries. 576 * 577 * <p> 578 * 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 RepositoryEntryModelImpl}. 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. 579 * </p> 580 * 581 * @param start the lower bound of the range of repository entries 582 * @param end the upper bound of the range of repository entries (not inclusive) 583 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 584 * @return the ordered range of repository entries 585 */ 586 public java.util.List<RepositoryEntry> findAll(int start, int end, 587 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 588 589 /** 590 * Removes all the repository entries from the database. 591 */ 592 public void removeAll(); 593 594 /** 595 * Returns the number of repository entries. 596 * 597 * @return the number of repository entries 598 */ 599 public int countAll(); 600 }