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