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