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 orderByComparator)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_First(
81          long groupId,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
85  
86      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByGroupId_Last(
87          long groupId,
88          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89          throws com.liferay.portal.SystemException,
90              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
91  
92      public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByGroupId_PrevAndNext(
93          long frameworkVersionId, long groupId,
94          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
97  
98      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
99          long companyId) throws com.liferay.portal.SystemException;
100 
101     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
102         long companyId, int start, int end)
103         throws com.liferay.portal.SystemException;
104 
105     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByCompanyId(
106         long companyId, int start, int end,
107         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108         throws com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_First(
111         long companyId,
112         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113         throws com.liferay.portal.SystemException,
114             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
115 
116     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByCompanyId_Last(
117         long companyId,
118         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119         throws com.liferay.portal.SystemException,
120             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
121 
122     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByCompanyId_PrevAndNext(
123         long frameworkVersionId, long companyId,
124         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
127 
128     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
129         long groupId, boolean active) 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         throws com.liferay.portal.SystemException;
134 
135     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findByG_A(
136         long groupId, boolean active, int start, int end,
137         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138         throws com.liferay.portal.SystemException;
139 
140     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_First(
141         long groupId, boolean active,
142         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143         throws com.liferay.portal.SystemException,
144             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
145 
146     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion findByG_A_Last(
147         long groupId, boolean active,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
151 
152     public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion[] findByG_A_PrevAndNext(
153         long frameworkVersionId, long groupId, boolean active,
154         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155         throws com.liferay.portal.SystemException,
156             com.liferay.portlet.softwarecatalog.NoSuchFrameworkVersionException;
157 
158     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll()
159         throws com.liferay.portal.SystemException;
160 
161     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
162         int start, int end) throws com.liferay.portal.SystemException;
163 
164     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> findAll(
165         int start, int end,
166         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167         throws com.liferay.portal.SystemException;
168 
169     public void removeByGroupId(long groupId)
170         throws com.liferay.portal.SystemException;
171 
172     public void removeByCompanyId(long companyId)
173         throws com.liferay.portal.SystemException;
174 
175     public void removeByG_A(long groupId, boolean active)
176         throws com.liferay.portal.SystemException;
177 
178     public void removeAll() throws com.liferay.portal.SystemException;
179 
180     public int countByGroupId(long groupId)
181         throws com.liferay.portal.SystemException;
182 
183     public int countByCompanyId(long companyId)
184         throws com.liferay.portal.SystemException;
185 
186     public int countByG_A(long groupId, boolean active)
187         throws com.liferay.portal.SystemException;
188 
189     public int countAll() throws com.liferay.portal.SystemException;
190 
191     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
192         long pk) throws com.liferay.portal.SystemException;
193 
194     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
195         long pk, int start, int end) throws com.liferay.portal.SystemException;
196 
197     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
198         long pk, int start, int end,
199         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200         throws com.liferay.portal.SystemException;
201 
202     public int getSCProductVersionsSize(long pk)
203         throws com.liferay.portal.SystemException;
204 
205     public boolean containsSCProductVersion(long pk, long scProductVersionPK)
206         throws com.liferay.portal.SystemException;
207 
208     public boolean containsSCProductVersions(long pk)
209         throws com.liferay.portal.SystemException;
210 
211     public void addSCProductVersion(long pk, long scProductVersionPK)
212         throws com.liferay.portal.SystemException;
213 
214     public void addSCProductVersion(long pk,
215         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
216         throws com.liferay.portal.SystemException;
217 
218     public void addSCProductVersions(long pk, long[] scProductVersionPKs)
219         throws com.liferay.portal.SystemException;
220 
221     public void addSCProductVersions(long pk,
222         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
223         throws com.liferay.portal.SystemException;
224 
225     public void clearSCProductVersions(long pk)
226         throws com.liferay.portal.SystemException;
227 
228     public void removeSCProductVersion(long pk, long scProductVersionPK)
229         throws com.liferay.portal.SystemException;
230 
231     public void removeSCProductVersion(long pk,
232         com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
233         throws com.liferay.portal.SystemException;
234 
235     public void removeSCProductVersions(long pk, long[] scProductVersionPKs)
236         throws com.liferay.portal.SystemException;
237 
238     public void removeSCProductVersions(long pk,
239         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
240         throws com.liferay.portal.SystemException;
241 
242     public void setSCProductVersions(long pk, long[] scProductVersionPKs)
243         throws com.liferay.portal.SystemException;
244 
245     public void setSCProductVersions(long pk,
246         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions)
247         throws com.liferay.portal.SystemException;
248 }