1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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.portal.service.persistence;
24  
25  
26  /**
27   * <a href="WebsitePersistence.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       WebsitePersistenceImpl
36   * @see       WebsiteUtil
37   * @generated
38   */
39  public interface WebsitePersistence extends BasePersistence {
40      public void cacheResult(com.liferay.portal.model.Website website);
41  
42      public void cacheResult(
43          java.util.List<com.liferay.portal.model.Website> websites);
44  
45      public void clearCache();
46  
47      public com.liferay.portal.model.Website create(long websiteId);
48  
49      public com.liferay.portal.model.Website remove(long websiteId)
50          throws com.liferay.portal.NoSuchWebsiteException,
51              com.liferay.portal.SystemException;
52  
53      public com.liferay.portal.model.Website remove(
54          com.liferay.portal.model.Website website)
55          throws com.liferay.portal.SystemException;
56  
57      /**
58       * @deprecated Use {@link #update(Website, boolean merge)}.
59       */
60      public com.liferay.portal.model.Website update(
61          com.liferay.portal.model.Website website)
62          throws com.liferay.portal.SystemException;
63  
64      /**
65       * Add, update, or merge, the entity. This method also calls the model
66       * listeners to trigger the proper events associated with adding, deleting,
67       * or updating an entity.
68       *
69       * @param  website the entity to add, update, or merge
70       * @param  merge boolean value for whether to merge the entity. The default
71       *         value is false. Setting merge to true is more expensive and
72       *         should only be true when website is transient. See
73       *         LEP-5473 for a detailed discussion of this method.
74       * @return the entity that was added, updated, or merged
75       */
76      public com.liferay.portal.model.Website update(
77          com.liferay.portal.model.Website website, boolean merge)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portal.model.Website updateImpl(
81          com.liferay.portal.model.Website website, boolean merge)
82          throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.Website findByPrimaryKey(long websiteId)
85          throws com.liferay.portal.NoSuchWebsiteException,
86              com.liferay.portal.SystemException;
87  
88      public com.liferay.portal.model.Website fetchByPrimaryKey(long websiteId)
89          throws com.liferay.portal.SystemException;
90  
91      public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
92          long companyId) throws com.liferay.portal.SystemException;
93  
94      public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
95          long companyId, int start, int end)
96          throws com.liferay.portal.SystemException;
97  
98      public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
99          long companyId, int start, int end,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException;
102 
103     public com.liferay.portal.model.Website findByCompanyId_First(
104         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.NoSuchWebsiteException,
106             com.liferay.portal.SystemException;
107 
108     public com.liferay.portal.model.Website findByCompanyId_Last(
109         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.NoSuchWebsiteException,
111             com.liferay.portal.SystemException;
112 
113     public com.liferay.portal.model.Website[] findByCompanyId_PrevAndNext(
114         long websiteId, long companyId,
115         com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.NoSuchWebsiteException,
117             com.liferay.portal.SystemException;
118 
119     public java.util.List<com.liferay.portal.model.Website> findByUserId(
120         long userId) throws com.liferay.portal.SystemException;
121 
122     public java.util.List<com.liferay.portal.model.Website> findByUserId(
123         long userId, int start, int end)
124         throws com.liferay.portal.SystemException;
125 
126     public java.util.List<com.liferay.portal.model.Website> findByUserId(
127         long userId, int start, int end,
128         com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException;
130 
131     public com.liferay.portal.model.Website findByUserId_First(long userId,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.NoSuchWebsiteException,
134             com.liferay.portal.SystemException;
135 
136     public com.liferay.portal.model.Website findByUserId_Last(long userId,
137         com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.NoSuchWebsiteException,
139             com.liferay.portal.SystemException;
140 
141     public com.liferay.portal.model.Website[] findByUserId_PrevAndNext(
142         long websiteId, long userId,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.NoSuchWebsiteException,
145             com.liferay.portal.SystemException;
146 
147     public java.util.List<com.liferay.portal.model.Website> findByC_C(
148         long companyId, long classNameId)
149         throws com.liferay.portal.SystemException;
150 
151     public java.util.List<com.liferay.portal.model.Website> findByC_C(
152         long companyId, long classNameId, int start, int end)
153         throws com.liferay.portal.SystemException;
154 
155     public java.util.List<com.liferay.portal.model.Website> findByC_C(
156         long companyId, long classNameId, int start, int end,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException;
159 
160     public com.liferay.portal.model.Website findByC_C_First(long companyId,
161         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.NoSuchWebsiteException,
163             com.liferay.portal.SystemException;
164 
165     public com.liferay.portal.model.Website findByC_C_Last(long companyId,
166         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
167         throws com.liferay.portal.NoSuchWebsiteException,
168             com.liferay.portal.SystemException;
169 
170     public com.liferay.portal.model.Website[] findByC_C_PrevAndNext(
171         long websiteId, long companyId, long classNameId,
172         com.liferay.portal.kernel.util.OrderByComparator obc)
173         throws com.liferay.portal.NoSuchWebsiteException,
174             com.liferay.portal.SystemException;
175 
176     public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
177         long companyId, long classNameId, long classPK)
178         throws com.liferay.portal.SystemException;
179 
180     public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
181         long companyId, long classNameId, long classPK, int start, int end)
182         throws com.liferay.portal.SystemException;
183 
184     public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
185         long companyId, long classNameId, long classPK, int start, int end,
186         com.liferay.portal.kernel.util.OrderByComparator obc)
187         throws com.liferay.portal.SystemException;
188 
189     public com.liferay.portal.model.Website findByC_C_C_First(long companyId,
190         long classNameId, long classPK,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.NoSuchWebsiteException,
193             com.liferay.portal.SystemException;
194 
195     public com.liferay.portal.model.Website findByC_C_C_Last(long companyId,
196         long classNameId, long classPK,
197         com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.NoSuchWebsiteException,
199             com.liferay.portal.SystemException;
200 
201     public com.liferay.portal.model.Website[] findByC_C_C_PrevAndNext(
202         long websiteId, long companyId, long classNameId, long classPK,
203         com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.NoSuchWebsiteException,
205             com.liferay.portal.SystemException;
206 
207     public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
208         long companyId, long classNameId, long classPK, boolean primary)
209         throws com.liferay.portal.SystemException;
210 
211     public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
212         long companyId, long classNameId, long classPK, boolean primary,
213         int start, int end) throws com.liferay.portal.SystemException;
214 
215     public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
216         long companyId, long classNameId, long classPK, boolean primary,
217         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.SystemException;
219 
220     public com.liferay.portal.model.Website findByC_C_C_P_First(
221         long companyId, long classNameId, long classPK, boolean primary,
222         com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.NoSuchWebsiteException,
224             com.liferay.portal.SystemException;
225 
226     public com.liferay.portal.model.Website findByC_C_C_P_Last(long companyId,
227         long classNameId, long classPK, boolean primary,
228         com.liferay.portal.kernel.util.OrderByComparator obc)
229         throws com.liferay.portal.NoSuchWebsiteException,
230             com.liferay.portal.SystemException;
231 
232     public com.liferay.portal.model.Website[] findByC_C_C_P_PrevAndNext(
233         long websiteId, long companyId, long classNameId, long classPK,
234         boolean primary, com.liferay.portal.kernel.util.OrderByComparator obc)
235         throws com.liferay.portal.NoSuchWebsiteException,
236             com.liferay.portal.SystemException;
237 
238     public java.util.List<Object> findWithDynamicQuery(
239         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
240         throws com.liferay.portal.SystemException;
241 
242     public java.util.List<Object> findWithDynamicQuery(
243         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
244         int end) throws com.liferay.portal.SystemException;
245 
246     public java.util.List<com.liferay.portal.model.Website> findAll()
247         throws com.liferay.portal.SystemException;
248 
249     public java.util.List<com.liferay.portal.model.Website> findAll(int start,
250         int end) throws com.liferay.portal.SystemException;
251 
252     public java.util.List<com.liferay.portal.model.Website> findAll(int start,
253         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
254         throws com.liferay.portal.SystemException;
255 
256     public void removeByCompanyId(long companyId)
257         throws com.liferay.portal.SystemException;
258 
259     public void removeByUserId(long userId)
260         throws com.liferay.portal.SystemException;
261 
262     public void removeByC_C(long companyId, long classNameId)
263         throws com.liferay.portal.SystemException;
264 
265     public void removeByC_C_C(long companyId, long classNameId, long classPK)
266         throws com.liferay.portal.SystemException;
267 
268     public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
269         boolean primary) throws com.liferay.portal.SystemException;
270 
271     public void removeAll() throws com.liferay.portal.SystemException;
272 
273     public int countByCompanyId(long companyId)
274         throws com.liferay.portal.SystemException;
275 
276     public int countByUserId(long userId)
277         throws com.liferay.portal.SystemException;
278 
279     public int countByC_C(long companyId, long classNameId)
280         throws com.liferay.portal.SystemException;
281 
282     public int countByC_C_C(long companyId, long classNameId, long classPK)
283         throws com.liferay.portal.SystemException;
284 
285     public int countByC_C_C_P(long companyId, long classNameId, long classPK,
286         boolean primary) throws com.liferay.portal.SystemException;
287 
288     public int countAll() throws com.liferay.portal.SystemException;
289 }