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.SCProductVersion;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       SCProductVersionPersistenceImpl
024     * @see       SCProductVersionUtil
025     * @generated
026     */
027    public interface SCProductVersionPersistence extends BasePersistence<SCProductVersion> {
028            public void cacheResult(
029                    com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions);
033    
034            public com.liferay.portlet.softwarecatalog.model.SCProductVersion create(
035                    long productVersionId);
036    
037            public com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
038                    long productVersionId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
041    
042            public com.liferay.portlet.softwarecatalog.model.SCProductVersion updateImpl(
043                    com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByPrimaryKey(
048                    long productVersionId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
051    
052            public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByPrimaryKey(
053                    long productVersionId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
057                    long productEntryId)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
061                    long productEntryId, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
065                    long productEntryId, 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.SCProductVersion findByProductEntryId_First(
070                    long productEntryId,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
074    
075            public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_Last(
076                    long productEntryId,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
080    
081            public com.liferay.portlet.softwarecatalog.model.SCProductVersion[] findByProductEntryId_PrevAndNext(
082                    long productVersionId, long productEntryId,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
086    
087            public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByDirectDownloadURL(
088                    java.lang.String directDownloadURL)
089                    throws com.liferay.portal.kernel.exception.SystemException,
090                            com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
091    
092            public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
093                    java.lang.String directDownloadURL)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
097                    java.lang.String directDownloadURL, boolean retrieveFromCache)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll()
101                    throws com.liferay.portal.kernel.exception.SystemException;
102    
103            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
104                    int start, int end)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
108                    int start, int end,
109                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            public void removeByProductEntryId(long productEntryId)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            public void removeByDirectDownloadURL(java.lang.String directDownloadURL)
116                    throws com.liferay.portal.kernel.exception.SystemException,
117                            com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
118    
119            public void removeAll()
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            public int countByProductEntryId(long productEntryId)
123                    throws com.liferay.portal.kernel.exception.SystemException;
124    
125            public int countByDirectDownloadURL(java.lang.String directDownloadURL)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            public int countAll()
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
132                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
133    
134            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
135                    long pk, int start, int end)
136                    throws com.liferay.portal.kernel.exception.SystemException;
137    
138            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
139                    long pk, int start, int end,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            public int getSCFrameworkVersionsSize(long pk)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            public boolean containsSCFrameworkVersion(long pk, long scFrameworkVersionPK)
147                    throws com.liferay.portal.kernel.exception.SystemException;
148    
149            public boolean containsSCFrameworkVersions(long pk)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            public void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
153                    throws com.liferay.portal.kernel.exception.SystemException;
154    
155            public void addSCFrameworkVersion(long pk,
156                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
157                    throws com.liferay.portal.kernel.exception.SystemException;
158    
159            public void addSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
160                    throws com.liferay.portal.kernel.exception.SystemException;
161    
162            public void addSCFrameworkVersions(long pk,
163                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
164                    throws com.liferay.portal.kernel.exception.SystemException;
165    
166            public void clearSCFrameworkVersions(long pk)
167                    throws com.liferay.portal.kernel.exception.SystemException;
168    
169            public void removeSCFrameworkVersion(long pk, long scFrameworkVersionPK)
170                    throws com.liferay.portal.kernel.exception.SystemException;
171    
172            public void removeSCFrameworkVersion(long pk,
173                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            public void removeSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            public void removeSCFrameworkVersions(long pk,
180                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
181                    throws com.liferay.portal.kernel.exception.SystemException;
182    
183            public void setSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
184                    throws com.liferay.portal.kernel.exception.SystemException;
185    
186            public void setSCFrameworkVersions(long pk,
187                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
188                    throws com.liferay.portal.kernel.exception.SystemException;
189    }