001    /**
002     * Copyright (c) 2000-2013 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.SCProductVersion;
020    
021    /**
022     * The persistence interface for the s c product version 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 SCProductVersionPersistenceImpl
030     * @see SCProductVersionUtil
031     * @generated
032     */
033    public interface SCProductVersionPersistence extends BasePersistence<SCProductVersion> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link SCProductVersionUtil} to access the s c product version persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Returns all the s c product versions where productEntryId = &#63;.
042            *
043            * @param productEntryId the product entry ID
044            * @return the matching s c product versions
045            * @throws SystemException if a system exception occurred
046            */
047            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
048                    long productEntryId)
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            /**
052            * Returns a range of all the s c product versions where productEntryId = &#63;.
053            *
054            * <p>
055            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
056            * </p>
057            *
058            * @param productEntryId the product entry ID
059            * @param start the lower bound of the range of s c product versions
060            * @param end the upper bound of the range of s c product versions (not inclusive)
061            * @return the range of matching s c product versions
062            * @throws SystemException if a system exception occurred
063            */
064            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
065                    long productEntryId, int start, int end)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            /**
069            * Returns an ordered range of all the s c product versions where productEntryId = &#63;.
070            *
071            * <p>
072            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
073            * </p>
074            *
075            * @param productEntryId the product entry ID
076            * @param start the lower bound of the range of s c product versions
077            * @param end the upper bound of the range of s c product versions (not inclusive)
078            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
079            * @return the ordered range of matching s c product versions
080            * @throws SystemException if a system exception occurred
081            */
082            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
083                    long productEntryId, int start, int end,
084                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            /**
088            * Returns the first s c product version in the ordered set where productEntryId = &#63;.
089            *
090            * @param productEntryId the product entry ID
091            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
092            * @return the first matching s c product version
093            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductVersionException if a matching s c product version could not be found
094            * @throws SystemException if a system exception occurred
095            */
096            public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_First(
097                    long productEntryId,
098                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
099                    throws com.liferay.portal.kernel.exception.SystemException,
100                            com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
101    
102            /**
103            * Returns the first s c product version in the ordered set where productEntryId = &#63;.
104            *
105            * @param productEntryId the product entry ID
106            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
107            * @return the first matching s c product version, or <code>null</code> if a matching s c product version could not be found
108            * @throws SystemException if a system exception occurred
109            */
110            public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByProductEntryId_First(
111                    long productEntryId,
112                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns the last s c product version in the ordered set where productEntryId = &#63;.
117            *
118            * @param productEntryId the product entry ID
119            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
120            * @return the last matching s c product version
121            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductVersionException if a matching s c product version could not be found
122            * @throws SystemException if a system exception occurred
123            */
124            public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_Last(
125                    long productEntryId,
126                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127                    throws com.liferay.portal.kernel.exception.SystemException,
128                            com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
129    
130            /**
131            * Returns the last s c product version in the ordered set where productEntryId = &#63;.
132            *
133            * @param productEntryId the product entry ID
134            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
135            * @return the last matching s c product version, or <code>null</code> if a matching s c product version could not be found
136            * @throws SystemException if a system exception occurred
137            */
138            public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByProductEntryId_Last(
139                    long productEntryId,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            /**
144            * Returns the s c product versions before and after the current s c product version in the ordered set where productEntryId = &#63;.
145            *
146            * @param productVersionId the primary key of the current s c product version
147            * @param productEntryId the product entry ID
148            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
149            * @return the previous, current, and next s c product version
150            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductVersionException if a s c product version with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public com.liferay.portlet.softwarecatalog.model.SCProductVersion[] findByProductEntryId_PrevAndNext(
154                    long productVersionId, long productEntryId,
155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156                    throws com.liferay.portal.kernel.exception.SystemException,
157                            com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
158    
159            /**
160            * Removes all the s c product versions where productEntryId = &#63; from the database.
161            *
162            * @param productEntryId the product entry ID
163            * @throws SystemException if a system exception occurred
164            */
165            public void removeByProductEntryId(long productEntryId)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            /**
169            * Returns the number of s c product versions where productEntryId = &#63;.
170            *
171            * @param productEntryId the product entry ID
172            * @return the number of matching s c product versions
173            * @throws SystemException if a system exception occurred
174            */
175            public int countByProductEntryId(long productEntryId)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * Returns the s c product version where directDownloadURL = &#63; or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductVersionException} if it could not be found.
180            *
181            * @param directDownloadURL the direct download u r l
182            * @return the matching s c product version
183            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductVersionException if a matching s c product version could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByDirectDownloadURL(
187                    java.lang.String directDownloadURL)
188                    throws com.liferay.portal.kernel.exception.SystemException,
189                            com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
190    
191            /**
192            * Returns the s c product version where directDownloadURL = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
193            *
194            * @param directDownloadURL the direct download u r l
195            * @return the matching s c product version, or <code>null</code> if a matching s c product version could not be found
196            * @throws SystemException if a system exception occurred
197            */
198            public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
199                    java.lang.String directDownloadURL)
200                    throws com.liferay.portal.kernel.exception.SystemException;
201    
202            /**
203            * Returns the s c product version where directDownloadURL = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
204            *
205            * @param directDownloadURL the direct download u r l
206            * @param retrieveFromCache whether to use the finder cache
207            * @return the matching s c product version, or <code>null</code> if a matching s c product version could not be found
208            * @throws SystemException if a system exception occurred
209            */
210            public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
211                    java.lang.String directDownloadURL, boolean retrieveFromCache)
212                    throws com.liferay.portal.kernel.exception.SystemException;
213    
214            /**
215            * Removes the s c product version where directDownloadURL = &#63; from the database.
216            *
217            * @param directDownloadURL the direct download u r l
218            * @return the s c product version that was removed
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portlet.softwarecatalog.model.SCProductVersion removeByDirectDownloadURL(
222                    java.lang.String directDownloadURL)
223                    throws com.liferay.portal.kernel.exception.SystemException,
224                            com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
225    
226            /**
227            * Returns the number of s c product versions where directDownloadURL = &#63;.
228            *
229            * @param directDownloadURL the direct download u r l
230            * @return the number of matching s c product versions
231            * @throws SystemException if a system exception occurred
232            */
233            public int countByDirectDownloadURL(java.lang.String directDownloadURL)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * Caches the s c product version in the entity cache if it is enabled.
238            *
239            * @param scProductVersion the s c product version
240            */
241            public void cacheResult(
242                    com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion);
243    
244            /**
245            * Caches the s c product versions in the entity cache if it is enabled.
246            *
247            * @param scProductVersions the s c product versions
248            */
249            public void cacheResult(
250                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions);
251    
252            /**
253            * Creates a new s c product version with the primary key. Does not add the s c product version to the database.
254            *
255            * @param productVersionId the primary key for the new s c product version
256            * @return the new s c product version
257            */
258            public com.liferay.portlet.softwarecatalog.model.SCProductVersion create(
259                    long productVersionId);
260    
261            /**
262            * Removes the s c product version with the primary key from the database. Also notifies the appropriate model listeners.
263            *
264            * @param productVersionId the primary key of the s c product version
265            * @return the s c product version that was removed
266            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductVersionException if a s c product version with the primary key could not be found
267            * @throws SystemException if a system exception occurred
268            */
269            public com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
270                    long productVersionId)
271                    throws com.liferay.portal.kernel.exception.SystemException,
272                            com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
273    
274            public com.liferay.portlet.softwarecatalog.model.SCProductVersion updateImpl(
275                    com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
276                    throws com.liferay.portal.kernel.exception.SystemException;
277    
278            /**
279            * Returns the s c product version with the primary key or throws a {@link com.liferay.portlet.softwarecatalog.NoSuchProductVersionException} if it could not be found.
280            *
281            * @param productVersionId the primary key of the s c product version
282            * @return the s c product version
283            * @throws com.liferay.portlet.softwarecatalog.NoSuchProductVersionException if a s c product version with the primary key could not be found
284            * @throws SystemException if a system exception occurred
285            */
286            public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByPrimaryKey(
287                    long productVersionId)
288                    throws com.liferay.portal.kernel.exception.SystemException,
289                            com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
290    
291            /**
292            * Returns the s c product version with the primary key or returns <code>null</code> if it could not be found.
293            *
294            * @param productVersionId the primary key of the s c product version
295            * @return the s c product version, or <code>null</code> if a s c product version with the primary key could not be found
296            * @throws SystemException if a system exception occurred
297            */
298            public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByPrimaryKey(
299                    long productVersionId)
300                    throws com.liferay.portal.kernel.exception.SystemException;
301    
302            /**
303            * Returns all the s c product versions.
304            *
305            * @return the s c product versions
306            * @throws SystemException if a system exception occurred
307            */
308            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll()
309                    throws com.liferay.portal.kernel.exception.SystemException;
310    
311            /**
312            * Returns a range of all the s c product versions.
313            *
314            * <p>
315            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
316            * </p>
317            *
318            * @param start the lower bound of the range of s c product versions
319            * @param end the upper bound of the range of s c product versions (not inclusive)
320            * @return the range of s c product versions
321            * @throws SystemException if a system exception occurred
322            */
323            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
324                    int start, int end)
325                    throws com.liferay.portal.kernel.exception.SystemException;
326    
327            /**
328            * Returns an ordered range of all the s c product versions.
329            *
330            * <p>
331            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
332            * </p>
333            *
334            * @param start the lower bound of the range of s c product versions
335            * @param end the upper bound of the range of s c product versions (not inclusive)
336            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
337            * @return the ordered range of s c product versions
338            * @throws SystemException if a system exception occurred
339            */
340            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
341                    int start, int end,
342                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
343                    throws com.liferay.portal.kernel.exception.SystemException;
344    
345            /**
346            * Removes all the s c product versions from the database.
347            *
348            * @throws SystemException if a system exception occurred
349            */
350            public void removeAll()
351                    throws com.liferay.portal.kernel.exception.SystemException;
352    
353            /**
354            * Returns the number of s c product versions.
355            *
356            * @return the number of s c product versions
357            * @throws SystemException if a system exception occurred
358            */
359            public int countAll()
360                    throws com.liferay.portal.kernel.exception.SystemException;
361    
362            /**
363            * Returns all the s c framework versions associated with the s c product version.
364            *
365            * @param pk the primary key of the s c product version
366            * @return the s c framework versions associated with the s c product version
367            * @throws SystemException if a system exception occurred
368            */
369            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
370                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
371    
372            /**
373            * Returns a range of all the s c framework versions associated with the s c product version.
374            *
375            * <p>
376            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
377            * </p>
378            *
379            * @param pk the primary key of the s c product version
380            * @param start the lower bound of the range of s c product versions
381            * @param end the upper bound of the range of s c product versions (not inclusive)
382            * @return the range of s c framework versions associated with the s c product version
383            * @throws SystemException if a system exception occurred
384            */
385            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
386                    long pk, int start, int end)
387                    throws com.liferay.portal.kernel.exception.SystemException;
388    
389            /**
390            * Returns an ordered range of all the s c framework versions associated with the s c product version.
391            *
392            * <p>
393            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
394            * </p>
395            *
396            * @param pk the primary key of the s c product version
397            * @param start the lower bound of the range of s c product versions
398            * @param end the upper bound of the range of s c product versions (not inclusive)
399            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
400            * @return the ordered range of s c framework versions associated with the s c product version
401            * @throws SystemException if a system exception occurred
402            */
403            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
404                    long pk, int start, int end,
405                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
406                    throws com.liferay.portal.kernel.exception.SystemException;
407    
408            /**
409            * Returns the number of s c framework versions associated with the s c product version.
410            *
411            * @param pk the primary key of the s c product version
412            * @return the number of s c framework versions associated with the s c product version
413            * @throws SystemException if a system exception occurred
414            */
415            public int getSCFrameworkVersionsSize(long pk)
416                    throws com.liferay.portal.kernel.exception.SystemException;
417    
418            /**
419            * Returns <code>true</code> if the s c framework version is associated with the s c product version.
420            *
421            * @param pk the primary key of the s c product version
422            * @param scFrameworkVersionPK the primary key of the s c framework version
423            * @return <code>true</code> if the s c framework version is associated with the s c product version; <code>false</code> otherwise
424            * @throws SystemException if a system exception occurred
425            */
426            public boolean containsSCFrameworkVersion(long pk, long scFrameworkVersionPK)
427                    throws com.liferay.portal.kernel.exception.SystemException;
428    
429            /**
430            * Returns <code>true</code> if the s c product version has any s c framework versions associated with it.
431            *
432            * @param pk the primary key of the s c product version to check for associations with s c framework versions
433            * @return <code>true</code> if the s c product version has any s c framework versions associated with it; <code>false</code> otherwise
434            * @throws SystemException if a system exception occurred
435            */
436            public boolean containsSCFrameworkVersions(long pk)
437                    throws com.liferay.portal.kernel.exception.SystemException;
438    
439            /**
440            * Adds an association between the s c product version and the s c framework version. Also notifies the appropriate model listeners and clears the mapping table finder cache.
441            *
442            * @param pk the primary key of the s c product version
443            * @param scFrameworkVersionPK the primary key of the s c framework version
444            * @throws SystemException if a system exception occurred
445            */
446            public void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
447                    throws com.liferay.portal.kernel.exception.SystemException;
448    
449            /**
450            * Adds an association between the s c product version and the s c framework version. Also notifies the appropriate model listeners and clears the mapping table finder cache.
451            *
452            * @param pk the primary key of the s c product version
453            * @param scFrameworkVersion the s c framework version
454            * @throws SystemException if a system exception occurred
455            */
456            public void addSCFrameworkVersion(long pk,
457                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
458                    throws com.liferay.portal.kernel.exception.SystemException;
459    
460            /**
461            * Adds an association between the s c product version and the s c framework versions. Also notifies the appropriate model listeners and clears the mapping table finder cache.
462            *
463            * @param pk the primary key of the s c product version
464            * @param scFrameworkVersionPKs the primary keys of the s c framework versions
465            * @throws SystemException if a system exception occurred
466            */
467            public void addSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
468                    throws com.liferay.portal.kernel.exception.SystemException;
469    
470            /**
471            * Adds an association between the s c product version and the s c framework versions. Also notifies the appropriate model listeners and clears the mapping table finder cache.
472            *
473            * @param pk the primary key of the s c product version
474            * @param scFrameworkVersions the s c framework versions
475            * @throws SystemException if a system exception occurred
476            */
477            public void addSCFrameworkVersions(long pk,
478                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
479                    throws com.liferay.portal.kernel.exception.SystemException;
480    
481            /**
482            * Clears all associations between the s c product version and its s c framework versions. Also notifies the appropriate model listeners and clears the mapping table finder cache.
483            *
484            * @param pk the primary key of the s c product version to clear the associated s c framework versions from
485            * @throws SystemException if a system exception occurred
486            */
487            public void clearSCFrameworkVersions(long pk)
488                    throws com.liferay.portal.kernel.exception.SystemException;
489    
490            /**
491            * Removes the association between the s c product version and the s c framework version. Also notifies the appropriate model listeners and clears the mapping table finder cache.
492            *
493            * @param pk the primary key of the s c product version
494            * @param scFrameworkVersionPK the primary key of the s c framework version
495            * @throws SystemException if a system exception occurred
496            */
497            public void removeSCFrameworkVersion(long pk, long scFrameworkVersionPK)
498                    throws com.liferay.portal.kernel.exception.SystemException;
499    
500            /**
501            * Removes the association between the s c product version and the s c framework version. Also notifies the appropriate model listeners and clears the mapping table finder cache.
502            *
503            * @param pk the primary key of the s c product version
504            * @param scFrameworkVersion the s c framework version
505            * @throws SystemException if a system exception occurred
506            */
507            public void removeSCFrameworkVersion(long pk,
508                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
509                    throws com.liferay.portal.kernel.exception.SystemException;
510    
511            /**
512            * Removes the association between the s c product version and the s c framework versions. Also notifies the appropriate model listeners and clears the mapping table finder cache.
513            *
514            * @param pk the primary key of the s c product version
515            * @param scFrameworkVersionPKs the primary keys of the s c framework versions
516            * @throws SystemException if a system exception occurred
517            */
518            public void removeSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
519                    throws com.liferay.portal.kernel.exception.SystemException;
520    
521            /**
522            * Removes the association between the s c product version and the s c framework versions. Also notifies the appropriate model listeners and clears the mapping table finder cache.
523            *
524            * @param pk the primary key of the s c product version
525            * @param scFrameworkVersions the s c framework versions
526            * @throws SystemException if a system exception occurred
527            */
528            public void removeSCFrameworkVersions(long pk,
529                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
530                    throws com.liferay.portal.kernel.exception.SystemException;
531    
532            /**
533            * Sets the s c framework versions associated with the s c product version, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
534            *
535            * @param pk the primary key of the s c product version
536            * @param scFrameworkVersionPKs the primary keys of the s c framework versions to be associated with the s c product version
537            * @throws SystemException if a system exception occurred
538            */
539            public void setSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
540                    throws com.liferay.portal.kernel.exception.SystemException;
541    
542            /**
543            * Sets the s c framework versions associated with the s c product version, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
544            *
545            * @param pk the primary key of the s c product version
546            * @param scFrameworkVersions the s c framework versions to be associated with the s c product version
547            * @throws SystemException if a system exception occurred
548            */
549            public void setSCFrameworkVersions(long pk,
550                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
551                    throws com.liferay.portal.kernel.exception.SystemException;
552    }