1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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.kernel.exception.SystemException,
47              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
48  
49      public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateImpl(
50          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByPrimaryKey(
55          long productEntryId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
58  
59      public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByPrimaryKey(
60          long productEntryId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
64          long groupId)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
68          long groupId, int start, int end)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
72          long groupId, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_First(
77          long groupId,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException,
80              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
81  
82      public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last(
83          long groupId,
84          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
85          throws com.liferay.portal.kernel.exception.SystemException,
86              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
87  
88      public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext(
89          long productEntryId, long groupId,
90          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
91          throws com.liferay.portal.kernel.exception.SystemException,
92              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
93  
94      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
95          long companyId)
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
99          long companyId, int start, int end)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
103         long companyId, int start, int end,
104         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_First(
108         long companyId,
109         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110         throws com.liferay.portal.kernel.exception.SystemException,
111             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
112 
113     public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last(
114         long companyId,
115         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116         throws com.liferay.portal.kernel.exception.SystemException,
117             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
118 
119     public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext(
120         long productEntryId, long companyId,
121         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
122         throws com.liferay.portal.kernel.exception.SystemException,
123             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
124 
125     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
126         long groupId, long userId)
127         throws com.liferay.portal.kernel.exception.SystemException;
128 
129     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
130         long groupId, long userId, int start, int end)
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
134         long groupId, long userId, int start, int end,
135         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136         throws com.liferay.portal.kernel.exception.SystemException;
137 
138     public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_First(
139         long groupId, long userId,
140         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141         throws com.liferay.portal.kernel.exception.SystemException,
142             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
143 
144     public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last(
145         long groupId, long userId,
146         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147         throws com.liferay.portal.kernel.exception.SystemException,
148             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
149 
150     public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext(
151         long productEntryId, long groupId, long userId,
152         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153         throws com.liferay.portal.kernel.exception.SystemException,
154             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
155 
156     public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA(
157         java.lang.String repoGroupId, java.lang.String repoArtifactId)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
160 
161     public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
162         java.lang.String repoGroupId, java.lang.String repoArtifactId)
163         throws com.liferay.portal.kernel.exception.SystemException;
164 
165     public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
166         java.lang.String repoGroupId, java.lang.String repoArtifactId,
167         boolean retrieveFromCache)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll()
171         throws com.liferay.portal.kernel.exception.SystemException;
172 
173     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
174         int start, int end)
175         throws com.liferay.portal.kernel.exception.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.kernel.exception.SystemException;
181 
182     public void removeByGroupId(long groupId)
183         throws com.liferay.portal.kernel.exception.SystemException;
184 
185     public void removeByCompanyId(long companyId)
186         throws com.liferay.portal.kernel.exception.SystemException;
187 
188     public void removeByG_U(long groupId, long userId)
189         throws com.liferay.portal.kernel.exception.SystemException;
190 
191     public void removeByRG_RA(java.lang.String repoGroupId,
192         java.lang.String repoArtifactId)
193         throws com.liferay.portal.kernel.exception.SystemException,
194             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
195 
196     public void removeAll()
197         throws com.liferay.portal.kernel.exception.SystemException;
198 
199     public int countByGroupId(long groupId)
200         throws com.liferay.portal.kernel.exception.SystemException;
201 
202     public int countByCompanyId(long companyId)
203         throws com.liferay.portal.kernel.exception.SystemException;
204 
205     public int countByG_U(long groupId, long userId)
206         throws com.liferay.portal.kernel.exception.SystemException;
207 
208     public int countByRG_RA(java.lang.String repoGroupId,
209         java.lang.String repoArtifactId)
210         throws com.liferay.portal.kernel.exception.SystemException;
211 
212     public int countAll()
213         throws com.liferay.portal.kernel.exception.SystemException;
214 
215     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
216         long pk) throws com.liferay.portal.kernel.exception.SystemException;
217 
218     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
219         long pk, int start, int end)
220         throws com.liferay.portal.kernel.exception.SystemException;
221 
222     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
223         long pk, int start, int end,
224         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225         throws com.liferay.portal.kernel.exception.SystemException;
226 
227     public int getSCLicensesSize(long pk)
228         throws com.liferay.portal.kernel.exception.SystemException;
229 
230     public boolean containsSCLicense(long pk, long scLicensePK)
231         throws com.liferay.portal.kernel.exception.SystemException;
232 
233     public boolean containsSCLicenses(long pk)
234         throws com.liferay.portal.kernel.exception.SystemException;
235 
236     public void addSCLicense(long pk, long scLicensePK)
237         throws com.liferay.portal.kernel.exception.SystemException;
238 
239     public void addSCLicense(long pk,
240         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
241         throws com.liferay.portal.kernel.exception.SystemException;
242 
243     public void addSCLicenses(long pk, long[] scLicensePKs)
244         throws com.liferay.portal.kernel.exception.SystemException;
245 
246     public void addSCLicenses(long pk,
247         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
248         throws com.liferay.portal.kernel.exception.SystemException;
249 
250     public void clearSCLicenses(long pk)
251         throws com.liferay.portal.kernel.exception.SystemException;
252 
253     public void removeSCLicense(long pk, long scLicensePK)
254         throws com.liferay.portal.kernel.exception.SystemException;
255 
256     public void removeSCLicense(long pk,
257         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
258         throws com.liferay.portal.kernel.exception.SystemException;
259 
260     public void removeSCLicenses(long pk, long[] scLicensePKs)
261         throws com.liferay.portal.kernel.exception.SystemException;
262 
263     public void removeSCLicenses(long pk,
264         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
265         throws com.liferay.portal.kernel.exception.SystemException;
266 
267     public void setSCLicenses(long pk, long[] scLicensePKs)
268         throws com.liferay.portal.kernel.exception.SystemException;
269 
270     public void setSCLicenses(long pk,
271         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
272         throws com.liferay.portal.kernel.exception.SystemException;
273 }