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