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.RepositoryEntry;
018    
019    /**
020     * The persistence interface for the repository entry 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 RepositoryEntryPersistenceImpl
028     * @see RepositoryEntryUtil
029     * @generated
030     */
031    public interface RepositoryEntryPersistence extends BasePersistence<RepositoryEntry> {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * Never modify or reference this interface directly. Always use {@link RepositoryEntryUtil} to access the repository entry persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
036             */
037    
038            /**
039            * Caches the repository entry in the entity cache if it is enabled.
040            *
041            * @param repositoryEntry the repository entry
042            */
043            public void cacheResult(
044                    com.liferay.portal.model.RepositoryEntry repositoryEntry);
045    
046            /**
047            * Caches the repository entries in the entity cache if it is enabled.
048            *
049            * @param repositoryEntries the repository entries
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portal.model.RepositoryEntry> repositoryEntries);
053    
054            /**
055            * Creates a new repository entry with the primary key. Does not add the repository entry to the database.
056            *
057            * @param repositoryEntryId the primary key for the new repository entry
058            * @return the new repository entry
059            */
060            public com.liferay.portal.model.RepositoryEntry create(
061                    long repositoryEntryId);
062    
063            /**
064            * Removes the repository entry with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param repositoryEntryId the primary key of the repository entry
067            * @return the repository entry that was removed
068            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a repository entry with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public com.liferay.portal.model.RepositoryEntry remove(
072                    long repositoryEntryId)
073                    throws com.liferay.portal.NoSuchRepositoryEntryException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            public com.liferay.portal.model.RepositoryEntry updateImpl(
077                    com.liferay.portal.model.RepositoryEntry repositoryEntry, boolean merge)
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            /**
081            * Returns the repository entry with the primary key or throws a {@link com.liferay.portal.NoSuchRepositoryEntryException} if it could not be found.
082            *
083            * @param repositoryEntryId the primary key of the repository entry
084            * @return the repository entry
085            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a repository entry with the primary key could not be found
086            * @throws SystemException if a system exception occurred
087            */
088            public com.liferay.portal.model.RepositoryEntry findByPrimaryKey(
089                    long repositoryEntryId)
090                    throws com.liferay.portal.NoSuchRepositoryEntryException,
091                            com.liferay.portal.kernel.exception.SystemException;
092    
093            /**
094            * Returns the repository entry with the primary key or returns <code>null</code> if it could not be found.
095            *
096            * @param repositoryEntryId the primary key of the repository entry
097            * @return the repository entry, or <code>null</code> if a repository entry with the primary key could not be found
098            * @throws SystemException if a system exception occurred
099            */
100            public com.liferay.portal.model.RepositoryEntry fetchByPrimaryKey(
101                    long repositoryEntryId)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            /**
105            * Returns all the repository entries where uuid = &#63;.
106            *
107            * @param uuid the uuid
108            * @return the matching repository entries
109            * @throws SystemException if a system exception occurred
110            */
111            public java.util.List<com.liferay.portal.model.RepositoryEntry> findByUuid(
112                    java.lang.String uuid)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns a range of all the repository entries where uuid = &#63;.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param uuid the uuid
123            * @param start the lower bound of the range of repository entries
124            * @param end the upper bound of the range of repository entries (not inclusive)
125            * @return the range of matching repository entries
126            * @throws SystemException if a system exception occurred
127            */
128            public java.util.List<com.liferay.portal.model.RepositoryEntry> findByUuid(
129                    java.lang.String uuid, int start, int end)
130                    throws com.liferay.portal.kernel.exception.SystemException;
131    
132            /**
133            * Returns an ordered range of all the repository entries where uuid = &#63;.
134            *
135            * <p>
136            * 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.
137            * </p>
138            *
139            * @param uuid the uuid
140            * @param start the lower bound of the range of repository entries
141            * @param end the upper bound of the range of repository entries (not inclusive)
142            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
143            * @return the ordered range of matching repository entries
144            * @throws SystemException if a system exception occurred
145            */
146            public java.util.List<com.liferay.portal.model.RepositoryEntry> findByUuid(
147                    java.lang.String uuid, int start, int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            /**
152            * Returns the first repository entry in the ordered set where uuid = &#63;.
153            *
154            * <p>
155            * 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.
156            * </p>
157            *
158            * @param uuid the uuid
159            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
160            * @return the first matching repository entry
161            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
162            * @throws SystemException if a system exception occurred
163            */
164            public com.liferay.portal.model.RepositoryEntry findByUuid_First(
165                    java.lang.String uuid,
166                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167                    throws com.liferay.portal.NoSuchRepositoryEntryException,
168                            com.liferay.portal.kernel.exception.SystemException;
169    
170            /**
171            * Returns the last repository entry in the ordered set where uuid = &#63;.
172            *
173            * <p>
174            * 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.
175            * </p>
176            *
177            * @param uuid the uuid
178            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
179            * @return the last matching repository entry
180            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
181            * @throws SystemException if a system exception occurred
182            */
183            public com.liferay.portal.model.RepositoryEntry findByUuid_Last(
184                    java.lang.String uuid,
185                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186                    throws com.liferay.portal.NoSuchRepositoryEntryException,
187                            com.liferay.portal.kernel.exception.SystemException;
188    
189            /**
190            * Returns the repository entries before and after the current repository entry in the ordered set where uuid = &#63;.
191            *
192            * <p>
193            * 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.
194            * </p>
195            *
196            * @param repositoryEntryId the primary key of the current repository entry
197            * @param uuid the uuid
198            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
199            * @return the previous, current, and next repository entry
200            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a repository entry with the primary key could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portal.model.RepositoryEntry[] findByUuid_PrevAndNext(
204                    long repositoryEntryId, java.lang.String uuid,
205                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206                    throws com.liferay.portal.NoSuchRepositoryEntryException,
207                            com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns the repository entry where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portal.NoSuchRepositoryEntryException} if it could not be found.
211            *
212            * @param uuid the uuid
213            * @param groupId the group ID
214            * @return the matching repository entry
215            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portal.model.RepositoryEntry findByUUID_G(
219                    java.lang.String uuid, long groupId)
220                    throws com.liferay.portal.NoSuchRepositoryEntryException,
221                            com.liferay.portal.kernel.exception.SystemException;
222    
223            /**
224            * 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.
225            *
226            * @param uuid the uuid
227            * @param groupId the group ID
228            * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found
229            * @throws SystemException if a system exception occurred
230            */
231            public com.liferay.portal.model.RepositoryEntry fetchByUUID_G(
232                    java.lang.String uuid, long groupId)
233                    throws com.liferay.portal.kernel.exception.SystemException;
234    
235            /**
236            * 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.
237            *
238            * @param uuid the uuid
239            * @param groupId the group ID
240            * @param retrieveFromCache whether to use the finder cache
241            * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found
242            * @throws SystemException if a system exception occurred
243            */
244            public com.liferay.portal.model.RepositoryEntry fetchByUUID_G(
245                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
246                    throws com.liferay.portal.kernel.exception.SystemException;
247    
248            /**
249            * Returns all the repository entries where repositoryId = &#63;.
250            *
251            * @param repositoryId the repository ID
252            * @return the matching repository entries
253            * @throws SystemException if a system exception occurred
254            */
255            public java.util.List<com.liferay.portal.model.RepositoryEntry> findByRepositoryId(
256                    long repositoryId)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            /**
260            * Returns a range of all the repository entries where repositoryId = &#63;.
261            *
262            * <p>
263            * 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.
264            * </p>
265            *
266            * @param repositoryId the repository ID
267            * @param start the lower bound of the range of repository entries
268            * @param end the upper bound of the range of repository entries (not inclusive)
269            * @return the range of matching repository entries
270            * @throws SystemException if a system exception occurred
271            */
272            public java.util.List<com.liferay.portal.model.RepositoryEntry> findByRepositoryId(
273                    long repositoryId, int start, int end)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * Returns an ordered range of all the repository entries where repositoryId = &#63;.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param repositoryId the repository ID
284            * @param start the lower bound of the range of repository entries
285            * @param end the upper bound of the range of repository entries (not inclusive)
286            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
287            * @return the ordered range of matching repository entries
288            * @throws SystemException if a system exception occurred
289            */
290            public java.util.List<com.liferay.portal.model.RepositoryEntry> findByRepositoryId(
291                    long repositoryId, int start, int end,
292                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293                    throws com.liferay.portal.kernel.exception.SystemException;
294    
295            /**
296            * Returns the first repository entry in the ordered set where repositoryId = &#63;.
297            *
298            * <p>
299            * 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.
300            * </p>
301            *
302            * @param repositoryId the repository ID
303            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
304            * @return the first matching repository entry
305            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
306            * @throws SystemException if a system exception occurred
307            */
308            public com.liferay.portal.model.RepositoryEntry findByRepositoryId_First(
309                    long repositoryId,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.NoSuchRepositoryEntryException,
312                            com.liferay.portal.kernel.exception.SystemException;
313    
314            /**
315            * Returns the last repository entry in the ordered set where repositoryId = &#63;.
316            *
317            * <p>
318            * 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.
319            * </p>
320            *
321            * @param repositoryId the repository ID
322            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
323            * @return the last matching repository entry
324            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
325            * @throws SystemException if a system exception occurred
326            */
327            public com.liferay.portal.model.RepositoryEntry findByRepositoryId_Last(
328                    long repositoryId,
329                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
330                    throws com.liferay.portal.NoSuchRepositoryEntryException,
331                            com.liferay.portal.kernel.exception.SystemException;
332    
333            /**
334            * Returns the repository entries before and after the current repository entry in the ordered set where repositoryId = &#63;.
335            *
336            * <p>
337            * 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.
338            * </p>
339            *
340            * @param repositoryEntryId the primary key of the current repository entry
341            * @param repositoryId the repository ID
342            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
343            * @return the previous, current, and next repository entry
344            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a repository entry with the primary key could not be found
345            * @throws SystemException if a system exception occurred
346            */
347            public com.liferay.portal.model.RepositoryEntry[] findByRepositoryId_PrevAndNext(
348                    long repositoryEntryId, long repositoryId,
349                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
350                    throws com.liferay.portal.NoSuchRepositoryEntryException,
351                            com.liferay.portal.kernel.exception.SystemException;
352    
353            /**
354            * Returns the repository entry where repositoryId = &#63; and mappedId = &#63; or throws a {@link com.liferay.portal.NoSuchRepositoryEntryException} if it could not be found.
355            *
356            * @param repositoryId the repository ID
357            * @param mappedId the mapped ID
358            * @return the matching repository entry
359            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
360            * @throws SystemException if a system exception occurred
361            */
362            public com.liferay.portal.model.RepositoryEntry findByR_M(
363                    long repositoryId, java.lang.String mappedId)
364                    throws com.liferay.portal.NoSuchRepositoryEntryException,
365                            com.liferay.portal.kernel.exception.SystemException;
366    
367            /**
368            * 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.
369            *
370            * @param repositoryId the repository ID
371            * @param mappedId the mapped ID
372            * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found
373            * @throws SystemException if a system exception occurred
374            */
375            public com.liferay.portal.model.RepositoryEntry fetchByR_M(
376                    long repositoryId, java.lang.String mappedId)
377                    throws com.liferay.portal.kernel.exception.SystemException;
378    
379            /**
380            * 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.
381            *
382            * @param repositoryId the repository ID
383            * @param mappedId the mapped ID
384            * @param retrieveFromCache whether to use the finder cache
385            * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found
386            * @throws SystemException if a system exception occurred
387            */
388            public com.liferay.portal.model.RepositoryEntry fetchByR_M(
389                    long repositoryId, java.lang.String mappedId, boolean retrieveFromCache)
390                    throws com.liferay.portal.kernel.exception.SystemException;
391    
392            /**
393            * Returns all the repository entries.
394            *
395            * @return the repository entries
396            * @throws SystemException if a system exception occurred
397            */
398            public java.util.List<com.liferay.portal.model.RepositoryEntry> findAll()
399                    throws com.liferay.portal.kernel.exception.SystemException;
400    
401            /**
402            * Returns a range of all the repository entries.
403            *
404            * <p>
405            * 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.
406            * </p>
407            *
408            * @param start the lower bound of the range of repository entries
409            * @param end the upper bound of the range of repository entries (not inclusive)
410            * @return the range of repository entries
411            * @throws SystemException if a system exception occurred
412            */
413            public java.util.List<com.liferay.portal.model.RepositoryEntry> findAll(
414                    int start, int end)
415                    throws com.liferay.portal.kernel.exception.SystemException;
416    
417            /**
418            * Returns an ordered range of all the repository entries.
419            *
420            * <p>
421            * 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.
422            * </p>
423            *
424            * @param start the lower bound of the range of repository entries
425            * @param end the upper bound of the range of repository entries (not inclusive)
426            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
427            * @return the ordered range of repository entries
428            * @throws SystemException if a system exception occurred
429            */
430            public java.util.List<com.liferay.portal.model.RepositoryEntry> findAll(
431                    int start, int end,
432                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
433                    throws com.liferay.portal.kernel.exception.SystemException;
434    
435            /**
436            * Removes all the repository entries where uuid = &#63; from the database.
437            *
438            * @param uuid the uuid
439            * @throws SystemException if a system exception occurred
440            */
441            public void removeByUuid(java.lang.String uuid)
442                    throws com.liferay.portal.kernel.exception.SystemException;
443    
444            /**
445            * Removes the repository entry where uuid = &#63; and groupId = &#63; from the database.
446            *
447            * @param uuid the uuid
448            * @param groupId the group ID
449            * @throws SystemException if a system exception occurred
450            */
451            public void removeByUUID_G(java.lang.String uuid, long groupId)
452                    throws com.liferay.portal.NoSuchRepositoryEntryException,
453                            com.liferay.portal.kernel.exception.SystemException;
454    
455            /**
456            * Removes all the repository entries where repositoryId = &#63; from the database.
457            *
458            * @param repositoryId the repository ID
459            * @throws SystemException if a system exception occurred
460            */
461            public void removeByRepositoryId(long repositoryId)
462                    throws com.liferay.portal.kernel.exception.SystemException;
463    
464            /**
465            * Removes the repository entry where repositoryId = &#63; and mappedId = &#63; from the database.
466            *
467            * @param repositoryId the repository ID
468            * @param mappedId the mapped ID
469            * @throws SystemException if a system exception occurred
470            */
471            public void removeByR_M(long repositoryId, java.lang.String mappedId)
472                    throws com.liferay.portal.NoSuchRepositoryEntryException,
473                            com.liferay.portal.kernel.exception.SystemException;
474    
475            /**
476            * Removes all the repository entries from the database.
477            *
478            * @throws SystemException if a system exception occurred
479            */
480            public void removeAll()
481                    throws com.liferay.portal.kernel.exception.SystemException;
482    
483            /**
484            * Returns the number of repository entries where uuid = &#63;.
485            *
486            * @param uuid the uuid
487            * @return the number of matching repository entries
488            * @throws SystemException if a system exception occurred
489            */
490            public int countByUuid(java.lang.String uuid)
491                    throws com.liferay.portal.kernel.exception.SystemException;
492    
493            /**
494            * Returns the number of repository entries where uuid = &#63; and groupId = &#63;.
495            *
496            * @param uuid the uuid
497            * @param groupId the group ID
498            * @return the number of matching repository entries
499            * @throws SystemException if a system exception occurred
500            */
501            public int countByUUID_G(java.lang.String uuid, long groupId)
502                    throws com.liferay.portal.kernel.exception.SystemException;
503    
504            /**
505            * Returns the number of repository entries where repositoryId = &#63;.
506            *
507            * @param repositoryId the repository ID
508            * @return the number of matching repository entries
509            * @throws SystemException if a system exception occurred
510            */
511            public int countByRepositoryId(long repositoryId)
512                    throws com.liferay.portal.kernel.exception.SystemException;
513    
514            /**
515            * Returns the number of repository entries where repositoryId = &#63; and mappedId = &#63;.
516            *
517            * @param repositoryId the repository ID
518            * @param mappedId the mapped ID
519            * @return the number of matching repository entries
520            * @throws SystemException if a system exception occurred
521            */
522            public int countByR_M(long repositoryId, java.lang.String mappedId)
523                    throws com.liferay.portal.kernel.exception.SystemException;
524    
525            /**
526            * Returns the number of repository entries.
527            *
528            * @return the number of repository entries
529            * @throws SystemException if a system exception occurred
530            */
531            public int countAll()
532                    throws com.liferay.portal.kernel.exception.SystemException;
533    }