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.service.persistence.BasePersistence;
26  
27  /**
28   * <a href="SCProductVersionPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * @author Brian Wing Shun Chan
31   *
32   */
33  public interface SCProductVersionPersistence extends BasePersistence {
34      public void cacheResult(
35          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion);
36  
37      public void cacheResult(
38          java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions);
39  
40      public void clearCache();
41  
42      public com.liferay.portlet.softwarecatalog.model.SCProductVersion create(
43          long productVersionId);
44  
45      public com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
46          long productVersionId)
47          throws com.liferay.portal.SystemException,
48              com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
49  
50      public com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
51          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
52          throws com.liferay.portal.SystemException;
53  
54      /**
55       * @deprecated Use <code>update(SCProductVersion scProductVersion, boolean merge)</code>.
56       */
57      public com.liferay.portlet.softwarecatalog.model.SCProductVersion update(
58          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
59          throws com.liferay.portal.SystemException;
60  
61      /**
62       * Add, update, or merge, the entity. This method also calls the model
63       * listeners to trigger the proper events associated with adding, deleting,
64       * or updating an entity.
65       *
66       * @param        scProductVersion the entity to add, update, or merge
67       * @param        merge boolean value for whether to merge the entity. The
68       *                default value is false. Setting merge to true is more
69       *                expensive and should only be true when scProductVersion is
70       *                transient. See LEP-5473 for a detailed discussion of this
71       *                method.
72       * @return        true if the portlet can be displayed via Ajax
73       */
74      public com.liferay.portlet.softwarecatalog.model.SCProductVersion update(
75          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
76          boolean merge) throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.softwarecatalog.model.SCProductVersion updateImpl(
79          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
80          boolean merge) throws com.liferay.portal.SystemException;
81  
82      public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByPrimaryKey(
83          long productVersionId)
84          throws com.liferay.portal.SystemException,
85              com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
86  
87      public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByPrimaryKey(
88          long productVersionId) throws com.liferay.portal.SystemException;
89  
90      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
91          long productEntryId) throws com.liferay.portal.SystemException;
92  
93      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
94          long productEntryId, int start, int end)
95          throws com.liferay.portal.SystemException;
96  
97      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
98          long productEntryId, int start, int end,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.SystemException;
101 
102     public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_First(
103         long productEntryId,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException,
106             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
107 
108     public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_Last(
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_PrevAndNext(
115         long productVersionId, 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 findByDirectDownloadURL(
121         java.lang.String directDownloadURL)
122         throws com.liferay.portal.SystemException,
123             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
124 
125     public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
126         java.lang.String directDownloadURL)
127         throws com.liferay.portal.SystemException;
128 
129     public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
130         java.lang.String directDownloadURL, boolean retrieveFromCache)
131         throws com.liferay.portal.SystemException;
132 
133     public java.util.List<Object> findWithDynamicQuery(
134         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
135         throws com.liferay.portal.SystemException;
136 
137     public java.util.List<Object> findWithDynamicQuery(
138         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139         int end) throws com.liferay.portal.SystemException;
140 
141     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll()
142         throws com.liferay.portal.SystemException;
143 
144     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
145         int start, int end) throws com.liferay.portal.SystemException;
146 
147     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
148         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException;
150 
151     public void removeByProductEntryId(long productEntryId)
152         throws com.liferay.portal.SystemException;
153 
154     public void removeByDirectDownloadURL(java.lang.String directDownloadURL)
155         throws com.liferay.portal.SystemException,
156             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
157 
158     public void removeAll() throws com.liferay.portal.SystemException;
159 
160     public int countByProductEntryId(long productEntryId)
161         throws com.liferay.portal.SystemException;
162 
163     public int countByDirectDownloadURL(java.lang.String directDownloadURL)
164         throws com.liferay.portal.SystemException;
165 
166     public int countAll() throws com.liferay.portal.SystemException;
167 
168     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
169         long pk) throws com.liferay.portal.SystemException;
170 
171     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
172         long pk, int start, int end) throws com.liferay.portal.SystemException;
173 
174     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
175         long pk, int start, int end,
176         com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException;
178 
179     public int getSCFrameworkVersionsSize(long pk)
180         throws com.liferay.portal.SystemException;
181 
182     public boolean containsSCFrameworkVersion(long pk, long scFrameworkVersionPK)
183         throws com.liferay.portal.SystemException;
184 
185     public boolean containsSCFrameworkVersions(long pk)
186         throws com.liferay.portal.SystemException;
187 
188     public void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
189         throws com.liferay.portal.SystemException;
190 
191     public void addSCFrameworkVersion(long pk,
192         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
193         throws com.liferay.portal.SystemException;
194 
195     public void addSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
196         throws com.liferay.portal.SystemException;
197 
198     public void addSCFrameworkVersions(long pk,
199         java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
200         throws com.liferay.portal.SystemException;
201 
202     public void clearSCFrameworkVersions(long pk)
203         throws com.liferay.portal.SystemException;
204 
205     public void removeSCFrameworkVersion(long pk, long scFrameworkVersionPK)
206         throws com.liferay.portal.SystemException;
207 
208     public void removeSCFrameworkVersion(long pk,
209         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
210         throws com.liferay.portal.SystemException;
211 
212     public void removeSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
213         throws com.liferay.portal.SystemException;
214 
215     public void removeSCFrameworkVersions(long pk,
216         java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
217         throws com.liferay.portal.SystemException;
218 
219     public void setSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
220         throws com.liferay.portal.SystemException;
221 
222     public void setSCFrameworkVersions(long pk,
223         java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
224         throws com.liferay.portal.SystemException;
225 }