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