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