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