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