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.SCProductVersion;
20  
21  /**
22   * <a href="SCProductVersionPersistence.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       SCProductVersionPersistenceImpl
31   * @see       SCProductVersionUtil
32   * @generated
33   */
34  public interface SCProductVersionPersistence extends BasePersistence<SCProductVersion> {
35      public void cacheResult(
36          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> scProductVersions);
40  
41      public com.liferay.portlet.softwarecatalog.model.SCProductVersion create(
42          long productVersionId);
43  
44      public com.liferay.portlet.softwarecatalog.model.SCProductVersion remove(
45          long productVersionId)
46          throws com.liferay.portal.SystemException,
47              com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.softwarecatalog.model.SCProductVersion update(
53          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.softwarecatalog.model.SCProductVersion updateImpl(
57          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByPrimaryKey(
61          long productVersionId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
64  
65      public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByPrimaryKey(
66          long productVersionId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
69          long productEntryId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
72          long productEntryId, int start, int end)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findByProductEntryId(
76          long productEntryId, 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.SCProductVersion findByProductEntryId_First(
81          long productEntryId,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
85  
86      public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByProductEntryId_Last(
87          long productEntryId,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.SystemException,
90              com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
91  
92      public com.liferay.portlet.softwarecatalog.model.SCProductVersion[] findByProductEntryId_PrevAndNext(
93          long productVersionId, long productEntryId,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
97  
98      public com.liferay.portlet.softwarecatalog.model.SCProductVersion findByDirectDownloadURL(
99          java.lang.String directDownloadURL)
100         throws com.liferay.portal.SystemException,
101             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
102 
103     public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
104         java.lang.String directDownloadURL)
105         throws com.liferay.portal.SystemException;
106 
107     public com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchByDirectDownloadURL(
108         java.lang.String directDownloadURL, boolean retrieveFromCache)
109         throws com.liferay.portal.SystemException;
110 
111     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll()
112         throws com.liferay.portal.SystemException;
113 
114     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
115         int start, int end) throws com.liferay.portal.SystemException;
116 
117     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> findAll(
118         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.SystemException;
120 
121     public void removeByProductEntryId(long productEntryId)
122         throws com.liferay.portal.SystemException;
123 
124     public void removeByDirectDownloadURL(java.lang.String directDownloadURL)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.softwarecatalog.NoSuchProductVersionException;
127 
128     public void removeAll() throws com.liferay.portal.SystemException;
129 
130     public int countByProductEntryId(long productEntryId)
131         throws com.liferay.portal.SystemException;
132 
133     public int countByDirectDownloadURL(java.lang.String directDownloadURL)
134         throws com.liferay.portal.SystemException;
135 
136     public int countAll() throws com.liferay.portal.SystemException;
137 
138     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
139         long pk) throws com.liferay.portal.SystemException;
140 
141     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
142         long pk, int start, int end) throws com.liferay.portal.SystemException;
143 
144     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
145         long pk, int start, int end,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException;
148 
149     public int getSCFrameworkVersionsSize(long pk)
150         throws com.liferay.portal.SystemException;
151 
152     public boolean containsSCFrameworkVersion(long pk, long scFrameworkVersionPK)
153         throws com.liferay.portal.SystemException;
154 
155     public boolean containsSCFrameworkVersions(long pk)
156         throws com.liferay.portal.SystemException;
157 
158     public void addSCFrameworkVersion(long pk, long scFrameworkVersionPK)
159         throws com.liferay.portal.SystemException;
160 
161     public void addSCFrameworkVersion(long pk,
162         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
163         throws com.liferay.portal.SystemException;
164 
165     public void addSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
166         throws com.liferay.portal.SystemException;
167 
168     public void addSCFrameworkVersions(long pk,
169         java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
170         throws com.liferay.portal.SystemException;
171 
172     public void clearSCFrameworkVersions(long pk)
173         throws com.liferay.portal.SystemException;
174 
175     public void removeSCFrameworkVersion(long pk, long scFrameworkVersionPK)
176         throws com.liferay.portal.SystemException;
177 
178     public void removeSCFrameworkVersion(long pk,
179         com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
180         throws com.liferay.portal.SystemException;
181 
182     public void removeSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
183         throws com.liferay.portal.SystemException;
184 
185     public void removeSCFrameworkVersions(long pk,
186         java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
187         throws com.liferay.portal.SystemException;
188 
189     public void setSCFrameworkVersions(long pk, long[] scFrameworkVersionPKs)
190         throws com.liferay.portal.SystemException;
191 
192     public void setSCFrameworkVersions(long pk,
193         java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> scFrameworkVersions)
194         throws com.liferay.portal.SystemException;
195 }