001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.Website;
018    
019    /**
020     * The persistence interface for the website service.
021     *
022     * <p>
023     * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface.
024     * </p>
025     *
026     * @author Brian Wing Shun Chan
027     * @see WebsitePersistenceImpl
028     * @see WebsiteUtil
029     * @generated
030     */
031    public interface WebsitePersistence extends BasePersistence<Website> {
032            /**
033            * Caches the website in the entity cache if it is enabled.
034            *
035            * @param website the website to cache
036            */
037            public void cacheResult(com.liferay.portal.model.Website website);
038    
039            /**
040            * Caches the websites in the entity cache if it is enabled.
041            *
042            * @param websites the websites to cache
043            */
044            public void cacheResult(
045                    java.util.List<com.liferay.portal.model.Website> websites);
046    
047            /**
048            * Creates a new website with the primary key.
049            *
050            * @param websiteId the primary key for the new website
051            * @return the new website
052            */
053            public com.liferay.portal.model.Website create(long websiteId);
054    
055            /**
056            * Removes the website with the primary key from the database. Also notifies the appropriate model listeners.
057            *
058            * @param websiteId the primary key of the website to remove
059            * @return the website that was removed
060            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public com.liferay.portal.model.Website remove(long websiteId)
064                    throws com.liferay.portal.NoSuchWebsiteException,
065                            com.liferay.portal.kernel.exception.SystemException;
066    
067            public com.liferay.portal.model.Website updateImpl(
068                    com.liferay.portal.model.Website website, boolean merge)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            /**
072            * Finds the website with the primary key or throws a {@link com.liferay.portal.NoSuchWebsiteException} if it could not be found.
073            *
074            * @param websiteId the primary key of the website to find
075            * @return the website
076            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
077            * @throws SystemException if a system exception occurred
078            */
079            public com.liferay.portal.model.Website findByPrimaryKey(long websiteId)
080                    throws com.liferay.portal.NoSuchWebsiteException,
081                            com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * Finds the website with the primary key or returns <code>null</code> if it could not be found.
085            *
086            * @param websiteId the primary key of the website to find
087            * @return the website, or <code>null</code> if a website with the primary key could not be found
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portal.model.Website fetchByPrimaryKey(long websiteId)
091                    throws com.liferay.portal.kernel.exception.SystemException;
092    
093            /**
094            * Finds all the websites where companyId = &#63;.
095            *
096            * @param companyId the company id to search with
097            * @return the matching websites
098            * @throws SystemException if a system exception occurred
099            */
100            public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
101                    long companyId)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            /**
105            * Finds a range of all the websites where companyId = &#63;.
106            *
107            * <p>
108            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
109            * </p>
110            *
111            * @param companyId the company id to search with
112            * @param start the lower bound of the range of websites to return
113            * @param end the upper bound of the range of websites to return (not inclusive)
114            * @return the range of matching websites
115            * @throws SystemException if a system exception occurred
116            */
117            public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
118                    long companyId, int start, int end)
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            /**
122            * Finds an ordered range of all the websites where companyId = &#63;.
123            *
124            * <p>
125            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
126            * </p>
127            *
128            * @param companyId the company id to search with
129            * @param start the lower bound of the range of websites to return
130            * @param end the upper bound of the range of websites to return (not inclusive)
131            * @param orderByComparator the comparator to order the results by
132            * @return the ordered range of matching websites
133            * @throws SystemException if a system exception occurred
134            */
135            public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
136                    long companyId, int start, int end,
137                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            /**
141            * Finds the first website in the ordered set where companyId = &#63;.
142            *
143            * <p>
144            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
145            * </p>
146            *
147            * @param companyId the company id to search with
148            * @param orderByComparator the comparator to order the set by
149            * @return the first matching website
150            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public com.liferay.portal.model.Website findByCompanyId_First(
154                    long companyId,
155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156                    throws com.liferay.portal.NoSuchWebsiteException,
157                            com.liferay.portal.kernel.exception.SystemException;
158    
159            /**
160            * Finds the last website in the ordered set where companyId = &#63;.
161            *
162            * <p>
163            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
164            * </p>
165            *
166            * @param companyId the company id to search with
167            * @param orderByComparator the comparator to order the set by
168            * @return the last matching website
169            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
170            * @throws SystemException if a system exception occurred
171            */
172            public com.liferay.portal.model.Website findByCompanyId_Last(
173                    long companyId,
174                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175                    throws com.liferay.portal.NoSuchWebsiteException,
176                            com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * Finds the websites before and after the current website in the ordered set where companyId = &#63;.
180            *
181            * <p>
182            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
183            * </p>
184            *
185            * @param websiteId the primary key of the current website
186            * @param companyId the company id to search with
187            * @param orderByComparator the comparator to order the set by
188            * @return the previous, current, and next website
189            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
190            * @throws SystemException if a system exception occurred
191            */
192            public com.liferay.portal.model.Website[] findByCompanyId_PrevAndNext(
193                    long websiteId, long companyId,
194                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195                    throws com.liferay.portal.NoSuchWebsiteException,
196                            com.liferay.portal.kernel.exception.SystemException;
197    
198            /**
199            * Finds all the websites where userId = &#63;.
200            *
201            * @param userId the user id to search with
202            * @return the matching websites
203            * @throws SystemException if a system exception occurred
204            */
205            public java.util.List<com.liferay.portal.model.Website> findByUserId(
206                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
207    
208            /**
209            * Finds a range of all the websites where userId = &#63;.
210            *
211            * <p>
212            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
213            * </p>
214            *
215            * @param userId the user id to search with
216            * @param start the lower bound of the range of websites to return
217            * @param end the upper bound of the range of websites to return (not inclusive)
218            * @return the range of matching websites
219            * @throws SystemException if a system exception occurred
220            */
221            public java.util.List<com.liferay.portal.model.Website> findByUserId(
222                    long userId, int start, int end)
223                    throws com.liferay.portal.kernel.exception.SystemException;
224    
225            /**
226            * Finds an ordered range of all the websites where userId = &#63;.
227            *
228            * <p>
229            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
230            * </p>
231            *
232            * @param userId the user id to search with
233            * @param start the lower bound of the range of websites to return
234            * @param end the upper bound of the range of websites to return (not inclusive)
235            * @param orderByComparator the comparator to order the results by
236            * @return the ordered range of matching websites
237            * @throws SystemException if a system exception occurred
238            */
239            public java.util.List<com.liferay.portal.model.Website> findByUserId(
240                    long userId, int start, int end,
241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            /**
245            * Finds the first website in the ordered set where userId = &#63;.
246            *
247            * <p>
248            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
249            * </p>
250            *
251            * @param userId the user id to search with
252            * @param orderByComparator the comparator to order the set by
253            * @return the first matching website
254            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
255            * @throws SystemException if a system exception occurred
256            */
257            public com.liferay.portal.model.Website findByUserId_First(long userId,
258                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259                    throws com.liferay.portal.NoSuchWebsiteException,
260                            com.liferay.portal.kernel.exception.SystemException;
261    
262            /**
263            * Finds the last website in the ordered set where userId = &#63;.
264            *
265            * <p>
266            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
267            * </p>
268            *
269            * @param userId the user id to search with
270            * @param orderByComparator the comparator to order the set by
271            * @return the last matching website
272            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
273            * @throws SystemException if a system exception occurred
274            */
275            public com.liferay.portal.model.Website findByUserId_Last(long userId,
276                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277                    throws com.liferay.portal.NoSuchWebsiteException,
278                            com.liferay.portal.kernel.exception.SystemException;
279    
280            /**
281            * Finds the websites before and after the current website in the ordered set where userId = &#63;.
282            *
283            * <p>
284            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
285            * </p>
286            *
287            * @param websiteId the primary key of the current website
288            * @param userId the user id to search with
289            * @param orderByComparator the comparator to order the set by
290            * @return the previous, current, and next website
291            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
292            * @throws SystemException if a system exception occurred
293            */
294            public com.liferay.portal.model.Website[] findByUserId_PrevAndNext(
295                    long websiteId, long userId,
296                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297                    throws com.liferay.portal.NoSuchWebsiteException,
298                            com.liferay.portal.kernel.exception.SystemException;
299    
300            /**
301            * Finds all the websites where companyId = &#63; and classNameId = &#63;.
302            *
303            * @param companyId the company id to search with
304            * @param classNameId the class name id to search with
305            * @return the matching websites
306            * @throws SystemException if a system exception occurred
307            */
308            public java.util.List<com.liferay.portal.model.Website> findByC_C(
309                    long companyId, long classNameId)
310                    throws com.liferay.portal.kernel.exception.SystemException;
311    
312            /**
313            * Finds a range of all the websites where companyId = &#63; and classNameId = &#63;.
314            *
315            * <p>
316            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
317            * </p>
318            *
319            * @param companyId the company id to search with
320            * @param classNameId the class name id to search with
321            * @param start the lower bound of the range of websites to return
322            * @param end the upper bound of the range of websites to return (not inclusive)
323            * @return the range of matching websites
324            * @throws SystemException if a system exception occurred
325            */
326            public java.util.List<com.liferay.portal.model.Website> findByC_C(
327                    long companyId, long classNameId, int start, int end)
328                    throws com.liferay.portal.kernel.exception.SystemException;
329    
330            /**
331            * Finds an ordered range of all the websites where companyId = &#63; and classNameId = &#63;.
332            *
333            * <p>
334            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
335            * </p>
336            *
337            * @param companyId the company id to search with
338            * @param classNameId the class name id to search with
339            * @param start the lower bound of the range of websites to return
340            * @param end the upper bound of the range of websites to return (not inclusive)
341            * @param orderByComparator the comparator to order the results by
342            * @return the ordered range of matching websites
343            * @throws SystemException if a system exception occurred
344            */
345            public java.util.List<com.liferay.portal.model.Website> findByC_C(
346                    long companyId, long classNameId, int start, int end,
347                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
348                    throws com.liferay.portal.kernel.exception.SystemException;
349    
350            /**
351            * Finds the first website in the ordered set where companyId = &#63; and classNameId = &#63;.
352            *
353            * <p>
354            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
355            * </p>
356            *
357            * @param companyId the company id to search with
358            * @param classNameId the class name id to search with
359            * @param orderByComparator the comparator to order the set by
360            * @return the first matching website
361            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
362            * @throws SystemException if a system exception occurred
363            */
364            public com.liferay.portal.model.Website findByC_C_First(long companyId,
365                    long classNameId,
366                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
367                    throws com.liferay.portal.NoSuchWebsiteException,
368                            com.liferay.portal.kernel.exception.SystemException;
369    
370            /**
371            * Finds the last website in the ordered set where companyId = &#63; and classNameId = &#63;.
372            *
373            * <p>
374            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
375            * </p>
376            *
377            * @param companyId the company id to search with
378            * @param classNameId the class name id to search with
379            * @param orderByComparator the comparator to order the set by
380            * @return the last matching website
381            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
382            * @throws SystemException if a system exception occurred
383            */
384            public com.liferay.portal.model.Website findByC_C_Last(long companyId,
385                    long classNameId,
386                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
387                    throws com.liferay.portal.NoSuchWebsiteException,
388                            com.liferay.portal.kernel.exception.SystemException;
389    
390            /**
391            * Finds the websites before and after the current website in the ordered set where companyId = &#63; and classNameId = &#63;.
392            *
393            * <p>
394            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
395            * </p>
396            *
397            * @param websiteId the primary key of the current website
398            * @param companyId the company id to search with
399            * @param classNameId the class name id to search with
400            * @param orderByComparator the comparator to order the set by
401            * @return the previous, current, and next website
402            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
403            * @throws SystemException if a system exception occurred
404            */
405            public com.liferay.portal.model.Website[] findByC_C_PrevAndNext(
406                    long websiteId, long companyId, long classNameId,
407                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
408                    throws com.liferay.portal.NoSuchWebsiteException,
409                            com.liferay.portal.kernel.exception.SystemException;
410    
411            /**
412            * Finds all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
413            *
414            * @param companyId the company id to search with
415            * @param classNameId the class name id to search with
416            * @param classPK the class p k to search with
417            * @return the matching websites
418            * @throws SystemException if a system exception occurred
419            */
420            public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
421                    long companyId, long classNameId, long classPK)
422                    throws com.liferay.portal.kernel.exception.SystemException;
423    
424            /**
425            * Finds a range of all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
426            *
427            * <p>
428            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
429            * </p>
430            *
431            * @param companyId the company id to search with
432            * @param classNameId the class name id to search with
433            * @param classPK the class p k to search with
434            * @param start the lower bound of the range of websites to return
435            * @param end the upper bound of the range of websites to return (not inclusive)
436            * @return the range of matching websites
437            * @throws SystemException if a system exception occurred
438            */
439            public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
440                    long companyId, long classNameId, long classPK, int start, int end)
441                    throws com.liferay.portal.kernel.exception.SystemException;
442    
443            /**
444            * Finds an ordered range of all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
445            *
446            * <p>
447            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
448            * </p>
449            *
450            * @param companyId the company id to search with
451            * @param classNameId the class name id to search with
452            * @param classPK the class p k to search with
453            * @param start the lower bound of the range of websites to return
454            * @param end the upper bound of the range of websites to return (not inclusive)
455            * @param orderByComparator the comparator to order the results by
456            * @return the ordered range of matching websites
457            * @throws SystemException if a system exception occurred
458            */
459            public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
460                    long companyId, long classNameId, long classPK, int start, int end,
461                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
462                    throws com.liferay.portal.kernel.exception.SystemException;
463    
464            /**
465            * Finds the first website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
466            *
467            * <p>
468            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
469            * </p>
470            *
471            * @param companyId the company id to search with
472            * @param classNameId the class name id to search with
473            * @param classPK the class p k to search with
474            * @param orderByComparator the comparator to order the set by
475            * @return the first matching website
476            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
477            * @throws SystemException if a system exception occurred
478            */
479            public com.liferay.portal.model.Website findByC_C_C_First(long companyId,
480                    long classNameId, long classPK,
481                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
482                    throws com.liferay.portal.NoSuchWebsiteException,
483                            com.liferay.portal.kernel.exception.SystemException;
484    
485            /**
486            * Finds the last website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
487            *
488            * <p>
489            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
490            * </p>
491            *
492            * @param companyId the company id to search with
493            * @param classNameId the class name id to search with
494            * @param classPK the class p k to search with
495            * @param orderByComparator the comparator to order the set by
496            * @return the last matching website
497            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
498            * @throws SystemException if a system exception occurred
499            */
500            public com.liferay.portal.model.Website findByC_C_C_Last(long companyId,
501                    long classNameId, long classPK,
502                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
503                    throws com.liferay.portal.NoSuchWebsiteException,
504                            com.liferay.portal.kernel.exception.SystemException;
505    
506            /**
507            * Finds the websites before and after the current website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
508            *
509            * <p>
510            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
511            * </p>
512            *
513            * @param websiteId the primary key of the current website
514            * @param companyId the company id to search with
515            * @param classNameId the class name id to search with
516            * @param classPK the class p k to search with
517            * @param orderByComparator the comparator to order the set by
518            * @return the previous, current, and next website
519            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
520            * @throws SystemException if a system exception occurred
521            */
522            public com.liferay.portal.model.Website[] findByC_C_C_PrevAndNext(
523                    long websiteId, long companyId, long classNameId, long classPK,
524                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
525                    throws com.liferay.portal.NoSuchWebsiteException,
526                            com.liferay.portal.kernel.exception.SystemException;
527    
528            /**
529            * Finds all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
530            *
531            * @param companyId the company id to search with
532            * @param classNameId the class name id to search with
533            * @param classPK the class p k to search with
534            * @param primary the primary to search with
535            * @return the matching websites
536            * @throws SystemException if a system exception occurred
537            */
538            public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
539                    long companyId, long classNameId, long classPK, boolean primary)
540                    throws com.liferay.portal.kernel.exception.SystemException;
541    
542            /**
543            * Finds a range of all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
544            *
545            * <p>
546            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
547            * </p>
548            *
549            * @param companyId the company id to search with
550            * @param classNameId the class name id to search with
551            * @param classPK the class p k to search with
552            * @param primary the primary to search with
553            * @param start the lower bound of the range of websites to return
554            * @param end the upper bound of the range of websites to return (not inclusive)
555            * @return the range of matching websites
556            * @throws SystemException if a system exception occurred
557            */
558            public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
559                    long companyId, long classNameId, long classPK, boolean primary,
560                    int start, int end)
561                    throws com.liferay.portal.kernel.exception.SystemException;
562    
563            /**
564            * Finds an ordered range of all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
565            *
566            * <p>
567            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
568            * </p>
569            *
570            * @param companyId the company id to search with
571            * @param classNameId the class name id to search with
572            * @param classPK the class p k to search with
573            * @param primary the primary to search with
574            * @param start the lower bound of the range of websites to return
575            * @param end the upper bound of the range of websites to return (not inclusive)
576            * @param orderByComparator the comparator to order the results by
577            * @return the ordered range of matching websites
578            * @throws SystemException if a system exception occurred
579            */
580            public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
581                    long companyId, long classNameId, long classPK, boolean primary,
582                    int start, int end,
583                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
584                    throws com.liferay.portal.kernel.exception.SystemException;
585    
586            /**
587            * Finds the first website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
588            *
589            * <p>
590            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
591            * </p>
592            *
593            * @param companyId the company id to search with
594            * @param classNameId the class name id to search with
595            * @param classPK the class p k to search with
596            * @param primary the primary to search with
597            * @param orderByComparator the comparator to order the set by
598            * @return the first matching website
599            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
600            * @throws SystemException if a system exception occurred
601            */
602            public com.liferay.portal.model.Website findByC_C_C_P_First(
603                    long companyId, long classNameId, long classPK, boolean primary,
604                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
605                    throws com.liferay.portal.NoSuchWebsiteException,
606                            com.liferay.portal.kernel.exception.SystemException;
607    
608            /**
609            * Finds the last website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
610            *
611            * <p>
612            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
613            * </p>
614            *
615            * @param companyId the company id to search with
616            * @param classNameId the class name id to search with
617            * @param classPK the class p k to search with
618            * @param primary the primary to search with
619            * @param orderByComparator the comparator to order the set by
620            * @return the last matching website
621            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
622            * @throws SystemException if a system exception occurred
623            */
624            public com.liferay.portal.model.Website findByC_C_C_P_Last(long companyId,
625                    long classNameId, long classPK, boolean primary,
626                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
627                    throws com.liferay.portal.NoSuchWebsiteException,
628                            com.liferay.portal.kernel.exception.SystemException;
629    
630            /**
631            * Finds the websites before and after the current website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
632            *
633            * <p>
634            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
635            * </p>
636            *
637            * @param websiteId the primary key of the current website
638            * @param companyId the company id to search with
639            * @param classNameId the class name id to search with
640            * @param classPK the class p k to search with
641            * @param primary the primary to search with
642            * @param orderByComparator the comparator to order the set by
643            * @return the previous, current, and next website
644            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
645            * @throws SystemException if a system exception occurred
646            */
647            public com.liferay.portal.model.Website[] findByC_C_C_P_PrevAndNext(
648                    long websiteId, long companyId, long classNameId, long classPK,
649                    boolean primary,
650                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
651                    throws com.liferay.portal.NoSuchWebsiteException,
652                            com.liferay.portal.kernel.exception.SystemException;
653    
654            /**
655            * Finds all the websites.
656            *
657            * @return the websites
658            * @throws SystemException if a system exception occurred
659            */
660            public java.util.List<com.liferay.portal.model.Website> findAll()
661                    throws com.liferay.portal.kernel.exception.SystemException;
662    
663            /**
664            * Finds a range of all the websites.
665            *
666            * <p>
667            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
668            * </p>
669            *
670            * @param start the lower bound of the range of websites to return
671            * @param end the upper bound of the range of websites to return (not inclusive)
672            * @return the range of websites
673            * @throws SystemException if a system exception occurred
674            */
675            public java.util.List<com.liferay.portal.model.Website> findAll(int start,
676                    int end) throws com.liferay.portal.kernel.exception.SystemException;
677    
678            /**
679            * Finds an ordered range of all the websites.
680            *
681            * <p>
682            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
683            * </p>
684            *
685            * @param start the lower bound of the range of websites to return
686            * @param end the upper bound of the range of websites to return (not inclusive)
687            * @param orderByComparator the comparator to order the results by
688            * @return the ordered range of websites
689            * @throws SystemException if a system exception occurred
690            */
691            public java.util.List<com.liferay.portal.model.Website> findAll(int start,
692                    int end,
693                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
694                    throws com.liferay.portal.kernel.exception.SystemException;
695    
696            /**
697            * Removes all the websites where companyId = &#63; from the database.
698            *
699            * @param companyId the company id to search with
700            * @throws SystemException if a system exception occurred
701            */
702            public void removeByCompanyId(long companyId)
703                    throws com.liferay.portal.kernel.exception.SystemException;
704    
705            /**
706            * Removes all the websites where userId = &#63; from the database.
707            *
708            * @param userId the user id to search with
709            * @throws SystemException if a system exception occurred
710            */
711            public void removeByUserId(long userId)
712                    throws com.liferay.portal.kernel.exception.SystemException;
713    
714            /**
715            * Removes all the websites where companyId = &#63; and classNameId = &#63; from the database.
716            *
717            * @param companyId the company id to search with
718            * @param classNameId the class name id to search with
719            * @throws SystemException if a system exception occurred
720            */
721            public void removeByC_C(long companyId, long classNameId)
722                    throws com.liferay.portal.kernel.exception.SystemException;
723    
724            /**
725            * Removes all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
726            *
727            * @param companyId the company id to search with
728            * @param classNameId the class name id to search with
729            * @param classPK the class p k to search with
730            * @throws SystemException if a system exception occurred
731            */
732            public void removeByC_C_C(long companyId, long classNameId, long classPK)
733                    throws com.liferay.portal.kernel.exception.SystemException;
734    
735            /**
736            * Removes all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63; from the database.
737            *
738            * @param companyId the company id to search with
739            * @param classNameId the class name id to search with
740            * @param classPK the class p k to search with
741            * @param primary the primary to search with
742            * @throws SystemException if a system exception occurred
743            */
744            public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
745                    boolean primary)
746                    throws com.liferay.portal.kernel.exception.SystemException;
747    
748            /**
749            * Removes all the websites from the database.
750            *
751            * @throws SystemException if a system exception occurred
752            */
753            public void removeAll()
754                    throws com.liferay.portal.kernel.exception.SystemException;
755    
756            /**
757            * Counts all the websites where companyId = &#63;.
758            *
759            * @param companyId the company id to search with
760            * @return the number of matching websites
761            * @throws SystemException if a system exception occurred
762            */
763            public int countByCompanyId(long companyId)
764                    throws com.liferay.portal.kernel.exception.SystemException;
765    
766            /**
767            * Counts all the websites where userId = &#63;.
768            *
769            * @param userId the user id to search with
770            * @return the number of matching websites
771            * @throws SystemException if a system exception occurred
772            */
773            public int countByUserId(long userId)
774                    throws com.liferay.portal.kernel.exception.SystemException;
775    
776            /**
777            * Counts all the websites where companyId = &#63; and classNameId = &#63;.
778            *
779            * @param companyId the company id to search with
780            * @param classNameId the class name id to search with
781            * @return the number of matching websites
782            * @throws SystemException if a system exception occurred
783            */
784            public int countByC_C(long companyId, long classNameId)
785                    throws com.liferay.portal.kernel.exception.SystemException;
786    
787            /**
788            * Counts all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
789            *
790            * @param companyId the company id to search with
791            * @param classNameId the class name id to search with
792            * @param classPK the class p k to search with
793            * @return the number of matching websites
794            * @throws SystemException if a system exception occurred
795            */
796            public int countByC_C_C(long companyId, long classNameId, long classPK)
797                    throws com.liferay.portal.kernel.exception.SystemException;
798    
799            /**
800            * Counts all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
801            *
802            * @param companyId the company id to search with
803            * @param classNameId the class name id to search with
804            * @param classPK the class p k to search with
805            * @param primary the primary to search with
806            * @return the number of matching websites
807            * @throws SystemException if a system exception occurred
808            */
809            public int countByC_C_C_P(long companyId, long classNameId, long classPK,
810                    boolean primary)
811                    throws com.liferay.portal.kernel.exception.SystemException;
812    
813            /**
814            * Counts all the websites.
815            *
816            * @return the number of websites
817            * @throws SystemException if a system exception occurred
818            */
819            public int countAll()
820                    throws com.liferay.portal.kernel.exception.SystemException;
821    }