1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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.service.persistence.BasePersistence;
26  
27  /**
28   * <a href="SCFrameworkVersionPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       SCFrameworkVersionPersistenceImpl
37   * @see       SCFrameworkVersionUtil
38   * @generated
39   */
40  public interface SCFrameworkVersionPersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion create(
50          long frameworkVersionId);
51  
52      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion remove(
53          long frameworkVersionId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
56  
57      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion remove(
58          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
59          throws com.liferay.portal.SystemException;
60  
61      /**
62       * @deprecated Use {@link #update(SCFrameworkVersion, boolean merge)}.
63       */
64      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
65          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
66          throws com.liferay.portal.SystemException;
67  
68      /**
69       * Add, update, or merge, the entity. This method also calls the model
70       * listeners to trigger the proper events associated with adding, deleting,
71       * or updating an entity.
72       *
73       * @param  scFrameworkVersion the entity to add, update, or merge
74       * @param  merge boolean value for whether to merge the entity. The default
75       *         value is false. Setting merge to true is more expensive and
76       *         should only be true when scFrameworkVersion is transient. See
77       *         LEP-5473 for a detailed discussion of this method.
78       * @return the entity that was added, updated, or merged
79       */
80      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
81          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
82          boolean merge) throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateImpl(
85          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
86          boolean merge) throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByPrimaryKey(
89          long frameworkVersionId)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
92  
93      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchByPrimaryKey(
94          long frameworkVersionId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
97          long groupId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
100         long groupId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
104         long groupId, int start, int end,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_First(
109         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException,
111             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
112 
113     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_Last(
114         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException,
116             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
117 
118     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByGroupId_PrevAndNext(
119         long frameworkVersionId, long groupId,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException,
122             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
123 
124     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
125         long companyId) throws com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
128         long companyId, int start, int end)
129         throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
132         long companyId, int start, int end,
133         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException;
135 
136     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_First(
137         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException,
139             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
140 
141     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_Last(
142         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.SystemException,
144             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
145 
146     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByCompanyId_PrevAndNext(
147         long frameworkVersionId, long companyId,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
151 
152     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
153         long groupId, boolean active) throws com.liferay.portal.SystemException;
154 
155     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
156         long groupId, boolean active, int start, int end)
157         throws com.liferay.portal.SystemException;
158 
159     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
160         long groupId, boolean active, int start, int end,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException;
163 
164     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_First(
165         long groupId, boolean active,
166         com.liferay.portal.kernel.util.OrderByComparator obc)
167         throws com.liferay.portal.SystemException,
168             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
169 
170     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_Last(
171         long groupId, boolean active,
172         com.liferay.portal.kernel.util.OrderByComparator obc)
173         throws com.liferay.portal.SystemException,
174             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
175 
176     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByG_A_PrevAndNext(
177         long frameworkVersionId, long groupId, boolean active,
178         com.liferay.portal.kernel.util.OrderByComparator obc)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
181 
182     public java.util.List<Object> findWithDynamicQuery(
183         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
184         throws com.liferay.portal.SystemException;
185 
186     public java.util.List<Object> findWithDynamicQuery(
187         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
188         int end) throws com.liferay.portal.SystemException;
189 
190     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll()
191         throws com.liferay.portal.SystemException;
192 
193     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
194         int start, int end) throws com.liferay.portal.SystemException;
195 
196     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
197         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException;
199 
200     public void removeByGroupId(long groupId)
201         throws com.liferay.portal.SystemException;
202 
203     public void removeByCompanyId(long companyId)
204         throws com.liferay.portal.SystemException;
205 
206     public void removeByG_A(long groupId, boolean active)
207         throws com.liferay.portal.SystemException;
208 
209     public void removeAll() throws com.liferay.portal.SystemException;
210 
211     public int countByGroupId(long groupId)
212         throws com.liferay.portal.SystemException;
213 
214     public int countByCompanyId(long companyId)
215         throws com.liferay.portal.SystemException;
216 
217     public int countByG_A(long groupId, boolean active)
218         throws com.liferay.portal.SystemException;
219 
220     public int countAll() throws com.liferay.portal.SystemException;
221 
222     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
223         long pk) throws com.liferay.portal.SystemException;
224 
225     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
226         long pk, int start, int end) throws com.liferay.portal.SystemException;
227 
228     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
229         long pk, int start, int end,
230         com.liferay.portal.kernel.util.OrderByComparator obc)
231         throws com.liferay.portal.SystemException;
232 
233     public int getSCProductVersionsSize(long pk)
234         throws com.liferay.portal.SystemException;
235 
236     public boolean containsSCProductVersion(long pk, long scProductVersionPK)
237         throws com.liferay.portal.SystemException;
238 
239     public boolean containsSCProductVersions(long pk)
240         throws com.liferay.portal.SystemException;
241 
242     public void addSCProductVersion(long pk, long scProductVersionPK)
243         throws com.liferay.portal.SystemException;
244 
245     public void addSCProductVersion(long pk,
246         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
247         throws com.liferay.portal.SystemException;
248 
249     public void addSCProductVersions(long pk, long[] scProductVersionPKs)
250         throws com.liferay.portal.SystemException;
251 
252     public void addSCProductVersions(long pk,
253         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
254         throws com.liferay.portal.SystemException;
255 
256     public void clearSCProductVersions(long pk)
257         throws com.liferay.portal.SystemException;
258 
259     public void removeSCProductVersion(long pk, long scProductVersionPK)
260         throws com.liferay.portal.SystemException;
261 
262     public void removeSCProductVersion(long pk,
263         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
264         throws com.liferay.portal.SystemException;
265 
266     public void removeSCProductVersions(long pk, long[] scProductVersionPKs)
267         throws com.liferay.portal.SystemException;
268 
269     public void removeSCProductVersions(long pk,
270         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
271         throws com.liferay.portal.SystemException;
272 
273     public void setSCProductVersions(long pk, long[] scProductVersionPKs)
274         throws com.liferay.portal.SystemException;
275 
276     public void setSCProductVersions(long pk,
277         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
278         throws com.liferay.portal.SystemException;
279 }