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