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.SCProductEntry;
20  
21  /**
22   * <a href="SCProductEntryPersistence.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       SCProductEntryPersistenceImpl
31   * @see       SCProductEntryUtil
32   * @generated
33   */
34  public interface SCProductEntryPersistence extends BasePersistence<SCProductEntry> {
35      public void cacheResult(
36          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries);
40  
41      public com.liferay.portlet.softwarecatalog.model.SCProductEntry create(
42          long productEntryId);
43  
44      public com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
45          long productEntryId)
46          throws com.liferay.portal.SystemException,
47              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.softwarecatalog.model.SCProductEntry update(
53          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateImpl(
57          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByPrimaryKey(
61          long productEntryId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
64  
65      public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByPrimaryKey(
66          long productEntryId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
69          long groupId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> 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.SCProductEntry> 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.SCProductEntry findByGroupId_First(
81          long groupId,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
85  
86      public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last(
87          long groupId,
88          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89          throws com.liferay.portal.SystemException,
90              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
91  
92      public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext(
93          long productEntryId, long groupId,
94          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
97  
98      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
99          long companyId) throws com.liferay.portal.SystemException;
100 
101     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> 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.SCProductEntry> 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.SCProductEntry findByCompanyId_First(
111         long companyId,
112         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113         throws com.liferay.portal.SystemException,
114             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
115 
116     public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last(
117         long companyId,
118         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119         throws com.liferay.portal.SystemException,
120             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
121 
122     public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext(
123         long productEntryId, long companyId,
124         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
127 
128     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
129         long groupId, long userId) throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
132         long groupId, long userId, int start, int end)
133         throws com.liferay.portal.SystemException;
134 
135     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
136         long groupId, long userId, 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.SCProductEntry findByG_U_First(
141         long groupId, long userId,
142         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143         throws com.liferay.portal.SystemException,
144             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
145 
146     public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last(
147         long groupId, long userId,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
151 
152     public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext(
153         long productEntryId, long groupId, long userId,
154         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155         throws com.liferay.portal.SystemException,
156             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
157 
158     public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA(
159         java.lang.String repoGroupId, java.lang.String repoArtifactId)
160         throws com.liferay.portal.SystemException,
161             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
162 
163     public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
164         java.lang.String repoGroupId, java.lang.String repoArtifactId)
165         throws com.liferay.portal.SystemException;
166 
167     public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
168         java.lang.String repoGroupId, java.lang.String repoArtifactId,
169         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
170 
171     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll()
172         throws com.liferay.portal.SystemException;
173 
174     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
175         int start, int end) throws com.liferay.portal.SystemException;
176 
177     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
178         int start, int end,
179         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180         throws com.liferay.portal.SystemException;
181 
182     public void removeByGroupId(long groupId)
183         throws com.liferay.portal.SystemException;
184 
185     public void removeByCompanyId(long companyId)
186         throws com.liferay.portal.SystemException;
187 
188     public void removeByG_U(long groupId, long userId)
189         throws com.liferay.portal.SystemException;
190 
191     public void removeByRG_RA(java.lang.String repoGroupId,
192         java.lang.String repoArtifactId)
193         throws com.liferay.portal.SystemException,
194             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
195 
196     public void removeAll() throws com.liferay.portal.SystemException;
197 
198     public int countByGroupId(long groupId)
199         throws com.liferay.portal.SystemException;
200 
201     public int countByCompanyId(long companyId)
202         throws com.liferay.portal.SystemException;
203 
204     public int countByG_U(long groupId, long userId)
205         throws com.liferay.portal.SystemException;
206 
207     public int countByRG_RA(java.lang.String repoGroupId,
208         java.lang.String repoArtifactId)
209         throws com.liferay.portal.SystemException;
210 
211     public int countAll() throws com.liferay.portal.SystemException;
212 
213     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
214         long pk) throws com.liferay.portal.SystemException;
215 
216     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
217         long pk, int start, int end) throws com.liferay.portal.SystemException;
218 
219     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
220         long pk, int start, int end,
221         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222         throws com.liferay.portal.SystemException;
223 
224     public int getSCLicensesSize(long pk)
225         throws com.liferay.portal.SystemException;
226 
227     public boolean containsSCLicense(long pk, long scLicensePK)
228         throws com.liferay.portal.SystemException;
229 
230     public boolean containsSCLicenses(long pk)
231         throws com.liferay.portal.SystemException;
232 
233     public void addSCLicense(long pk, long scLicensePK)
234         throws com.liferay.portal.SystemException;
235 
236     public void addSCLicense(long pk,
237         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
238         throws com.liferay.portal.SystemException;
239 
240     public void addSCLicenses(long pk, long[] scLicensePKs)
241         throws com.liferay.portal.SystemException;
242 
243     public void addSCLicenses(long pk,
244         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
245         throws com.liferay.portal.SystemException;
246 
247     public void clearSCLicenses(long pk)
248         throws com.liferay.portal.SystemException;
249 
250     public void removeSCLicense(long pk, long scLicensePK)
251         throws com.liferay.portal.SystemException;
252 
253     public void removeSCLicense(long pk,
254         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
255         throws com.liferay.portal.SystemException;
256 
257     public void removeSCLicenses(long pk, long[] scLicensePKs)
258         throws com.liferay.portal.SystemException;
259 
260     public void removeSCLicenses(long pk,
261         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
262         throws com.liferay.portal.SystemException;
263 
264     public void setSCLicenses(long pk, long[] scLicensePKs)
265         throws com.liferay.portal.SystemException;
266 
267     public void setSCLicenses(long pk,
268         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
269         throws com.liferay.portal.SystemException;
270 }