1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.softwarecatalog.service.persistence;
24  
25  /**
26   * <a href="SCLicensePersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface SCLicensePersistence {
32      public com.liferay.portlet.softwarecatalog.model.SCLicense create(
33          long licenseId);
34  
35      public com.liferay.portlet.softwarecatalog.model.SCLicense remove(
36          long licenseId)
37          throws com.liferay.portal.SystemException, 
38              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
39  
40      public com.liferay.portlet.softwarecatalog.model.SCLicense remove(
41          com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
42          throws com.liferay.portal.SystemException;
43  
44      public com.liferay.portlet.softwarecatalog.model.SCLicense update(
45          com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
46          throws com.liferay.portal.SystemException;
47  
48      public com.liferay.portlet.softwarecatalog.model.SCLicense update(
49          com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
50          boolean merge) throws com.liferay.portal.SystemException;
51  
52      public com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl(
53          com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
54          boolean merge) throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(
57          long licenseId)
58          throws com.liferay.portal.SystemException, 
59              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
60  
61      public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(
62          long licenseId) throws com.liferay.portal.SystemException;
63  
64      public java.util.List findByActive(boolean active)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List findByActive(boolean active, int begin, int end)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List findByActive(boolean active, int begin, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(
75          boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.SystemException, 
77              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
78  
79      public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(
80          boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.SystemException, 
82              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
83  
84      public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(
85          long licenseId, boolean active,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException, 
88              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
89  
90      public java.util.List findByA_R(boolean active, boolean recommended)
91          throws com.liferay.portal.SystemException;
92  
93      public java.util.List findByA_R(boolean active, boolean recommended,
94          int begin, int end) throws com.liferay.portal.SystemException;
95  
96      public java.util.List findByA_R(boolean active, boolean recommended,
97          int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.SystemException;
99  
100     public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(
101         boolean active, boolean recommended,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.SystemException, 
104             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
105 
106     public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(
107         boolean active, boolean recommended,
108         com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.SystemException, 
110             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
111 
112     public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(
113         long licenseId, boolean active, boolean recommended,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException, 
116             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
117 
118     public java.util.List findWithDynamicQuery(
119         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
120         throws com.liferay.portal.SystemException;
121 
122     public java.util.List findWithDynamicQuery(
123         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
124         int begin, int end) throws com.liferay.portal.SystemException;
125 
126     public java.util.List findAll() throws com.liferay.portal.SystemException;
127 
128     public java.util.List findAll(int begin, int end)
129         throws com.liferay.portal.SystemException;
130 
131     public java.util.List findAll(int begin, int end,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.SystemException;
134 
135     public void removeByActive(boolean active)
136         throws com.liferay.portal.SystemException;
137 
138     public void removeByA_R(boolean active, boolean recommended)
139         throws com.liferay.portal.SystemException;
140 
141     public void removeAll() throws com.liferay.portal.SystemException;
142 
143     public int countByActive(boolean active)
144         throws com.liferay.portal.SystemException;
145 
146     public int countByA_R(boolean active, boolean recommended)
147         throws com.liferay.portal.SystemException;
148 
149     public int countAll() throws com.liferay.portal.SystemException;
150 
151     public java.util.List getSCProductEntries(long pk)
152         throws com.liferay.portal.SystemException, 
153             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
154 
155     public java.util.List getSCProductEntries(long pk, int begin, int end)
156         throws com.liferay.portal.SystemException, 
157             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
158 
159     public java.util.List getSCProductEntries(long pk, int begin, int end,
160         com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.SystemException, 
162             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
163 
164     public int getSCProductEntriesSize(long pk)
165         throws com.liferay.portal.SystemException;
166 
167     public boolean containsSCProductEntry(long pk, long scProductEntryPK)
168         throws com.liferay.portal.SystemException;
169 
170     public boolean containsSCProductEntries(long pk)
171         throws com.liferay.portal.SystemException;
172 
173     public void addSCProductEntry(long pk, long scProductEntryPK)
174         throws com.liferay.portal.SystemException, 
175             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
176             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
177 
178     public void addSCProductEntry(long pk,
179         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
180         throws com.liferay.portal.SystemException, 
181             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
182             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
183 
184     public void addSCProductEntries(long pk, long[] scProductEntryPKs)
185         throws com.liferay.portal.SystemException, 
186             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
187             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
188 
189     public void addSCProductEntries(long pk, java.util.List scProductEntries)
190         throws com.liferay.portal.SystemException, 
191             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
192             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
193 
194     public void clearSCProductEntries(long pk)
195         throws com.liferay.portal.SystemException, 
196             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
197 
198     public void removeSCProductEntry(long pk, long scProductEntryPK)
199         throws com.liferay.portal.SystemException, 
200             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
201             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
202 
203     public void removeSCProductEntry(long pk,
204         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
205         throws com.liferay.portal.SystemException, 
206             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
207             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
208 
209     public void removeSCProductEntries(long pk, long[] scProductEntryPKs)
210         throws com.liferay.portal.SystemException, 
211             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
212             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
213 
214     public void removeSCProductEntries(long pk, java.util.List scProductEntries)
215         throws com.liferay.portal.SystemException, 
216             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
217             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
218 
219     public void setSCProductEntries(long pk, long[] scProductEntryPKs)
220         throws com.liferay.portal.SystemException, 
221             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
222             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
223 
224     public void setSCProductEntries(long pk, java.util.List scProductEntries)
225         throws com.liferay.portal.SystemException, 
226             com.liferay.portlet.softwarecatalog.NoSuchProductEntryException, 
227             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
228 }