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 an ordered range of all the repository entries where uuid = ?. 083 * 084 * <p> 085 * 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. 086 * </p> 087 * 088 * @param uuid the uuid 089 * @param start the lower bound of the range of repository entries 090 * @param end the upper bound of the range of repository entries (not inclusive) 091 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 092 * @param retrieveFromCache whether to retrieve from the finder cache 093 * @return the ordered range of matching repository entries 094 */ 095 public java.util.List<RepositoryEntry> findByUuid(java.lang.String uuid, 096 int start, int end, 097 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator, 098 boolean retrieveFromCache); 099 100 /** 101 * Returns the first repository entry in the ordered set where uuid = ?. 102 * 103 * @param uuid the uuid 104 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 105 * @return the first matching repository entry 106 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 107 */ 108 public RepositoryEntry findByUuid_First(java.lang.String uuid, 109 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 110 throws com.liferay.portal.exception.NoSuchRepositoryEntryException; 111 112 /** 113 * Returns the first repository entry in the ordered set where uuid = ?. 114 * 115 * @param uuid the uuid 116 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 117 * @return the first matching repository entry, or <code>null</code> if a matching repository entry could not be found 118 */ 119 public RepositoryEntry fetchByUuid_First(java.lang.String uuid, 120 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 121 122 /** 123 * Returns the last repository entry in the ordered set where uuid = ?. 124 * 125 * @param uuid the uuid 126 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 127 * @return the last matching repository entry 128 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 129 */ 130 public RepositoryEntry findByUuid_Last(java.lang.String uuid, 131 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 132 throws com.liferay.portal.exception.NoSuchRepositoryEntryException; 133 134 /** 135 * Returns the last repository entry in the ordered set where uuid = ?. 136 * 137 * @param uuid the uuid 138 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 139 * @return the last matching repository entry, or <code>null</code> if a matching repository entry could not be found 140 */ 141 public RepositoryEntry fetchByUuid_Last(java.lang.String uuid, 142 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 143 144 /** 145 * Returns the repository entries before and after the current repository entry in the ordered set where uuid = ?. 146 * 147 * @param repositoryEntryId the primary key of the current repository entry 148 * @param uuid the uuid 149 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 150 * @return the previous, current, and next repository entry 151 * @throws NoSuchRepositoryEntryException if a repository entry with the primary key could not be found 152 */ 153 public RepositoryEntry[] findByUuid_PrevAndNext(long repositoryEntryId, 154 java.lang.String uuid, 155 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 156 throws com.liferay.portal.exception.NoSuchRepositoryEntryException; 157 158 /** 159 * Removes all the repository entries where uuid = ? from the database. 160 * 161 * @param uuid the uuid 162 */ 163 public void removeByUuid(java.lang.String uuid); 164 165 /** 166 * Returns the number of repository entries where uuid = ?. 167 * 168 * @param uuid the uuid 169 * @return the number of matching repository entries 170 */ 171 public int countByUuid(java.lang.String uuid); 172 173 /** 174 * Returns the repository entry where uuid = ? and groupId = ? or throws a {@link NoSuchRepositoryEntryException} if it could not be found. 175 * 176 * @param uuid the uuid 177 * @param groupId the group ID 178 * @return the matching repository entry 179 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 180 */ 181 public RepositoryEntry findByUUID_G(java.lang.String uuid, long groupId) 182 throws com.liferay.portal.exception.NoSuchRepositoryEntryException; 183 184 /** 185 * Returns the repository entry where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 186 * 187 * @param uuid the uuid 188 * @param groupId the group ID 189 * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found 190 */ 191 public RepositoryEntry fetchByUUID_G(java.lang.String uuid, long groupId); 192 193 /** 194 * Returns the repository entry where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 195 * 196 * @param uuid the uuid 197 * @param groupId the group ID 198 * @param retrieveFromCache whether to retrieve from the finder cache 199 * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found 200 */ 201 public RepositoryEntry fetchByUUID_G(java.lang.String uuid, long groupId, 202 boolean retrieveFromCache); 203 204 /** 205 * Removes the repository entry where uuid = ? and groupId = ? from the database. 206 * 207 * @param uuid the uuid 208 * @param groupId the group ID 209 * @return the repository entry that was removed 210 */ 211 public RepositoryEntry removeByUUID_G(java.lang.String uuid, long groupId) 212 throws com.liferay.portal.exception.NoSuchRepositoryEntryException; 213 214 /** 215 * Returns the number of repository entries where uuid = ? and groupId = ?. 216 * 217 * @param uuid the uuid 218 * @param groupId the group ID 219 * @return the number of matching repository entries 220 */ 221 public int countByUUID_G(java.lang.String uuid, long groupId); 222 223 /** 224 * Returns all the repository entries where uuid = ? and companyId = ?. 225 * 226 * @param uuid the uuid 227 * @param companyId the company ID 228 * @return the matching repository entries 229 */ 230 public java.util.List<RepositoryEntry> findByUuid_C(java.lang.String uuid, 231 long companyId); 232 233 /** 234 * Returns a range of all the repository entries where uuid = ? and companyId = ?. 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 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. 238 * </p> 239 * 240 * @param uuid the uuid 241 * @param companyId the company ID 242 * @param start the lower bound of the range of repository entries 243 * @param end the upper bound of the range of repository entries (not inclusive) 244 * @return the range of matching repository entries 245 */ 246 public java.util.List<RepositoryEntry> findByUuid_C(java.lang.String uuid, 247 long companyId, int start, int end); 248 249 /** 250 * Returns an ordered range of all the repository entries where uuid = ? and companyId = ?. 251 * 252 * <p> 253 * 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. 254 * </p> 255 * 256 * @param uuid the uuid 257 * @param companyId the company ID 258 * @param start the lower bound of the range of repository entries 259 * @param end the upper bound of the range of repository entries (not inclusive) 260 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 261 * @return the ordered range of matching repository entries 262 */ 263 public java.util.List<RepositoryEntry> findByUuid_C(java.lang.String uuid, 264 long companyId, int start, int end, 265 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 266 267 /** 268 * Returns an ordered range of all the repository entries where uuid = ? and companyId = ?. 269 * 270 * <p> 271 * 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. 272 * </p> 273 * 274 * @param uuid the uuid 275 * @param companyId the company ID 276 * @param start the lower bound of the range of repository entries 277 * @param end the upper bound of the range of repository entries (not inclusive) 278 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 279 * @param retrieveFromCache whether to retrieve from the finder cache 280 * @return the ordered range of matching repository entries 281 */ 282 public java.util.List<RepositoryEntry> findByUuid_C(java.lang.String uuid, 283 long companyId, int start, int end, 284 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator, 285 boolean retrieveFromCache); 286 287 /** 288 * Returns the first repository entry in the ordered set where uuid = ? and companyId = ?. 289 * 290 * @param uuid the uuid 291 * @param companyId the company ID 292 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 293 * @return the first matching repository entry 294 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 295 */ 296 public RepositoryEntry findByUuid_C_First(java.lang.String uuid, 297 long companyId, 298 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 299 throws com.liferay.portal.exception.NoSuchRepositoryEntryException; 300 301 /** 302 * Returns the first repository entry in the ordered set where uuid = ? and companyId = ?. 303 * 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 first matching repository entry, or <code>null</code> if a matching repository entry could not be found 308 */ 309 public RepositoryEntry fetchByUuid_C_First(java.lang.String uuid, 310 long companyId, 311 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 312 313 /** 314 * Returns the last repository entry in the ordered set where uuid = ? and companyId = ?. 315 * 316 * @param uuid the uuid 317 * @param companyId the company ID 318 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 319 * @return the last matching repository entry 320 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 321 */ 322 public RepositoryEntry findByUuid_C_Last(java.lang.String uuid, 323 long companyId, 324 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 325 throws com.liferay.portal.exception.NoSuchRepositoryEntryException; 326 327 /** 328 * Returns the last repository entry in the ordered set where uuid = ? and companyId = ?. 329 * 330 * @param uuid the uuid 331 * @param companyId the company ID 332 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 333 * @return the last matching repository entry, or <code>null</code> if a matching repository entry could not be found 334 */ 335 public RepositoryEntry fetchByUuid_C_Last(java.lang.String uuid, 336 long companyId, 337 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 338 339 /** 340 * Returns the repository entries before and after the current repository entry in the ordered set where uuid = ? and companyId = ?. 341 * 342 * @param repositoryEntryId the primary key of the current repository entry 343 * @param uuid the uuid 344 * @param companyId the company ID 345 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 346 * @return the previous, current, and next repository entry 347 * @throws NoSuchRepositoryEntryException if a repository entry with the primary key could not be found 348 */ 349 public RepositoryEntry[] findByUuid_C_PrevAndNext(long repositoryEntryId, 350 java.lang.String uuid, long companyId, 351 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 352 throws com.liferay.portal.exception.NoSuchRepositoryEntryException; 353 354 /** 355 * Removes all the repository entries where uuid = ? and companyId = ? from the database. 356 * 357 * @param uuid the uuid 358 * @param companyId the company ID 359 */ 360 public void removeByUuid_C(java.lang.String uuid, long companyId); 361 362 /** 363 * Returns the number of repository entries where uuid = ? and companyId = ?. 364 * 365 * @param uuid the uuid 366 * @param companyId the company ID 367 * @return the number of matching repository entries 368 */ 369 public int countByUuid_C(java.lang.String uuid, long companyId); 370 371 /** 372 * Returns all the repository entries where repositoryId = ?. 373 * 374 * @param repositoryId the repository ID 375 * @return the matching repository entries 376 */ 377 public java.util.List<RepositoryEntry> findByRepositoryId(long repositoryId); 378 379 /** 380 * Returns a range of all the repository entries where repositoryId = ?. 381 * 382 * <p> 383 * 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. 384 * </p> 385 * 386 * @param repositoryId the repository ID 387 * @param start the lower bound of the range of repository entries 388 * @param end the upper bound of the range of repository entries (not inclusive) 389 * @return the range of matching repository entries 390 */ 391 public java.util.List<RepositoryEntry> findByRepositoryId( 392 long repositoryId, int start, int end); 393 394 /** 395 * Returns an ordered range of all the repository entries where repositoryId = ?. 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 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. 399 * </p> 400 * 401 * @param repositoryId the repository ID 402 * @param start the lower bound of the range of repository entries 403 * @param end the upper bound of the range of repository entries (not inclusive) 404 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 405 * @return the ordered range of matching repository entries 406 */ 407 public java.util.List<RepositoryEntry> findByRepositoryId( 408 long repositoryId, int start, int end, 409 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 410 411 /** 412 * Returns an ordered range of all the repository entries where repositoryId = ?. 413 * 414 * <p> 415 * 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. 416 * </p> 417 * 418 * @param repositoryId the repository ID 419 * @param start the lower bound of the range of repository entries 420 * @param end the upper bound of the range of repository entries (not inclusive) 421 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 422 * @param retrieveFromCache whether to retrieve from the finder cache 423 * @return the ordered range of matching repository entries 424 */ 425 public java.util.List<RepositoryEntry> findByRepositoryId( 426 long repositoryId, int start, int end, 427 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator, 428 boolean retrieveFromCache); 429 430 /** 431 * Returns the first repository entry in the ordered set where repositoryId = ?. 432 * 433 * @param repositoryId the repository ID 434 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 435 * @return the first matching repository entry 436 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 437 */ 438 public RepositoryEntry findByRepositoryId_First(long repositoryId, 439 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 440 throws com.liferay.portal.exception.NoSuchRepositoryEntryException; 441 442 /** 443 * Returns the first repository entry in the ordered set where repositoryId = ?. 444 * 445 * @param repositoryId the repository ID 446 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 447 * @return the first matching repository entry, or <code>null</code> if a matching repository entry could not be found 448 */ 449 public RepositoryEntry fetchByRepositoryId_First(long repositoryId, 450 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 451 452 /** 453 * Returns the last repository entry in the ordered set where repositoryId = ?. 454 * 455 * @param repositoryId the repository ID 456 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 457 * @return the last matching repository entry 458 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 459 */ 460 public RepositoryEntry findByRepositoryId_Last(long repositoryId, 461 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 462 throws com.liferay.portal.exception.NoSuchRepositoryEntryException; 463 464 /** 465 * Returns the last repository entry in the ordered set where repositoryId = ?. 466 * 467 * @param repositoryId the repository ID 468 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 469 * @return the last matching repository entry, or <code>null</code> if a matching repository entry could not be found 470 */ 471 public RepositoryEntry fetchByRepositoryId_Last(long repositoryId, 472 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 473 474 /** 475 * Returns the repository entries before and after the current repository entry in the ordered set where repositoryId = ?. 476 * 477 * @param repositoryEntryId the primary key of the current repository entry 478 * @param repositoryId the repository ID 479 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 480 * @return the previous, current, and next repository entry 481 * @throws NoSuchRepositoryEntryException if a repository entry with the primary key could not be found 482 */ 483 public RepositoryEntry[] findByRepositoryId_PrevAndNext( 484 long repositoryEntryId, long repositoryId, 485 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator) 486 throws com.liferay.portal.exception.NoSuchRepositoryEntryException; 487 488 /** 489 * Removes all the repository entries where repositoryId = ? from the database. 490 * 491 * @param repositoryId the repository ID 492 */ 493 public void removeByRepositoryId(long repositoryId); 494 495 /** 496 * Returns the number of repository entries where repositoryId = ?. 497 * 498 * @param repositoryId the repository ID 499 * @return the number of matching repository entries 500 */ 501 public int countByRepositoryId(long repositoryId); 502 503 /** 504 * Returns the repository entry where repositoryId = ? and mappedId = ? or throws a {@link NoSuchRepositoryEntryException} if it could not be found. 505 * 506 * @param repositoryId the repository ID 507 * @param mappedId the mapped ID 508 * @return the matching repository entry 509 * @throws NoSuchRepositoryEntryException if a matching repository entry could not be found 510 */ 511 public RepositoryEntry findByR_M(long repositoryId, 512 java.lang.String mappedId) 513 throws com.liferay.portal.exception.NoSuchRepositoryEntryException; 514 515 /** 516 * Returns the repository entry where repositoryId = ? and mappedId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 517 * 518 * @param repositoryId the repository ID 519 * @param mappedId the mapped ID 520 * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found 521 */ 522 public RepositoryEntry fetchByR_M(long repositoryId, 523 java.lang.String mappedId); 524 525 /** 526 * Returns the repository entry where repositoryId = ? and mappedId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 527 * 528 * @param repositoryId the repository ID 529 * @param mappedId the mapped ID 530 * @param retrieveFromCache whether to retrieve from the finder cache 531 * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found 532 */ 533 public RepositoryEntry fetchByR_M(long repositoryId, 534 java.lang.String mappedId, boolean retrieveFromCache); 535 536 /** 537 * Removes the repository entry where repositoryId = ? and mappedId = ? from the database. 538 * 539 * @param repositoryId the repository ID 540 * @param mappedId the mapped ID 541 * @return the repository entry that was removed 542 */ 543 public RepositoryEntry removeByR_M(long repositoryId, 544 java.lang.String mappedId) 545 throws com.liferay.portal.exception.NoSuchRepositoryEntryException; 546 547 /** 548 * Returns the number of repository entries where repositoryId = ? and mappedId = ?. 549 * 550 * @param repositoryId the repository ID 551 * @param mappedId the mapped ID 552 * @return the number of matching repository entries 553 */ 554 public int countByR_M(long repositoryId, java.lang.String mappedId); 555 556 /** 557 * Caches the repository entry in the entity cache if it is enabled. 558 * 559 * @param repositoryEntry the repository entry 560 */ 561 public void cacheResult(RepositoryEntry repositoryEntry); 562 563 /** 564 * Caches the repository entries in the entity cache if it is enabled. 565 * 566 * @param repositoryEntries the repository entries 567 */ 568 public void cacheResult(java.util.List<RepositoryEntry> repositoryEntries); 569 570 /** 571 * Creates a new repository entry with the primary key. Does not add the repository entry to the database. 572 * 573 * @param repositoryEntryId the primary key for the new repository entry 574 * @return the new repository entry 575 */ 576 public RepositoryEntry create(long repositoryEntryId); 577 578 /** 579 * Removes the repository entry with the primary key from the database. Also notifies the appropriate model listeners. 580 * 581 * @param repositoryEntryId the primary key of the repository entry 582 * @return the repository entry that was removed 583 * @throws NoSuchRepositoryEntryException if a repository entry with the primary key could not be found 584 */ 585 public RepositoryEntry remove(long repositoryEntryId) 586 throws com.liferay.portal.exception.NoSuchRepositoryEntryException; 587 588 public RepositoryEntry updateImpl(RepositoryEntry repositoryEntry); 589 590 /** 591 * Returns the repository entry with the primary key or throws a {@link NoSuchRepositoryEntryException} if it could not be found. 592 * 593 * @param repositoryEntryId the primary key of the repository entry 594 * @return the repository entry 595 * @throws NoSuchRepositoryEntryException if a repository entry with the primary key could not be found 596 */ 597 public RepositoryEntry findByPrimaryKey(long repositoryEntryId) 598 throws com.liferay.portal.exception.NoSuchRepositoryEntryException; 599 600 /** 601 * Returns the repository entry with the primary key or returns <code>null</code> if it could not be found. 602 * 603 * @param repositoryEntryId the primary key of the repository entry 604 * @return the repository entry, or <code>null</code> if a repository entry with the primary key could not be found 605 */ 606 public RepositoryEntry fetchByPrimaryKey(long repositoryEntryId); 607 608 @Override 609 public java.util.Map<java.io.Serializable, RepositoryEntry> fetchByPrimaryKeys( 610 java.util.Set<java.io.Serializable> primaryKeys); 611 612 /** 613 * Returns all the repository entries. 614 * 615 * @return the repository entries 616 */ 617 public java.util.List<RepositoryEntry> findAll(); 618 619 /** 620 * Returns a range of all the repository entries. 621 * 622 * <p> 623 * 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. 624 * </p> 625 * 626 * @param start the lower bound of the range of repository entries 627 * @param end the upper bound of the range of repository entries (not inclusive) 628 * @return the range of repository entries 629 */ 630 public java.util.List<RepositoryEntry> findAll(int start, int end); 631 632 /** 633 * Returns an ordered range of all the repository entries. 634 * 635 * <p> 636 * 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. 637 * </p> 638 * 639 * @param start the lower bound of the range of repository entries 640 * @param end the upper bound of the range of repository entries (not inclusive) 641 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 642 * @return the ordered range of repository entries 643 */ 644 public java.util.List<RepositoryEntry> findAll(int start, int end, 645 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator); 646 647 /** 648 * Returns an ordered range of all the repository entries. 649 * 650 * <p> 651 * 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. 652 * </p> 653 * 654 * @param start the lower bound of the range of repository entries 655 * @param end the upper bound of the range of repository entries (not inclusive) 656 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 657 * @param retrieveFromCache whether to retrieve from the finder cache 658 * @return the ordered range of repository entries 659 */ 660 public java.util.List<RepositoryEntry> findAll(int start, int end, 661 com.liferay.portal.kernel.util.OrderByComparator<RepositoryEntry> orderByComparator, 662 boolean retrieveFromCache); 663 664 /** 665 * Removes all the repository entries from the database. 666 */ 667 public void removeAll(); 668 669 /** 670 * Returns the number of repository entries. 671 * 672 * @return the number of repository entries 673 */ 674 public int countAll(); 675 676 @Override 677 public java.util.Set<java.lang.String> getBadColumnNames(); 678 }