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