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 obc)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_First(
81          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.SystemException,
83              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
84  
85      public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last(
86          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
89  
90      public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext(
91          long productEntryId, long groupId,
92          com.liferay.portal.kernel.util.OrderByComparator obc)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
95  
96      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
97          long companyId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
100         long companyId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
104         long companyId, 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.SCProductEntry findByCompanyId_First(
109         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException,
111             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
112 
113     public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_Last(
114         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException,
116             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
117 
118     public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext(
119         long productEntryId, long companyId,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException,
122             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
123 
124     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
125         long groupId, long userId) throws com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
128         long groupId, long userId, int start, int end)
129         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         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException;
135 
136     public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_First(
137         long groupId, long userId,
138         com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.SystemException,
140             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
141 
142     public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_Last(
143         long groupId, long userId,
144         com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException,
146             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
147 
148     public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByG_U_PrevAndNext(
149         long productEntryId, long groupId, long userId,
150         com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException,
152             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
153 
154     public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA(
155         java.lang.String repoGroupId, java.lang.String repoArtifactId)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
158 
159     public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
160         java.lang.String repoGroupId, java.lang.String repoArtifactId)
161         throws com.liferay.portal.SystemException;
162 
163     public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
164         java.lang.String repoGroupId, java.lang.String repoArtifactId,
165         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
166 
167     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll()
168         throws com.liferay.portal.SystemException;
169 
170     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
171         int start, int end) throws com.liferay.portal.SystemException;
172 
173     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
174         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.SystemException;
176 
177     public void removeByGroupId(long groupId)
178         throws com.liferay.portal.SystemException;
179 
180     public void removeByCompanyId(long companyId)
181         throws com.liferay.portal.SystemException;
182 
183     public void removeByG_U(long groupId, long userId)
184         throws com.liferay.portal.SystemException;
185 
186     public void removeByRG_RA(java.lang.String repoGroupId,
187         java.lang.String repoArtifactId)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
190 
191     public void removeAll() throws com.liferay.portal.SystemException;
192 
193     public int countByGroupId(long groupId)
194         throws com.liferay.portal.SystemException;
195 
196     public int countByCompanyId(long companyId)
197         throws com.liferay.portal.SystemException;
198 
199     public int countByG_U(long groupId, long userId)
200         throws com.liferay.portal.SystemException;
201 
202     public int countByRG_RA(java.lang.String repoGroupId,
203         java.lang.String repoArtifactId)
204         throws com.liferay.portal.SystemException;
205 
206     public int countAll() throws com.liferay.portal.SystemException;
207 
208     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
209         long pk) throws com.liferay.portal.SystemException;
210 
211     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
212         long pk, int start, int end) throws com.liferay.portal.SystemException;
213 
214     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
215         long pk, int start, int end,
216         com.liferay.portal.kernel.util.OrderByComparator obc)
217         throws com.liferay.portal.SystemException;
218 
219     public int getSCLicensesSize(long pk)
220         throws com.liferay.portal.SystemException;
221 
222     public boolean containsSCLicense(long pk, long scLicensePK)
223         throws com.liferay.portal.SystemException;
224 
225     public boolean containsSCLicenses(long pk)
226         throws com.liferay.portal.SystemException;
227 
228     public void addSCLicense(long pk, long scLicensePK)
229         throws com.liferay.portal.SystemException;
230 
231     public void addSCLicense(long pk,
232         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
233         throws com.liferay.portal.SystemException;
234 
235     public void addSCLicenses(long pk, long[] scLicensePKs)
236         throws com.liferay.portal.SystemException;
237 
238     public void addSCLicenses(long pk,
239         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
240         throws com.liferay.portal.SystemException;
241 
242     public void clearSCLicenses(long pk)
243         throws com.liferay.portal.SystemException;
244 
245     public void removeSCLicense(long pk, long scLicensePK)
246         throws com.liferay.portal.SystemException;
247 
248     public void removeSCLicense(long pk,
249         com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
250         throws com.liferay.portal.SystemException;
251 
252     public void removeSCLicenses(long pk, long[] scLicensePKs)
253         throws com.liferay.portal.SystemException;
254 
255     public void removeSCLicenses(long pk,
256         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
257         throws com.liferay.portal.SystemException;
258 
259     public void setSCLicenses(long pk, long[] scLicensePKs)
260         throws com.liferay.portal.SystemException;
261 
262     public void setSCLicenses(long pk,
263         java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
264         throws com.liferay.portal.SystemException;
265 }