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