001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.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 * <p> 249 * 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. 250 * </p> 251 * 252 * @param uuid the uuid 253 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 254 * @return the first matching repository entry 255 * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found 256 * @throws SystemException if a system exception occurred 257 */ 258 public static com.liferay.portal.model.RepositoryEntry findByUuid_First( 259 java.lang.String uuid, 260 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 261 throws com.liferay.portal.NoSuchRepositoryEntryException, 262 com.liferay.portal.kernel.exception.SystemException { 263 return getPersistence().findByUuid_First(uuid, orderByComparator); 264 } 265 266 /** 267 * Returns the last repository entry in the ordered set where uuid = ?. 268 * 269 * <p> 270 * 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. 271 * </p> 272 * 273 * @param uuid the uuid 274 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 275 * @return the last matching repository entry 276 * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found 277 * @throws SystemException if a system exception occurred 278 */ 279 public static com.liferay.portal.model.RepositoryEntry findByUuid_Last( 280 java.lang.String uuid, 281 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 282 throws com.liferay.portal.NoSuchRepositoryEntryException, 283 com.liferay.portal.kernel.exception.SystemException { 284 return getPersistence().findByUuid_Last(uuid, orderByComparator); 285 } 286 287 /** 288 * Returns the repository entries before and after the current repository entry in the ordered set where uuid = ?. 289 * 290 * <p> 291 * 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. 292 * </p> 293 * 294 * @param repositoryEntryId the primary key of the current repository entry 295 * @param uuid the uuid 296 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 297 * @return the previous, current, and next repository entry 298 * @throws com.liferay.portal.NoSuchRepositoryEntryException if a repository entry with the primary key could not be found 299 * @throws SystemException if a system exception occurred 300 */ 301 public static com.liferay.portal.model.RepositoryEntry[] findByUuid_PrevAndNext( 302 long repositoryEntryId, java.lang.String uuid, 303 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 304 throws com.liferay.portal.NoSuchRepositoryEntryException, 305 com.liferay.portal.kernel.exception.SystemException { 306 return getPersistence() 307 .findByUuid_PrevAndNext(repositoryEntryId, uuid, 308 orderByComparator); 309 } 310 311 /** 312 * Returns the repository entry where uuid = ? and groupId = ? or throws a {@link com.liferay.portal.NoSuchRepositoryEntryException} if it could not be found. 313 * 314 * @param uuid the uuid 315 * @param groupId the group ID 316 * @return the matching repository entry 317 * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found 318 * @throws SystemException if a system exception occurred 319 */ 320 public static com.liferay.portal.model.RepositoryEntry findByUUID_G( 321 java.lang.String uuid, long groupId) 322 throws com.liferay.portal.NoSuchRepositoryEntryException, 323 com.liferay.portal.kernel.exception.SystemException { 324 return getPersistence().findByUUID_G(uuid, groupId); 325 } 326 327 /** 328 * Returns the repository entry where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 329 * 330 * @param uuid the uuid 331 * @param groupId the group ID 332 * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found 333 * @throws SystemException if a system exception occurred 334 */ 335 public static com.liferay.portal.model.RepositoryEntry fetchByUUID_G( 336 java.lang.String uuid, long groupId) 337 throws com.liferay.portal.kernel.exception.SystemException { 338 return getPersistence().fetchByUUID_G(uuid, groupId); 339 } 340 341 /** 342 * Returns the repository entry where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 343 * 344 * @param uuid the uuid 345 * @param groupId the group ID 346 * @param retrieveFromCache whether to use the finder cache 347 * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found 348 * @throws SystemException if a system exception occurred 349 */ 350 public static com.liferay.portal.model.RepositoryEntry fetchByUUID_G( 351 java.lang.String uuid, long groupId, boolean retrieveFromCache) 352 throws com.liferay.portal.kernel.exception.SystemException { 353 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 354 } 355 356 /** 357 * Returns all the repository entries where repositoryId = ?. 358 * 359 * @param repositoryId the repository ID 360 * @return the matching repository entries 361 * @throws SystemException if a system exception occurred 362 */ 363 public static java.util.List<com.liferay.portal.model.RepositoryEntry> findByRepositoryId( 364 long repositoryId) 365 throws com.liferay.portal.kernel.exception.SystemException { 366 return getPersistence().findByRepositoryId(repositoryId); 367 } 368 369 /** 370 * Returns a range of all the repository entries where repositoryId = ?. 371 * 372 * <p> 373 * 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. 374 * </p> 375 * 376 * @param repositoryId the repository ID 377 * @param start the lower bound of the range of repository entries 378 * @param end the upper bound of the range of repository entries (not inclusive) 379 * @return the range of matching repository entries 380 * @throws SystemException if a system exception occurred 381 */ 382 public static java.util.List<com.liferay.portal.model.RepositoryEntry> findByRepositoryId( 383 long repositoryId, int start, int end) 384 throws com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence().findByRepositoryId(repositoryId, start, end); 386 } 387 388 /** 389 * Returns an ordered range of all the repository entries where repositoryId = ?. 390 * 391 * <p> 392 * 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. 393 * </p> 394 * 395 * @param repositoryId the repository ID 396 * @param start the lower bound of the range of repository entries 397 * @param end the upper bound of the range of repository entries (not inclusive) 398 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 399 * @return the ordered range of matching repository entries 400 * @throws SystemException if a system exception occurred 401 */ 402 public static java.util.List<com.liferay.portal.model.RepositoryEntry> findByRepositoryId( 403 long repositoryId, int start, int end, 404 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 405 throws com.liferay.portal.kernel.exception.SystemException { 406 return getPersistence() 407 .findByRepositoryId(repositoryId, start, end, 408 orderByComparator); 409 } 410 411 /** 412 * Returns the first repository entry in the ordered set where repositoryId = ?. 413 * 414 * <p> 415 * 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. 416 * </p> 417 * 418 * @param repositoryId the repository ID 419 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 420 * @return the first matching repository entry 421 * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found 422 * @throws SystemException if a system exception occurred 423 */ 424 public static com.liferay.portal.model.RepositoryEntry findByRepositoryId_First( 425 long repositoryId, 426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 427 throws com.liferay.portal.NoSuchRepositoryEntryException, 428 com.liferay.portal.kernel.exception.SystemException { 429 return getPersistence() 430 .findByRepositoryId_First(repositoryId, orderByComparator); 431 } 432 433 /** 434 * Returns the last repository entry in the ordered set where repositoryId = ?. 435 * 436 * <p> 437 * 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. 438 * </p> 439 * 440 * @param repositoryId the repository ID 441 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 442 * @return the last matching repository entry 443 * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found 444 * @throws SystemException if a system exception occurred 445 */ 446 public static com.liferay.portal.model.RepositoryEntry findByRepositoryId_Last( 447 long repositoryId, 448 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 449 throws com.liferay.portal.NoSuchRepositoryEntryException, 450 com.liferay.portal.kernel.exception.SystemException { 451 return getPersistence() 452 .findByRepositoryId_Last(repositoryId, orderByComparator); 453 } 454 455 /** 456 * Returns the repository entries before and after the current repository entry in the ordered set where repositoryId = ?. 457 * 458 * <p> 459 * 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. 460 * </p> 461 * 462 * @param repositoryEntryId the primary key of the current repository entry 463 * @param repositoryId the repository ID 464 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 465 * @return the previous, current, and next repository entry 466 * @throws com.liferay.portal.NoSuchRepositoryEntryException if a repository entry with the primary key could not be found 467 * @throws SystemException if a system exception occurred 468 */ 469 public static com.liferay.portal.model.RepositoryEntry[] findByRepositoryId_PrevAndNext( 470 long repositoryEntryId, long repositoryId, 471 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 472 throws com.liferay.portal.NoSuchRepositoryEntryException, 473 com.liferay.portal.kernel.exception.SystemException { 474 return getPersistence() 475 .findByRepositoryId_PrevAndNext(repositoryEntryId, 476 repositoryId, orderByComparator); 477 } 478 479 /** 480 * Returns the repository entry where repositoryId = ? and mappedId = ? or throws a {@link com.liferay.portal.NoSuchRepositoryEntryException} if it could not be found. 481 * 482 * @param repositoryId the repository ID 483 * @param mappedId the mapped ID 484 * @return the matching repository entry 485 * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found 486 * @throws SystemException if a system exception occurred 487 */ 488 public static com.liferay.portal.model.RepositoryEntry findByR_M( 489 long repositoryId, java.lang.String mappedId) 490 throws com.liferay.portal.NoSuchRepositoryEntryException, 491 com.liferay.portal.kernel.exception.SystemException { 492 return getPersistence().findByR_M(repositoryId, mappedId); 493 } 494 495 /** 496 * Returns the repository entry where repositoryId = ? and mappedId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 497 * 498 * @param repositoryId the repository ID 499 * @param mappedId the mapped ID 500 * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found 501 * @throws SystemException if a system exception occurred 502 */ 503 public static com.liferay.portal.model.RepositoryEntry fetchByR_M( 504 long repositoryId, java.lang.String mappedId) 505 throws com.liferay.portal.kernel.exception.SystemException { 506 return getPersistence().fetchByR_M(repositoryId, mappedId); 507 } 508 509 /** 510 * Returns the repository entry where repositoryId = ? and mappedId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 511 * 512 * @param repositoryId the repository ID 513 * @param mappedId the mapped ID 514 * @param retrieveFromCache whether to use the finder cache 515 * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found 516 * @throws SystemException if a system exception occurred 517 */ 518 public static com.liferay.portal.model.RepositoryEntry fetchByR_M( 519 long repositoryId, java.lang.String mappedId, boolean retrieveFromCache) 520 throws com.liferay.portal.kernel.exception.SystemException { 521 return getPersistence() 522 .fetchByR_M(repositoryId, mappedId, retrieveFromCache); 523 } 524 525 /** 526 * Returns all the repository entries. 527 * 528 * @return the repository entries 529 * @throws SystemException if a system exception occurred 530 */ 531 public static java.util.List<com.liferay.portal.model.RepositoryEntry> findAll() 532 throws com.liferay.portal.kernel.exception.SystemException { 533 return getPersistence().findAll(); 534 } 535 536 /** 537 * Returns a range of all the repository entries. 538 * 539 * <p> 540 * 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. 541 * </p> 542 * 543 * @param start the lower bound of the range of repository entries 544 * @param end the upper bound of the range of repository entries (not inclusive) 545 * @return the range of repository entries 546 * @throws SystemException if a system exception occurred 547 */ 548 public static java.util.List<com.liferay.portal.model.RepositoryEntry> findAll( 549 int start, int end) 550 throws com.liferay.portal.kernel.exception.SystemException { 551 return getPersistence().findAll(start, end); 552 } 553 554 /** 555 * Returns an ordered range of all the repository entries. 556 * 557 * <p> 558 * 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. 559 * </p> 560 * 561 * @param start the lower bound of the range of repository entries 562 * @param end the upper bound of the range of repository entries (not inclusive) 563 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 564 * @return the ordered range of repository entries 565 * @throws SystemException if a system exception occurred 566 */ 567 public static java.util.List<com.liferay.portal.model.RepositoryEntry> findAll( 568 int start, int end, 569 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 570 throws com.liferay.portal.kernel.exception.SystemException { 571 return getPersistence().findAll(start, end, orderByComparator); 572 } 573 574 /** 575 * Removes all the repository entries where uuid = ? from the database. 576 * 577 * @param uuid the uuid 578 * @throws SystemException if a system exception occurred 579 */ 580 public static void removeByUuid(java.lang.String uuid) 581 throws com.liferay.portal.kernel.exception.SystemException { 582 getPersistence().removeByUuid(uuid); 583 } 584 585 /** 586 * Removes the repository entry where uuid = ? and groupId = ? from the database. 587 * 588 * @param uuid the uuid 589 * @param groupId the group ID 590 * @throws SystemException if a system exception occurred 591 */ 592 public static void removeByUUID_G(java.lang.String uuid, long groupId) 593 throws com.liferay.portal.NoSuchRepositoryEntryException, 594 com.liferay.portal.kernel.exception.SystemException { 595 getPersistence().removeByUUID_G(uuid, groupId); 596 } 597 598 /** 599 * Removes all the repository entries where repositoryId = ? from the database. 600 * 601 * @param repositoryId the repository ID 602 * @throws SystemException if a system exception occurred 603 */ 604 public static void removeByRepositoryId(long repositoryId) 605 throws com.liferay.portal.kernel.exception.SystemException { 606 getPersistence().removeByRepositoryId(repositoryId); 607 } 608 609 /** 610 * Removes the repository entry where repositoryId = ? and mappedId = ? from the database. 611 * 612 * @param repositoryId the repository ID 613 * @param mappedId the mapped ID 614 * @throws SystemException if a system exception occurred 615 */ 616 public static void removeByR_M(long repositoryId, java.lang.String mappedId) 617 throws com.liferay.portal.NoSuchRepositoryEntryException, 618 com.liferay.portal.kernel.exception.SystemException { 619 getPersistence().removeByR_M(repositoryId, mappedId); 620 } 621 622 /** 623 * Removes all the repository entries from the database. 624 * 625 * @throws SystemException if a system exception occurred 626 */ 627 public static void removeAll() 628 throws com.liferay.portal.kernel.exception.SystemException { 629 getPersistence().removeAll(); 630 } 631 632 /** 633 * Returns the number of repository entries where uuid = ?. 634 * 635 * @param uuid the uuid 636 * @return the number of matching repository entries 637 * @throws SystemException if a system exception occurred 638 */ 639 public static int countByUuid(java.lang.String uuid) 640 throws com.liferay.portal.kernel.exception.SystemException { 641 return getPersistence().countByUuid(uuid); 642 } 643 644 /** 645 * Returns the number of repository entries where uuid = ? and groupId = ?. 646 * 647 * @param uuid the uuid 648 * @param groupId the group ID 649 * @return the number of matching repository entries 650 * @throws SystemException if a system exception occurred 651 */ 652 public static int countByUUID_G(java.lang.String uuid, long groupId) 653 throws com.liferay.portal.kernel.exception.SystemException { 654 return getPersistence().countByUUID_G(uuid, groupId); 655 } 656 657 /** 658 * Returns the number of repository entries where repositoryId = ?. 659 * 660 * @param repositoryId the repository ID 661 * @return the number of matching repository entries 662 * @throws SystemException if a system exception occurred 663 */ 664 public static int countByRepositoryId(long repositoryId) 665 throws com.liferay.portal.kernel.exception.SystemException { 666 return getPersistence().countByRepositoryId(repositoryId); 667 } 668 669 /** 670 * Returns the number of repository entries where repositoryId = ? and mappedId = ?. 671 * 672 * @param repositoryId the repository ID 673 * @param mappedId the mapped ID 674 * @return the number of matching repository entries 675 * @throws SystemException if a system exception occurred 676 */ 677 public static int countByR_M(long repositoryId, java.lang.String mappedId) 678 throws com.liferay.portal.kernel.exception.SystemException { 679 return getPersistence().countByR_M(repositoryId, mappedId); 680 } 681 682 /** 683 * Returns the number of repository entries. 684 * 685 * @return the number of repository entries 686 * @throws SystemException if a system exception occurred 687 */ 688 public static int countAll() 689 throws com.liferay.portal.kernel.exception.SystemException { 690 return getPersistence().countAll(); 691 } 692 693 public static RepositoryEntryPersistence getPersistence() { 694 if (_persistence == null) { 695 _persistence = (RepositoryEntryPersistence)PortalBeanLocatorUtil.locate(RepositoryEntryPersistence.class.getName()); 696 697 ReferenceRegistry.registerReference(RepositoryEntryUtil.class, 698 "_persistence"); 699 } 700 701 return _persistence; 702 } 703 704 public void setPersistence(RepositoryEntryPersistence persistence) { 705 _persistence = persistence; 706 707 ReferenceRegistry.registerReference(RepositoryEntryUtil.class, 708 "_persistence"); 709 } 710 711 private static RepositoryEntryPersistence _persistence; 712 }