1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.softwarecatalog.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion;
20  
21  /**
22   * <a href="SCFrameworkVersionPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       SCFrameworkVersionPersistenceImpl
31   * @see       SCFrameworkVersionUtil
32   * @generated
33   */
34  public interface SCFrameworkVersionPersistence extends BasePersistence<SCFrameworkVersion> {
35      public void cacheResult(
36          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions);
40  
41      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion create(
42          long frameworkVersionId);
43  
44      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion remove(
45          long frameworkVersionId)
46          throws com.liferay.portal.SystemException,
47              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion update(
53          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateImpl(
57          com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByPrimaryKey(
61          long frameworkVersionId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
64  
65      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchByPrimaryKey(
66          long frameworkVersionId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
69          long groupId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
72          long groupId, int start, int end)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByGroupId(
76          long groupId, int start, int end,
77          com.liferay.portal.kernel.util.OrderByComparator obc)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_First(
81          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.SystemException,
83              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
84  
85      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_Last(
86          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
89  
90      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByGroupId_PrevAndNext(
91          long frameworkVersionId, long groupId,
92          com.liferay.portal.kernel.util.OrderByComparator obc)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
95  
96      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
97          long companyId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
100         long companyId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
104         long companyId, 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 findByCompanyId_First(
109         long companyId, 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 findByCompanyId_Last(
114         long companyId, 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[] findByCompanyId_PrevAndNext(
119         long frameworkVersionId, long companyId,
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> findByG_A(
125         long groupId, boolean active) throws com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
128         long groupId, boolean active, int start, int end)
129         throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
132         long groupId, boolean active, 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 findByG_A_First(
137         long groupId, boolean active,
138         com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.SystemException,
140             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
141 
142     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_Last(
143         long groupId, boolean active,
144         com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException,
146             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
147 
148     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByG_A_PrevAndNext(
149         long frameworkVersionId, long groupId, boolean active,
150         com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException,
152             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
153 
154     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll()
155         throws com.liferay.portal.SystemException;
156 
157     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
158         int start, int end) throws com.liferay.portal.SystemException;
159 
160     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
161         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException;
163 
164     public void removeByGroupId(long groupId)
165         throws com.liferay.portal.SystemException;
166 
167     public void removeByCompanyId(long companyId)
168         throws com.liferay.portal.SystemException;
169 
170     public void removeByG_A(long groupId, boolean active)
171         throws com.liferay.portal.SystemException;
172 
173     public void removeAll() throws com.liferay.portal.SystemException;
174 
175     public int countByGroupId(long groupId)
176         throws com.liferay.portal.SystemException;
177 
178     public int countByCompanyId(long companyId)
179         throws com.liferay.portal.SystemException;
180 
181     public int countByG_A(long groupId, boolean active)
182         throws com.liferay.portal.SystemException;
183 
184     public int countAll() throws com.liferay.portal.SystemException;
185 
186     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
187         long pk) throws com.liferay.portal.SystemException;
188 
189     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
190         long pk, int start, int end) throws com.liferay.portal.SystemException;
191 
192     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
193         long pk, int start, int end,
194         com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException;
196 
197     public int getSCProductVersionsSize(long pk)
198         throws com.liferay.portal.SystemException;
199 
200     public boolean containsSCProductVersion(long pk, long scProductVersionPK)
201         throws com.liferay.portal.SystemException;
202 
203     public boolean containsSCProductVersions(long pk)
204         throws com.liferay.portal.SystemException;
205 
206     public void addSCProductVersion(long pk, long scProductVersionPK)
207         throws com.liferay.portal.SystemException;
208 
209     public void addSCProductVersion(long pk,
210         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
211         throws com.liferay.portal.SystemException;
212 
213     public void addSCProductVersions(long pk, long[] scProductVersionPKs)
214         throws com.liferay.portal.SystemException;
215 
216     public void addSCProductVersions(long pk,
217         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
218         throws com.liferay.portal.SystemException;
219 
220     public void clearSCProductVersions(long pk)
221         throws com.liferay.portal.SystemException;
222 
223     public void removeSCProductVersion(long pk, long scProductVersionPK)
224         throws com.liferay.portal.SystemException;
225 
226     public void removeSCProductVersion(long pk,
227         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
228         throws com.liferay.portal.SystemException;
229 
230     public void removeSCProductVersions(long pk, long[] scProductVersionPKs)
231         throws com.liferay.portal.SystemException;
232 
233     public void removeSCProductVersions(long pk,
234         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
235         throws com.liferay.portal.SystemException;
236 
237     public void setSCProductVersions(long pk, long[] scProductVersionPKs)
238         throws com.liferay.portal.SystemException;
239 
240     public void setSCProductVersions(long pk,
241         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
242         throws com.liferay.portal.SystemException;
243 }