1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.softwarecatalog.service.persistence;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Propagation;
28  import com.liferay.portal.kernel.annotation.Transactional;
29  import com.liferay.portal.service.persistence.BasePersistence;
30  
31  /**
32   * <a href="SCFrameworkVersionPersistence.java.html"><b><i>View Source</i></b></a>
33   *
34   * @author Brian Wing Shun Chan
35   *
36   */
37  @Transactional(rollbackFor =  {
38      PortalException.class, SystemException.class})
39  public interface SCFrameworkVersionPersistence extends BasePersistence {
40      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion create(
41          long frameworkVersionId);
42  
43      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion remove(
44          long frameworkVersionId)
45          throws com.liferay.portal.SystemException,
46              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
47  
48      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion remove(
49          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
50          throws com.liferay.portal.SystemException;
51  
52      /**
53       * @deprecated Use <code>update(SCFrameworkVersion scFrameworkVersion, boolean merge)</code>.
54       */
55      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
56          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
57          throws com.liferay.portal.SystemException;
58  
59      /**
60       * Add, update, or merge, the entity. This method also calls the model
61       * listeners to trigger the proper events associated with adding, deleting,
62       * or updating an entity.
63       *
64       * @param        scFrameworkVersion the entity to add, update, or merge
65       * @param        merge boolean value for whether to merge the entity. The
66       *                default value is false. Setting merge to true is more
67       *                expensive and should only be true when scFrameworkVersion is
68       *                transient. See LEP-5473 for a detailed discussion of this
69       *                method.
70       * @return        true if the portlet can be displayed via Ajax
71       */
72      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
73          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
74          boolean merge) throws com.liferay.portal.SystemException;
75  
76      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateImpl(
77          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
78          boolean merge) throws com.liferay.portal.SystemException;
79  
80      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByPrimaryKey(
82          long frameworkVersionId)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
85  
86      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchByPrimaryKey(
87          long frameworkVersionId) throws com.liferay.portal.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
91          long groupId) throws com.liferay.portal.SystemException;
92  
93      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
95          long groupId, int start, int end)
96          throws com.liferay.portal.SystemException;
97  
98      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
100         long groupId, int start, int end,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.SystemException;
103 
104     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_First(
106         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException,
108             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
109 
110     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_Last(
112         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException,
114             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
115 
116     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByGroupId_PrevAndNext(
118         long frameworkVersionId, long groupId,
119         com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.SystemException,
121             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
122 
123     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
125         long companyId) throws com.liferay.portal.SystemException;
126 
127     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
129         long companyId, int start, int end)
130         throws com.liferay.portal.SystemException;
131 
132     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
134         long companyId, int start, int end,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException;
137 
138     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_First(
140         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException,
142             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
143 
144     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_Last(
146         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
149 
150     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByCompanyId_PrevAndNext(
152         long frameworkVersionId, long companyId,
153         com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
156 
157     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
159         long groupId, boolean active) throws com.liferay.portal.SystemException;
160 
161     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
163         long groupId, boolean active, int start, int end)
164         throws com.liferay.portal.SystemException;
165 
166     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
168         long groupId, boolean active, int start, int end,
169         com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.SystemException;
171 
172     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_First(
174         long groupId, boolean active,
175         com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.SystemException,
177             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
178 
179     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_Last(
181         long groupId, boolean active,
182         com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException,
184             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
185 
186     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByG_A_PrevAndNext(
188         long frameworkVersionId, long groupId, boolean active,
189         com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.SystemException,
191             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
192 
193     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194     public java.util.List<Object> findWithDynamicQuery(
195         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
196         throws com.liferay.portal.SystemException;
197 
198     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199     public java.util.List<Object> findWithDynamicQuery(
200         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
201         int end) throws com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll()
205         throws com.liferay.portal.SystemException;
206 
207     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
209         int start, int end) throws com.liferay.portal.SystemException;
210 
211     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
213         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
214         throws com.liferay.portal.SystemException;
215 
216     public void removeByGroupId(long groupId)
217         throws com.liferay.portal.SystemException;
218 
219     public void removeByCompanyId(long companyId)
220         throws com.liferay.portal.SystemException;
221 
222     public void removeByG_A(long groupId, boolean active)
223         throws com.liferay.portal.SystemException;
224 
225     public void removeAll() throws com.liferay.portal.SystemException;
226 
227     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228     public int countByGroupId(long groupId)
229         throws com.liferay.portal.SystemException;
230 
231     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232     public int countByCompanyId(long companyId)
233         throws com.liferay.portal.SystemException;
234 
235     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236     public int countByG_A(long groupId, boolean active)
237         throws com.liferay.portal.SystemException;
238 
239     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240     public int countAll() throws com.liferay.portal.SystemException;
241 
242     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
244         long pk) throws com.liferay.portal.SystemException;
245 
246     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
248         long pk, int start, int end) throws com.liferay.portal.SystemException;
249 
250     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
252         long pk, int start, int end,
253         com.liferay.portal.kernel.util.OrderByComparator obc)
254         throws com.liferay.portal.SystemException;
255 
256     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257     public int getSCProductVersionsSize(long pk)
258         throws com.liferay.portal.SystemException;
259 
260     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261     public boolean containsSCProductVersion(long pk, long scProductVersionPK)
262         throws com.liferay.portal.SystemException;
263 
264     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265     public boolean containsSCProductVersions(long pk)
266         throws com.liferay.portal.SystemException;
267 
268     public void addSCProductVersion(long pk, long scProductVersionPK)
269         throws com.liferay.portal.SystemException;
270 
271     public void addSCProductVersion(long pk,
272         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
273         throws com.liferay.portal.SystemException;
274 
275     public void addSCProductVersions(long pk, long[] scProductVersionPKs)
276         throws com.liferay.portal.SystemException;
277 
278     public void addSCProductVersions(long pk,
279         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
280         throws com.liferay.portal.SystemException;
281 
282     public void clearSCProductVersions(long pk)
283         throws com.liferay.portal.SystemException;
284 
285     public void removeSCProductVersion(long pk, long scProductVersionPK)
286         throws com.liferay.portal.SystemException;
287 
288     public void removeSCProductVersion(long pk,
289         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
290         throws com.liferay.portal.SystemException;
291 
292     public void removeSCProductVersions(long pk, long[] scProductVersionPKs)
293         throws com.liferay.portal.SystemException;
294 
295     public void removeSCProductVersions(long pk,
296         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
297         throws com.liferay.portal.SystemException;
298 
299     public void setSCProductVersions(long pk, long[] scProductVersionPKs)
300         throws com.liferay.portal.SystemException;
301 
302     public void setSCProductVersions(long pk,
303         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
304         throws com.liferay.portal.SystemException;
305 }