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.SCLicense;
20  
21  /**
22   * <a href="SCLicensePersistence.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       SCLicensePersistenceImpl
31   * @see       SCLicenseUtil
32   * @generated
33   */
34  public interface SCLicensePersistence extends BasePersistence<SCLicense> {
35      public void cacheResult(
36          com.liferay.portlet.softwarecatalog.model.SCLicense scLicense);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses);
40  
41      public com.liferay.portlet.softwarecatalog.model.SCLicense create(
42          long licenseId);
43  
44      public com.liferay.portlet.softwarecatalog.model.SCLicense remove(
45          long licenseId)
46          throws com.liferay.portal.SystemException,
47              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.softwarecatalog.model.SCLicense update(
53          com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl(
57          com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(
61          long licenseId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
64  
65      public com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(
66          long licenseId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
69          boolean active) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
72          boolean active, int start, int end)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
76          boolean active, int start, int end,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(
81          boolean active,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
85  
86      public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(
87          boolean active,
88          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89          throws com.liferay.portal.SystemException,
90              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
91  
92      public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(
93          long licenseId, boolean active,
94          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
97  
98      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
99          boolean active, boolean recommended)
100         throws com.liferay.portal.SystemException;
101 
102     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
103         boolean active, boolean recommended, int start, int end)
104         throws com.liferay.portal.SystemException;
105 
106     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
107         boolean active, boolean recommended, int start, int end,
108         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109         throws com.liferay.portal.SystemException;
110 
111     public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(
112         boolean active, boolean recommended,
113         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114         throws com.liferay.portal.SystemException,
115             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
116 
117     public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(
118         boolean active, boolean recommended,
119         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120         throws com.liferay.portal.SystemException,
121             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
122 
123     public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(
124         long licenseId, boolean active, boolean recommended,
125         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
126         throws com.liferay.portal.SystemException,
127             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
128 
129     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll()
130         throws com.liferay.portal.SystemException;
131 
132     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
133         int start, int end) throws com.liferay.portal.SystemException;
134 
135     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
136         int start, int end,
137         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138         throws com.liferay.portal.SystemException;
139 
140     public void removeByActive(boolean active)
141         throws com.liferay.portal.SystemException;
142 
143     public void removeByA_R(boolean active, boolean recommended)
144         throws com.liferay.portal.SystemException;
145 
146     public void removeAll() throws com.liferay.portal.SystemException;
147 
148     public int countByActive(boolean active)
149         throws com.liferay.portal.SystemException;
150 
151     public int countByA_R(boolean active, boolean recommended)
152         throws com.liferay.portal.SystemException;
153 
154     public int countAll() throws com.liferay.portal.SystemException;
155 
156     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
157         long pk) throws com.liferay.portal.SystemException;
158 
159     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
160         long pk, int start, int end) throws com.liferay.portal.SystemException;
161 
162     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
163         long pk, int start, int end,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.SystemException;
166 
167     public int getSCProductEntriesSize(long pk)
168         throws com.liferay.portal.SystemException;
169 
170     public boolean containsSCProductEntry(long pk, long scProductEntryPK)
171         throws com.liferay.portal.SystemException;
172 
173     public boolean containsSCProductEntries(long pk)
174         throws com.liferay.portal.SystemException;
175 
176     public void addSCProductEntry(long pk, long scProductEntryPK)
177         throws com.liferay.portal.SystemException;
178 
179     public void addSCProductEntry(long pk,
180         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
181         throws com.liferay.portal.SystemException;
182 
183     public void addSCProductEntries(long pk, long[] scProductEntryPKs)
184         throws com.liferay.portal.SystemException;
185 
186     public void addSCProductEntries(long pk,
187         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
188         throws com.liferay.portal.SystemException;
189 
190     public void clearSCProductEntries(long pk)
191         throws com.liferay.portal.SystemException;
192 
193     public void removeSCProductEntry(long pk, long scProductEntryPK)
194         throws com.liferay.portal.SystemException;
195 
196     public void removeSCProductEntry(long pk,
197         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
198         throws com.liferay.portal.SystemException;
199 
200     public void removeSCProductEntries(long pk, long[] scProductEntryPKs)
201         throws com.liferay.portal.SystemException;
202 
203     public void removeSCProductEntries(long pk,
204         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
205         throws com.liferay.portal.SystemException;
206 
207     public void setSCProductEntries(long pk, long[] scProductEntryPKs)
208         throws com.liferay.portal.SystemException;
209 
210     public void setSCProductEntries(long pk,
211         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
212         throws com.liferay.portal.SystemException;
213 }