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 obc)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(
81          boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.SystemException,
83              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
84  
85      public com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(
86          boolean active, com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
89  
90      public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(
91          long licenseId, boolean active,
92          com.liferay.portal.kernel.util.OrderByComparator obc)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
95  
96      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
97          boolean active, boolean recommended)
98          throws com.liferay.portal.SystemException;
99  
100     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
101         boolean active, boolean recommended, int start, int end)
102         throws com.liferay.portal.SystemException;
103 
104     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
105         boolean active, boolean recommended, int start, int end,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException;
108 
109     public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(
110         boolean active, boolean recommended,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
114 
115     public com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(
116         boolean active, boolean recommended,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
120 
121     public com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(
122         long licenseId, boolean active, boolean recommended,
123         com.liferay.portal.kernel.util.OrderByComparator obc)
124         throws com.liferay.portal.SystemException,
125             com.liferay.portlet.softwarecatalog.NoSuchLicenseException;
126 
127     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll()
128         throws com.liferay.portal.SystemException;
129 
130     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
131         int start, int end) throws com.liferay.portal.SystemException;
132 
133     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
134         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.SystemException;
136 
137     public void removeByActive(boolean active)
138         throws com.liferay.portal.SystemException;
139 
140     public void removeByA_R(boolean active, boolean recommended)
141         throws com.liferay.portal.SystemException;
142 
143     public void removeAll() throws com.liferay.portal.SystemException;
144 
145     public int countByActive(boolean active)
146         throws com.liferay.portal.SystemException;
147 
148     public int countByA_R(boolean active, boolean recommended)
149         throws com.liferay.portal.SystemException;
150 
151     public int countAll() throws com.liferay.portal.SystemException;
152 
153     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
154         long pk) throws com.liferay.portal.SystemException;
155 
156     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
157         long pk, int start, int end) 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,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException;
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 
176     public void addSCProductEntry(long pk,
177         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
178         throws com.liferay.portal.SystemException;
179 
180     public void addSCProductEntries(long pk, long[] scProductEntryPKs)
181         throws com.liferay.portal.SystemException;
182 
183     public void addSCProductEntries(long pk,
184         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
185         throws com.liferay.portal.SystemException;
186 
187     public void clearSCProductEntries(long pk)
188         throws com.liferay.portal.SystemException;
189 
190     public void removeSCProductEntry(long pk, long scProductEntryPK)
191         throws com.liferay.portal.SystemException;
192 
193     public void removeSCProductEntry(long pk,
194         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
195         throws com.liferay.portal.SystemException;
196 
197     public void removeSCProductEntries(long pk, long[] scProductEntryPKs)
198         throws com.liferay.portal.SystemException;
199 
200     public void removeSCProductEntries(long pk,
201         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
202         throws com.liferay.portal.SystemException;
203 
204     public void setSCProductEntries(long pk, long[] scProductEntryPKs)
205         throws com.liferay.portal.SystemException;
206 
207     public void setSCProductEntries(long pk,
208         java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
209         throws com.liferay.portal.SystemException;
210 }