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