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.SCLicense;
020    
021    /**
022     * The persistence interface for the s c license 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 SCLicensePersistenceImpl
030     * @see SCLicenseUtil
031     * @generated
032     */
033    public interface SCLicensePersistence extends BasePersistence<SCLicense> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link SCLicenseUtil} to access the s c license persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the s c license in the entity cache if it is enabled.
042            *
043            * @param scLicense the s c license
044            */
045            public void cacheResult(
046                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
047    
048            /**
049            * Caches the s c licenses in the entity cache if it is enabled.
050            *
051            * @param scLicenses the s c licenses
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses);
055    
056            /**
057            * Creates a new s c license with the primary key. Does not add the s c license to the database.
058            *
059            * @param licenseId the primary key for the new s c license
060            * @return the new s c license
061            */
062            public com.liferay.portlet.softwarecatalog.model.SCLicense create(
063                    long licenseId);
064    
065            /**
066            * Removes the s c license with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param licenseId the primary key of the s c license
069            * @return the s c license that was removed
070            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.softwarecatalog.model.SCLicense remove(
074                    long licenseId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
077    
078            public com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl(
079                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * Returns the s c license with the primary key or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchLicenseException} if it could not be found.
084            *
085            * @param licenseId the primary key of the s c license
086            * @return the s c license
087            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(
091                    long licenseId)
092                    throws com.liferay.portal.kernel.exception.SystemException,
093                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
094    
095            /**
096            * Returns the s c license with the primary key or returns <code>null</code> if it could not be found.
097            *
098            * @param licenseId the primary key of the s c license
099            * @return the s c license, or <code>null</code> if a s c license with the primary key could not be found
100            * @throws SystemException if a system exception occurred
101            */
102            public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(
103                    long licenseId)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            /**
107            * Returns all the s c licenses where active = &#63;.
108            *
109            * @param active the active
110            * @return the matching s c licenses
111            * @throws SystemException if a system exception occurred
112            */
113            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
114                    boolean active)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            /**
118            * Returns a range of all the s c licenses where active = &#63;.
119            *
120            * <p>
121            * 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.
122            * </p>
123            *
124            * @param active the active
125            * @param start the lower bound of the range of s c licenses
126            * @param end the upper bound of the range of s c licenses (not inclusive)
127            * @return the range of matching s c licenses
128            * @throws SystemException if a system exception occurred
129            */
130            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
131                    boolean active, int start, int end)
132                    throws com.liferay.portal.kernel.exception.SystemException;
133    
134            /**
135            * Returns an ordered range of all the s c licenses where active = &#63;.
136            *
137            * <p>
138            * 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.
139            * </p>
140            *
141            * @param active the active
142            * @param start the lower bound of the range of s c licenses
143            * @param end the upper bound of the range of s c licenses (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching s c licenses
146            * @throws SystemException if a system exception occurred
147            */
148            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
149                    boolean active, int start, int end,
150                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            /**
154            * Returns the first s c license in the ordered set where active = &#63;.
155            *
156            * @param active the active
157            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
158            * @return the first matching s c license
159            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found
160            * @throws SystemException if a system exception occurred
161            */
162            public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(
163                    boolean active,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException,
166                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
167    
168            /**
169            * Returns the first s c license in the ordered set where active = &#63;.
170            *
171            * @param active the active
172            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
173            * @return the first matching s c license, or <code>null</code> if a matching s c license could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByActive_First(
177                    boolean active,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns the last s c license in the ordered set where active = &#63;.
183            *
184            * @param active the active
185            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
186            * @return the last matching s c license
187            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(
191                    boolean active,
192                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193                    throws com.liferay.portal.kernel.exception.SystemException,
194                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
195    
196            /**
197            * Returns the last s c license in the ordered set where active = &#63;.
198            *
199            * @param active the active
200            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
201            * @return the last matching s c license, or <code>null</code> if a matching s c license could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByActive_Last(
205                    boolean active,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns the s c licenses before and after the current s c license in the ordered set where active = &#63;.
211            *
212            * @param licenseId the primary key of the current s c license
213            * @param active the active
214            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
215            * @return the previous, current, and next s c license
216            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(
220                    long licenseId, boolean active,
221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222                    throws com.liferay.portal.kernel.exception.SystemException,
223                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
224    
225            /**
226            * Returns all the s c licenses that the user has permission to view where active = &#63;.
227            *
228            * @param active the active
229            * @return the matching s c licenses that the user has permission to view
230            * @throws SystemException if a system exception occurred
231            */
232            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByActive(
233                    boolean active)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * Returns a range of all the s c licenses that the user has permission to view where active = &#63;.
238            *
239            * <p>
240            * 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.
241            * </p>
242            *
243            * @param active the active
244            * @param start the lower bound of the range of s c licenses
245            * @param end the upper bound of the range of s c licenses (not inclusive)
246            * @return the range of matching s c licenses that the user has permission to view
247            * @throws SystemException if a system exception occurred
248            */
249            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByActive(
250                    boolean active, int start, int end)
251                    throws com.liferay.portal.kernel.exception.SystemException;
252    
253            /**
254            * Returns an ordered range of all the s c licenses that the user has permissions to view where active = &#63;.
255            *
256            * <p>
257            * 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.
258            * </p>
259            *
260            * @param active the active
261            * @param start the lower bound of the range of s c licenses
262            * @param end the upper bound of the range of s c licenses (not inclusive)
263            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
264            * @return the ordered range of matching s c licenses that the user has permission to view
265            * @throws SystemException if a system exception occurred
266            */
267            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByActive(
268                    boolean active, int start, int end,
269                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270                    throws com.liferay.portal.kernel.exception.SystemException;
271    
272            /**
273            * Returns the s c licenses before and after the current s c license in the ordered set of s c licenses that the user has permission to view where active = &#63;.
274            *
275            * @param licenseId the primary key of the current s c license
276            * @param active the active
277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
278            * @return the previous, current, and next s c license
279            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
280            * @throws SystemException if a system exception occurred
281            */
282            public com.liferay.portlet.softwarecatalog.model.SCLicense[] filterFindByActive_PrevAndNext(
283                    long licenseId, boolean active,
284                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
285                    throws com.liferay.portal.kernel.exception.SystemException,
286                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
287    
288            /**
289            * Returns all the s c licenses where active = &#63; and recommended = &#63;.
290            *
291            * @param active the active
292            * @param recommended the recommended
293            * @return the matching s c licenses
294            * @throws SystemException if a system exception occurred
295            */
296            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
297                    boolean active, boolean recommended)
298                    throws com.liferay.portal.kernel.exception.SystemException;
299    
300            /**
301            * Returns a range of all the s c licenses where active = &#63; and recommended = &#63;.
302            *
303            * <p>
304            * 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.
305            * </p>
306            *
307            * @param active the active
308            * @param recommended the recommended
309            * @param start the lower bound of the range of s c licenses
310            * @param end the upper bound of the range of s c licenses (not inclusive)
311            * @return the range of matching s c licenses
312            * @throws SystemException if a system exception occurred
313            */
314            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
315                    boolean active, boolean recommended, int start, int end)
316                    throws com.liferay.portal.kernel.exception.SystemException;
317    
318            /**
319            * Returns an ordered range of all the s c licenses where active = &#63; and recommended = &#63;.
320            *
321            * <p>
322            * 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.
323            * </p>
324            *
325            * @param active the active
326            * @param recommended the recommended
327            * @param start the lower bound of the range of s c licenses
328            * @param end the upper bound of the range of s c licenses (not inclusive)
329            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
330            * @return the ordered range of matching s c licenses
331            * @throws SystemException if a system exception occurred
332            */
333            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
334                    boolean active, boolean recommended, int start, int end,
335                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
336                    throws com.liferay.portal.kernel.exception.SystemException;
337    
338            /**
339            * Returns the first s c license in the ordered set where active = &#63; and recommended = &#63;.
340            *
341            * @param active the active
342            * @param recommended the recommended
343            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
344            * @return the first matching s c license
345            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found
346            * @throws SystemException if a system exception occurred
347            */
348            public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(
349                    boolean active, boolean recommended,
350                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
351                    throws com.liferay.portal.kernel.exception.SystemException,
352                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
353    
354            /**
355            * Returns the first s c license in the ordered set where active = &#63; and recommended = &#63;.
356            *
357            * @param active the active
358            * @param recommended the recommended
359            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
360            * @return the first matching s c license, or <code>null</code> if a matching s c license could not be found
361            * @throws SystemException if a system exception occurred
362            */
363            public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByA_R_First(
364                    boolean active, boolean recommended,
365                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366                    throws com.liferay.portal.kernel.exception.SystemException;
367    
368            /**
369            * Returns the last s c license in the ordered set where active = &#63; and recommended = &#63;.
370            *
371            * @param active the active
372            * @param recommended the recommended
373            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
374            * @return the last matching s c license
375            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found
376            * @throws SystemException if a system exception occurred
377            */
378            public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(
379                    boolean active, boolean recommended,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException,
382                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
383    
384            /**
385            * Returns the last s c license in the ordered set where active = &#63; and recommended = &#63;.
386            *
387            * @param active the active
388            * @param recommended the recommended
389            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
390            * @return the last matching s c license, or <code>null</code> if a matching s c license could not be found
391            * @throws SystemException if a system exception occurred
392            */
393            public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByA_R_Last(
394                    boolean active, boolean recommended,
395                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396                    throws com.liferay.portal.kernel.exception.SystemException;
397    
398            /**
399            * Returns the s c licenses before and after the current s c license in the ordered set where active = &#63; and recommended = &#63;.
400            *
401            * @param licenseId the primary key of the current s c license
402            * @param active the active
403            * @param recommended the recommended
404            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
405            * @return the previous, current, and next s c license
406            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
407            * @throws SystemException if a system exception occurred
408            */
409            public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(
410                    long licenseId, boolean active, boolean recommended,
411                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
412                    throws com.liferay.portal.kernel.exception.SystemException,
413                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
414    
415            /**
416            * Returns all the s c licenses that the user has permission to view where active = &#63; and recommended = &#63;.
417            *
418            * @param active the active
419            * @param recommended the recommended
420            * @return the matching s c licenses that the user has permission to view
421            * @throws SystemException if a system exception occurred
422            */
423            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByA_R(
424                    boolean active, boolean recommended)
425                    throws com.liferay.portal.kernel.exception.SystemException;
426    
427            /**
428            * Returns a range of all the s c licenses that the user has permission to view where active = &#63; and recommended = &#63;.
429            *
430            * <p>
431            * 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.
432            * </p>
433            *
434            * @param active the active
435            * @param recommended the recommended
436            * @param start the lower bound of the range of s c licenses
437            * @param end the upper bound of the range of s c licenses (not inclusive)
438            * @return the range of matching s c licenses that the user has permission to view
439            * @throws SystemException if a system exception occurred
440            */
441            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByA_R(
442                    boolean active, boolean recommended, int start, int end)
443                    throws com.liferay.portal.kernel.exception.SystemException;
444    
445            /**
446            * Returns an ordered range of all the s c licenses that the user has permissions to view where active = &#63; and recommended = &#63;.
447            *
448            * <p>
449            * 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.
450            * </p>
451            *
452            * @param active the active
453            * @param recommended the recommended
454            * @param start the lower bound of the range of s c licenses
455            * @param end the upper bound of the range of s c licenses (not inclusive)
456            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
457            * @return the ordered range of matching s c licenses that the user has permission to view
458            * @throws SystemException if a system exception occurred
459            */
460            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> filterFindByA_R(
461                    boolean active, boolean recommended, int start, int end,
462                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
463                    throws com.liferay.portal.kernel.exception.SystemException;
464    
465            /**
466            * Returns the s c licenses before and after the current s c license in the ordered set of s c licenses that the user has permission to view where active = &#63; and recommended = &#63;.
467            *
468            * @param licenseId the primary key of the current s c license
469            * @param active the active
470            * @param recommended the recommended
471            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
472            * @return the previous, current, and next s c license
473            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
474            * @throws SystemException if a system exception occurred
475            */
476            public com.liferay.portlet.softwarecatalog.model.SCLicense[] filterFindByA_R_PrevAndNext(
477                    long licenseId, boolean active, boolean recommended,
478                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479                    throws com.liferay.portal.kernel.exception.SystemException,
480                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
481    
482            /**
483            * Returns all the s c licenses.
484            *
485            * @return the s c licenses
486            * @throws SystemException if a system exception occurred
487            */
488            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll()
489                    throws com.liferay.portal.kernel.exception.SystemException;
490    
491            /**
492            * Returns a range of all the s c licenses.
493            *
494            * <p>
495            * 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.
496            * </p>
497            *
498            * @param start the lower bound of the range of s c licenses
499            * @param end the upper bound of the range of s c licenses (not inclusive)
500            * @return the range of s c licenses
501            * @throws SystemException if a system exception occurred
502            */
503            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
504                    int start, int end)
505                    throws com.liferay.portal.kernel.exception.SystemException;
506    
507            /**
508            * Returns an ordered range of all the s c licenses.
509            *
510            * <p>
511            * 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.
512            * </p>
513            *
514            * @param start the lower bound of the range of s c licenses
515            * @param end the upper bound of the range of s c licenses (not inclusive)
516            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
517            * @return the ordered range of s c licenses
518            * @throws SystemException if a system exception occurred
519            */
520            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
521                    int start, int end,
522                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
523                    throws com.liferay.portal.kernel.exception.SystemException;
524    
525            /**
526            * Removes all the s c licenses where active = &#63; from the database.
527            *
528            * @param active the active
529            * @throws SystemException if a system exception occurred
530            */
531            public void removeByActive(boolean active)
532                    throws com.liferay.portal.kernel.exception.SystemException;
533    
534            /**
535            * Removes all the s c licenses where active = &#63; and recommended = &#63; from the database.
536            *
537            * @param active the active
538            * @param recommended the recommended
539            * @throws SystemException if a system exception occurred
540            */
541            public void removeByA_R(boolean active, boolean recommended)
542                    throws com.liferay.portal.kernel.exception.SystemException;
543    
544            /**
545            * Removes all the s c licenses from the database.
546            *
547            * @throws SystemException if a system exception occurred
548            */
549            public void removeAll()
550                    throws com.liferay.portal.kernel.exception.SystemException;
551    
552            /**
553            * Returns the number of s c licenses where active = &#63;.
554            *
555            * @param active the active
556            * @return the number of matching s c licenses
557            * @throws SystemException if a system exception occurred
558            */
559            public int countByActive(boolean active)
560                    throws com.liferay.portal.kernel.exception.SystemException;
561    
562            /**
563            * Returns the number of s c licenses that the user has permission to view where active = &#63;.
564            *
565            * @param active the active
566            * @return the number of matching s c licenses that the user has permission to view
567            * @throws SystemException if a system exception occurred
568            */
569            public int filterCountByActive(boolean active)
570                    throws com.liferay.portal.kernel.exception.SystemException;
571    
572            /**
573            * Returns the number of s c licenses where active = &#63; and recommended = &#63;.
574            *
575            * @param active the active
576            * @param recommended the recommended
577            * @return the number of matching s c licenses
578            * @throws SystemException if a system exception occurred
579            */
580            public int countByA_R(boolean active, boolean recommended)
581                    throws com.liferay.portal.kernel.exception.SystemException;
582    
583            /**
584            * Returns the number of s c licenses that the user has permission to view where active = &#63; and recommended = &#63;.
585            *
586            * @param active the active
587            * @param recommended the recommended
588            * @return the number of matching s c licenses that the user has permission to view
589            * @throws SystemException if a system exception occurred
590            */
591            public int filterCountByA_R(boolean active, boolean recommended)
592                    throws com.liferay.portal.kernel.exception.SystemException;
593    
594            /**
595            * Returns the number of s c licenses.
596            *
597            * @return the number of s c licenses
598            * @throws SystemException if a system exception occurred
599            */
600            public int countAll()
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    
603            /**
604            * Returns all the s c product entries associated with the s c license.
605            *
606            * @param pk the primary key of the s c license
607            * @return the s c product entries associated with the s c license
608            * @throws SystemException if a system exception occurred
609            */
610            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
611                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
612    
613            /**
614            * Returns a range of all the s c product entries associated with the s c license.
615            *
616            * <p>
617            * 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.
618            * </p>
619            *
620            * @param pk the primary key of the s c license
621            * @param start the lower bound of the range of s c licenses
622            * @param end the upper bound of the range of s c licenses (not inclusive)
623            * @return the range of s c product entries associated with the s c license
624            * @throws SystemException if a system exception occurred
625            */
626            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
627                    long pk, int start, int end)
628                    throws com.liferay.portal.kernel.exception.SystemException;
629    
630            /**
631            * Returns an ordered range of all the s c product entries associated with the s c license.
632            *
633            * <p>
634            * 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.
635            * </p>
636            *
637            * @param pk the primary key of the s c license
638            * @param start the lower bound of the range of s c licenses
639            * @param end the upper bound of the range of s c licenses (not inclusive)
640            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
641            * @return the ordered range of s c product entries associated with the s c license
642            * @throws SystemException if a system exception occurred
643            */
644            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
645                    long pk, int start, int end,
646                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
647                    throws com.liferay.portal.kernel.exception.SystemException;
648    
649            /**
650            * Returns the number of s c product entries associated with the s c license.
651            *
652            * @param pk the primary key of the s c license
653            * @return the number of s c product entries associated with the s c license
654            * @throws SystemException if a system exception occurred
655            */
656            public int getSCProductEntriesSize(long pk)
657                    throws com.liferay.portal.kernel.exception.SystemException;
658    
659            /**
660            * Returns <code>true</code> if the s c product entry is associated with the s c license.
661            *
662            * @param pk the primary key of the s c license
663            * @param scProductEntryPK the primary key of the s c product entry
664            * @return <code>true</code> if the s c product entry is associated with the s c license; <code>false</code> otherwise
665            * @throws SystemException if a system exception occurred
666            */
667            public boolean containsSCProductEntry(long pk, long scProductEntryPK)
668                    throws com.liferay.portal.kernel.exception.SystemException;
669    
670            /**
671            * Returns <code>true</code> if the s c license has any s c product entries associated with it.
672            *
673            * @param pk the primary key of the s c license to check for associations with s c product entries
674            * @return <code>true</code> if the s c license has any s c product entries associated with it; <code>false</code> otherwise
675            * @throws SystemException if a system exception occurred
676            */
677            public boolean containsSCProductEntries(long pk)
678                    throws com.liferay.portal.kernel.exception.SystemException;
679    
680            /**
681            * Adds an association between the s c license and the s c product entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
682            *
683            * @param pk the primary key of the s c license
684            * @param scProductEntryPK the primary key of the s c product entry
685            * @throws SystemException if a system exception occurred
686            */
687            public void addSCProductEntry(long pk, long scProductEntryPK)
688                    throws com.liferay.portal.kernel.exception.SystemException;
689    
690            /**
691            * Adds an association between the s c license and the s c product entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
692            *
693            * @param pk the primary key of the s c license
694            * @param scProductEntry the s c product entry
695            * @throws SystemException if a system exception occurred
696            */
697            public void addSCProductEntry(long pk,
698                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
699                    throws com.liferay.portal.kernel.exception.SystemException;
700    
701            /**
702            * Adds an association between the s c license and the s c product entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
703            *
704            * @param pk the primary key of the s c license
705            * @param scProductEntryPKs the primary keys of the s c product entries
706            * @throws SystemException if a system exception occurred
707            */
708            public void addSCProductEntries(long pk, long[] scProductEntryPKs)
709                    throws com.liferay.portal.kernel.exception.SystemException;
710    
711            /**
712            * Adds an association between the s c license and the s c product entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
713            *
714            * @param pk the primary key of the s c license
715            * @param scProductEntries the s c product entries
716            * @throws SystemException if a system exception occurred
717            */
718            public void addSCProductEntries(long pk,
719                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
720                    throws com.liferay.portal.kernel.exception.SystemException;
721    
722            /**
723            * Clears all associations between the s c license and its s c product entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
724            *
725            * @param pk the primary key of the s c license to clear the associated s c product entries from
726            * @throws SystemException if a system exception occurred
727            */
728            public void clearSCProductEntries(long pk)
729                    throws com.liferay.portal.kernel.exception.SystemException;
730    
731            /**
732            * Removes the association between the s c license and the s c product entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
733            *
734            * @param pk the primary key of the s c license
735            * @param scProductEntryPK the primary key of the s c product entry
736            * @throws SystemException if a system exception occurred
737            */
738            public void removeSCProductEntry(long pk, long scProductEntryPK)
739                    throws com.liferay.portal.kernel.exception.SystemException;
740    
741            /**
742            * Removes the association between the s c license and the s c product entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
743            *
744            * @param pk the primary key of the s c license
745            * @param scProductEntry the s c product entry
746            * @throws SystemException if a system exception occurred
747            */
748            public void removeSCProductEntry(long pk,
749                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
750                    throws com.liferay.portal.kernel.exception.SystemException;
751    
752            /**
753            * Removes the association between the s c license and the s c product entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
754            *
755            * @param pk the primary key of the s c license
756            * @param scProductEntryPKs the primary keys of the s c product entries
757            * @throws SystemException if a system exception occurred
758            */
759            public void removeSCProductEntries(long pk, long[] scProductEntryPKs)
760                    throws com.liferay.portal.kernel.exception.SystemException;
761    
762            /**
763            * Removes the association between the s c license and the s c product entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
764            *
765            * @param pk the primary key of the s c license
766            * @param scProductEntries the s c product entries
767            * @throws SystemException if a system exception occurred
768            */
769            public void removeSCProductEntries(long pk,
770                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
771                    throws com.liferay.portal.kernel.exception.SystemException;
772    
773            /**
774            * Sets the s c product entries associated with the s c license, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
775            *
776            * @param pk the primary key of the s c license
777            * @param scProductEntryPKs the primary keys of the s c product entries to be associated with the s c license
778            * @throws SystemException if a system exception occurred
779            */
780            public void setSCProductEntries(long pk, long[] scProductEntryPKs)
781                    throws com.liferay.portal.kernel.exception.SystemException;
782    
783            /**
784            * Sets the s c product entries associated with the s c license, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
785            *
786            * @param pk the primary key of the s c license
787            * @param scProductEntries the s c product entries to be associated with the s c license
788            * @throws SystemException if a system exception occurred
789            */
790            public void setSCProductEntries(long pk,
791                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
792                    throws com.liferay.portal.kernel.exception.SystemException;
793    }