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.Repository;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the repository service. This utility wraps {@link RepositoryPersistenceImpl} 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 RepositoryPersistence
036     * @see RepositoryPersistenceImpl
037     * @generated
038     */
039    public class RepositoryUtil {
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(Repository repository) {
057                    getPersistence().clearCache(repository);
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<Repository> 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<Repository> 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<Repository> 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)
098             */
099            public static Repository update(Repository repository)
100                    throws SystemException {
101                    return getPersistence().update(repository);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
106             */
107            public static Repository update(Repository repository,
108                    ServiceContext serviceContext) throws SystemException {
109                    return getPersistence().update(repository, serviceContext);
110            }
111    
112            /**
113            * Caches the repository in the entity cache if it is enabled.
114            *
115            * @param repository the repository
116            */
117            public static void cacheResult(
118                    com.liferay.portal.model.Repository repository) {
119                    getPersistence().cacheResult(repository);
120            }
121    
122            /**
123            * Caches the repositories in the entity cache if it is enabled.
124            *
125            * @param repositories the repositories
126            */
127            public static void cacheResult(
128                    java.util.List<com.liferay.portal.model.Repository> repositories) {
129                    getPersistence().cacheResult(repositories);
130            }
131    
132            /**
133            * Creates a new repository with the primary key. Does not add the repository to the database.
134            *
135            * @param repositoryId the primary key for the new repository
136            * @return the new repository
137            */
138            public static com.liferay.portal.model.Repository create(long repositoryId) {
139                    return getPersistence().create(repositoryId);
140            }
141    
142            /**
143            * Removes the repository with the primary key from the database. Also notifies the appropriate model listeners.
144            *
145            * @param repositoryId the primary key of the repository
146            * @return the repository that was removed
147            * @throws com.liferay.portal.NoSuchRepositoryException if a repository with the primary key could not be found
148            * @throws SystemException if a system exception occurred
149            */
150            public static com.liferay.portal.model.Repository remove(long repositoryId)
151                    throws com.liferay.portal.NoSuchRepositoryException,
152                            com.liferay.portal.kernel.exception.SystemException {
153                    return getPersistence().remove(repositoryId);
154            }
155    
156            public static com.liferay.portal.model.Repository updateImpl(
157                    com.liferay.portal.model.Repository repository)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return getPersistence().updateImpl(repository);
160            }
161    
162            /**
163            * Returns the repository with the primary key or throws a {@link com.liferay.portal.NoSuchRepositoryException} if it could not be found.
164            *
165            * @param repositoryId the primary key of the repository
166            * @return the repository
167            * @throws com.liferay.portal.NoSuchRepositoryException if a repository with the primary key could not be found
168            * @throws SystemException if a system exception occurred
169            */
170            public static com.liferay.portal.model.Repository findByPrimaryKey(
171                    long repositoryId)
172                    throws com.liferay.portal.NoSuchRepositoryException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return getPersistence().findByPrimaryKey(repositoryId);
175            }
176    
177            /**
178            * Returns the repository with the primary key or returns <code>null</code> if it could not be found.
179            *
180            * @param repositoryId the primary key of the repository
181            * @return the repository, or <code>null</code> if a repository with the primary key could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public static com.liferay.portal.model.Repository fetchByPrimaryKey(
185                    long repositoryId)
186                    throws com.liferay.portal.kernel.exception.SystemException {
187                    return getPersistence().fetchByPrimaryKey(repositoryId);
188            }
189    
190            /**
191            * Returns all the repositories where uuid = &#63;.
192            *
193            * @param uuid the uuid
194            * @return the matching repositories
195            * @throws SystemException if a system exception occurred
196            */
197            public static java.util.List<com.liferay.portal.model.Repository> findByUuid(
198                    java.lang.String uuid)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return getPersistence().findByUuid(uuid);
201            }
202    
203            /**
204            * Returns a range of all the repositories where uuid = &#63;.
205            *
206            * <p>
207            * 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.
208            * </p>
209            *
210            * @param uuid the uuid
211            * @param start the lower bound of the range of repositories
212            * @param end the upper bound of the range of repositories (not inclusive)
213            * @return the range of matching repositories
214            * @throws SystemException if a system exception occurred
215            */
216            public static java.util.List<com.liferay.portal.model.Repository> findByUuid(
217                    java.lang.String uuid, int start, int end)
218                    throws com.liferay.portal.kernel.exception.SystemException {
219                    return getPersistence().findByUuid(uuid, start, end);
220            }
221    
222            /**
223            * Returns an ordered range of all the repositories where uuid = &#63;.
224            *
225            * <p>
226            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
227            * </p>
228            *
229            * @param uuid the uuid
230            * @param start the lower bound of the range of repositories
231            * @param end the upper bound of the range of repositories (not inclusive)
232            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
233            * @return the ordered range of matching repositories
234            * @throws SystemException if a system exception occurred
235            */
236            public static java.util.List<com.liferay.portal.model.Repository> findByUuid(
237                    java.lang.String uuid, int start, int end,
238                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
241            }
242    
243            /**
244            * Returns the first repository in the ordered set where uuid = &#63;.
245            *
246            * @param uuid the uuid
247            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
248            * @return the first matching repository
249            * @throws com.liferay.portal.NoSuchRepositoryException if a matching repository could not be found
250            * @throws SystemException if a system exception occurred
251            */
252            public static com.liferay.portal.model.Repository findByUuid_First(
253                    java.lang.String uuid,
254                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255                    throws com.liferay.portal.NoSuchRepositoryException,
256                            com.liferay.portal.kernel.exception.SystemException {
257                    return getPersistence().findByUuid_First(uuid, orderByComparator);
258            }
259    
260            /**
261            * Returns the first repository in the ordered set where uuid = &#63;.
262            *
263            * @param uuid the uuid
264            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
265            * @return the first matching repository, or <code>null</code> if a matching repository could not be found
266            * @throws SystemException if a system exception occurred
267            */
268            public static com.liferay.portal.model.Repository fetchByUuid_First(
269                    java.lang.String uuid,
270                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
273            }
274    
275            /**
276            * Returns the last repository in the ordered set where uuid = &#63;.
277            *
278            * @param uuid the uuid
279            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
280            * @return the last matching repository
281            * @throws com.liferay.portal.NoSuchRepositoryException if a matching repository could not be found
282            * @throws SystemException if a system exception occurred
283            */
284            public static com.liferay.portal.model.Repository findByUuid_Last(
285                    java.lang.String uuid,
286                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
287                    throws com.liferay.portal.NoSuchRepositoryException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
290            }
291    
292            /**
293            * Returns the last repository in the ordered set where uuid = &#63;.
294            *
295            * @param uuid the uuid
296            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
297            * @return the last matching repository, or <code>null</code> if a matching repository could not be found
298            * @throws SystemException if a system exception occurred
299            */
300            public static com.liferay.portal.model.Repository fetchByUuid_Last(
301                    java.lang.String uuid,
302                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
303                    throws com.liferay.portal.kernel.exception.SystemException {
304                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
305            }
306    
307            /**
308            * Returns the repositories before and after the current repository in the ordered set where uuid = &#63;.
309            *
310            * @param repositoryId the primary key of the current repository
311            * @param uuid the uuid
312            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
313            * @return the previous, current, and next repository
314            * @throws com.liferay.portal.NoSuchRepositoryException if a repository with the primary key could not be found
315            * @throws SystemException if a system exception occurred
316            */
317            public static com.liferay.portal.model.Repository[] findByUuid_PrevAndNext(
318                    long repositoryId, java.lang.String uuid,
319                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320                    throws com.liferay.portal.NoSuchRepositoryException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    return getPersistence()
323                                       .findByUuid_PrevAndNext(repositoryId, uuid, orderByComparator);
324            }
325    
326            /**
327            * Returns the repository where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portal.NoSuchRepositoryException} if it could not be found.
328            *
329            * @param uuid the uuid
330            * @param groupId the group ID
331            * @return the matching repository
332            * @throws com.liferay.portal.NoSuchRepositoryException if a matching repository could not be found
333            * @throws SystemException if a system exception occurred
334            */
335            public static com.liferay.portal.model.Repository findByUUID_G(
336                    java.lang.String uuid, long groupId)
337                    throws com.liferay.portal.NoSuchRepositoryException,
338                            com.liferay.portal.kernel.exception.SystemException {
339                    return getPersistence().findByUUID_G(uuid, groupId);
340            }
341    
342            /**
343            * Returns the repository where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
344            *
345            * @param uuid the uuid
346            * @param groupId the group ID
347            * @return the matching repository, or <code>null</code> if a matching repository could not be found
348            * @throws SystemException if a system exception occurred
349            */
350            public static com.liferay.portal.model.Repository fetchByUUID_G(
351                    java.lang.String uuid, long groupId)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return getPersistence().fetchByUUID_G(uuid, groupId);
354            }
355    
356            /**
357            * Returns the repository where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
358            *
359            * @param uuid the uuid
360            * @param groupId the group ID
361            * @param retrieveFromCache whether to use the finder cache
362            * @return the matching repository, or <code>null</code> if a matching repository could not be found
363            * @throws SystemException if a system exception occurred
364            */
365            public static com.liferay.portal.model.Repository fetchByUUID_G(
366                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
369            }
370    
371            /**
372            * Returns all the repositories where uuid = &#63; and companyId = &#63;.
373            *
374            * @param uuid the uuid
375            * @param companyId the company ID
376            * @return the matching repositories
377            * @throws SystemException if a system exception occurred
378            */
379            public static java.util.List<com.liferay.portal.model.Repository> findByUuid_C(
380                    java.lang.String uuid, long companyId)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return getPersistence().findByUuid_C(uuid, companyId);
383            }
384    
385            /**
386            * Returns a range of all the repositories where uuid = &#63; and companyId = &#63;.
387            *
388            * <p>
389            * 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.
390            * </p>
391            *
392            * @param uuid the uuid
393            * @param companyId the company ID
394            * @param start the lower bound of the range of repositories
395            * @param end the upper bound of the range of repositories (not inclusive)
396            * @return the range of matching repositories
397            * @throws SystemException if a system exception occurred
398            */
399            public static java.util.List<com.liferay.portal.model.Repository> findByUuid_C(
400                    java.lang.String uuid, long companyId, int start, int end)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
403            }
404    
405            /**
406            * Returns an ordered range of all the repositories where uuid = &#63; and companyId = &#63;.
407            *
408            * <p>
409            * 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.
410            * </p>
411            *
412            * @param uuid the uuid
413            * @param companyId the company ID
414            * @param start the lower bound of the range of repositories
415            * @param end the upper bound of the range of repositories (not inclusive)
416            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
417            * @return the ordered range of matching repositories
418            * @throws SystemException if a system exception occurred
419            */
420            public static java.util.List<com.liferay.portal.model.Repository> findByUuid_C(
421                    java.lang.String uuid, long companyId, int start, int end,
422                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    return getPersistence()
425                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
426            }
427    
428            /**
429            * Returns the first repository in the ordered set where uuid = &#63; and companyId = &#63;.
430            *
431            * @param uuid the uuid
432            * @param companyId the company ID
433            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
434            * @return the first matching repository
435            * @throws com.liferay.portal.NoSuchRepositoryException if a matching repository could not be found
436            * @throws SystemException if a system exception occurred
437            */
438            public static com.liferay.portal.model.Repository findByUuid_C_First(
439                    java.lang.String uuid, long companyId,
440                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
441                    throws com.liferay.portal.NoSuchRepositoryException,
442                            com.liferay.portal.kernel.exception.SystemException {
443                    return getPersistence()
444                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
445            }
446    
447            /**
448            * Returns the first repository in the ordered set where uuid = &#63; and companyId = &#63;.
449            *
450            * @param uuid the uuid
451            * @param companyId the company ID
452            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
453            * @return the first matching repository, or <code>null</code> if a matching repository could not be found
454            * @throws SystemException if a system exception occurred
455            */
456            public static com.liferay.portal.model.Repository fetchByUuid_C_First(
457                    java.lang.String uuid, long companyId,
458                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
459                    throws com.liferay.portal.kernel.exception.SystemException {
460                    return getPersistence()
461                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
462            }
463    
464            /**
465            * Returns the last repository in the ordered set where uuid = &#63; and companyId = &#63;.
466            *
467            * @param uuid the uuid
468            * @param companyId the company ID
469            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
470            * @return the last matching repository
471            * @throws com.liferay.portal.NoSuchRepositoryException if a matching repository could not be found
472            * @throws SystemException if a system exception occurred
473            */
474            public static com.liferay.portal.model.Repository findByUuid_C_Last(
475                    java.lang.String uuid, long companyId,
476                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
477                    throws com.liferay.portal.NoSuchRepositoryException,
478                            com.liferay.portal.kernel.exception.SystemException {
479                    return getPersistence()
480                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
481            }
482    
483            /**
484            * Returns the last repository in the ordered set where uuid = &#63; and companyId = &#63;.
485            *
486            * @param uuid the uuid
487            * @param companyId the company ID
488            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
489            * @return the last matching repository, or <code>null</code> if a matching repository could not be found
490            * @throws SystemException if a system exception occurred
491            */
492            public static com.liferay.portal.model.Repository fetchByUuid_C_Last(
493                    java.lang.String uuid, long companyId,
494                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
495                    throws com.liferay.portal.kernel.exception.SystemException {
496                    return getPersistence()
497                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
498            }
499    
500            /**
501            * Returns the repositories before and after the current repository in the ordered set where uuid = &#63; and companyId = &#63;.
502            *
503            * @param repositoryId the primary key of the current repository
504            * @param uuid the uuid
505            * @param companyId the company ID
506            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
507            * @return the previous, current, and next repository
508            * @throws com.liferay.portal.NoSuchRepositoryException if a repository with the primary key could not be found
509            * @throws SystemException if a system exception occurred
510            */
511            public static com.liferay.portal.model.Repository[] findByUuid_C_PrevAndNext(
512                    long repositoryId, java.lang.String uuid, long companyId,
513                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
514                    throws com.liferay.portal.NoSuchRepositoryException,
515                            com.liferay.portal.kernel.exception.SystemException {
516                    return getPersistence()
517                                       .findByUuid_C_PrevAndNext(repositoryId, uuid, companyId,
518                            orderByComparator);
519            }
520    
521            /**
522            * Returns all the repositories where groupId = &#63;.
523            *
524            * @param groupId the group ID
525            * @return the matching repositories
526            * @throws SystemException if a system exception occurred
527            */
528            public static java.util.List<com.liferay.portal.model.Repository> findByGroupId(
529                    long groupId)
530                    throws com.liferay.portal.kernel.exception.SystemException {
531                    return getPersistence().findByGroupId(groupId);
532            }
533    
534            /**
535            * Returns a range of all the repositories where groupId = &#63;.
536            *
537            * <p>
538            * 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.
539            * </p>
540            *
541            * @param groupId the group ID
542            * @param start the lower bound of the range of repositories
543            * @param end the upper bound of the range of repositories (not inclusive)
544            * @return the range of matching repositories
545            * @throws SystemException if a system exception occurred
546            */
547            public static java.util.List<com.liferay.portal.model.Repository> findByGroupId(
548                    long groupId, int start, int end)
549                    throws com.liferay.portal.kernel.exception.SystemException {
550                    return getPersistence().findByGroupId(groupId, start, end);
551            }
552    
553            /**
554            * Returns an ordered range of all the repositories where groupId = &#63;.
555            *
556            * <p>
557            * 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.
558            * </p>
559            *
560            * @param groupId the group ID
561            * @param start the lower bound of the range of repositories
562            * @param end the upper bound of the range of repositories (not inclusive)
563            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
564            * @return the ordered range of matching repositories
565            * @throws SystemException if a system exception occurred
566            */
567            public static java.util.List<com.liferay.portal.model.Repository> findByGroupId(
568                    long groupId, int start, int end,
569                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
570                    throws com.liferay.portal.kernel.exception.SystemException {
571                    return getPersistence()
572                                       .findByGroupId(groupId, start, end, orderByComparator);
573            }
574    
575            /**
576            * Returns the first repository in the ordered set where groupId = &#63;.
577            *
578            * @param groupId the group ID
579            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
580            * @return the first matching repository
581            * @throws com.liferay.portal.NoSuchRepositoryException if a matching repository could not be found
582            * @throws SystemException if a system exception occurred
583            */
584            public static com.liferay.portal.model.Repository findByGroupId_First(
585                    long groupId,
586                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
587                    throws com.liferay.portal.NoSuchRepositoryException,
588                            com.liferay.portal.kernel.exception.SystemException {
589                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
590            }
591    
592            /**
593            * Returns the first repository in the ordered set where groupId = &#63;.
594            *
595            * @param groupId the group ID
596            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
597            * @return the first matching repository, or <code>null</code> if a matching repository could not be found
598            * @throws SystemException if a system exception occurred
599            */
600            public static com.liferay.portal.model.Repository fetchByGroupId_First(
601                    long groupId,
602                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
603                    throws com.liferay.portal.kernel.exception.SystemException {
604                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
605            }
606    
607            /**
608            * Returns the last repository in the ordered set where groupId = &#63;.
609            *
610            * @param groupId the group ID
611            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
612            * @return the last matching repository
613            * @throws com.liferay.portal.NoSuchRepositoryException if a matching repository could not be found
614            * @throws SystemException if a system exception occurred
615            */
616            public static com.liferay.portal.model.Repository findByGroupId_Last(
617                    long groupId,
618                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
619                    throws com.liferay.portal.NoSuchRepositoryException,
620                            com.liferay.portal.kernel.exception.SystemException {
621                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
622            }
623    
624            /**
625            * Returns the last repository in the ordered set where groupId = &#63;.
626            *
627            * @param groupId the group ID
628            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
629            * @return the last matching repository, or <code>null</code> if a matching repository could not be found
630            * @throws SystemException if a system exception occurred
631            */
632            public static com.liferay.portal.model.Repository fetchByGroupId_Last(
633                    long groupId,
634                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
635                    throws com.liferay.portal.kernel.exception.SystemException {
636                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
637            }
638    
639            /**
640            * Returns the repositories before and after the current repository in the ordered set where groupId = &#63;.
641            *
642            * @param repositoryId the primary key of the current repository
643            * @param groupId the group ID
644            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
645            * @return the previous, current, and next repository
646            * @throws com.liferay.portal.NoSuchRepositoryException if a repository with the primary key could not be found
647            * @throws SystemException if a system exception occurred
648            */
649            public static com.liferay.portal.model.Repository[] findByGroupId_PrevAndNext(
650                    long repositoryId, long groupId,
651                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
652                    throws com.liferay.portal.NoSuchRepositoryException,
653                            com.liferay.portal.kernel.exception.SystemException {
654                    return getPersistence()
655                                       .findByGroupId_PrevAndNext(repositoryId, groupId,
656                            orderByComparator);
657            }
658    
659            /**
660            * Returns the repository where groupId = &#63; and name = &#63; and portletId = &#63; or throws a {@link com.liferay.portal.NoSuchRepositoryException} if it could not be found.
661            *
662            * @param groupId the group ID
663            * @param name the name
664            * @param portletId the portlet ID
665            * @return the matching repository
666            * @throws com.liferay.portal.NoSuchRepositoryException if a matching repository could not be found
667            * @throws SystemException if a system exception occurred
668            */
669            public static com.liferay.portal.model.Repository findByG_N_P(
670                    long groupId, java.lang.String name, java.lang.String portletId)
671                    throws com.liferay.portal.NoSuchRepositoryException,
672                            com.liferay.portal.kernel.exception.SystemException {
673                    return getPersistence().findByG_N_P(groupId, name, portletId);
674            }
675    
676            /**
677            * Returns the repository where groupId = &#63; and name = &#63; and portletId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
678            *
679            * @param groupId the group ID
680            * @param name the name
681            * @param portletId the portlet ID
682            * @return the matching repository, or <code>null</code> if a matching repository could not be found
683            * @throws SystemException if a system exception occurred
684            */
685            public static com.liferay.portal.model.Repository fetchByG_N_P(
686                    long groupId, java.lang.String name, java.lang.String portletId)
687                    throws com.liferay.portal.kernel.exception.SystemException {
688                    return getPersistence().fetchByG_N_P(groupId, name, portletId);
689            }
690    
691            /**
692            * Returns the repository where groupId = &#63; and name = &#63; and portletId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
693            *
694            * @param groupId the group ID
695            * @param name the name
696            * @param portletId the portlet ID
697            * @param retrieveFromCache whether to use the finder cache
698            * @return the matching repository, or <code>null</code> if a matching repository could not be found
699            * @throws SystemException if a system exception occurred
700            */
701            public static com.liferay.portal.model.Repository fetchByG_N_P(
702                    long groupId, java.lang.String name, java.lang.String portletId,
703                    boolean retrieveFromCache)
704                    throws com.liferay.portal.kernel.exception.SystemException {
705                    return getPersistence()
706                                       .fetchByG_N_P(groupId, name, portletId, retrieveFromCache);
707            }
708    
709            /**
710            * Returns all the repositories.
711            *
712            * @return the repositories
713            * @throws SystemException if a system exception occurred
714            */
715            public static java.util.List<com.liferay.portal.model.Repository> findAll()
716                    throws com.liferay.portal.kernel.exception.SystemException {
717                    return getPersistence().findAll();
718            }
719    
720            /**
721            * Returns a range of all the repositories.
722            *
723            * <p>
724            * 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.
725            * </p>
726            *
727            * @param start the lower bound of the range of repositories
728            * @param end the upper bound of the range of repositories (not inclusive)
729            * @return the range of repositories
730            * @throws SystemException if a system exception occurred
731            */
732            public static java.util.List<com.liferay.portal.model.Repository> findAll(
733                    int start, int end)
734                    throws com.liferay.portal.kernel.exception.SystemException {
735                    return getPersistence().findAll(start, end);
736            }
737    
738            /**
739            * Returns an ordered range of all the repositories.
740            *
741            * <p>
742            * 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.
743            * </p>
744            *
745            * @param start the lower bound of the range of repositories
746            * @param end the upper bound of the range of repositories (not inclusive)
747            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
748            * @return the ordered range of repositories
749            * @throws SystemException if a system exception occurred
750            */
751            public static java.util.List<com.liferay.portal.model.Repository> findAll(
752                    int start, int end,
753                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
754                    throws com.liferay.portal.kernel.exception.SystemException {
755                    return getPersistence().findAll(start, end, orderByComparator);
756            }
757    
758            /**
759            * Removes all the repositories where uuid = &#63; from the database.
760            *
761            * @param uuid the uuid
762            * @throws SystemException if a system exception occurred
763            */
764            public static void removeByUuid(java.lang.String uuid)
765                    throws com.liferay.portal.kernel.exception.SystemException {
766                    getPersistence().removeByUuid(uuid);
767            }
768    
769            /**
770            * Removes the repository where uuid = &#63; and groupId = &#63; from the database.
771            *
772            * @param uuid the uuid
773            * @param groupId the group ID
774            * @return the repository that was removed
775            * @throws SystemException if a system exception occurred
776            */
777            public static com.liferay.portal.model.Repository removeByUUID_G(
778                    java.lang.String uuid, long groupId)
779                    throws com.liferay.portal.NoSuchRepositoryException,
780                            com.liferay.portal.kernel.exception.SystemException {
781                    return getPersistence().removeByUUID_G(uuid, groupId);
782            }
783    
784            /**
785            * Removes all the repositories where uuid = &#63; and companyId = &#63; from the database.
786            *
787            * @param uuid the uuid
788            * @param companyId the company ID
789            * @throws SystemException if a system exception occurred
790            */
791            public static void removeByUuid_C(java.lang.String uuid, long companyId)
792                    throws com.liferay.portal.kernel.exception.SystemException {
793                    getPersistence().removeByUuid_C(uuid, companyId);
794            }
795    
796            /**
797            * Removes all the repositories where groupId = &#63; from the database.
798            *
799            * @param groupId the group ID
800            * @throws SystemException if a system exception occurred
801            */
802            public static void removeByGroupId(long groupId)
803                    throws com.liferay.portal.kernel.exception.SystemException {
804                    getPersistence().removeByGroupId(groupId);
805            }
806    
807            /**
808            * Removes the repository where groupId = &#63; and name = &#63; and portletId = &#63; from the database.
809            *
810            * @param groupId the group ID
811            * @param name the name
812            * @param portletId the portlet ID
813            * @return the repository that was removed
814            * @throws SystemException if a system exception occurred
815            */
816            public static com.liferay.portal.model.Repository removeByG_N_P(
817                    long groupId, java.lang.String name, java.lang.String portletId)
818                    throws com.liferay.portal.NoSuchRepositoryException,
819                            com.liferay.portal.kernel.exception.SystemException {
820                    return getPersistence().removeByG_N_P(groupId, name, portletId);
821            }
822    
823            /**
824            * Removes all the repositories from the database.
825            *
826            * @throws SystemException if a system exception occurred
827            */
828            public static void removeAll()
829                    throws com.liferay.portal.kernel.exception.SystemException {
830                    getPersistence().removeAll();
831            }
832    
833            /**
834            * Returns the number of repositories where uuid = &#63;.
835            *
836            * @param uuid the uuid
837            * @return the number of matching repositories
838            * @throws SystemException if a system exception occurred
839            */
840            public static int countByUuid(java.lang.String uuid)
841                    throws com.liferay.portal.kernel.exception.SystemException {
842                    return getPersistence().countByUuid(uuid);
843            }
844    
845            /**
846            * Returns the number of repositories where uuid = &#63; and groupId = &#63;.
847            *
848            * @param uuid the uuid
849            * @param groupId the group ID
850            * @return the number of matching repositories
851            * @throws SystemException if a system exception occurred
852            */
853            public static int countByUUID_G(java.lang.String uuid, long groupId)
854                    throws com.liferay.portal.kernel.exception.SystemException {
855                    return getPersistence().countByUUID_G(uuid, groupId);
856            }
857    
858            /**
859            * Returns the number of repositories where uuid = &#63; and companyId = &#63;.
860            *
861            * @param uuid the uuid
862            * @param companyId the company ID
863            * @return the number of matching repositories
864            * @throws SystemException if a system exception occurred
865            */
866            public static int countByUuid_C(java.lang.String uuid, long companyId)
867                    throws com.liferay.portal.kernel.exception.SystemException {
868                    return getPersistence().countByUuid_C(uuid, companyId);
869            }
870    
871            /**
872            * Returns the number of repositories where groupId = &#63;.
873            *
874            * @param groupId the group ID
875            * @return the number of matching repositories
876            * @throws SystemException if a system exception occurred
877            */
878            public static int countByGroupId(long groupId)
879                    throws com.liferay.portal.kernel.exception.SystemException {
880                    return getPersistence().countByGroupId(groupId);
881            }
882    
883            /**
884            * Returns the number of repositories where groupId = &#63; and name = &#63; and portletId = &#63;.
885            *
886            * @param groupId the group ID
887            * @param name the name
888            * @param portletId the portlet ID
889            * @return the number of matching repositories
890            * @throws SystemException if a system exception occurred
891            */
892            public static int countByG_N_P(long groupId, java.lang.String name,
893                    java.lang.String portletId)
894                    throws com.liferay.portal.kernel.exception.SystemException {
895                    return getPersistence().countByG_N_P(groupId, name, portletId);
896            }
897    
898            /**
899            * Returns the number of repositories.
900            *
901            * @return the number of repositories
902            * @throws SystemException if a system exception occurred
903            */
904            public static int countAll()
905                    throws com.liferay.portal.kernel.exception.SystemException {
906                    return getPersistence().countAll();
907            }
908    
909            public static RepositoryPersistence getPersistence() {
910                    if (_persistence == null) {
911                            _persistence = (RepositoryPersistence)PortalBeanLocatorUtil.locate(RepositoryPersistence.class.getName());
912    
913                            ReferenceRegistry.registerReference(RepositoryUtil.class,
914                                    "_persistence");
915                    }
916    
917                    return _persistence;
918            }
919    
920            /**
921             * @deprecated
922             */
923            public void setPersistence(RepositoryPersistence persistence) {
924            }
925    
926            private static RepositoryPersistence _persistence;
927    }