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