001    /**
002     * Copyright (c) 2000-2010 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     * 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.
026     * </p>
027     *
028     * <p>
029     * Caching information and settings can be found in <code>portal.properties</code>
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see SCLicensePersistenceImpl
034     * @see SCLicenseUtil
035     * @generated
036     */
037    public interface SCLicensePersistence extends BasePersistence<SCLicense> {
038            /**
039            * Caches the s c license in the entity cache if it is enabled.
040            *
041            * @param scLicense the s c license to cache
042            */
043            public void cacheResult(
044                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
045    
046            /**
047            * Caches the s c licenses in the entity cache if it is enabled.
048            *
049            * @param scLicenses the s c licenses to cache
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses);
053    
054            /**
055            * Creates a new s c license with the primary key. Does not add the s c license to the database.
056            *
057            * @param licenseId the primary key for the new s c license
058            * @return the new s c license
059            */
060            public com.liferay.portlet.softwarecatalog.model.SCLicense create(
061                    long licenseId);
062    
063            /**
064            * Removes the s c license with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param licenseId the primary key of the s c license to remove
067            * @return the s c license that was removed
068            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public com.liferay.portlet.softwarecatalog.model.SCLicense remove(
072                    long licenseId)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
075    
076            public com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl(
077                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
078                    boolean merge)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Finds the s c license with the primary key or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchLicenseException} if it could not be found.
083            *
084            * @param licenseId the primary key of the s c license to find
085            * @return the s c license
086            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(
090                    long licenseId)
091                    throws com.liferay.portal.kernel.exception.SystemException,
092                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
093    
094            /**
095            * Finds the s c license with the primary key or returns <code>null</code> if it could not be found.
096            *
097            * @param licenseId the primary key of the s c license to find
098            * @return the s c license, or <code>null</code> if a s c license with the primary key could not be found
099            * @throws SystemException if a system exception occurred
100            */
101            public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(
102                    long licenseId)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Finds all the s c licenses where active = &#63;.
107            *
108            * @param active the active to search with
109            * @return the matching s c licenses
110            * @throws SystemException if a system exception occurred
111            */
112            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
113                    boolean active)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Finds a range of all the s c licenses where active = &#63;.
118            *
119            * <p>
120            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
121            * </p>
122            *
123            * @param active the active to search with
124            * @param start the lower bound of the range of s c licenses to return
125            * @param end the upper bound of the range of s c licenses to return (not inclusive)
126            * @return the range of matching s c licenses
127            * @throws SystemException if a system exception occurred
128            */
129            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
130                    boolean active, int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Finds an ordered range of all the s c licenses where active = &#63;.
135            *
136            * <p>
137            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
138            * </p>
139            *
140            * @param active the active to search with
141            * @param start the lower bound of the range of s c licenses to return
142            * @param end the upper bound of the range of s c licenses to return (not inclusive)
143            * @param orderByComparator the comparator to order the results by
144            * @return the ordered range of matching s c licenses
145            * @throws SystemException if a system exception occurred
146            */
147            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
148                    boolean active, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            /**
153            * Finds the first s c license in the ordered set where active = &#63;.
154            *
155            * <p>
156            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
157            * </p>
158            *
159            * @param active the active to search with
160            * @param orderByComparator the comparator to order the set by
161            * @return the first matching s c license
162            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found
163            * @throws SystemException if a system exception occurred
164            */
165            public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(
166                    boolean active,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException,
169                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
170    
171            /**
172            * Finds the last s c license in the ordered set where active = &#63;.
173            *
174            * <p>
175            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
176            * </p>
177            *
178            * @param active the active to search with
179            * @param orderByComparator the comparator to order the set by
180            * @return the last matching s c license
181            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(
185                    boolean active,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
189    
190            /**
191            * Finds the s c licenses before and after the current s c license in the ordered set where active = &#63;.
192            *
193            * <p>
194            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
195            * </p>
196            *
197            * @param licenseId the primary key of the current s c license
198            * @param active the active to search with
199            * @param orderByComparator the comparator to order the set by
200            * @return the previous, current, and next s c license
201            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(
205                    long licenseId, boolean active,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException,
208                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
209    
210            /**
211            * Finds all the s c licenses where active = &#63; and recommended = &#63;.
212            *
213            * @param active the active to search with
214            * @param recommended the recommended to search with
215            * @return the matching s c licenses
216            * @throws SystemException if a system exception occurred
217            */
218            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
219                    boolean active, boolean recommended)
220                    throws com.liferay.portal.kernel.exception.SystemException;
221    
222            /**
223            * Finds a range of all the s c licenses where active = &#63; and recommended = &#63;.
224            *
225            * <p>
226            * 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.
227            * </p>
228            *
229            * @param active the active to search with
230            * @param recommended the recommended to search with
231            * @param start the lower bound of the range of s c licenses to return
232            * @param end the upper bound of the range of s c licenses to return (not inclusive)
233            * @return the range of matching s c licenses
234            * @throws SystemException if a system exception occurred
235            */
236            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
237                    boolean active, boolean recommended, int start, int end)
238                    throws com.liferay.portal.kernel.exception.SystemException;
239    
240            /**
241            * Finds an ordered range of all the s c licenses where active = &#63; and recommended = &#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 active the active to search with
248            * @param recommended the recommended to search with
249            * @param start the lower bound of the range of s c licenses to return
250            * @param end the upper bound of the range of s c licenses to return (not inclusive)
251            * @param orderByComparator the comparator to order the results by
252            * @return the ordered range of matching s c licenses
253            * @throws SystemException if a system exception occurred
254            */
255            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
256                    boolean active, boolean recommended, int start, int end,
257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258                    throws com.liferay.portal.kernel.exception.SystemException;
259    
260            /**
261            * Finds the first s c license in the ordered set where active = &#63; and recommended = &#63;.
262            *
263            * <p>
264            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
265            * </p>
266            *
267            * @param active the active to search with
268            * @param recommended the recommended to search with
269            * @param orderByComparator the comparator to order the set by
270            * @return the first matching s c license
271            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found
272            * @throws SystemException if a system exception occurred
273            */
274            public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(
275                    boolean active, boolean recommended,
276                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277                    throws com.liferay.portal.kernel.exception.SystemException,
278                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
279    
280            /**
281            * Finds the last s c license in the ordered set where active = &#63; and recommended = &#63;.
282            *
283            * <p>
284            * 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.
285            * </p>
286            *
287            * @param active the active to search with
288            * @param recommended the recommended to search with
289            * @param orderByComparator the comparator to order the set by
290            * @return the last matching s c license
291            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a matching s c license could not be found
292            * @throws SystemException if a system exception occurred
293            */
294            public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(
295                    boolean active, boolean recommended,
296                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297                    throws com.liferay.portal.kernel.exception.SystemException,
298                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
299    
300            /**
301            * Finds the s c licenses before and after the current s c license in the ordered set 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 licenseId the primary key of the current s c license
308            * @param active the active to search with
309            * @param recommended the recommended to search with
310            * @param orderByComparator the comparator to order the set by
311            * @return the previous, current, and next s c license
312            * @throws com.liferay.portlet.softwarecatalog.NoSuchLicenseException if a s c license with the primary key could not be found
313            * @throws SystemException if a system exception occurred
314            */
315            public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(
316                    long licenseId, boolean active, boolean recommended,
317                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318                    throws com.liferay.portal.kernel.exception.SystemException,
319                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
320    
321            /**
322            * Finds all the s c licenses.
323            *
324            * @return the s c licenses
325            * @throws SystemException if a system exception occurred
326            */
327            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll()
328                    throws com.liferay.portal.kernel.exception.SystemException;
329    
330            /**
331            * Finds a range of all the s c licenses.
332            *
333            * <p>
334            * 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.
335            * </p>
336            *
337            * @param start the lower bound of the range of s c licenses to return
338            * @param end the upper bound of the range of s c licenses to return (not inclusive)
339            * @return the range of s c licenses
340            * @throws SystemException if a system exception occurred
341            */
342            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
343                    int start, int end)
344                    throws com.liferay.portal.kernel.exception.SystemException;
345    
346            /**
347            * Finds an ordered range of all the s c licenses.
348            *
349            * <p>
350            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
351            * </p>
352            *
353            * @param start the lower bound of the range of s c licenses to return
354            * @param end the upper bound of the range of s c licenses to return (not inclusive)
355            * @param orderByComparator the comparator to order the results by
356            * @return the ordered range of s c licenses
357            * @throws SystemException if a system exception occurred
358            */
359            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
360                    int start, int end,
361                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * Removes all the s c licenses where active = &#63; from the database.
366            *
367            * @param active the active to search with
368            * @throws SystemException if a system exception occurred
369            */
370            public void removeByActive(boolean active)
371                    throws com.liferay.portal.kernel.exception.SystemException;
372    
373            /**
374            * Removes all the s c licenses where active = &#63; and recommended = &#63; from the database.
375            *
376            * @param active the active to search with
377            * @param recommended the recommended to search with
378            * @throws SystemException if a system exception occurred
379            */
380            public void removeByA_R(boolean active, boolean recommended)
381                    throws com.liferay.portal.kernel.exception.SystemException;
382    
383            /**
384            * Removes all the s c licenses from the database.
385            *
386            * @throws SystemException if a system exception occurred
387            */
388            public void removeAll()
389                    throws com.liferay.portal.kernel.exception.SystemException;
390    
391            /**
392            * Counts all the s c licenses where active = &#63;.
393            *
394            * @param active the active to search with
395            * @return the number of matching s c licenses
396            * @throws SystemException if a system exception occurred
397            */
398            public int countByActive(boolean active)
399                    throws com.liferay.portal.kernel.exception.SystemException;
400    
401            /**
402            * Counts all the s c licenses where active = &#63; and recommended = &#63;.
403            *
404            * @param active the active to search with
405            * @param recommended the recommended to search with
406            * @return the number of matching s c licenses
407            * @throws SystemException if a system exception occurred
408            */
409            public int countByA_R(boolean active, boolean recommended)
410                    throws com.liferay.portal.kernel.exception.SystemException;
411    
412            /**
413            * Counts all the s c licenses.
414            *
415            * @return the number of s c licenses
416            * @throws SystemException if a system exception occurred
417            */
418            public int countAll()
419                    throws com.liferay.portal.kernel.exception.SystemException;
420    
421            /**
422            * Gets all the s c product entries associated with the s c license.
423            *
424            * @param pk the primary key of the s c license to get the associated s c product entries for
425            * @return the s c product entries associated with the s c license
426            * @throws SystemException if a system exception occurred
427            */
428            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
429                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
430    
431            /**
432            * Gets a range of all the s c product entries associated with the s c license.
433            *
434            * <p>
435            * 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.
436            * </p>
437            *
438            * @param pk the primary key of the s c license to get the associated s c product entries for
439            * @param start the lower bound of the range of s c licenses to return
440            * @param end the upper bound of the range of s c licenses to return (not inclusive)
441            * @return the range of s c product entries associated with the s c license
442            * @throws SystemException if a system exception occurred
443            */
444            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
445                    long pk, int start, int end)
446                    throws com.liferay.portal.kernel.exception.SystemException;
447    
448            /**
449            * Gets an ordered range of all the s c product entries associated with the s c license.
450            *
451            * <p>
452            * 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.
453            * </p>
454            *
455            * @param pk the primary key of the s c license to get the associated s c product entries for
456            * @param start the lower bound of the range of s c licenses to return
457            * @param end the upper bound of the range of s c licenses to return (not inclusive)
458            * @param orderByComparator the comparator to order the results by
459            * @return the ordered range of s c product entries associated with the s c license
460            * @throws SystemException if a system exception occurred
461            */
462            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
463                    long pk, int start, int end,
464                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Gets the number of s c product entries associated with the s c license.
469            *
470            * @param pk the primary key of the s c license to get the number of associated s c product entries for
471            * @return the number of s c product entries associated with the s c license
472            * @throws SystemException if a system exception occurred
473            */
474            public int getSCProductEntriesSize(long pk)
475                    throws com.liferay.portal.kernel.exception.SystemException;
476    
477            /**
478            * Determines whether the s c product entry is associated with the s c license.
479            *
480            * @param pk the primary key of the s c license
481            * @param scProductEntryPK the primary key of the s c product entry
482            * @return whether the s c product entry is associated with the s c license
483            * @throws SystemException if a system exception occurred
484            */
485            public boolean containsSCProductEntry(long pk, long scProductEntryPK)
486                    throws com.liferay.portal.kernel.exception.SystemException;
487    
488            /**
489            * Determines whether the s c license has any s c product entries associated with it.
490            *
491            * @param pk the primary key of the s c license to check for associations with s c product entries
492            * @return whether the s c license has any s c product entries associated with it
493            * @throws SystemException if a system exception occurred
494            */
495            public boolean containsSCProductEntries(long pk)
496                    throws com.liferay.portal.kernel.exception.SystemException;
497    
498            /**
499            * 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.
500            *
501            * @param pk the primary key of the s c license
502            * @param scProductEntryPK the primary key of the s c product entry
503            * @throws SystemException if a system exception occurred
504            */
505            public void addSCProductEntry(long pk, long scProductEntryPK)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            /**
509            * 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.
510            *
511            * @param pk the primary key of the s c license
512            * @param scProductEntry the s c product entry
513            * @throws SystemException if a system exception occurred
514            */
515            public void addSCProductEntry(long pk,
516                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
517                    throws com.liferay.portal.kernel.exception.SystemException;
518    
519            /**
520            * 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.
521            *
522            * @param pk the primary key of the s c license
523            * @param scProductEntryPKs the primary keys of the s c product entries
524            * @throws SystemException if a system exception occurred
525            */
526            public void addSCProductEntries(long pk, long[] scProductEntryPKs)
527                    throws com.liferay.portal.kernel.exception.SystemException;
528    
529            /**
530            * 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.
531            *
532            * @param pk the primary key of the s c license
533            * @param scProductEntries the s c product entries
534            * @throws SystemException if a system exception occurred
535            */
536            public void addSCProductEntries(long pk,
537                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
538                    throws com.liferay.portal.kernel.exception.SystemException;
539    
540            /**
541            * 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.
542            *
543            * @param pk the primary key of the s c license to clear the associated s c product entries from
544            * @throws SystemException if a system exception occurred
545            */
546            public void clearSCProductEntries(long pk)
547                    throws com.liferay.portal.kernel.exception.SystemException;
548    
549            /**
550            * 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.
551            *
552            * @param pk the primary key of the s c license
553            * @param scProductEntryPK the primary key of the s c product entry
554            * @throws SystemException if a system exception occurred
555            */
556            public void removeSCProductEntry(long pk, long scProductEntryPK)
557                    throws com.liferay.portal.kernel.exception.SystemException;
558    
559            /**
560            * 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.
561            *
562            * @param pk the primary key of the s c license
563            * @param scProductEntry the s c product entry
564            * @throws SystemException if a system exception occurred
565            */
566            public void removeSCProductEntry(long pk,
567                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
568                    throws com.liferay.portal.kernel.exception.SystemException;
569    
570            /**
571            * 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.
572            *
573            * @param pk the primary key of the s c license
574            * @param scProductEntryPKs the primary keys of the s c product entries
575            * @throws SystemException if a system exception occurred
576            */
577            public void removeSCProductEntries(long pk, long[] scProductEntryPKs)
578                    throws com.liferay.portal.kernel.exception.SystemException;
579    
580            /**
581            * 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.
582            *
583            * @param pk the primary key of the s c license
584            * @param scProductEntries the s c product entries
585            * @throws SystemException if a system exception occurred
586            */
587            public void removeSCProductEntries(long pk,
588                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
589                    throws com.liferay.portal.kernel.exception.SystemException;
590    
591            /**
592            * 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.
593            *
594            * @param pk the primary key of the s c license to set the associations for
595            * @param scProductEntryPKs the primary keys of the s c product entries to be associated with the s c license
596            * @throws SystemException if a system exception occurred
597            */
598            public void setSCProductEntries(long pk, long[] scProductEntryPKs)
599                    throws com.liferay.portal.kernel.exception.SystemException;
600    
601            /**
602            * 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.
603            *
604            * @param pk the primary key of the s c license to set the associations for
605            * @param scProductEntries the s c product entries to be associated with the s c license
606            * @throws SystemException if a system exception occurred
607            */
608            public void setSCProductEntries(long pk,
609                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
610                    throws com.liferay.portal.kernel.exception.SystemException;
611    }