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