001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.softwarecatalog.service.persistence;
016    
017    import com.liferay.portal.kernel.exception.SystemException;
018    import com.liferay.portal.service.persistence.BasePersistence;
019    
020    import com.liferay.portlet.softwarecatalog.model.SCProductEntry;
021    
022    /**
023     * The persistence interface for the s c product entry service.
024     *
025     * <p>
026     * Caching information and settings can be found in <code>portal.properties</code>
027     * </p>
028     *
029     * @author Brian Wing Shun Chan
030     * @see SCProductEntryPersistenceImpl
031     * @see SCProductEntryUtil
032     * @generated
033     */
034    public interface SCProductEntryPersistence extends BasePersistence<SCProductEntry> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link SCProductEntryUtil} to access the s c product entry persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Caches the s c product entry in the entity cache if it is enabled.
043            *
044            * @param scProductEntry the s c product entry to cache
045            */
046            public void cacheResult(
047                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry);
048    
049            /**
050            * Caches the s c product entries in the entity cache if it is enabled.
051            *
052            * @param scProductEntries the s c product entries to cache
053            */
054            public void cacheResult(
055                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries);
056    
057            /**
058            * Creates a new s c product entry with the primary key. Does not add the s c product entry to the database.
059            *
060            * @param productEntryId the primary key for the new s c product entry
061            * @return the new s c product entry
062            */
063            public com.liferay.portlet.softwarecatalog.model.SCProductEntry create(
064                    long productEntryId);
065    
066            /**
067            * Removes the s c product entry with the primary key from the database. Also notifies the appropriate model listeners.
068            *
069            * @param productEntryId the primary key of the s c product entry to remove
070            * @return the s c product entry that was removed
071            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found
072            * @throws SystemException if a system exception occurred
073            */
074            public com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
075                    long productEntryId)
076                    throws com.liferay.portal.kernel.exception.SystemException,
077                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
078    
079            public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateImpl(
080                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
081                    boolean merge)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    
084            /**
085            * Finds the s c product entry with the primary key or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductEntryException} if it could not be found.
086            *
087            * @param productEntryId the primary key of the s c product entry to find
088            * @return the s c product entry
089            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found
090            * @throws SystemException if a system exception occurred
091            */
092            public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByPrimaryKey(
093                    long productEntryId)
094                    throws com.liferay.portal.kernel.exception.SystemException,
095                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
096    
097            /**
098            * Finds the s c product entry with the primary key or returns <code>null</code> if it could not be found.
099            *
100            * @param productEntryId the primary key of the s c product entry to find
101            * @return the s c product entry, or <code>null</code> if a s c product entry with the primary key could not be found
102            * @throws SystemException if a system exception occurred
103            */
104            public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByPrimaryKey(
105                    long productEntryId)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            /**
109            * Finds all the s c product entries where groupId = &#63;.
110            *
111            * @param groupId the group ID to search with
112            * @return the matching s c product entries
113            * @throws SystemException if a system exception occurred
114            */
115            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
116                    long groupId)
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            /**
120            * Finds a range of all the s c product entries where groupId = &#63;.
121            *
122            * <p>
123            * 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.
124            * </p>
125            *
126            * @param groupId the group ID to search with
127            * @param start the lower bound of the range of s c product entries to return
128            * @param end the upper bound of the range of s c product entries to return (not inclusive)
129            * @return the range of matching s c product entries
130            * @throws SystemException if a system exception occurred
131            */
132            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
133                    long groupId, int start, int end)
134                    throws com.liferay.portal.kernel.exception.SystemException;
135    
136            /**
137            * Finds an ordered range of all the s c product entries where groupId = &#63;.
138            *
139            * <p>
140            * 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.
141            * </p>
142            *
143            * @param groupId the group ID to search with
144            * @param start the lower bound of the range of s c product entries to return
145            * @param end the upper bound of the range of s c product entries to return (not inclusive)
146            * @param orderByComparator the comparator to order the results by
147            * @return the ordered range of matching s c product entries
148            * @throws SystemException if a system exception occurred
149            */
150            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
151                    long groupId, int start, int end,
152                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153                    throws com.liferay.portal.kernel.exception.SystemException;
154    
155            /**
156            * Finds the first s c product entry in the ordered set where groupId = &#63;.
157            *
158            * <p>
159            * 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.
160            * </p>
161            *
162            * @param groupId the group ID to search with
163            * @param orderByComparator the comparator to order the set by
164            * @return the first matching s c product entry
165            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found
166            * @throws SystemException if a system exception occurred
167            */
168            public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_First(
169                    long groupId,
170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171                    throws com.liferay.portal.kernel.exception.SystemException,
172                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
173    
174            /**
175            * Finds the last s c product entry in the ordered set where groupId = &#63;.
176            *
177            * <p>
178            * 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.
179            * </p>
180            *
181            * @param groupId the group ID to search with
182            * @param orderByComparator the comparator to order the set by
183            * @return the last matching s c product entry
184            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last(
188                    long groupId,
189                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190                    throws com.liferay.portal.kernel.exception.SystemException,
191                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
192    
193            /**
194            * Finds the s c product entries before and after the current s c product entry in the ordered set where groupId = &#63;.
195            *
196            * <p>
197            * 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.
198            * </p>
199            *
200            * @param productEntryId the primary key of the current s c product entry
201            * @param groupId the group ID to search with
202            * @param orderByComparator the comparator to order the set by
203            * @return the previous, current, and next s c product entry
204            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found
205            * @throws SystemException if a system exception occurred
206            */
207            public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext(
208                    long productEntryId, long groupId,
209                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210                    throws com.liferay.portal.kernel.exception.SystemException,
211                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
212    
213            /**
214            * Filters by the user's permissions and finds all the s c product entries where groupId = &#63;.
215            *
216            * @param groupId the group ID to search with
217            * @return the matching s c product entries that the user has permission to view
218            * @throws SystemException if a system exception occurred
219            */
220            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId(
221                    long groupId)
222                    throws com.liferay.portal.kernel.exception.SystemException;
223    
224            /**
225            * Filters by the user's permissions and finds a range of all the s c product entries where groupId = &#63;.
226            *
227            * <p>
228            * 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.
229            * </p>
230            *
231            * @param groupId the group ID to search with
232            * @param start the lower bound of the range of s c product entries to return
233            * @param end the upper bound of the range of s c product entries to return (not inclusive)
234            * @return the range of matching s c product entries that the user has permission to view
235            * @throws SystemException if a system exception occurred
236            */
237            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId(
238                    long groupId, int start, int end)
239                    throws com.liferay.portal.kernel.exception.SystemException;
240    
241            /**
242            * Filters by the user's permissions and finds an ordered range of all the s c product entries where groupId = &#63;.
243            *
244            * <p>
245            * 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.
246            * </p>
247            *
248            * @param groupId the group ID to search with
249            * @param start the lower bound of the range of s c product entries to return
250            * @param end the upper bound of the range of s c product entries to return (not inclusive)
251            * @param orderByComparator the comparator to order the results by
252            * @return the ordered range of matching s c product entries that the user has permission to view
253            * @throws SystemException if a system exception occurred
254            */
255            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId(
256                    long groupId, int start, int end,
257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258                    throws com.liferay.portal.kernel.exception.SystemException;
259    
260            /**
261            * Filters the s c product entries before and after the current s c product entry in the ordered set where groupId = &#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 productEntryId the primary key of the current s c product entry
268            * @param groupId the group ID to search with
269            * @param orderByComparator the comparator to order the set by
270            * @return the previous, current, and next s c product entry
271            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found
272            * @throws SystemException if a system exception occurred
273            */
274            public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] filterFindByGroupId_PrevAndNext(
275                    long productEntryId, long groupId,
276                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277                    throws com.liferay.portal.kernel.exception.SystemException,
278                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
279    
280            /**
281            * Finds all the s c product entries where companyId = &#63;.
282            *
283            * @param companyId the company ID to search with
284            * @return the matching s c product entries
285            * @throws SystemException if a system exception occurred
286            */
287            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
288                    long companyId)
289                    throws com.liferay.portal.kernel.exception.SystemException;
290    
291            /**
292            * Finds a range of all the s c product entries where companyId = &#63;.
293            *
294            * <p>
295            * 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.
296            * </p>
297            *
298            * @param companyId the company ID to search with
299            * @param start the lower bound of the range of s c product entries to return
300            * @param end the upper bound of the range of s c product entries to return (not inclusive)
301            * @return the range of matching s c product entries
302            * @throws SystemException if a system exception occurred
303            */
304            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
305                    long companyId, int start, int end)
306                    throws com.liferay.portal.kernel.exception.SystemException;
307    
308            /**
309            * Finds an ordered range of all the s c product entries where companyId = &#63;.
310            *
311            * <p>
312            * 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.
313            * </p>
314            *
315            * @param companyId the company ID to search with
316            * @param start the lower bound of the range of s c product entries to return
317            * @param end the upper bound of the range of s c product entries to return (not inclusive)
318            * @param orderByComparator the comparator to order the results by
319            * @return the ordered range of matching s c product entries
320            * @throws SystemException if a system exception occurred
321            */
322            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
323                    long companyId, int start, int end,
324                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
325                    throws com.liferay.portal.kernel.exception.SystemException;
326    
327            /**
328            * Finds the first s c product entry in the ordered set where companyId = &#63;.
329            *
330            * <p>
331            * 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.
332            * </p>
333            *
334            * @param companyId the company ID to search with
335            * @param orderByComparator the comparator to order the set by
336            * @return the first matching s c product entry
337            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found
338            * @throws SystemException if a system exception occurred
339            */
340            public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_First(
341                    long companyId,
342                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
343                    throws com.liferay.portal.kernel.exception.SystemException,
344                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
345    
346            /**
347            * Finds the last s c product entry in the ordered set where companyId = &#63;.
348            *
349            * <p>
350            * 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.
351            * </p>
352            *
353            * @param companyId the company ID to search with
354            * @param orderByComparator the comparator to order the set by
355            * @return the last matching s c product entry
356            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found
357            * @throws SystemException if a system exception occurred
358            */
359            public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last(
360                    long companyId,
361                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
362                    throws com.liferay.portal.kernel.exception.SystemException,
363                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
364    
365            /**
366            * Finds the s c product entries before and after the current s c product entry in the ordered set where companyId = &#63;.
367            *
368            * <p>
369            * 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.
370            * </p>
371            *
372            * @param productEntryId the primary key of the current s c product entry
373            * @param companyId the company ID to search with
374            * @param orderByComparator the comparator to order the set by
375            * @return the previous, current, and next s c product entry
376            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found
377            * @throws SystemException if a system exception occurred
378            */
379            public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext(
380                    long productEntryId, long companyId,
381                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
382                    throws com.liferay.portal.kernel.exception.SystemException,
383                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
384    
385            /**
386            * Finds all the s c product entries where groupId = &#63; and userId = &#63;.
387            *
388            * @param groupId the group ID to search with
389            * @param userId the user ID to search with
390            * @return the matching s c product entries
391            * @throws SystemException if a system exception occurred
392            */
393            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
394                    long groupId, long userId)
395                    throws com.liferay.portal.kernel.exception.SystemException;
396    
397            /**
398            * Finds a range of all the s c product entries where groupId = &#63; and userId = &#63;.
399            *
400            * <p>
401            * 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.
402            * </p>
403            *
404            * @param groupId the group ID to search with
405            * @param userId the user ID to search with
406            * @param start the lower bound of the range of s c product entries to return
407            * @param end the upper bound of the range of s c product entries to return (not inclusive)
408            * @return the range of matching s c product entries
409            * @throws SystemException if a system exception occurred
410            */
411            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
412                    long groupId, long userId, int start, int end)
413                    throws com.liferay.portal.kernel.exception.SystemException;
414    
415            /**
416            * Finds an ordered range of all the s c product entries where groupId = &#63; and userId = &#63;.
417            *
418            * <p>
419            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
420            * </p>
421            *
422            * @param groupId the group ID to search with
423            * @param userId the user ID to search with
424            * @param start the lower bound of the range of s c product entries to return
425            * @param end the upper bound of the range of s c product entries to return (not inclusive)
426            * @param orderByComparator the comparator to order the results by
427            * @return the ordered range of matching s c product entries
428            * @throws SystemException if a system exception occurred
429            */
430            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
431                    long groupId, long userId, int start, int end,
432                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
433                    throws com.liferay.portal.kernel.exception.SystemException;
434    
435            /**
436            * Finds the first s c product entry in the ordered set where groupId = &#63; and userId = &#63;.
437            *
438            * <p>
439            * 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.
440            * </p>
441            *
442            * @param groupId the group ID to search with
443            * @param userId the user ID to search with
444            * @param orderByComparator the comparator to order the set by
445            * @return the first matching s c product entry
446            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found
447            * @throws SystemException if a system exception occurred
448            */
449            public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_First(
450                    long groupId, long userId,
451                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
452                    throws com.liferay.portal.kernel.exception.SystemException,
453                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
454    
455            /**
456            * Finds the last s c product entry in the ordered set where groupId = &#63; and userId = &#63;.
457            *
458            * <p>
459            * 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.
460            * </p>
461            *
462            * @param groupId the group ID to search with
463            * @param userId the user ID to search with
464            * @param orderByComparator the comparator to order the set by
465            * @return the last matching s c product entry
466            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found
467            * @throws SystemException if a system exception occurred
468            */
469            public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last(
470                    long groupId, long userId,
471                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
472                    throws com.liferay.portal.kernel.exception.SystemException,
473                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
474    
475            /**
476            * Finds the s c product entries before and after the current s c product entry in the ordered set where groupId = &#63; and userId = &#63;.
477            *
478            * <p>
479            * 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.
480            * </p>
481            *
482            * @param productEntryId the primary key of the current s c product entry
483            * @param groupId the group ID to search with
484            * @param userId the user ID to search with
485            * @param orderByComparator the comparator to order the set by
486            * @return the previous, current, and next s c product entry
487            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found
488            * @throws SystemException if a system exception occurred
489            */
490            public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext(
491                    long productEntryId, long groupId, long userId,
492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493                    throws com.liferay.portal.kernel.exception.SystemException,
494                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
495    
496            /**
497            * Filters by the user's permissions and finds all the s c product entries where groupId = &#63; and userId = &#63;.
498            *
499            * @param groupId the group ID to search with
500            * @param userId the user ID to search with
501            * @return the matching s c product entries that the user has permission to view
502            * @throws SystemException if a system exception occurred
503            */
504            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U(
505                    long groupId, long userId)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            /**
509            * Filters by the user's permissions and finds a range of all the s c product entries where groupId = &#63; and userId = &#63;.
510            *
511            * <p>
512            * 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.
513            * </p>
514            *
515            * @param groupId the group ID to search with
516            * @param userId the user ID to search with
517            * @param start the lower bound of the range of s c product entries to return
518            * @param end the upper bound of the range of s c product entries to return (not inclusive)
519            * @return the range of matching s c product entries that the user has permission to view
520            * @throws SystemException if a system exception occurred
521            */
522            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U(
523                    long groupId, long userId, int start, int end)
524                    throws com.liferay.portal.kernel.exception.SystemException;
525    
526            /**
527            * Filters by the user's permissions and finds an ordered range of all the s c product entries where groupId = &#63; and userId = &#63;.
528            *
529            * <p>
530            * 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.
531            * </p>
532            *
533            * @param groupId the group ID to search with
534            * @param userId the user ID to search with
535            * @param start the lower bound of the range of s c product entries to return
536            * @param end the upper bound of the range of s c product entries to return (not inclusive)
537            * @param orderByComparator the comparator to order the results by
538            * @return the ordered range of matching s c product entries that the user has permission to view
539            * @throws SystemException if a system exception occurred
540            */
541            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U(
542                    long groupId, long userId, int start, int end,
543                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
544                    throws com.liferay.portal.kernel.exception.SystemException;
545    
546            /**
547            * Filters the s c product entries before and after the current s c product entry in the ordered set where groupId = &#63; and userId = &#63;.
548            *
549            * <p>
550            * 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.
551            * </p>
552            *
553            * @param productEntryId the primary key of the current s c product entry
554            * @param groupId the group ID to search with
555            * @param userId the user ID to search with
556            * @param orderByComparator the comparator to order the set by
557            * @return the previous, current, and next s c product entry
558            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a s c product entry with the primary key could not be found
559            * @throws SystemException if a system exception occurred
560            */
561            public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] filterFindByG_U_PrevAndNext(
562                    long productEntryId, long groupId, long userId,
563                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
564                    throws com.liferay.portal.kernel.exception.SystemException,
565                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
566    
567            /**
568            * Finds the s c product entry where repoGroupId = &#63; and repoArtifactId = &#63; or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductEntryException} if it could not be found.
569            *
570            * @param repoGroupId the repo group ID to search with
571            * @param repoArtifactId the repo artifact ID to search with
572            * @return the matching s c product entry
573            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductEntryException if a matching s c product entry could not be found
574            * @throws SystemException if a system exception occurred
575            */
576            public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA(
577                    java.lang.String repoGroupId, java.lang.String repoArtifactId)
578                    throws com.liferay.portal.kernel.exception.SystemException,
579                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
580    
581            /**
582            * Finds the s c product entry where repoGroupId = &#63; and repoArtifactId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
583            *
584            * @param repoGroupId the repo group ID to search with
585            * @param repoArtifactId the repo artifact ID to search with
586            * @return the matching s c product entry, or <code>null</code> if a matching s c product entry could not be found
587            * @throws SystemException if a system exception occurred
588            */
589            public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
590                    java.lang.String repoGroupId, java.lang.String repoArtifactId)
591                    throws com.liferay.portal.kernel.exception.SystemException;
592    
593            /**
594            * Finds the s c product entry where repoGroupId = &#63; and repoArtifactId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
595            *
596            * @param repoGroupId the repo group ID to search with
597            * @param repoArtifactId the repo artifact ID to search with
598            * @return the matching s c product entry, or <code>null</code> if a matching s c product entry could not be found
599            * @throws SystemException if a system exception occurred
600            */
601            public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
602                    java.lang.String repoGroupId, java.lang.String repoArtifactId,
603                    boolean retrieveFromCache)
604                    throws com.liferay.portal.kernel.exception.SystemException;
605    
606            /**
607            * Finds all the s c product entries.
608            *
609            * @return the s c product entries
610            * @throws SystemException if a system exception occurred
611            */
612            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll()
613                    throws com.liferay.portal.kernel.exception.SystemException;
614    
615            /**
616            * Finds a range of all the s c product entries.
617            *
618            * <p>
619            * 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.
620            * </p>
621            *
622            * @param start the lower bound of the range of s c product entries to return
623            * @param end the upper bound of the range of s c product entries to return (not inclusive)
624            * @return the range of s c product entries
625            * @throws SystemException if a system exception occurred
626            */
627            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
628                    int start, int end)
629                    throws com.liferay.portal.kernel.exception.SystemException;
630    
631            /**
632            * Finds an ordered range of all the s c product entries.
633            *
634            * <p>
635            * 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.
636            * </p>
637            *
638            * @param start the lower bound of the range of s c product entries to return
639            * @param end the upper bound of the range of s c product entries to return (not inclusive)
640            * @param orderByComparator the comparator to order the results by
641            * @return the ordered range of s c product entries
642            * @throws SystemException if a system exception occurred
643            */
644            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
645                    int start, int end,
646                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
647                    throws com.liferay.portal.kernel.exception.SystemException;
648    
649            /**
650            * Removes all the s c product entries where groupId = &#63; from the database.
651            *
652            * @param groupId the group ID to search with
653            * @throws SystemException if a system exception occurred
654            */
655            public void removeByGroupId(long groupId)
656                    throws com.liferay.portal.kernel.exception.SystemException;
657    
658            /**
659            * Removes all the s c product entries where companyId = &#63; from the database.
660            *
661            * @param companyId the company ID to search with
662            * @throws SystemException if a system exception occurred
663            */
664            public void removeByCompanyId(long companyId)
665                    throws com.liferay.portal.kernel.exception.SystemException;
666    
667            /**
668            * Removes all the s c product entries where groupId = &#63; and userId = &#63; from the database.
669            *
670            * @param groupId the group ID to search with
671            * @param userId the user ID to search with
672            * @throws SystemException if a system exception occurred
673            */
674            public void removeByG_U(long groupId, long userId)
675                    throws com.liferay.portal.kernel.exception.SystemException;
676    
677            /**
678            * Removes the s c product entry where repoGroupId = &#63; and repoArtifactId = &#63; from the database.
679            *
680            * @param repoGroupId the repo group ID to search with
681            * @param repoArtifactId the repo artifact ID to search with
682            * @throws SystemException if a system exception occurred
683            */
684            public void removeByRG_RA(java.lang.String repoGroupId,
685                    java.lang.String repoArtifactId)
686                    throws com.liferay.portal.kernel.exception.SystemException,
687                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
688    
689            /**
690            * Removes all the s c product entries from the database.
691            *
692            * @throws SystemException if a system exception occurred
693            */
694            public void removeAll()
695                    throws com.liferay.portal.kernel.exception.SystemException;
696    
697            /**
698            * Counts all the s c product entries where groupId = &#63;.
699            *
700            * @param groupId the group ID to search with
701            * @return the number of matching s c product entries
702            * @throws SystemException if a system exception occurred
703            */
704            public int countByGroupId(long groupId)
705                    throws com.liferay.portal.kernel.exception.SystemException;
706    
707            /**
708            * Filters by the user's permissions and counts all the s c product entries where groupId = &#63;.
709            *
710            * @param groupId the group ID to search with
711            * @return the number of matching s c product entries that the user has permission to view
712            * @throws SystemException if a system exception occurred
713            */
714            public int filterCountByGroupId(long groupId)
715                    throws com.liferay.portal.kernel.exception.SystemException;
716    
717            /**
718            * Counts all the s c product entries where companyId = &#63;.
719            *
720            * @param companyId the company ID to search with
721            * @return the number of matching s c product entries
722            * @throws SystemException if a system exception occurred
723            */
724            public int countByCompanyId(long companyId)
725                    throws com.liferay.portal.kernel.exception.SystemException;
726    
727            /**
728            * Counts all the s c product entries where groupId = &#63; and userId = &#63;.
729            *
730            * @param groupId the group ID to search with
731            * @param userId the user ID to search with
732            * @return the number of matching s c product entries
733            * @throws SystemException if a system exception occurred
734            */
735            public int countByG_U(long groupId, long userId)
736                    throws com.liferay.portal.kernel.exception.SystemException;
737    
738            /**
739            * Filters by the user's permissions and counts all the s c product entries where groupId = &#63; and userId = &#63;.
740            *
741            * @param groupId the group ID to search with
742            * @param userId the user ID to search with
743            * @return the number of matching s c product entries that the user has permission to view
744            * @throws SystemException if a system exception occurred
745            */
746            public int filterCountByG_U(long groupId, long userId)
747                    throws com.liferay.portal.kernel.exception.SystemException;
748    
749            /**
750            * Counts all the s c product entries where repoGroupId = &#63; and repoArtifactId = &#63;.
751            *
752            * @param repoGroupId the repo group ID to search with
753            * @param repoArtifactId the repo artifact ID to search with
754            * @return the number of matching s c product entries
755            * @throws SystemException if a system exception occurred
756            */
757            public int countByRG_RA(java.lang.String repoGroupId,
758                    java.lang.String repoArtifactId)
759                    throws com.liferay.portal.kernel.exception.SystemException;
760    
761            /**
762            * Counts all the s c product entries.
763            *
764            * @return the number of s c product entries
765            * @throws SystemException if a system exception occurred
766            */
767            public int countAll()
768                    throws com.liferay.portal.kernel.exception.SystemException;
769    
770            /**
771            * Gets all the s c licenses associated with the s c product entry.
772            *
773            * @param pk the primary key of the s c product entry to get the associated s c licenses for
774            * @return the s c licenses associated with the s c product entry
775            * @throws SystemException if a system exception occurred
776            */
777            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
778                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
779    
780            /**
781            * Gets a range of all the s c licenses associated with the s c product entry.
782            *
783            * <p>
784            * 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.
785            * </p>
786            *
787            * @param pk the primary key of the s c product entry to get the associated s c licenses for
788            * @param start the lower bound of the range of s c product entries to return
789            * @param end the upper bound of the range of s c product entries to return (not inclusive)
790            * @return the range of s c licenses associated with the s c product entry
791            * @throws SystemException if a system exception occurred
792            */
793            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
794                    long pk, int start, int end)
795                    throws com.liferay.portal.kernel.exception.SystemException;
796    
797            /**
798            * Gets an ordered range of all the s c licenses associated with the s c product entry.
799            *
800            * <p>
801            * 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.
802            * </p>
803            *
804            * @param pk the primary key of the s c product entry to get the associated s c licenses for
805            * @param start the lower bound of the range of s c product entries to return
806            * @param end the upper bound of the range of s c product entries to return (not inclusive)
807            * @param orderByComparator the comparator to order the results by
808            * @return the ordered range of s c licenses associated with the s c product entry
809            * @throws SystemException if a system exception occurred
810            */
811            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
812                    long pk, int start, int end,
813                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
814                    throws com.liferay.portal.kernel.exception.SystemException;
815    
816            /**
817            * Gets the number of s c licenses associated with the s c product entry.
818            *
819            * @param pk the primary key of the s c product entry to get the number of associated s c licenses for
820            * @return the number of s c licenses associated with the s c product entry
821            * @throws SystemException if a system exception occurred
822            */
823            public int getSCLicensesSize(long pk)
824                    throws com.liferay.portal.kernel.exception.SystemException;
825    
826            /**
827            * Determines if the s c license is associated with the s c product entry.
828            *
829            * @param pk the primary key of the s c product entry
830            * @param scLicensePK the primary key of the s c license
831            * @return <code>true</code> if the s c license is associated with the s c product entry; <code>false</code> otherwise
832            * @throws SystemException if a system exception occurred
833            */
834            public boolean containsSCLicense(long pk, long scLicensePK)
835                    throws com.liferay.portal.kernel.exception.SystemException;
836    
837            /**
838            * Determines if the s c product entry has any s c licenses associated with it.
839            *
840            * @param pk the primary key of the s c product entry to check for associations with s c licenses
841            * @return <code>true</code> if the s c product entry has any s c licenses associated with it; <code>false</code> otherwise
842            * @throws SystemException if a system exception occurred
843            */
844            public boolean containsSCLicenses(long pk)
845                    throws com.liferay.portal.kernel.exception.SystemException;
846    
847            /**
848            * Adds an association between the s c product entry and the s c license. Also notifies the appropriate model listeners and clears the mapping table finder cache.
849            *
850            * @param pk the primary key of the s c product entry
851            * @param scLicensePK the primary key of the s c license
852            * @throws SystemException if a system exception occurred
853            */
854            public void addSCLicense(long pk, long scLicensePK)
855                    throws com.liferay.portal.kernel.exception.SystemException;
856    
857            /**
858            * Adds an association between the s c product entry and the s c license. Also notifies the appropriate model listeners and clears the mapping table finder cache.
859            *
860            * @param pk the primary key of the s c product entry
861            * @param scLicense the s c license
862            * @throws SystemException if a system exception occurred
863            */
864            public void addSCLicense(long pk,
865                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
866                    throws com.liferay.portal.kernel.exception.SystemException;
867    
868            /**
869            * Adds an association between the s c product entry and the s c licenses. Also notifies the appropriate model listeners and clears the mapping table finder cache.
870            *
871            * @param pk the primary key of the s c product entry
872            * @param scLicensePKs the primary keys of the s c licenses
873            * @throws SystemException if a system exception occurred
874            */
875            public void addSCLicenses(long pk, long[] scLicensePKs)
876                    throws com.liferay.portal.kernel.exception.SystemException;
877    
878            /**
879            * Adds an association between the s c product entry and the s c licenses. Also notifies the appropriate model listeners and clears the mapping table finder cache.
880            *
881            * @param pk the primary key of the s c product entry
882            * @param scLicenses the s c licenses
883            * @throws SystemException if a system exception occurred
884            */
885            public void addSCLicenses(long pk,
886                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
887                    throws com.liferay.portal.kernel.exception.SystemException;
888    
889            /**
890            * Clears all associations between the s c product entry and its s c licenses. Also notifies the appropriate model listeners and clears the mapping table finder cache.
891            *
892            * @param pk the primary key of the s c product entry to clear the associated s c licenses from
893            * @throws SystemException if a system exception occurred
894            */
895            public void clearSCLicenses(long pk)
896                    throws com.liferay.portal.kernel.exception.SystemException;
897    
898            /**
899            * Removes the association between the s c product entry and the s c license. Also notifies the appropriate model listeners and clears the mapping table finder cache.
900            *
901            * @param pk the primary key of the s c product entry
902            * @param scLicensePK the primary key of the s c license
903            * @throws SystemException if a system exception occurred
904            */
905            public void removeSCLicense(long pk, long scLicensePK)
906                    throws com.liferay.portal.kernel.exception.SystemException;
907    
908            /**
909            * Removes the association between the s c product entry and the s c license. Also notifies the appropriate model listeners and clears the mapping table finder cache.
910            *
911            * @param pk the primary key of the s c product entry
912            * @param scLicense the s c license
913            * @throws SystemException if a system exception occurred
914            */
915            public void removeSCLicense(long pk,
916                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
917                    throws com.liferay.portal.kernel.exception.SystemException;
918    
919            /**
920            * Removes the association between the s c product entry and the s c licenses. Also notifies the appropriate model listeners and clears the mapping table finder cache.
921            *
922            * @param pk the primary key of the s c product entry
923            * @param scLicensePKs the primary keys of the s c licenses
924            * @throws SystemException if a system exception occurred
925            */
926            public void removeSCLicenses(long pk, long[] scLicensePKs)
927                    throws com.liferay.portal.kernel.exception.SystemException;
928    
929            /**
930            * Removes the association between the s c product entry and the s c licenses. Also notifies the appropriate model listeners and clears the mapping table finder cache.
931            *
932            * @param pk the primary key of the s c product entry
933            * @param scLicenses the s c licenses
934            * @throws SystemException if a system exception occurred
935            */
936            public void removeSCLicenses(long pk,
937                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
938                    throws com.liferay.portal.kernel.exception.SystemException;
939    
940            /**
941            * Sets the s c licenses associated with the s c product entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
942            *
943            * @param pk the primary key of the s c product entry to set the associations for
944            * @param scLicensePKs the primary keys of the s c licenses to be associated with the s c product entry
945            * @throws SystemException if a system exception occurred
946            */
947            public void setSCLicenses(long pk, long[] scLicensePKs)
948                    throws com.liferay.portal.kernel.exception.SystemException;
949    
950            /**
951            * Sets the s c licenses associated with the s c product entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
952            *
953            * @param pk the primary key of the s c product entry to set the associations for
954            * @param scLicenses the s c licenses to be associated with the s c product entry
955            * @throws SystemException if a system exception occurred
956            */
957            public void setSCLicenses(long pk,
958                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
959                    throws com.liferay.portal.kernel.exception.SystemException;
960    
961            public SCProductEntry remove(SCProductEntry scProductEntry)
962                    throws SystemException;
963    }