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="SCProductVersionPersistence.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       SCProductVersionPersistenceImpl
37   * @see       SCProductVersionUtil
38   * @generated
39   */
40  public interface SCProductVersionPersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.softwarecatalog.model.SCProductVersion create(
50          long productVersionId);
51  
52      public com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
53          long productVersionId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
56  
57      public com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
58          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
59          throws com.liferay.portal.SystemException;
60  
61      /**
62       * @deprecated Use {@link #update(SCProductVersion, boolean merge)}.
63       */
64      public com.liferay.portlet.softwarecatalog.model.SCProductVersion update(
65          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
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  scProductVersion 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 scProductVersion 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.SCProductVersion update(
81          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
82          boolean merge) throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.softwarecatalog.model.SCProductVersion updateImpl(
85          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
86          boolean merge) throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByPrimaryKey(
89          long productVersionId)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
92  
93      public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByPrimaryKey(
94          long productVersionId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
97          long productEntryId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
100         long productEntryId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
104         long productEntryId, 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.SCProductVersion findByProductEntryId_First(
109         long productEntryId,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
113 
114     public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_Last(
115         long productEntryId,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
119 
120     public com.liferay.portlet.softwarecatalog.model.SCProductVersion[] findByProductEntryId_PrevAndNext(
121         long productVersionId, long productEntryId,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
125 
126     public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByDirectDownloadURL(
127         java.lang.String directDownloadURL)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
130 
131     public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
132         java.lang.String directDownloadURL)
133         throws com.liferay.portal.SystemException;
134 
135     public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
136         java.lang.String directDownloadURL, boolean retrieveFromCache)
137         throws com.liferay.portal.SystemException;
138 
139     public java.util.List<Object> findWithDynamicQuery(
140         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
141         throws com.liferay.portal.SystemException;
142 
143     public java.util.List<Object> findWithDynamicQuery(
144         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
145         int end) throws com.liferay.portal.SystemException;
146 
147     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll()
148         throws com.liferay.portal.SystemException;
149 
150     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
151         int start, int end) throws com.liferay.portal.SystemException;
152 
153     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
154         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.SystemException;
156 
157     public void removeByProductEntryId(long productEntryId)
158         throws com.liferay.portal.SystemException;
159 
160     public void removeByDirectDownloadURL(java.lang.String directDownloadURL)
161         throws com.liferay.portal.SystemException,
162             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
163 
164     public void removeAll() throws com.liferay.portal.SystemException;
165 
166     public int countByProductEntryId(long productEntryId)
167         throws com.liferay.portal.SystemException;
168 
169     public int countByDirectDownloadURL(java.lang.String directDownloadURL)
170         throws com.liferay.portal.SystemException;
171 
172     public int countAll() throws com.liferay.portal.SystemException;
173 
174     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
175         long pk) throws com.liferay.portal.SystemException;
176 
177     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
178         long pk, int start, int end) throws com.liferay.portal.SystemException;
179 
180     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
181         long pk, int start, int end,
182         com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException;
184 
185     public int getSCFrameworkVersionsSize(long pk)
186         throws com.liferay.portal.SystemException;
187 
188     public boolean containsSCFrameworkVersion(long pk, long scFrameworkVersionPK)
189         throws com.liferay.portal.SystemException;
190 
191     public boolean containsSCFrameworkVersions(long pk)
192         throws com.liferay.portal.SystemException;
193 
194     public void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
195         throws com.liferay.portal.SystemException;
196 
197     public void addSCFrameworkVersion(long pk,
198         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
199         throws com.liferay.portal.SystemException;
200 
201     public void addSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
202         throws com.liferay.portal.SystemException;
203 
204     public void addSCFrameworkVersions(long pk,
205         java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
206         throws com.liferay.portal.SystemException;
207 
208     public void clearSCFrameworkVersions(long pk)
209         throws com.liferay.portal.SystemException;
210 
211     public void removeSCFrameworkVersion(long pk, long scFrameworkVersionPK)
212         throws com.liferay.portal.SystemException;
213 
214     public void removeSCFrameworkVersion(long pk,
215         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
216         throws com.liferay.portal.SystemException;
217 
218     public void removeSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
219         throws com.liferay.portal.SystemException;
220 
221     public void removeSCFrameworkVersions(long pk,
222         java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
223         throws com.liferay.portal.SystemException;
224 
225     public void setSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
226         throws com.liferay.portal.SystemException;
227 
228     public void setSCFrameworkVersions(long pk,
229         java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
230         throws com.liferay.portal.SystemException;
231 }