001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.softwarecatalog.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.softwarecatalog.model.SCProductEntry;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       SCProductEntryPersistenceImpl
024     * @see       SCProductEntryUtil
025     * @generated
026     */
027    public interface SCProductEntryPersistence extends BasePersistence<SCProductEntry> {
028            public void cacheResult(
029                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries);
033    
034            public com.liferay.portlet.softwarecatalog.model.SCProductEntry create(
035                    long productEntryId);
036    
037            public com.liferay.portlet.softwarecatalog.model.SCProductEntry remove(
038                    long productEntryId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
041    
042            public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateImpl(
043                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByPrimaryKey(
048                    long productEntryId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
051    
052            public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByPrimaryKey(
053                    long productEntryId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
057                    long groupId)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
061                    long groupId, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByGroupId(
065                    long groupId, int start, int end,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_First(
070                    long groupId,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
074    
075            public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByGroupId_Last(
076                    long groupId,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
080    
081            public com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByGroupId_PrevAndNext(
082                    long productEntryId, long groupId,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
086    
087            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId(
088                    long groupId)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId(
092                    long groupId, int start, int end)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByGroupId(
096                    long groupId, int start, int end,
097                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
101                    long companyId)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
105                    long companyId, int start, int end)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByCompanyId(
109                    long companyId, int start, int end,
110                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByCompanyId_First(
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_Last(
120                    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 com.liferay.portlet.softwarecatalog.model.SCProductEntry[] findByCompanyId_PrevAndNext(
126                    long productEntryId, long companyId,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.kernel.exception.SystemException,
129                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
130    
131            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
132                    long groupId, long userId)
133                    throws com.liferay.portal.kernel.exception.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                    throws com.liferay.portal.kernel.exception.SystemException;
138    
139            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findByG_U(
140                    long groupId, long userId, int start, int end,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByG_U_First(
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_Last(
151                    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[] findByG_U_PrevAndNext(
157                    long productEntryId, long groupId, long userId,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
161    
162            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U(
163                    long groupId, long userId)
164                    throws com.liferay.portal.kernel.exception.SystemException;
165    
166            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U(
167                    long groupId, long userId, int start, int end)
168                    throws com.liferay.portal.kernel.exception.SystemException;
169    
170            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> filterFindByG_U(
171                    long groupId, long userId, int start, int end,
172                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173                    throws com.liferay.portal.kernel.exception.SystemException;
174    
175            public com.liferay.portlet.softwarecatalog.model.SCProductEntry findByRG_RA(
176                    java.lang.String repoGroupId, java.lang.String repoArtifactId)
177                    throws com.liferay.portal.kernel.exception.SystemException,
178                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
179    
180            public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
181                    java.lang.String repoGroupId, java.lang.String repoArtifactId)
182                    throws com.liferay.portal.kernel.exception.SystemException;
183    
184            public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchByRG_RA(
185                    java.lang.String repoGroupId, java.lang.String repoArtifactId,
186                    boolean retrieveFromCache)
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll()
190                    throws com.liferay.portal.kernel.exception.SystemException;
191    
192            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
193                    int start, int end)
194                    throws com.liferay.portal.kernel.exception.SystemException;
195    
196            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> findAll(
197                    int start, int end,
198                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199                    throws com.liferay.portal.kernel.exception.SystemException;
200    
201            public void removeByGroupId(long groupId)
202                    throws com.liferay.portal.kernel.exception.SystemException;
203    
204            public void removeByCompanyId(long companyId)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            public void removeByG_U(long groupId, long userId)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            public void removeByRG_RA(java.lang.String repoGroupId,
211                    java.lang.String repoArtifactId)
212                    throws com.liferay.portal.kernel.exception.SystemException,
213                            com.liferay.portlet.softwarecatalog.NoSuchProductEntryException;
214    
215            public void removeAll()
216                    throws com.liferay.portal.kernel.exception.SystemException;
217    
218            public int countByGroupId(long groupId)
219                    throws com.liferay.portal.kernel.exception.SystemException;
220    
221            public int filterCountByGroupId(long groupId)
222                    throws com.liferay.portal.kernel.exception.SystemException;
223    
224            public int countByCompanyId(long companyId)
225                    throws com.liferay.portal.kernel.exception.SystemException;
226    
227            public int countByG_U(long groupId, long userId)
228                    throws com.liferay.portal.kernel.exception.SystemException;
229    
230            public int filterCountByG_U(long groupId, long userId)
231                    throws com.liferay.portal.kernel.exception.SystemException;
232    
233            public int countByRG_RA(java.lang.String repoGroupId,
234                    java.lang.String repoArtifactId)
235                    throws com.liferay.portal.kernel.exception.SystemException;
236    
237            public int countAll()
238                    throws com.liferay.portal.kernel.exception.SystemException;
239    
240            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
241                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
242    
243            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
244                    long pk, int start, int end)
245                    throws com.liferay.portal.kernel.exception.SystemException;
246    
247            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
248                    long pk, int start, int end,
249                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            public int getSCLicensesSize(long pk)
253                    throws com.liferay.portal.kernel.exception.SystemException;
254    
255            public boolean containsSCLicense(long pk, long scLicensePK)
256                    throws com.liferay.portal.kernel.exception.SystemException;
257    
258            public boolean containsSCLicenses(long pk)
259                    throws com.liferay.portal.kernel.exception.SystemException;
260    
261            public void addSCLicense(long pk, long scLicensePK)
262                    throws com.liferay.portal.kernel.exception.SystemException;
263    
264            public void addSCLicense(long pk,
265                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
266                    throws com.liferay.portal.kernel.exception.SystemException;
267    
268            public void addSCLicenses(long pk, long[] scLicensePKs)
269                    throws com.liferay.portal.kernel.exception.SystemException;
270    
271            public void addSCLicenses(long pk,
272                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
273                    throws com.liferay.portal.kernel.exception.SystemException;
274    
275            public void clearSCLicenses(long pk)
276                    throws com.liferay.portal.kernel.exception.SystemException;
277    
278            public void removeSCLicense(long pk, long scLicensePK)
279                    throws com.liferay.portal.kernel.exception.SystemException;
280    
281            public void removeSCLicense(long pk,
282                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
283                    throws com.liferay.portal.kernel.exception.SystemException;
284    
285            public void removeSCLicenses(long pk, long[] scLicensePKs)
286                    throws com.liferay.portal.kernel.exception.SystemException;
287    
288            public void removeSCLicenses(long pk,
289                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
290                    throws com.liferay.portal.kernel.exception.SystemException;
291    
292            public void setSCLicenses(long pk, long[] scLicensePKs)
293                    throws com.liferay.portal.kernel.exception.SystemException;
294    
295            public void setSCLicenses(long pk,
296                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses)
297                    throws com.liferay.portal.kernel.exception.SystemException;
298    }