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