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 an ordered range of all the repositories where uuid = &#63;.
083            *
084            * <p>
085            * 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.
086            * </p>
087            *
088            * @param uuid the uuid
089            * @param start the lower bound of the range of repositories
090            * @param end the upper bound of the range of repositories (not inclusive)
091            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
092            * @param retrieveFromCache whether to retrieve from the finder cache
093            * @return the ordered range of matching repositories
094            */
095            public java.util.List<Repository> findByUuid(java.lang.String uuid,
096                    int start, int end,
097                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator,
098                    boolean retrieveFromCache);
099    
100            /**
101            * Returns the first repository in the ordered set where uuid = &#63;.
102            *
103            * @param uuid the uuid
104            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
105            * @return the first matching repository
106            * @throws NoSuchRepositoryException if a matching repository could not be found
107            */
108            public Repository findByUuid_First(java.lang.String uuid,
109                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator)
110                    throws com.liferay.portal.exception.NoSuchRepositoryException;
111    
112            /**
113            * Returns the first repository in the ordered set where uuid = &#63;.
114            *
115            * @param uuid the uuid
116            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
117            * @return the first matching repository, or <code>null</code> if a matching repository could not be found
118            */
119            public Repository fetchByUuid_First(java.lang.String uuid,
120                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator);
121    
122            /**
123            * Returns the last repository in the ordered set where uuid = &#63;.
124            *
125            * @param uuid the uuid
126            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
127            * @return the last matching repository
128            * @throws NoSuchRepositoryException if a matching repository could not be found
129            */
130            public Repository findByUuid_Last(java.lang.String uuid,
131                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator)
132                    throws com.liferay.portal.exception.NoSuchRepositoryException;
133    
134            /**
135            * Returns the last repository in the ordered set where uuid = &#63;.
136            *
137            * @param uuid the uuid
138            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
139            * @return the last matching repository, or <code>null</code> if a matching repository could not be found
140            */
141            public Repository fetchByUuid_Last(java.lang.String uuid,
142                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator);
143    
144            /**
145            * Returns the repositories before and after the current repository in the ordered set where uuid = &#63;.
146            *
147            * @param repositoryId the primary key of the current repository
148            * @param uuid the uuid
149            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
150            * @return the previous, current, and next repository
151            * @throws NoSuchRepositoryException if a repository with the primary key could not be found
152            */
153            public Repository[] findByUuid_PrevAndNext(long repositoryId,
154                    java.lang.String uuid,
155                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator)
156                    throws com.liferay.portal.exception.NoSuchRepositoryException;
157    
158            /**
159            * Removes all the repositories where uuid = &#63; from the database.
160            *
161            * @param uuid the uuid
162            */
163            public void removeByUuid(java.lang.String uuid);
164    
165            /**
166            * Returns the number of repositories where uuid = &#63;.
167            *
168            * @param uuid the uuid
169            * @return the number of matching repositories
170            */
171            public int countByUuid(java.lang.String uuid);
172    
173            /**
174            * Returns the repository where uuid = &#63; and groupId = &#63; or throws a {@link NoSuchRepositoryException} if it could not be found.
175            *
176            * @param uuid the uuid
177            * @param groupId the group ID
178            * @return the matching repository
179            * @throws NoSuchRepositoryException if a matching repository could not be found
180            */
181            public Repository findByUUID_G(java.lang.String uuid, long groupId)
182                    throws com.liferay.portal.exception.NoSuchRepositoryException;
183    
184            /**
185            * Returns the repository where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
186            *
187            * @param uuid the uuid
188            * @param groupId the group ID
189            * @return the matching repository, or <code>null</code> if a matching repository could not be found
190            */
191            public Repository fetchByUUID_G(java.lang.String uuid, long groupId);
192    
193            /**
194            * 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.
195            *
196            * @param uuid the uuid
197            * @param groupId the group ID
198            * @param retrieveFromCache whether to retrieve from the finder cache
199            * @return the matching repository, or <code>null</code> if a matching repository could not be found
200            */
201            public Repository fetchByUUID_G(java.lang.String uuid, long groupId,
202                    boolean retrieveFromCache);
203    
204            /**
205            * Removes the repository where uuid = &#63; and groupId = &#63; from the database.
206            *
207            * @param uuid the uuid
208            * @param groupId the group ID
209            * @return the repository that was removed
210            */
211            public Repository removeByUUID_G(java.lang.String uuid, long groupId)
212                    throws com.liferay.portal.exception.NoSuchRepositoryException;
213    
214            /**
215            * Returns the number of repositories where uuid = &#63; and groupId = &#63;.
216            *
217            * @param uuid the uuid
218            * @param groupId the group ID
219            * @return the number of matching repositories
220            */
221            public int countByUUID_G(java.lang.String uuid, long groupId);
222    
223            /**
224            * Returns all the repositories where uuid = &#63; and companyId = &#63;.
225            *
226            * @param uuid the uuid
227            * @param companyId the company ID
228            * @return the matching repositories
229            */
230            public java.util.List<Repository> findByUuid_C(java.lang.String uuid,
231                    long companyId);
232    
233            /**
234            * Returns a range of all the repositories where uuid = &#63; and companyId = &#63;.
235            *
236            * <p>
237            * 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.
238            * </p>
239            *
240            * @param uuid the uuid
241            * @param companyId the company ID
242            * @param start the lower bound of the range of repositories
243            * @param end the upper bound of the range of repositories (not inclusive)
244            * @return the range of matching repositories
245            */
246            public java.util.List<Repository> findByUuid_C(java.lang.String uuid,
247                    long companyId, int start, int end);
248    
249            /**
250            * Returns an ordered range of all the repositories where uuid = &#63; and companyId = &#63;.
251            *
252            * <p>
253            * 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.
254            * </p>
255            *
256            * @param uuid the uuid
257            * @param companyId the company ID
258            * @param start the lower bound of the range of repositories
259            * @param end the upper bound of the range of repositories (not inclusive)
260            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
261            * @return the ordered range of matching repositories
262            */
263            public java.util.List<Repository> findByUuid_C(java.lang.String uuid,
264                    long companyId, int start, int end,
265                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator);
266    
267            /**
268            * Returns an ordered range of all the repositories where uuid = &#63; and companyId = &#63;.
269            *
270            * <p>
271            * 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.
272            * </p>
273            *
274            * @param uuid the uuid
275            * @param companyId the company ID
276            * @param start the lower bound of the range of repositories
277            * @param end the upper bound of the range of repositories (not inclusive)
278            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
279            * @param retrieveFromCache whether to retrieve from the finder cache
280            * @return the ordered range of matching repositories
281            */
282            public java.util.List<Repository> findByUuid_C(java.lang.String uuid,
283                    long companyId, int start, int end,
284                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator,
285                    boolean retrieveFromCache);
286    
287            /**
288            * Returns the first repository in the ordered set where uuid = &#63; and companyId = &#63;.
289            *
290            * @param uuid the uuid
291            * @param companyId the company ID
292            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
293            * @return the first matching repository
294            * @throws NoSuchRepositoryException if a matching repository could not be found
295            */
296            public Repository findByUuid_C_First(java.lang.String uuid, long companyId,
297                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator)
298                    throws com.liferay.portal.exception.NoSuchRepositoryException;
299    
300            /**
301            * Returns the first repository in the ordered set where uuid = &#63; and companyId = &#63;.
302            *
303            * @param uuid the uuid
304            * @param companyId the company ID
305            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
306            * @return the first matching repository, or <code>null</code> if a matching repository could not be found
307            */
308            public Repository fetchByUuid_C_First(java.lang.String uuid,
309                    long companyId,
310                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator);
311    
312            /**
313            * Returns the last repository in the ordered set where uuid = &#63; and companyId = &#63;.
314            *
315            * @param uuid the uuid
316            * @param companyId the company ID
317            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
318            * @return the last matching repository
319            * @throws NoSuchRepositoryException if a matching repository could not be found
320            */
321            public Repository findByUuid_C_Last(java.lang.String uuid, long companyId,
322                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator)
323                    throws com.liferay.portal.exception.NoSuchRepositoryException;
324    
325            /**
326            * Returns the last repository in the ordered set where uuid = &#63; and companyId = &#63;.
327            *
328            * @param uuid the uuid
329            * @param companyId the company ID
330            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
331            * @return the last matching repository, or <code>null</code> if a matching repository could not be found
332            */
333            public Repository fetchByUuid_C_Last(java.lang.String uuid, long companyId,
334                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator);
335    
336            /**
337            * Returns the repositories before and after the current repository in the ordered set where uuid = &#63; and companyId = &#63;.
338            *
339            * @param repositoryId the primary key of the current repository
340            * @param uuid the uuid
341            * @param companyId the company ID
342            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
343            * @return the previous, current, and next repository
344            * @throws NoSuchRepositoryException if a repository with the primary key could not be found
345            */
346            public Repository[] findByUuid_C_PrevAndNext(long repositoryId,
347                    java.lang.String uuid, long companyId,
348                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator)
349                    throws com.liferay.portal.exception.NoSuchRepositoryException;
350    
351            /**
352            * Removes all the repositories where uuid = &#63; and companyId = &#63; from the database.
353            *
354            * @param uuid the uuid
355            * @param companyId the company ID
356            */
357            public void removeByUuid_C(java.lang.String uuid, long companyId);
358    
359            /**
360            * Returns the number of repositories where uuid = &#63; and companyId = &#63;.
361            *
362            * @param uuid the uuid
363            * @param companyId the company ID
364            * @return the number of matching repositories
365            */
366            public int countByUuid_C(java.lang.String uuid, long companyId);
367    
368            /**
369            * Returns all the repositories where groupId = &#63;.
370            *
371            * @param groupId the group ID
372            * @return the matching repositories
373            */
374            public java.util.List<Repository> findByGroupId(long groupId);
375    
376            /**
377            * Returns a range of all the repositories where groupId = &#63;.
378            *
379            * <p>
380            * 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.
381            * </p>
382            *
383            * @param groupId the group ID
384            * @param start the lower bound of the range of repositories
385            * @param end the upper bound of the range of repositories (not inclusive)
386            * @return the range of matching repositories
387            */
388            public java.util.List<Repository> findByGroupId(long groupId, int start,
389                    int end);
390    
391            /**
392            * Returns an ordered range of all the repositories where groupId = &#63;.
393            *
394            * <p>
395            * 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.
396            * </p>
397            *
398            * @param groupId the group ID
399            * @param start the lower bound of the range of repositories
400            * @param end the upper bound of the range of repositories (not inclusive)
401            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
402            * @return the ordered range of matching repositories
403            */
404            public java.util.List<Repository> findByGroupId(long groupId, int start,
405                    int end,
406                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator);
407    
408            /**
409            * Returns an ordered range of all the repositories where groupId = &#63;.
410            *
411            * <p>
412            * 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.
413            * </p>
414            *
415            * @param groupId the group ID
416            * @param start the lower bound of the range of repositories
417            * @param end the upper bound of the range of repositories (not inclusive)
418            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
419            * @param retrieveFromCache whether to retrieve from the finder cache
420            * @return the ordered range of matching repositories
421            */
422            public java.util.List<Repository> findByGroupId(long groupId, int start,
423                    int end,
424                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator,
425                    boolean retrieveFromCache);
426    
427            /**
428            * Returns the first repository in the ordered set where groupId = &#63;.
429            *
430            * @param groupId the group ID
431            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
432            * @return the first matching repository
433            * @throws NoSuchRepositoryException if a matching repository could not be found
434            */
435            public Repository findByGroupId_First(long groupId,
436                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator)
437                    throws com.liferay.portal.exception.NoSuchRepositoryException;
438    
439            /**
440            * Returns the first repository in the ordered set where groupId = &#63;.
441            *
442            * @param groupId the group ID
443            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
444            * @return the first matching repository, or <code>null</code> if a matching repository could not be found
445            */
446            public Repository fetchByGroupId_First(long groupId,
447                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator);
448    
449            /**
450            * Returns the last repository in the ordered set where groupId = &#63;.
451            *
452            * @param groupId the group ID
453            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
454            * @return the last matching repository
455            * @throws NoSuchRepositoryException if a matching repository could not be found
456            */
457            public Repository findByGroupId_Last(long groupId,
458                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator)
459                    throws com.liferay.portal.exception.NoSuchRepositoryException;
460    
461            /**
462            * Returns the last repository in the ordered set where groupId = &#63;.
463            *
464            * @param groupId the group ID
465            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
466            * @return the last matching repository, or <code>null</code> if a matching repository could not be found
467            */
468            public Repository fetchByGroupId_Last(long groupId,
469                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator);
470    
471            /**
472            * Returns the repositories before and after the current repository in the ordered set where groupId = &#63;.
473            *
474            * @param repositoryId the primary key of the current repository
475            * @param groupId the group ID
476            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
477            * @return the previous, current, and next repository
478            * @throws NoSuchRepositoryException if a repository with the primary key could not be found
479            */
480            public Repository[] findByGroupId_PrevAndNext(long repositoryId,
481                    long groupId,
482                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator)
483                    throws com.liferay.portal.exception.NoSuchRepositoryException;
484    
485            /**
486            * Removes all the repositories where groupId = &#63; from the database.
487            *
488            * @param groupId the group ID
489            */
490            public void removeByGroupId(long groupId);
491    
492            /**
493            * Returns the number of repositories where groupId = &#63;.
494            *
495            * @param groupId the group ID
496            * @return the number of matching repositories
497            */
498            public int countByGroupId(long groupId);
499    
500            /**
501            * Returns the repository where groupId = &#63; and name = &#63; and portletId = &#63; or throws a {@link NoSuchRepositoryException} if it could not be found.
502            *
503            * @param groupId the group ID
504            * @param name the name
505            * @param portletId the portlet ID
506            * @return the matching repository
507            * @throws NoSuchRepositoryException if a matching repository could not be found
508            */
509            public Repository findByG_N_P(long groupId, java.lang.String name,
510                    java.lang.String portletId)
511                    throws com.liferay.portal.exception.NoSuchRepositoryException;
512    
513            /**
514            * 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.
515            *
516            * @param groupId the group ID
517            * @param name the name
518            * @param portletId the portlet ID
519            * @return the matching repository, or <code>null</code> if a matching repository could not be found
520            */
521            public Repository fetchByG_N_P(long groupId, java.lang.String name,
522                    java.lang.String portletId);
523    
524            /**
525            * 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.
526            *
527            * @param groupId the group ID
528            * @param name the name
529            * @param portletId the portlet ID
530            * @param retrieveFromCache whether to retrieve from the finder cache
531            * @return the matching repository, or <code>null</code> if a matching repository could not be found
532            */
533            public Repository fetchByG_N_P(long groupId, java.lang.String name,
534                    java.lang.String portletId, boolean retrieveFromCache);
535    
536            /**
537            * Removes the repository where groupId = &#63; and name = &#63; and portletId = &#63; from the database.
538            *
539            * @param groupId the group ID
540            * @param name the name
541            * @param portletId the portlet ID
542            * @return the repository that was removed
543            */
544            public Repository removeByG_N_P(long groupId, java.lang.String name,
545                    java.lang.String portletId)
546                    throws com.liferay.portal.exception.NoSuchRepositoryException;
547    
548            /**
549            * Returns the number of repositories where groupId = &#63; and name = &#63; and portletId = &#63;.
550            *
551            * @param groupId the group ID
552            * @param name the name
553            * @param portletId the portlet ID
554            * @return the number of matching repositories
555            */
556            public int countByG_N_P(long groupId, java.lang.String name,
557                    java.lang.String portletId);
558    
559            /**
560            * Caches the repository in the entity cache if it is enabled.
561            *
562            * @param repository the repository
563            */
564            public void cacheResult(Repository repository);
565    
566            /**
567            * Caches the repositories in the entity cache if it is enabled.
568            *
569            * @param repositories the repositories
570            */
571            public void cacheResult(java.util.List<Repository> repositories);
572    
573            /**
574            * Creates a new repository with the primary key. Does not add the repository to the database.
575            *
576            * @param repositoryId the primary key for the new repository
577            * @return the new repository
578            */
579            public Repository create(long repositoryId);
580    
581            /**
582            * Removes the repository with the primary key from the database. Also notifies the appropriate model listeners.
583            *
584            * @param repositoryId the primary key of the repository
585            * @return the repository that was removed
586            * @throws NoSuchRepositoryException if a repository with the primary key could not be found
587            */
588            public Repository remove(long repositoryId)
589                    throws com.liferay.portal.exception.NoSuchRepositoryException;
590    
591            public Repository updateImpl(Repository repository);
592    
593            /**
594            * Returns the repository with the primary key or throws a {@link NoSuchRepositoryException} if it could not be found.
595            *
596            * @param repositoryId the primary key of the repository
597            * @return the repository
598            * @throws NoSuchRepositoryException if a repository with the primary key could not be found
599            */
600            public Repository findByPrimaryKey(long repositoryId)
601                    throws com.liferay.portal.exception.NoSuchRepositoryException;
602    
603            /**
604            * Returns the repository with the primary key or returns <code>null</code> if it could not be found.
605            *
606            * @param repositoryId the primary key of the repository
607            * @return the repository, or <code>null</code> if a repository with the primary key could not be found
608            */
609            public Repository fetchByPrimaryKey(long repositoryId);
610    
611            @Override
612            public java.util.Map<java.io.Serializable, Repository> fetchByPrimaryKeys(
613                    java.util.Set<java.io.Serializable> primaryKeys);
614    
615            /**
616            * Returns all the repositories.
617            *
618            * @return the repositories
619            */
620            public java.util.List<Repository> findAll();
621    
622            /**
623            * Returns a range of all the repositories.
624            *
625            * <p>
626            * 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.
627            * </p>
628            *
629            * @param start the lower bound of the range of repositories
630            * @param end the upper bound of the range of repositories (not inclusive)
631            * @return the range of repositories
632            */
633            public java.util.List<Repository> findAll(int start, int end);
634    
635            /**
636            * Returns an ordered range of all the repositories.
637            *
638            * <p>
639            * 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.
640            * </p>
641            *
642            * @param start the lower bound of the range of repositories
643            * @param end the upper bound of the range of repositories (not inclusive)
644            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
645            * @return the ordered range of repositories
646            */
647            public java.util.List<Repository> findAll(int start, int end,
648                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator);
649    
650            /**
651            * Returns an ordered range of all the repositories.
652            *
653            * <p>
654            * 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.
655            * </p>
656            *
657            * @param start the lower bound of the range of repositories
658            * @param end the upper bound of the range of repositories (not inclusive)
659            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
660            * @param retrieveFromCache whether to retrieve from the finder cache
661            * @return the ordered range of repositories
662            */
663            public java.util.List<Repository> findAll(int start, int end,
664                    com.liferay.portal.kernel.util.OrderByComparator<Repository> orderByComparator,
665                    boolean retrieveFromCache);
666    
667            /**
668            * Removes all the repositories from the database.
669            */
670            public void removeAll();
671    
672            /**
673            * Returns the number of repositories.
674            *
675            * @return the number of repositories
676            */
677            public int countAll();
678    
679            @Override
680            public java.util.Set<java.lang.String> getBadColumnNames();
681    }