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