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