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