001    /**
002     * Copyright (c) 2000-2013 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     * Caching information and settings can be found in <code>portal.properties</code>
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             * NOTE FOR DEVELOPERS:
034             *
035             * 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.
036             */
037    
038            /**
039            * Returns all the websites where uuid = &#63;.
040            *
041            * @param uuid the uuid
042            * @return the matching websites
043            * @throws SystemException if a system exception occurred
044            */
045            public java.util.List<com.liferay.portal.model.Website> findByUuid(
046                    java.lang.String uuid)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            /**
050            * Returns a range of all the websites where uuid = &#63;.
051            *
052            * <p>
053            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
054            * </p>
055            *
056            * @param uuid the uuid
057            * @param start the lower bound of the range of websites
058            * @param end the upper bound of the range of websites (not inclusive)
059            * @return the range of matching websites
060            * @throws SystemException if a system exception occurred
061            */
062            public java.util.List<com.liferay.portal.model.Website> findByUuid(
063                    java.lang.String uuid, int start, int end)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            /**
067            * Returns an ordered range of all the websites where uuid = &#63;.
068            *
069            * <p>
070            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
071            * </p>
072            *
073            * @param uuid the uuid
074            * @param start the lower bound of the range of websites
075            * @param end the upper bound of the range of websites (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching websites
078            * @throws SystemException if a system exception occurred
079            */
080            public java.util.List<com.liferay.portal.model.Website> findByUuid(
081                    java.lang.String uuid, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    
085            /**
086            * Returns the first website in the ordered set where uuid = &#63;.
087            *
088            * @param uuid the uuid
089            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
090            * @return the first matching website
091            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
092            * @throws SystemException if a system exception occurred
093            */
094            public com.liferay.portal.model.Website findByUuid_First(
095                    java.lang.String uuid,
096                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097                    throws com.liferay.portal.NoSuchWebsiteException,
098                            com.liferay.portal.kernel.exception.SystemException;
099    
100            /**
101            * Returns the first website in the ordered set where uuid = &#63;.
102            *
103            * @param uuid the uuid
104            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
105            * @return the first matching website, or <code>null</code> if a matching website could not be found
106            * @throws SystemException if a system exception occurred
107            */
108            public com.liferay.portal.model.Website fetchByUuid_First(
109                    java.lang.String uuid,
110                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            /**
114            * Returns the last website in the ordered set where uuid = &#63;.
115            *
116            * @param uuid the uuid
117            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
118            * @return the last matching website
119            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
120            * @throws SystemException if a system exception occurred
121            */
122            public com.liferay.portal.model.Website findByUuid_Last(
123                    java.lang.String uuid,
124                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125                    throws com.liferay.portal.NoSuchWebsiteException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            /**
129            * Returns the last website in the ordered set where uuid = &#63;.
130            *
131            * @param uuid the uuid
132            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
133            * @return the last matching website, or <code>null</code> if a matching website could not be found
134            * @throws SystemException if a system exception occurred
135            */
136            public com.liferay.portal.model.Website fetchByUuid_Last(
137                    java.lang.String uuid,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            /**
142            * Returns the websites before and after the current website in the ordered set where uuid = &#63;.
143            *
144            * @param websiteId the primary key of the current website
145            * @param uuid the uuid
146            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
147            * @return the previous, current, and next website
148            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
149            * @throws SystemException if a system exception occurred
150            */
151            public com.liferay.portal.model.Website[] findByUuid_PrevAndNext(
152                    long websiteId, java.lang.String uuid,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.NoSuchWebsiteException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            /**
158            * Removes all the websites where uuid = &#63; from the database.
159            *
160            * @param uuid the uuid
161            * @throws SystemException if a system exception occurred
162            */
163            public void removeByUuid(java.lang.String uuid)
164                    throws com.liferay.portal.kernel.exception.SystemException;
165    
166            /**
167            * Returns the number of websites where uuid = &#63;.
168            *
169            * @param uuid the uuid
170            * @return the number of matching websites
171            * @throws SystemException if a system exception occurred
172            */
173            public int countByUuid(java.lang.String uuid)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            /**
177            * Returns all the websites where uuid = &#63; and companyId = &#63;.
178            *
179            * @param uuid the uuid
180            * @param companyId the company ID
181            * @return the matching websites
182            * @throws SystemException if a system exception occurred
183            */
184            public java.util.List<com.liferay.portal.model.Website> findByUuid_C(
185                    java.lang.String uuid, long companyId)
186                    throws com.liferay.portal.kernel.exception.SystemException;
187    
188            /**
189            * Returns a range of all the websites where uuid = &#63; and companyId = &#63;.
190            *
191            * <p>
192            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
193            * </p>
194            *
195            * @param uuid the uuid
196            * @param companyId the company ID
197            * @param start the lower bound of the range of websites
198            * @param end the upper bound of the range of websites (not inclusive)
199            * @return the range of matching websites
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portal.model.Website> findByUuid_C(
203                    java.lang.String uuid, long companyId, int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            /**
207            * Returns an ordered range of all the websites where uuid = &#63; and companyId = &#63;.
208            *
209            * <p>
210            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
211            * </p>
212            *
213            * @param uuid the uuid
214            * @param companyId the company ID
215            * @param start the lower bound of the range of websites
216            * @param end the upper bound of the range of websites (not inclusive)
217            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
218            * @return the ordered range of matching websites
219            * @throws SystemException if a system exception occurred
220            */
221            public java.util.List<com.liferay.portal.model.Website> findByUuid_C(
222                    java.lang.String uuid, long companyId, int start, int end,
223                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
224                    throws com.liferay.portal.kernel.exception.SystemException;
225    
226            /**
227            * Returns the first website in the ordered set where uuid = &#63; and companyId = &#63;.
228            *
229            * @param uuid the uuid
230            * @param companyId the company ID
231            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
232            * @return the first matching website
233            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
234            * @throws SystemException if a system exception occurred
235            */
236            public com.liferay.portal.model.Website findByUuid_C_First(
237                    java.lang.String uuid, long companyId,
238                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239                    throws com.liferay.portal.NoSuchWebsiteException,
240                            com.liferay.portal.kernel.exception.SystemException;
241    
242            /**
243            * Returns the first website in the ordered set where uuid = &#63; and companyId = &#63;.
244            *
245            * @param uuid the uuid
246            * @param companyId the company ID
247            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
248            * @return the first matching website, or <code>null</code> if a matching website could not be found
249            * @throws SystemException if a system exception occurred
250            */
251            public com.liferay.portal.model.Website fetchByUuid_C_First(
252                    java.lang.String uuid, long companyId,
253                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Returns the last website in the ordered set where uuid = &#63; and companyId = &#63;.
258            *
259            * @param uuid the uuid
260            * @param companyId the company ID
261            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
262            * @return the last matching website
263            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
264            * @throws SystemException if a system exception occurred
265            */
266            public com.liferay.portal.model.Website findByUuid_C_Last(
267                    java.lang.String uuid, long companyId,
268                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
269                    throws com.liferay.portal.NoSuchWebsiteException,
270                            com.liferay.portal.kernel.exception.SystemException;
271    
272            /**
273            * Returns the last website in the ordered set where uuid = &#63; and companyId = &#63;.
274            *
275            * @param uuid the uuid
276            * @param companyId the company ID
277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
278            * @return the last matching website, or <code>null</code> if a matching website could not be found
279            * @throws SystemException if a system exception occurred
280            */
281            public com.liferay.portal.model.Website fetchByUuid_C_Last(
282                    java.lang.String uuid, long companyId,
283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284                    throws com.liferay.portal.kernel.exception.SystemException;
285    
286            /**
287            * Returns the websites before and after the current website in the ordered set where uuid = &#63; and companyId = &#63;.
288            *
289            * @param websiteId the primary key of the current website
290            * @param uuid the uuid
291            * @param companyId the company ID
292            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
293            * @return the previous, current, and next website
294            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
295            * @throws SystemException if a system exception occurred
296            */
297            public com.liferay.portal.model.Website[] findByUuid_C_PrevAndNext(
298                    long websiteId, java.lang.String uuid, long companyId,
299                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300                    throws com.liferay.portal.NoSuchWebsiteException,
301                            com.liferay.portal.kernel.exception.SystemException;
302    
303            /**
304            * Removes all the websites where uuid = &#63; and companyId = &#63; from the database.
305            *
306            * @param uuid the uuid
307            * @param companyId the company ID
308            * @throws SystemException if a system exception occurred
309            */
310            public void removeByUuid_C(java.lang.String uuid, long companyId)
311                    throws com.liferay.portal.kernel.exception.SystemException;
312    
313            /**
314            * Returns the number of websites where uuid = &#63; and companyId = &#63;.
315            *
316            * @param uuid the uuid
317            * @param companyId the company ID
318            * @return the number of matching websites
319            * @throws SystemException if a system exception occurred
320            */
321            public int countByUuid_C(java.lang.String uuid, long companyId)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * Returns all the websites where companyId = &#63;.
326            *
327            * @param companyId the company ID
328            * @return the matching websites
329            * @throws SystemException if a system exception occurred
330            */
331            public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
332                    long companyId)
333                    throws com.liferay.portal.kernel.exception.SystemException;
334    
335            /**
336            * Returns a range of all the websites where companyId = &#63;.
337            *
338            * <p>
339            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
340            * </p>
341            *
342            * @param companyId the company ID
343            * @param start the lower bound of the range of websites
344            * @param end the upper bound of the range of websites (not inclusive)
345            * @return the range of matching websites
346            * @throws SystemException if a system exception occurred
347            */
348            public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
349                    long companyId, int start, int end)
350                    throws com.liferay.portal.kernel.exception.SystemException;
351    
352            /**
353            * Returns an ordered range of all the websites where companyId = &#63;.
354            *
355            * <p>
356            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
357            * </p>
358            *
359            * @param companyId the company ID
360            * @param start the lower bound of the range of websites
361            * @param end the upper bound of the range of websites (not inclusive)
362            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
363            * @return the ordered range of matching websites
364            * @throws SystemException if a system exception occurred
365            */
366            public java.util.List<com.liferay.portal.model.Website> findByCompanyId(
367                    long companyId, int start, int end,
368                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
369                    throws com.liferay.portal.kernel.exception.SystemException;
370    
371            /**
372            * Returns the first website in the ordered set where companyId = &#63;.
373            *
374            * @param companyId the company ID
375            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
376            * @return the first matching website
377            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
378            * @throws SystemException if a system exception occurred
379            */
380            public com.liferay.portal.model.Website findByCompanyId_First(
381                    long companyId,
382                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
383                    throws com.liferay.portal.NoSuchWebsiteException,
384                            com.liferay.portal.kernel.exception.SystemException;
385    
386            /**
387            * Returns the first website in the ordered set where companyId = &#63;.
388            *
389            * @param companyId the company ID
390            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
391            * @return the first matching website, or <code>null</code> if a matching website could not be found
392            * @throws SystemException if a system exception occurred
393            */
394            public com.liferay.portal.model.Website fetchByCompanyId_First(
395                    long companyId,
396                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
397                    throws com.liferay.portal.kernel.exception.SystemException;
398    
399            /**
400            * Returns the last website in the ordered set where companyId = &#63;.
401            *
402            * @param companyId the company ID
403            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
404            * @return the last matching website
405            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
406            * @throws SystemException if a system exception occurred
407            */
408            public com.liferay.portal.model.Website findByCompanyId_Last(
409                    long companyId,
410                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
411                    throws com.liferay.portal.NoSuchWebsiteException,
412                            com.liferay.portal.kernel.exception.SystemException;
413    
414            /**
415            * Returns the last website in the ordered set where companyId = &#63;.
416            *
417            * @param companyId the company ID
418            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
419            * @return the last matching website, or <code>null</code> if a matching website could not be found
420            * @throws SystemException if a system exception occurred
421            */
422            public com.liferay.portal.model.Website fetchByCompanyId_Last(
423                    long companyId,
424                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
425                    throws com.liferay.portal.kernel.exception.SystemException;
426    
427            /**
428            * Returns the websites before and after the current website in the ordered set where companyId = &#63;.
429            *
430            * @param websiteId the primary key of the current website
431            * @param companyId the company ID
432            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
433            * @return the previous, current, and next website
434            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
435            * @throws SystemException if a system exception occurred
436            */
437            public com.liferay.portal.model.Website[] findByCompanyId_PrevAndNext(
438                    long websiteId, long companyId,
439                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
440                    throws com.liferay.portal.NoSuchWebsiteException,
441                            com.liferay.portal.kernel.exception.SystemException;
442    
443            /**
444            * Removes all the websites where companyId = &#63; from the database.
445            *
446            * @param companyId the company ID
447            * @throws SystemException if a system exception occurred
448            */
449            public void removeByCompanyId(long companyId)
450                    throws com.liferay.portal.kernel.exception.SystemException;
451    
452            /**
453            * Returns the number of websites where companyId = &#63;.
454            *
455            * @param companyId the company ID
456            * @return the number of matching websites
457            * @throws SystemException if a system exception occurred
458            */
459            public int countByCompanyId(long companyId)
460                    throws com.liferay.portal.kernel.exception.SystemException;
461    
462            /**
463            * Returns all the websites where userId = &#63;.
464            *
465            * @param userId the user ID
466            * @return the matching websites
467            * @throws SystemException if a system exception occurred
468            */
469            public java.util.List<com.liferay.portal.model.Website> findByUserId(
470                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
471    
472            /**
473            * Returns a range of all the websites where userId = &#63;.
474            *
475            * <p>
476            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
477            * </p>
478            *
479            * @param userId the user ID
480            * @param start the lower bound of the range of websites
481            * @param end the upper bound of the range of websites (not inclusive)
482            * @return the range of matching websites
483            * @throws SystemException if a system exception occurred
484            */
485            public java.util.List<com.liferay.portal.model.Website> findByUserId(
486                    long userId, int start, int end)
487                    throws com.liferay.portal.kernel.exception.SystemException;
488    
489            /**
490            * Returns an ordered range of all the websites where userId = &#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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
494            * </p>
495            *
496            * @param userId the user ID
497            * @param start the lower bound of the range of websites
498            * @param end the upper bound of the range of websites (not inclusive)
499            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
500            * @return the ordered range of matching websites
501            * @throws SystemException if a system exception occurred
502            */
503            public java.util.List<com.liferay.portal.model.Website> findByUserId(
504                    long userId, int start, int end,
505                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            /**
509            * Returns the first website in the ordered set where userId = &#63;.
510            *
511            * @param userId the user ID
512            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
513            * @return the first matching website
514            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
515            * @throws SystemException if a system exception occurred
516            */
517            public com.liferay.portal.model.Website findByUserId_First(long userId,
518                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
519                    throws com.liferay.portal.NoSuchWebsiteException,
520                            com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Returns the first website in the ordered set where userId = &#63;.
524            *
525            * @param userId the user ID
526            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
527            * @return the first matching website, or <code>null</code> if a matching website could not be found
528            * @throws SystemException if a system exception occurred
529            */
530            public com.liferay.portal.model.Website fetchByUserId_First(long userId,
531                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
532                    throws com.liferay.portal.kernel.exception.SystemException;
533    
534            /**
535            * Returns the last website in the ordered set where userId = &#63;.
536            *
537            * @param userId the user ID
538            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
539            * @return the last matching website
540            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
541            * @throws SystemException if a system exception occurred
542            */
543            public com.liferay.portal.model.Website findByUserId_Last(long userId,
544                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
545                    throws com.liferay.portal.NoSuchWebsiteException,
546                            com.liferay.portal.kernel.exception.SystemException;
547    
548            /**
549            * Returns the last website in the ordered set where userId = &#63;.
550            *
551            * @param userId the user ID
552            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
553            * @return the last matching website, or <code>null</code> if a matching website could not be found
554            * @throws SystemException if a system exception occurred
555            */
556            public com.liferay.portal.model.Website fetchByUserId_Last(long userId,
557                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
558                    throws com.liferay.portal.kernel.exception.SystemException;
559    
560            /**
561            * Returns the websites before and after the current website in the ordered set where userId = &#63;.
562            *
563            * @param websiteId the primary key of the current website
564            * @param userId the user ID
565            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
566            * @return the previous, current, and next website
567            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
568            * @throws SystemException if a system exception occurred
569            */
570            public com.liferay.portal.model.Website[] findByUserId_PrevAndNext(
571                    long websiteId, long userId,
572                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
573                    throws com.liferay.portal.NoSuchWebsiteException,
574                            com.liferay.portal.kernel.exception.SystemException;
575    
576            /**
577            * Removes all the websites where userId = &#63; from the database.
578            *
579            * @param userId the user ID
580            * @throws SystemException if a system exception occurred
581            */
582            public void removeByUserId(long userId)
583                    throws com.liferay.portal.kernel.exception.SystemException;
584    
585            /**
586            * Returns the number of websites where userId = &#63;.
587            *
588            * @param userId the user ID
589            * @return the number of matching websites
590            * @throws SystemException if a system exception occurred
591            */
592            public int countByUserId(long userId)
593                    throws com.liferay.portal.kernel.exception.SystemException;
594    
595            /**
596            * Returns all the websites where companyId = &#63; and classNameId = &#63;.
597            *
598            * @param companyId the company ID
599            * @param classNameId the class name ID
600            * @return the matching websites
601            * @throws SystemException if a system exception occurred
602            */
603            public java.util.List<com.liferay.portal.model.Website> findByC_C(
604                    long companyId, long classNameId)
605                    throws com.liferay.portal.kernel.exception.SystemException;
606    
607            /**
608            * Returns a range of all the websites where companyId = &#63; and classNameId = &#63;.
609            *
610            * <p>
611            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
612            * </p>
613            *
614            * @param companyId the company ID
615            * @param classNameId the class name ID
616            * @param start the lower bound of the range of websites
617            * @param end the upper bound of the range of websites (not inclusive)
618            * @return the range of matching websites
619            * @throws SystemException if a system exception occurred
620            */
621            public java.util.List<com.liferay.portal.model.Website> findByC_C(
622                    long companyId, long classNameId, int start, int end)
623                    throws com.liferay.portal.kernel.exception.SystemException;
624    
625            /**
626            * Returns an ordered range of all the websites where companyId = &#63; and classNameId = &#63;.
627            *
628            * <p>
629            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
630            * </p>
631            *
632            * @param companyId the company ID
633            * @param classNameId the class name ID
634            * @param start the lower bound of the range of websites
635            * @param end the upper bound of the range of websites (not inclusive)
636            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
637            * @return the ordered range of matching websites
638            * @throws SystemException if a system exception occurred
639            */
640            public java.util.List<com.liferay.portal.model.Website> findByC_C(
641                    long companyId, long classNameId, int start, int end,
642                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
643                    throws com.liferay.portal.kernel.exception.SystemException;
644    
645            /**
646            * Returns the first website in the ordered set where companyId = &#63; and classNameId = &#63;.
647            *
648            * @param companyId the company ID
649            * @param classNameId the class name ID
650            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
651            * @return the first matching website
652            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
653            * @throws SystemException if a system exception occurred
654            */
655            public com.liferay.portal.model.Website findByC_C_First(long companyId,
656                    long classNameId,
657                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
658                    throws com.liferay.portal.NoSuchWebsiteException,
659                            com.liferay.portal.kernel.exception.SystemException;
660    
661            /**
662            * Returns the first website in the ordered set where companyId = &#63; and classNameId = &#63;.
663            *
664            * @param companyId the company ID
665            * @param classNameId the class name ID
666            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
667            * @return the first matching website, or <code>null</code> if a matching website could not be found
668            * @throws SystemException if a system exception occurred
669            */
670            public com.liferay.portal.model.Website fetchByC_C_First(long companyId,
671                    long classNameId,
672                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
673                    throws com.liferay.portal.kernel.exception.SystemException;
674    
675            /**
676            * Returns the last website in the ordered set where companyId = &#63; and classNameId = &#63;.
677            *
678            * @param companyId the company ID
679            * @param classNameId the class name ID
680            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
681            * @return the last matching website
682            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
683            * @throws SystemException if a system exception occurred
684            */
685            public com.liferay.portal.model.Website findByC_C_Last(long companyId,
686                    long classNameId,
687                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
688                    throws com.liferay.portal.NoSuchWebsiteException,
689                            com.liferay.portal.kernel.exception.SystemException;
690    
691            /**
692            * Returns the last website in the ordered set where companyId = &#63; and classNameId = &#63;.
693            *
694            * @param companyId the company ID
695            * @param classNameId the class name ID
696            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
697            * @return the last matching website, or <code>null</code> if a matching website could not be found
698            * @throws SystemException if a system exception occurred
699            */
700            public com.liferay.portal.model.Website fetchByC_C_Last(long companyId,
701                    long classNameId,
702                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
703                    throws com.liferay.portal.kernel.exception.SystemException;
704    
705            /**
706            * Returns the websites before and after the current website in the ordered set where companyId = &#63; and classNameId = &#63;.
707            *
708            * @param websiteId the primary key of the current website
709            * @param companyId the company ID
710            * @param classNameId the class name ID
711            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
712            * @return the previous, current, and next website
713            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
714            * @throws SystemException if a system exception occurred
715            */
716            public com.liferay.portal.model.Website[] findByC_C_PrevAndNext(
717                    long websiteId, long companyId, long classNameId,
718                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
719                    throws com.liferay.portal.NoSuchWebsiteException,
720                            com.liferay.portal.kernel.exception.SystemException;
721    
722            /**
723            * Removes all the websites where companyId = &#63; and classNameId = &#63; from the database.
724            *
725            * @param companyId the company ID
726            * @param classNameId the class name ID
727            * @throws SystemException if a system exception occurred
728            */
729            public void removeByC_C(long companyId, long classNameId)
730                    throws com.liferay.portal.kernel.exception.SystemException;
731    
732            /**
733            * Returns the number of websites where companyId = &#63; and classNameId = &#63;.
734            *
735            * @param companyId the company ID
736            * @param classNameId the class name ID
737            * @return the number of matching websites
738            * @throws SystemException if a system exception occurred
739            */
740            public int countByC_C(long companyId, long classNameId)
741                    throws com.liferay.portal.kernel.exception.SystemException;
742    
743            /**
744            * Returns all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
745            *
746            * @param companyId the company ID
747            * @param classNameId the class name ID
748            * @param classPK the class p k
749            * @return the matching websites
750            * @throws SystemException if a system exception occurred
751            */
752            public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
753                    long companyId, long classNameId, long classPK)
754                    throws com.liferay.portal.kernel.exception.SystemException;
755    
756            /**
757            * Returns a range of all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
758            *
759            * <p>
760            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
761            * </p>
762            *
763            * @param companyId the company ID
764            * @param classNameId the class name ID
765            * @param classPK the class p k
766            * @param start the lower bound of the range of websites
767            * @param end the upper bound of the range of websites (not inclusive)
768            * @return the range of matching websites
769            * @throws SystemException if a system exception occurred
770            */
771            public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
772                    long companyId, long classNameId, long classPK, int start, int end)
773                    throws com.liferay.portal.kernel.exception.SystemException;
774    
775            /**
776            * Returns an ordered range of all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
777            *
778            * <p>
779            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
780            * </p>
781            *
782            * @param companyId the company ID
783            * @param classNameId the class name ID
784            * @param classPK the class p k
785            * @param start the lower bound of the range of websites
786            * @param end the upper bound of the range of websites (not inclusive)
787            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
788            * @return the ordered range of matching websites
789            * @throws SystemException if a system exception occurred
790            */
791            public java.util.List<com.liferay.portal.model.Website> findByC_C_C(
792                    long companyId, long classNameId, long classPK, int start, int end,
793                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
794                    throws com.liferay.portal.kernel.exception.SystemException;
795    
796            /**
797            * Returns the first website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
798            *
799            * @param companyId the company ID
800            * @param classNameId the class name ID
801            * @param classPK the class p k
802            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
803            * @return the first matching website
804            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
805            * @throws SystemException if a system exception occurred
806            */
807            public com.liferay.portal.model.Website findByC_C_C_First(long companyId,
808                    long classNameId, long classPK,
809                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
810                    throws com.liferay.portal.NoSuchWebsiteException,
811                            com.liferay.portal.kernel.exception.SystemException;
812    
813            /**
814            * Returns the first website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
815            *
816            * @param companyId the company ID
817            * @param classNameId the class name ID
818            * @param classPK the class p k
819            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
820            * @return the first matching website, or <code>null</code> if a matching website could not be found
821            * @throws SystemException if a system exception occurred
822            */
823            public com.liferay.portal.model.Website fetchByC_C_C_First(long companyId,
824                    long classNameId, long classPK,
825                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
826                    throws com.liferay.portal.kernel.exception.SystemException;
827    
828            /**
829            * Returns the last website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
830            *
831            * @param companyId the company ID
832            * @param classNameId the class name ID
833            * @param classPK the class p k
834            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
835            * @return the last matching website
836            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
837            * @throws SystemException if a system exception occurred
838            */
839            public com.liferay.portal.model.Website findByC_C_C_Last(long companyId,
840                    long classNameId, long classPK,
841                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
842                    throws com.liferay.portal.NoSuchWebsiteException,
843                            com.liferay.portal.kernel.exception.SystemException;
844    
845            /**
846            * Returns the last website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
847            *
848            * @param companyId the company ID
849            * @param classNameId the class name ID
850            * @param classPK the class p k
851            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
852            * @return the last matching website, or <code>null</code> if a matching website could not be found
853            * @throws SystemException if a system exception occurred
854            */
855            public com.liferay.portal.model.Website fetchByC_C_C_Last(long companyId,
856                    long classNameId, long classPK,
857                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
858                    throws com.liferay.portal.kernel.exception.SystemException;
859    
860            /**
861            * Returns the websites before and after the current website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
862            *
863            * @param websiteId the primary key of the current website
864            * @param companyId the company ID
865            * @param classNameId the class name ID
866            * @param classPK the class p k
867            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
868            * @return the previous, current, and next website
869            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
870            * @throws SystemException if a system exception occurred
871            */
872            public com.liferay.portal.model.Website[] findByC_C_C_PrevAndNext(
873                    long websiteId, long companyId, long classNameId, long classPK,
874                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
875                    throws com.liferay.portal.NoSuchWebsiteException,
876                            com.liferay.portal.kernel.exception.SystemException;
877    
878            /**
879            * Removes all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
880            *
881            * @param companyId the company ID
882            * @param classNameId the class name ID
883            * @param classPK the class p k
884            * @throws SystemException if a system exception occurred
885            */
886            public void removeByC_C_C(long companyId, long classNameId, long classPK)
887                    throws com.liferay.portal.kernel.exception.SystemException;
888    
889            /**
890            * Returns the number of websites where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
891            *
892            * @param companyId the company ID
893            * @param classNameId the class name ID
894            * @param classPK the class p k
895            * @return the number of matching websites
896            * @throws SystemException if a system exception occurred
897            */
898            public int countByC_C_C(long companyId, long classNameId, long classPK)
899                    throws com.liferay.portal.kernel.exception.SystemException;
900    
901            /**
902            * Returns all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
903            *
904            * @param companyId the company ID
905            * @param classNameId the class name ID
906            * @param classPK the class p k
907            * @param primary the primary
908            * @return the matching websites
909            * @throws SystemException if a system exception occurred
910            */
911            public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
912                    long companyId, long classNameId, long classPK, boolean primary)
913                    throws com.liferay.portal.kernel.exception.SystemException;
914    
915            /**
916            * Returns a range of all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
917            *
918            * <p>
919            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
920            * </p>
921            *
922            * @param companyId the company ID
923            * @param classNameId the class name ID
924            * @param classPK the class p k
925            * @param primary the primary
926            * @param start the lower bound of the range of websites
927            * @param end the upper bound of the range of websites (not inclusive)
928            * @return the range of matching websites
929            * @throws SystemException if a system exception occurred
930            */
931            public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
932                    long companyId, long classNameId, long classPK, boolean primary,
933                    int start, int end)
934                    throws com.liferay.portal.kernel.exception.SystemException;
935    
936            /**
937            * Returns an ordered range of all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
938            *
939            * <p>
940            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
941            * </p>
942            *
943            * @param companyId the company ID
944            * @param classNameId the class name ID
945            * @param classPK the class p k
946            * @param primary the primary
947            * @param start the lower bound of the range of websites
948            * @param end the upper bound of the range of websites (not inclusive)
949            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
950            * @return the ordered range of matching websites
951            * @throws SystemException if a system exception occurred
952            */
953            public java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
954                    long companyId, long classNameId, long classPK, boolean primary,
955                    int start, int end,
956                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
957                    throws com.liferay.portal.kernel.exception.SystemException;
958    
959            /**
960            * Returns the first website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
961            *
962            * @param companyId the company ID
963            * @param classNameId the class name ID
964            * @param classPK the class p k
965            * @param primary the primary
966            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
967            * @return the first matching website
968            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
969            * @throws SystemException if a system exception occurred
970            */
971            public com.liferay.portal.model.Website findByC_C_C_P_First(
972                    long companyId, long classNameId, long classPK, boolean primary,
973                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
974                    throws com.liferay.portal.NoSuchWebsiteException,
975                            com.liferay.portal.kernel.exception.SystemException;
976    
977            /**
978            * Returns the first website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
979            *
980            * @param companyId the company ID
981            * @param classNameId the class name ID
982            * @param classPK the class p k
983            * @param primary the primary
984            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
985            * @return the first matching website, or <code>null</code> if a matching website could not be found
986            * @throws SystemException if a system exception occurred
987            */
988            public com.liferay.portal.model.Website fetchByC_C_C_P_First(
989                    long companyId, long classNameId, long classPK, boolean primary,
990                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
991                    throws com.liferay.portal.kernel.exception.SystemException;
992    
993            /**
994            * Returns the last website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
995            *
996            * @param companyId the company ID
997            * @param classNameId the class name ID
998            * @param classPK the class p k
999            * @param primary the primary
1000            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1001            * @return the last matching website
1002            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
1003            * @throws SystemException if a system exception occurred
1004            */
1005            public com.liferay.portal.model.Website findByC_C_C_P_Last(long companyId,
1006                    long classNameId, long classPK, boolean primary,
1007                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1008                    throws com.liferay.portal.NoSuchWebsiteException,
1009                            com.liferay.portal.kernel.exception.SystemException;
1010    
1011            /**
1012            * Returns the last website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1013            *
1014            * @param companyId the company ID
1015            * @param classNameId the class name ID
1016            * @param classPK the class p k
1017            * @param primary the primary
1018            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1019            * @return the last matching website, or <code>null</code> if a matching website could not be found
1020            * @throws SystemException if a system exception occurred
1021            */
1022            public com.liferay.portal.model.Website fetchByC_C_C_P_Last(
1023                    long companyId, long classNameId, long classPK, boolean primary,
1024                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1025                    throws com.liferay.portal.kernel.exception.SystemException;
1026    
1027            /**
1028            * Returns the websites before and after the current website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1029            *
1030            * @param websiteId the primary key of the current website
1031            * @param companyId the company ID
1032            * @param classNameId the class name ID
1033            * @param classPK the class p k
1034            * @param primary the primary
1035            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1036            * @return the previous, current, and next website
1037            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
1038            * @throws SystemException if a system exception occurred
1039            */
1040            public com.liferay.portal.model.Website[] findByC_C_C_P_PrevAndNext(
1041                    long websiteId, long companyId, long classNameId, long classPK,
1042                    boolean primary,
1043                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1044                    throws com.liferay.portal.NoSuchWebsiteException,
1045                            com.liferay.portal.kernel.exception.SystemException;
1046    
1047            /**
1048            * Removes all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63; from the database.
1049            *
1050            * @param companyId the company ID
1051            * @param classNameId the class name ID
1052            * @param classPK the class p k
1053            * @param primary the primary
1054            * @throws SystemException if a system exception occurred
1055            */
1056            public void removeByC_C_C_P(long companyId, long classNameId, long classPK,
1057                    boolean primary)
1058                    throws com.liferay.portal.kernel.exception.SystemException;
1059    
1060            /**
1061            * Returns the number of websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1062            *
1063            * @param companyId the company ID
1064            * @param classNameId the class name ID
1065            * @param classPK the class p k
1066            * @param primary the primary
1067            * @return the number of matching websites
1068            * @throws SystemException if a system exception occurred
1069            */
1070            public int countByC_C_C_P(long companyId, long classNameId, long classPK,
1071                    boolean primary)
1072                    throws com.liferay.portal.kernel.exception.SystemException;
1073    
1074            /**
1075            * Caches the website in the entity cache if it is enabled.
1076            *
1077            * @param website the website
1078            */
1079            public void cacheResult(com.liferay.portal.model.Website website);
1080    
1081            /**
1082            * Caches the websites in the entity cache if it is enabled.
1083            *
1084            * @param websites the websites
1085            */
1086            public void cacheResult(
1087                    java.util.List<com.liferay.portal.model.Website> websites);
1088    
1089            /**
1090            * Creates a new website with the primary key. Does not add the website to the database.
1091            *
1092            * @param websiteId the primary key for the new website
1093            * @return the new website
1094            */
1095            public com.liferay.portal.model.Website create(long websiteId);
1096    
1097            /**
1098            * Removes the website with the primary key from the database. Also notifies the appropriate model listeners.
1099            *
1100            * @param websiteId the primary key of the website
1101            * @return the website that was removed
1102            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
1103            * @throws SystemException if a system exception occurred
1104            */
1105            public com.liferay.portal.model.Website remove(long websiteId)
1106                    throws com.liferay.portal.NoSuchWebsiteException,
1107                            com.liferay.portal.kernel.exception.SystemException;
1108    
1109            public com.liferay.portal.model.Website updateImpl(
1110                    com.liferay.portal.model.Website website)
1111                    throws com.liferay.portal.kernel.exception.SystemException;
1112    
1113            /**
1114            * Returns the website with the primary key or throws a {@link com.liferay.portal.NoSuchWebsiteException} if it could not be found.
1115            *
1116            * @param websiteId the primary key of the website
1117            * @return the website
1118            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
1119            * @throws SystemException if a system exception occurred
1120            */
1121            public com.liferay.portal.model.Website findByPrimaryKey(long websiteId)
1122                    throws com.liferay.portal.NoSuchWebsiteException,
1123                            com.liferay.portal.kernel.exception.SystemException;
1124    
1125            /**
1126            * Returns the website with the primary key or returns <code>null</code> if it could not be found.
1127            *
1128            * @param websiteId the primary key of the website
1129            * @return the website, or <code>null</code> if a website with the primary key could not be found
1130            * @throws SystemException if a system exception occurred
1131            */
1132            public com.liferay.portal.model.Website fetchByPrimaryKey(long websiteId)
1133                    throws com.liferay.portal.kernel.exception.SystemException;
1134    
1135            /**
1136            * Returns all the websites.
1137            *
1138            * @return the websites
1139            * @throws SystemException if a system exception occurred
1140            */
1141            public java.util.List<com.liferay.portal.model.Website> findAll()
1142                    throws com.liferay.portal.kernel.exception.SystemException;
1143    
1144            /**
1145            * Returns a range of all the websites.
1146            *
1147            * <p>
1148            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1149            * </p>
1150            *
1151            * @param start the lower bound of the range of websites
1152            * @param end the upper bound of the range of websites (not inclusive)
1153            * @return the range of websites
1154            * @throws SystemException if a system exception occurred
1155            */
1156            public java.util.List<com.liferay.portal.model.Website> findAll(int start,
1157                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1158    
1159            /**
1160            * Returns an ordered range of all the websites.
1161            *
1162            * <p>
1163            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.WebsiteModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1164            * </p>
1165            *
1166            * @param start the lower bound of the range of websites
1167            * @param end the upper bound of the range of websites (not inclusive)
1168            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1169            * @return the ordered range of websites
1170            * @throws SystemException if a system exception occurred
1171            */
1172            public java.util.List<com.liferay.portal.model.Website> findAll(int start,
1173                    int end,
1174                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1175                    throws com.liferay.portal.kernel.exception.SystemException;
1176    
1177            /**
1178            * Removes all the websites from the database.
1179            *
1180            * @throws SystemException if a system exception occurred
1181            */
1182            public void removeAll()
1183                    throws com.liferay.portal.kernel.exception.SystemException;
1184    
1185            /**
1186            * Returns the number of websites.
1187            *
1188            * @return the number of websites
1189            * @throws SystemException if a system exception occurred
1190            */
1191            public int countAll()
1192                    throws com.liferay.portal.kernel.exception.SystemException;
1193    }