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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.exception.SystemException;
022    import com.liferay.portal.kernel.util.OrderByComparator;
023    import com.liferay.portal.kernel.util.ReferenceRegistry;
024    import com.liferay.portal.model.Website;
025    import com.liferay.portal.service.ServiceContext;
026    
027    import java.util.List;
028    
029    /**
030     * The persistence utility for the website service. This utility wraps {@link WebsitePersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
031     *
032     * <p>
033     * Caching information and settings can be found in <code>portal.properties</code>
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see WebsitePersistence
038     * @see WebsitePersistenceImpl
039     * @generated
040     */
041    @ProviderType
042    public class WebsiteUtil {
043            /*
044             * NOTE FOR DEVELOPERS:
045             *
046             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
047             */
048    
049            /**
050             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
051             */
052            public static void clearCache() {
053                    getPersistence().clearCache();
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
058             */
059            public static void clearCache(Website website) {
060                    getPersistence().clearCache(website);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
065             */
066            public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
067                    throws SystemException {
068                    return getPersistence().countWithDynamicQuery(dynamicQuery);
069            }
070    
071            /**
072             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
073             */
074            public static List<Website> findWithDynamicQuery(DynamicQuery dynamicQuery)
075                    throws SystemException {
076                    return getPersistence().findWithDynamicQuery(dynamicQuery);
077            }
078    
079            /**
080             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
081             */
082            public static List<Website> findWithDynamicQuery(
083                    DynamicQuery dynamicQuery, int start, int end)
084                    throws SystemException {
085                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
086            }
087    
088            /**
089             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
090             */
091            public static List<Website> findWithDynamicQuery(
092                    DynamicQuery dynamicQuery, int start, int end,
093                    OrderByComparator orderByComparator) throws SystemException {
094                    return getPersistence()
095                                       .findWithDynamicQuery(dynamicQuery, start, end,
096                            orderByComparator);
097            }
098    
099            /**
100             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
101             */
102            public static Website update(Website website) throws SystemException {
103                    return getPersistence().update(website);
104            }
105    
106            /**
107             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
108             */
109            public static Website update(Website website, ServiceContext serviceContext)
110                    throws SystemException {
111                    return getPersistence().update(website, serviceContext);
112            }
113    
114            /**
115            * Returns all the websites where uuid = &#63;.
116            *
117            * @param uuid the uuid
118            * @return the matching websites
119            * @throws SystemException if a system exception occurred
120            */
121            public static java.util.List<com.liferay.portal.model.Website> findByUuid(
122                    java.lang.String uuid)
123                    throws com.liferay.portal.kernel.exception.SystemException {
124                    return getPersistence().findByUuid(uuid);
125            }
126    
127            /**
128            * Returns a range of all the websites where uuid = &#63;.
129            *
130            * <p>
131            * 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.
132            * </p>
133            *
134            * @param uuid the uuid
135            * @param start the lower bound of the range of websites
136            * @param end the upper bound of the range of websites (not inclusive)
137            * @return the range of matching websites
138            * @throws SystemException if a system exception occurred
139            */
140            public static java.util.List<com.liferay.portal.model.Website> findByUuid(
141                    java.lang.String uuid, int start, int end)
142                    throws com.liferay.portal.kernel.exception.SystemException {
143                    return getPersistence().findByUuid(uuid, start, end);
144            }
145    
146            /**
147            * Returns an ordered range of all the websites where uuid = &#63;.
148            *
149            * <p>
150            * 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.
151            * </p>
152            *
153            * @param uuid the uuid
154            * @param start the lower bound of the range of websites
155            * @param end the upper bound of the range of websites (not inclusive)
156            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
157            * @return the ordered range of matching websites
158            * @throws SystemException if a system exception occurred
159            */
160            public static java.util.List<com.liferay.portal.model.Website> findByUuid(
161                    java.lang.String uuid, int start, int end,
162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
165            }
166    
167            /**
168            * Returns the first website in the ordered set where uuid = &#63;.
169            *
170            * @param uuid the uuid
171            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
172            * @return the first 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 static com.liferay.portal.model.Website findByUuid_First(
177                    java.lang.String uuid,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.NoSuchWebsiteException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return getPersistence().findByUuid_First(uuid, orderByComparator);
182            }
183    
184            /**
185            * Returns the first website in the ordered set where uuid = &#63;.
186            *
187            * @param uuid the uuid
188            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
189            * @return the first matching website, or <code>null</code> if a matching website could not be found
190            * @throws SystemException if a system exception occurred
191            */
192            public static com.liferay.portal.model.Website fetchByUuid_First(
193                    java.lang.String uuid,
194                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
197            }
198    
199            /**
200            * Returns the last website in the ordered set where uuid = &#63;.
201            *
202            * @param uuid the uuid
203            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
204            * @return the last matching website
205            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
206            * @throws SystemException if a system exception occurred
207            */
208            public static com.liferay.portal.model.Website findByUuid_Last(
209                    java.lang.String uuid,
210                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211                    throws com.liferay.portal.NoSuchWebsiteException,
212                            com.liferay.portal.kernel.exception.SystemException {
213                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
214            }
215    
216            /**
217            * Returns the last website in the ordered set where uuid = &#63;.
218            *
219            * @param uuid the uuid
220            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
221            * @return the last matching website, or <code>null</code> if a matching website could not be found
222            * @throws SystemException if a system exception occurred
223            */
224            public static com.liferay.portal.model.Website fetchByUuid_Last(
225                    java.lang.String uuid,
226                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
229            }
230    
231            /**
232            * Returns the websites before and after the current website in the ordered set where uuid = &#63;.
233            *
234            * @param websiteId the primary key of the current website
235            * @param uuid the uuid
236            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
237            * @return the previous, current, and next website
238            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
239            * @throws SystemException if a system exception occurred
240            */
241            public static com.liferay.portal.model.Website[] findByUuid_PrevAndNext(
242                    long websiteId, java.lang.String uuid,
243                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244                    throws com.liferay.portal.NoSuchWebsiteException,
245                            com.liferay.portal.kernel.exception.SystemException {
246                    return getPersistence()
247                                       .findByUuid_PrevAndNext(websiteId, uuid, orderByComparator);
248            }
249    
250            /**
251            * Removes all the websites where uuid = &#63; from the database.
252            *
253            * @param uuid the uuid
254            * @throws SystemException if a system exception occurred
255            */
256            public static void removeByUuid(java.lang.String uuid)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    getPersistence().removeByUuid(uuid);
259            }
260    
261            /**
262            * Returns the number of websites where uuid = &#63;.
263            *
264            * @param uuid the uuid
265            * @return the number of matching websites
266            * @throws SystemException if a system exception occurred
267            */
268            public static int countByUuid(java.lang.String uuid)
269                    throws com.liferay.portal.kernel.exception.SystemException {
270                    return getPersistence().countByUuid(uuid);
271            }
272    
273            /**
274            * Returns all the websites where uuid = &#63; and companyId = &#63;.
275            *
276            * @param uuid the uuid
277            * @param companyId the company ID
278            * @return the matching websites
279            * @throws SystemException if a system exception occurred
280            */
281            public static java.util.List<com.liferay.portal.model.Website> findByUuid_C(
282                    java.lang.String uuid, long companyId)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return getPersistence().findByUuid_C(uuid, companyId);
285            }
286    
287            /**
288            * Returns a range of all the websites where uuid = &#63; and companyId = &#63;.
289            *
290            * <p>
291            * 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.
292            * </p>
293            *
294            * @param uuid the uuid
295            * @param companyId the company ID
296            * @param start the lower bound of the range of websites
297            * @param end the upper bound of the range of websites (not inclusive)
298            * @return the range of matching websites
299            * @throws SystemException if a system exception occurred
300            */
301            public static java.util.List<com.liferay.portal.model.Website> findByUuid_C(
302                    java.lang.String uuid, long companyId, int start, int end)
303                    throws com.liferay.portal.kernel.exception.SystemException {
304                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
305            }
306    
307            /**
308            * Returns an ordered range of all the websites where uuid = &#63; and companyId = &#63;.
309            *
310            * <p>
311            * 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.
312            * </p>
313            *
314            * @param uuid the uuid
315            * @param companyId the company ID
316            * @param start the lower bound of the range of websites
317            * @param end the upper bound of the range of websites (not inclusive)
318            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
319            * @return the ordered range of matching websites
320            * @throws SystemException if a system exception occurred
321            */
322            public static java.util.List<com.liferay.portal.model.Website> findByUuid_C(
323                    java.lang.String uuid, long companyId, int start, int end,
324                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
325                    throws com.liferay.portal.kernel.exception.SystemException {
326                    return getPersistence()
327                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
328            }
329    
330            /**
331            * Returns the first website in the ordered set where uuid = &#63; and companyId = &#63;.
332            *
333            * @param uuid the uuid
334            * @param companyId the company ID
335            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
336            * @return the first matching website
337            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
338            * @throws SystemException if a system exception occurred
339            */
340            public static com.liferay.portal.model.Website findByUuid_C_First(
341                    java.lang.String uuid, long companyId,
342                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
343                    throws com.liferay.portal.NoSuchWebsiteException,
344                            com.liferay.portal.kernel.exception.SystemException {
345                    return getPersistence()
346                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
347            }
348    
349            /**
350            * Returns the first website in the ordered set where uuid = &#63; and companyId = &#63;.
351            *
352            * @param uuid the uuid
353            * @param companyId the company ID
354            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
355            * @return the first matching website, or <code>null</code> if a matching website could not be found
356            * @throws SystemException if a system exception occurred
357            */
358            public static com.liferay.portal.model.Website fetchByUuid_C_First(
359                    java.lang.String uuid, long companyId,
360                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
361                    throws com.liferay.portal.kernel.exception.SystemException {
362                    return getPersistence()
363                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
364            }
365    
366            /**
367            * Returns the last website in the ordered set where uuid = &#63; and companyId = &#63;.
368            *
369            * @param uuid the uuid
370            * @param companyId the company ID
371            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
372            * @return the last matching website
373            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
374            * @throws SystemException if a system exception occurred
375            */
376            public static com.liferay.portal.model.Website findByUuid_C_Last(
377                    java.lang.String uuid, long companyId,
378                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379                    throws com.liferay.portal.NoSuchWebsiteException,
380                            com.liferay.portal.kernel.exception.SystemException {
381                    return getPersistence()
382                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
383            }
384    
385            /**
386            * Returns the last website in the ordered set where uuid = &#63; and companyId = &#63;.
387            *
388            * @param uuid the uuid
389            * @param companyId the company ID
390            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
391            * @return the last 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 static com.liferay.portal.model.Website fetchByUuid_C_Last(
395                    java.lang.String uuid, long companyId,
396                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return getPersistence()
399                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
400            }
401    
402            /**
403            * Returns the websites before and after the current website in the ordered set where uuid = &#63; and companyId = &#63;.
404            *
405            * @param websiteId the primary key of the current website
406            * @param uuid the uuid
407            * @param companyId the company ID
408            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
409            * @return the previous, current, and next website
410            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
411            * @throws SystemException if a system exception occurred
412            */
413            public static com.liferay.portal.model.Website[] findByUuid_C_PrevAndNext(
414                    long websiteId, java.lang.String uuid, long companyId,
415                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
416                    throws com.liferay.portal.NoSuchWebsiteException,
417                            com.liferay.portal.kernel.exception.SystemException {
418                    return getPersistence()
419                                       .findByUuid_C_PrevAndNext(websiteId, uuid, companyId,
420                            orderByComparator);
421            }
422    
423            /**
424            * Removes all the websites where uuid = &#63; and companyId = &#63; from the database.
425            *
426            * @param uuid the uuid
427            * @param companyId the company ID
428            * @throws SystemException if a system exception occurred
429            */
430            public static void removeByUuid_C(java.lang.String uuid, long companyId)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    getPersistence().removeByUuid_C(uuid, companyId);
433            }
434    
435            /**
436            * Returns the number of websites where uuid = &#63; and companyId = &#63;.
437            *
438            * @param uuid the uuid
439            * @param companyId the company ID
440            * @return the number of matching websites
441            * @throws SystemException if a system exception occurred
442            */
443            public static int countByUuid_C(java.lang.String uuid, long companyId)
444                    throws com.liferay.portal.kernel.exception.SystemException {
445                    return getPersistence().countByUuid_C(uuid, companyId);
446            }
447    
448            /**
449            * Returns all the websites where companyId = &#63;.
450            *
451            * @param companyId the company ID
452            * @return the matching websites
453            * @throws SystemException if a system exception occurred
454            */
455            public static java.util.List<com.liferay.portal.model.Website> findByCompanyId(
456                    long companyId)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    return getPersistence().findByCompanyId(companyId);
459            }
460    
461            /**
462            * Returns a range of all the websites where companyId = &#63;.
463            *
464            * <p>
465            * 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.
466            * </p>
467            *
468            * @param companyId the company ID
469            * @param start the lower bound of the range of websites
470            * @param end the upper bound of the range of websites (not inclusive)
471            * @return the range of matching websites
472            * @throws SystemException if a system exception occurred
473            */
474            public static java.util.List<com.liferay.portal.model.Website> findByCompanyId(
475                    long companyId, int start, int end)
476                    throws com.liferay.portal.kernel.exception.SystemException {
477                    return getPersistence().findByCompanyId(companyId, start, end);
478            }
479    
480            /**
481            * Returns an ordered range of all the websites where companyId = &#63;.
482            *
483            * <p>
484            * 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.
485            * </p>
486            *
487            * @param companyId the company ID
488            * @param start the lower bound of the range of websites
489            * @param end the upper bound of the range of websites (not inclusive)
490            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
491            * @return the ordered range of matching websites
492            * @throws SystemException if a system exception occurred
493            */
494            public static java.util.List<com.liferay.portal.model.Website> findByCompanyId(
495                    long companyId, int start, int end,
496                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
497                    throws com.liferay.portal.kernel.exception.SystemException {
498                    return getPersistence()
499                                       .findByCompanyId(companyId, start, end, orderByComparator);
500            }
501    
502            /**
503            * Returns the first website in the ordered set where companyId = &#63;.
504            *
505            * @param companyId the company ID
506            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
507            * @return the first matching website
508            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
509            * @throws SystemException if a system exception occurred
510            */
511            public static com.liferay.portal.model.Website findByCompanyId_First(
512                    long companyId,
513                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
514                    throws com.liferay.portal.NoSuchWebsiteException,
515                            com.liferay.portal.kernel.exception.SystemException {
516                    return getPersistence()
517                                       .findByCompanyId_First(companyId, orderByComparator);
518            }
519    
520            /**
521            * Returns the first website in the ordered set where companyId = &#63;.
522            *
523            * @param companyId the company ID
524            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
525            * @return the first matching website, or <code>null</code> if a matching website could not be found
526            * @throws SystemException if a system exception occurred
527            */
528            public static com.liferay.portal.model.Website fetchByCompanyId_First(
529                    long companyId,
530                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
531                    throws com.liferay.portal.kernel.exception.SystemException {
532                    return getPersistence()
533                                       .fetchByCompanyId_First(companyId, orderByComparator);
534            }
535    
536            /**
537            * Returns the last website in the ordered set where companyId = &#63;.
538            *
539            * @param companyId the company ID
540            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
541            * @return the last matching website
542            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
543            * @throws SystemException if a system exception occurred
544            */
545            public static com.liferay.portal.model.Website findByCompanyId_Last(
546                    long companyId,
547                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
548                    throws com.liferay.portal.NoSuchWebsiteException,
549                            com.liferay.portal.kernel.exception.SystemException {
550                    return getPersistence()
551                                       .findByCompanyId_Last(companyId, orderByComparator);
552            }
553    
554            /**
555            * Returns the last website in the ordered set where companyId = &#63;.
556            *
557            * @param companyId the company ID
558            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
559            * @return the last matching website, or <code>null</code> if a matching website could not be found
560            * @throws SystemException if a system exception occurred
561            */
562            public static com.liferay.portal.model.Website fetchByCompanyId_Last(
563                    long companyId,
564                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
565                    throws com.liferay.portal.kernel.exception.SystemException {
566                    return getPersistence()
567                                       .fetchByCompanyId_Last(companyId, orderByComparator);
568            }
569    
570            /**
571            * Returns the websites before and after the current website in the ordered set where companyId = &#63;.
572            *
573            * @param websiteId the primary key of the current website
574            * @param companyId the company ID
575            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
576            * @return the previous, current, and next website
577            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
578            * @throws SystemException if a system exception occurred
579            */
580            public static com.liferay.portal.model.Website[] findByCompanyId_PrevAndNext(
581                    long websiteId, long companyId,
582                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
583                    throws com.liferay.portal.NoSuchWebsiteException,
584                            com.liferay.portal.kernel.exception.SystemException {
585                    return getPersistence()
586                                       .findByCompanyId_PrevAndNext(websiteId, companyId,
587                            orderByComparator);
588            }
589    
590            /**
591            * Removes all the websites where companyId = &#63; from the database.
592            *
593            * @param companyId the company ID
594            * @throws SystemException if a system exception occurred
595            */
596            public static void removeByCompanyId(long companyId)
597                    throws com.liferay.portal.kernel.exception.SystemException {
598                    getPersistence().removeByCompanyId(companyId);
599            }
600    
601            /**
602            * Returns the number of websites where companyId = &#63;.
603            *
604            * @param companyId the company ID
605            * @return the number of matching websites
606            * @throws SystemException if a system exception occurred
607            */
608            public static int countByCompanyId(long companyId)
609                    throws com.liferay.portal.kernel.exception.SystemException {
610                    return getPersistence().countByCompanyId(companyId);
611            }
612    
613            /**
614            * Returns all the websites where userId = &#63;.
615            *
616            * @param userId the user ID
617            * @return the matching websites
618            * @throws SystemException if a system exception occurred
619            */
620            public static java.util.List<com.liferay.portal.model.Website> findByUserId(
621                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
622                    return getPersistence().findByUserId(userId);
623            }
624    
625            /**
626            * Returns a range of all the websites where userId = &#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 userId the user ID
633            * @param start the lower bound of the range of websites
634            * @param end the upper bound of the range of websites (not inclusive)
635            * @return the range of matching websites
636            * @throws SystemException if a system exception occurred
637            */
638            public static java.util.List<com.liferay.portal.model.Website> findByUserId(
639                    long userId, int start, int end)
640                    throws com.liferay.portal.kernel.exception.SystemException {
641                    return getPersistence().findByUserId(userId, start, end);
642            }
643    
644            /**
645            * Returns an ordered range of all the websites where userId = &#63;.
646            *
647            * <p>
648            * 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.
649            * </p>
650            *
651            * @param userId the user ID
652            * @param start the lower bound of the range of websites
653            * @param end the upper bound of the range of websites (not inclusive)
654            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
655            * @return the ordered range of matching websites
656            * @throws SystemException if a system exception occurred
657            */
658            public static java.util.List<com.liferay.portal.model.Website> findByUserId(
659                    long userId, int start, int end,
660                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
661                    throws com.liferay.portal.kernel.exception.SystemException {
662                    return getPersistence()
663                                       .findByUserId(userId, start, end, orderByComparator);
664            }
665    
666            /**
667            * Returns the first website in the ordered set where userId = &#63;.
668            *
669            * @param userId the user ID
670            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
671            * @return the first matching website
672            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
673            * @throws SystemException if a system exception occurred
674            */
675            public static com.liferay.portal.model.Website findByUserId_First(
676                    long userId,
677                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
678                    throws com.liferay.portal.NoSuchWebsiteException,
679                            com.liferay.portal.kernel.exception.SystemException {
680                    return getPersistence().findByUserId_First(userId, orderByComparator);
681            }
682    
683            /**
684            * Returns the first website in the ordered set where userId = &#63;.
685            *
686            * @param userId the user ID
687            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
688            * @return the first matching website, or <code>null</code> if a matching website could not be found
689            * @throws SystemException if a system exception occurred
690            */
691            public static com.liferay.portal.model.Website fetchByUserId_First(
692                    long userId,
693                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
694                    throws com.liferay.portal.kernel.exception.SystemException {
695                    return getPersistence().fetchByUserId_First(userId, orderByComparator);
696            }
697    
698            /**
699            * Returns the last website in the ordered set where userId = &#63;.
700            *
701            * @param userId the user ID
702            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
703            * @return the last matching website
704            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
705            * @throws SystemException if a system exception occurred
706            */
707            public static com.liferay.portal.model.Website findByUserId_Last(
708                    long userId,
709                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
710                    throws com.liferay.portal.NoSuchWebsiteException,
711                            com.liferay.portal.kernel.exception.SystemException {
712                    return getPersistence().findByUserId_Last(userId, orderByComparator);
713            }
714    
715            /**
716            * Returns the last website in the ordered set where userId = &#63;.
717            *
718            * @param userId the user ID
719            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
720            * @return the last matching website, or <code>null</code> if a matching website could not be found
721            * @throws SystemException if a system exception occurred
722            */
723            public static com.liferay.portal.model.Website fetchByUserId_Last(
724                    long userId,
725                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
726                    throws com.liferay.portal.kernel.exception.SystemException {
727                    return getPersistence().fetchByUserId_Last(userId, orderByComparator);
728            }
729    
730            /**
731            * Returns the websites before and after the current website in the ordered set where userId = &#63;.
732            *
733            * @param websiteId the primary key of the current website
734            * @param userId the user ID
735            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
736            * @return the previous, current, and next website
737            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
738            * @throws SystemException if a system exception occurred
739            */
740            public static com.liferay.portal.model.Website[] findByUserId_PrevAndNext(
741                    long websiteId, long userId,
742                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
743                    throws com.liferay.portal.NoSuchWebsiteException,
744                            com.liferay.portal.kernel.exception.SystemException {
745                    return getPersistence()
746                                       .findByUserId_PrevAndNext(websiteId, userId,
747                            orderByComparator);
748            }
749    
750            /**
751            * Removes all the websites where userId = &#63; from the database.
752            *
753            * @param userId the user ID
754            * @throws SystemException if a system exception occurred
755            */
756            public static void removeByUserId(long userId)
757                    throws com.liferay.portal.kernel.exception.SystemException {
758                    getPersistence().removeByUserId(userId);
759            }
760    
761            /**
762            * Returns the number of websites where userId = &#63;.
763            *
764            * @param userId the user ID
765            * @return the number of matching websites
766            * @throws SystemException if a system exception occurred
767            */
768            public static int countByUserId(long userId)
769                    throws com.liferay.portal.kernel.exception.SystemException {
770                    return getPersistence().countByUserId(userId);
771            }
772    
773            /**
774            * Returns all the websites where companyId = &#63; and classNameId = &#63;.
775            *
776            * @param companyId the company ID
777            * @param classNameId the class name ID
778            * @return the matching websites
779            * @throws SystemException if a system exception occurred
780            */
781            public static java.util.List<com.liferay.portal.model.Website> findByC_C(
782                    long companyId, long classNameId)
783                    throws com.liferay.portal.kernel.exception.SystemException {
784                    return getPersistence().findByC_C(companyId, classNameId);
785            }
786    
787            /**
788            * Returns a range of all the websites where companyId = &#63; and classNameId = &#63;.
789            *
790            * <p>
791            * 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.
792            * </p>
793            *
794            * @param companyId the company ID
795            * @param classNameId the class name ID
796            * @param start the lower bound of the range of websites
797            * @param end the upper bound of the range of websites (not inclusive)
798            * @return the range of matching websites
799            * @throws SystemException if a system exception occurred
800            */
801            public static java.util.List<com.liferay.portal.model.Website> findByC_C(
802                    long companyId, long classNameId, int start, int end)
803                    throws com.liferay.portal.kernel.exception.SystemException {
804                    return getPersistence().findByC_C(companyId, classNameId, start, end);
805            }
806    
807            /**
808            * Returns an ordered range of all the websites where companyId = &#63; and classNameId = &#63;.
809            *
810            * <p>
811            * 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.
812            * </p>
813            *
814            * @param companyId the company ID
815            * @param classNameId the class name ID
816            * @param start the lower bound of the range of websites
817            * @param end the upper bound of the range of websites (not inclusive)
818            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
819            * @return the ordered range of matching websites
820            * @throws SystemException if a system exception occurred
821            */
822            public static java.util.List<com.liferay.portal.model.Website> findByC_C(
823                    long companyId, long classNameId, int start, int end,
824                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
825                    throws com.liferay.portal.kernel.exception.SystemException {
826                    return getPersistence()
827                                       .findByC_C(companyId, classNameId, start, end,
828                            orderByComparator);
829            }
830    
831            /**
832            * Returns the first website in the ordered set where companyId = &#63; and classNameId = &#63;.
833            *
834            * @param companyId the company ID
835            * @param classNameId the class name ID
836            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
837            * @return the first matching website
838            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
839            * @throws SystemException if a system exception occurred
840            */
841            public static com.liferay.portal.model.Website findByC_C_First(
842                    long companyId, long classNameId,
843                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
844                    throws com.liferay.portal.NoSuchWebsiteException,
845                            com.liferay.portal.kernel.exception.SystemException {
846                    return getPersistence()
847                                       .findByC_C_First(companyId, classNameId, orderByComparator);
848            }
849    
850            /**
851            * Returns the first website in the ordered set where companyId = &#63; and classNameId = &#63;.
852            *
853            * @param companyId the company ID
854            * @param classNameId the class name ID
855            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
856            * @return the first matching website, or <code>null</code> if a matching website could not be found
857            * @throws SystemException if a system exception occurred
858            */
859            public static com.liferay.portal.model.Website fetchByC_C_First(
860                    long companyId, long classNameId,
861                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
862                    throws com.liferay.portal.kernel.exception.SystemException {
863                    return getPersistence()
864                                       .fetchByC_C_First(companyId, classNameId, orderByComparator);
865            }
866    
867            /**
868            * Returns the last website in the ordered set where companyId = &#63; and classNameId = &#63;.
869            *
870            * @param companyId the company ID
871            * @param classNameId the class name ID
872            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
873            * @return the last matching website
874            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
875            * @throws SystemException if a system exception occurred
876            */
877            public static com.liferay.portal.model.Website findByC_C_Last(
878                    long companyId, long classNameId,
879                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
880                    throws com.liferay.portal.NoSuchWebsiteException,
881                            com.liferay.portal.kernel.exception.SystemException {
882                    return getPersistence()
883                                       .findByC_C_Last(companyId, classNameId, orderByComparator);
884            }
885    
886            /**
887            * Returns the last website in the ordered set where companyId = &#63; and classNameId = &#63;.
888            *
889            * @param companyId the company ID
890            * @param classNameId the class name ID
891            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
892            * @return the last matching website, or <code>null</code> if a matching website could not be found
893            * @throws SystemException if a system exception occurred
894            */
895            public static com.liferay.portal.model.Website fetchByC_C_Last(
896                    long companyId, long classNameId,
897                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
898                    throws com.liferay.portal.kernel.exception.SystemException {
899                    return getPersistence()
900                                       .fetchByC_C_Last(companyId, classNameId, orderByComparator);
901            }
902    
903            /**
904            * Returns the websites before and after the current website in the ordered set where companyId = &#63; and classNameId = &#63;.
905            *
906            * @param websiteId the primary key of the current website
907            * @param companyId the company ID
908            * @param classNameId the class name ID
909            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
910            * @return the previous, current, and next website
911            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
912            * @throws SystemException if a system exception occurred
913            */
914            public static com.liferay.portal.model.Website[] findByC_C_PrevAndNext(
915                    long websiteId, long companyId, long classNameId,
916                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
917                    throws com.liferay.portal.NoSuchWebsiteException,
918                            com.liferay.portal.kernel.exception.SystemException {
919                    return getPersistence()
920                                       .findByC_C_PrevAndNext(websiteId, companyId, classNameId,
921                            orderByComparator);
922            }
923    
924            /**
925            * Removes all the websites where companyId = &#63; and classNameId = &#63; from the database.
926            *
927            * @param companyId the company ID
928            * @param classNameId the class name ID
929            * @throws SystemException if a system exception occurred
930            */
931            public static void removeByC_C(long companyId, long classNameId)
932                    throws com.liferay.portal.kernel.exception.SystemException {
933                    getPersistence().removeByC_C(companyId, classNameId);
934            }
935    
936            /**
937            * Returns the number of websites where companyId = &#63; and classNameId = &#63;.
938            *
939            * @param companyId the company ID
940            * @param classNameId the class name ID
941            * @return the number of matching websites
942            * @throws SystemException if a system exception occurred
943            */
944            public static int countByC_C(long companyId, long classNameId)
945                    throws com.liferay.portal.kernel.exception.SystemException {
946                    return getPersistence().countByC_C(companyId, classNameId);
947            }
948    
949            /**
950            * Returns all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
951            *
952            * @param companyId the company ID
953            * @param classNameId the class name ID
954            * @param classPK the class p k
955            * @return the matching websites
956            * @throws SystemException if a system exception occurred
957            */
958            public static java.util.List<com.liferay.portal.model.Website> findByC_C_C(
959                    long companyId, long classNameId, long classPK)
960                    throws com.liferay.portal.kernel.exception.SystemException {
961                    return getPersistence().findByC_C_C(companyId, classNameId, classPK);
962            }
963    
964            /**
965            * Returns a range of all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
966            *
967            * <p>
968            * 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.
969            * </p>
970            *
971            * @param companyId the company ID
972            * @param classNameId the class name ID
973            * @param classPK the class p k
974            * @param start the lower bound of the range of websites
975            * @param end the upper bound of the range of websites (not inclusive)
976            * @return the range of matching websites
977            * @throws SystemException if a system exception occurred
978            */
979            public static java.util.List<com.liferay.portal.model.Website> findByC_C_C(
980                    long companyId, long classNameId, long classPK, int start, int end)
981                    throws com.liferay.portal.kernel.exception.SystemException {
982                    return getPersistence()
983                                       .findByC_C_C(companyId, classNameId, classPK, start, end);
984            }
985    
986            /**
987            * Returns an ordered range of all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
988            *
989            * <p>
990            * 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.
991            * </p>
992            *
993            * @param companyId the company ID
994            * @param classNameId the class name ID
995            * @param classPK the class p k
996            * @param start the lower bound of the range of websites
997            * @param end the upper bound of the range of websites (not inclusive)
998            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
999            * @return the ordered range of matching websites
1000            * @throws SystemException if a system exception occurred
1001            */
1002            public static java.util.List<com.liferay.portal.model.Website> findByC_C_C(
1003                    long companyId, long classNameId, long classPK, int start, int end,
1004                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1005                    throws com.liferay.portal.kernel.exception.SystemException {
1006                    return getPersistence()
1007                                       .findByC_C_C(companyId, classNameId, classPK, start, end,
1008                            orderByComparator);
1009            }
1010    
1011            /**
1012            * Returns the first website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
1013            *
1014            * @param companyId the company ID
1015            * @param classNameId the class name ID
1016            * @param classPK the class p k
1017            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1018            * @return the first matching website
1019            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
1020            * @throws SystemException if a system exception occurred
1021            */
1022            public static com.liferay.portal.model.Website findByC_C_C_First(
1023                    long companyId, long classNameId, long classPK,
1024                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1025                    throws com.liferay.portal.NoSuchWebsiteException,
1026                            com.liferay.portal.kernel.exception.SystemException {
1027                    return getPersistence()
1028                                       .findByC_C_C_First(companyId, classNameId, classPK,
1029                            orderByComparator);
1030            }
1031    
1032            /**
1033            * Returns the first website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
1034            *
1035            * @param companyId the company ID
1036            * @param classNameId the class name ID
1037            * @param classPK the class p k
1038            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1039            * @return the first matching website, or <code>null</code> if a matching website could not be found
1040            * @throws SystemException if a system exception occurred
1041            */
1042            public static com.liferay.portal.model.Website fetchByC_C_C_First(
1043                    long companyId, long classNameId, long classPK,
1044                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1045                    throws com.liferay.portal.kernel.exception.SystemException {
1046                    return getPersistence()
1047                                       .fetchByC_C_C_First(companyId, classNameId, classPK,
1048                            orderByComparator);
1049            }
1050    
1051            /**
1052            * Returns the last website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
1053            *
1054            * @param companyId the company ID
1055            * @param classNameId the class name ID
1056            * @param classPK the class p k
1057            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1058            * @return the last matching website
1059            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
1060            * @throws SystemException if a system exception occurred
1061            */
1062            public static com.liferay.portal.model.Website findByC_C_C_Last(
1063                    long companyId, long classNameId, long classPK,
1064                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1065                    throws com.liferay.portal.NoSuchWebsiteException,
1066                            com.liferay.portal.kernel.exception.SystemException {
1067                    return getPersistence()
1068                                       .findByC_C_C_Last(companyId, classNameId, classPK,
1069                            orderByComparator);
1070            }
1071    
1072            /**
1073            * Returns the last website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
1074            *
1075            * @param companyId the company ID
1076            * @param classNameId the class name ID
1077            * @param classPK the class p k
1078            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1079            * @return the last matching website, or <code>null</code> if a matching website could not be found
1080            * @throws SystemException if a system exception occurred
1081            */
1082            public static com.liferay.portal.model.Website fetchByC_C_C_Last(
1083                    long companyId, long classNameId, long classPK,
1084                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1085                    throws com.liferay.portal.kernel.exception.SystemException {
1086                    return getPersistence()
1087                                       .fetchByC_C_C_Last(companyId, classNameId, classPK,
1088                            orderByComparator);
1089            }
1090    
1091            /**
1092            * Returns the websites before and after the current website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
1093            *
1094            * @param websiteId the primary key of the current website
1095            * @param companyId the company ID
1096            * @param classNameId the class name ID
1097            * @param classPK the class p k
1098            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1099            * @return the previous, current, and next website
1100            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
1101            * @throws SystemException if a system exception occurred
1102            */
1103            public static com.liferay.portal.model.Website[] findByC_C_C_PrevAndNext(
1104                    long websiteId, long companyId, long classNameId, long classPK,
1105                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1106                    throws com.liferay.portal.NoSuchWebsiteException,
1107                            com.liferay.portal.kernel.exception.SystemException {
1108                    return getPersistence()
1109                                       .findByC_C_C_PrevAndNext(websiteId, companyId, classNameId,
1110                            classPK, orderByComparator);
1111            }
1112    
1113            /**
1114            * Removes all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
1115            *
1116            * @param companyId the company ID
1117            * @param classNameId the class name ID
1118            * @param classPK the class p k
1119            * @throws SystemException if a system exception occurred
1120            */
1121            public static void removeByC_C_C(long companyId, long classNameId,
1122                    long classPK)
1123                    throws com.liferay.portal.kernel.exception.SystemException {
1124                    getPersistence().removeByC_C_C(companyId, classNameId, classPK);
1125            }
1126    
1127            /**
1128            * Returns the number of websites where companyId = &#63; and classNameId = &#63; and classPK = &#63;.
1129            *
1130            * @param companyId the company ID
1131            * @param classNameId the class name ID
1132            * @param classPK the class p k
1133            * @return the number of matching websites
1134            * @throws SystemException if a system exception occurred
1135            */
1136            public static int countByC_C_C(long companyId, long classNameId,
1137                    long classPK)
1138                    throws com.liferay.portal.kernel.exception.SystemException {
1139                    return getPersistence().countByC_C_C(companyId, classNameId, classPK);
1140            }
1141    
1142            /**
1143            * Returns all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1144            *
1145            * @param companyId the company ID
1146            * @param classNameId the class name ID
1147            * @param classPK the class p k
1148            * @param primary the primary
1149            * @return the matching websites
1150            * @throws SystemException if a system exception occurred
1151            */
1152            public static java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
1153                    long companyId, long classNameId, long classPK, boolean primary)
1154                    throws com.liferay.portal.kernel.exception.SystemException {
1155                    return getPersistence()
1156                                       .findByC_C_C_P(companyId, classNameId, classPK, primary);
1157            }
1158    
1159            /**
1160            * Returns a range of all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
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 companyId the company ID
1167            * @param classNameId the class name ID
1168            * @param classPK the class p k
1169            * @param primary the primary
1170            * @param start the lower bound of the range of websites
1171            * @param end the upper bound of the range of websites (not inclusive)
1172            * @return the range of matching websites
1173            * @throws SystemException if a system exception occurred
1174            */
1175            public static java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
1176                    long companyId, long classNameId, long classPK, boolean primary,
1177                    int start, int end)
1178                    throws com.liferay.portal.kernel.exception.SystemException {
1179                    return getPersistence()
1180                                       .findByC_C_C_P(companyId, classNameId, classPK, primary,
1181                            start, end);
1182            }
1183    
1184            /**
1185            * Returns an ordered range of all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1186            *
1187            * <p>
1188            * 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.
1189            * </p>
1190            *
1191            * @param companyId the company ID
1192            * @param classNameId the class name ID
1193            * @param classPK the class p k
1194            * @param primary the primary
1195            * @param start the lower bound of the range of websites
1196            * @param end the upper bound of the range of websites (not inclusive)
1197            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1198            * @return the ordered range of matching websites
1199            * @throws SystemException if a system exception occurred
1200            */
1201            public static java.util.List<com.liferay.portal.model.Website> findByC_C_C_P(
1202                    long companyId, long classNameId, long classPK, boolean primary,
1203                    int start, int end,
1204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1205                    throws com.liferay.portal.kernel.exception.SystemException {
1206                    return getPersistence()
1207                                       .findByC_C_C_P(companyId, classNameId, classPK, primary,
1208                            start, end, orderByComparator);
1209            }
1210    
1211            /**
1212            * Returns the first website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1213            *
1214            * @param companyId the company ID
1215            * @param classNameId the class name ID
1216            * @param classPK the class p k
1217            * @param primary the primary
1218            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1219            * @return the first matching website
1220            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
1221            * @throws SystemException if a system exception occurred
1222            */
1223            public static com.liferay.portal.model.Website findByC_C_C_P_First(
1224                    long companyId, long classNameId, long classPK, boolean primary,
1225                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1226                    throws com.liferay.portal.NoSuchWebsiteException,
1227                            com.liferay.portal.kernel.exception.SystemException {
1228                    return getPersistence()
1229                                       .findByC_C_C_P_First(companyId, classNameId, classPK,
1230                            primary, orderByComparator);
1231            }
1232    
1233            /**
1234            * Returns the first website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1235            *
1236            * @param companyId the company ID
1237            * @param classNameId the class name ID
1238            * @param classPK the class p k
1239            * @param primary the primary
1240            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1241            * @return the first matching website, or <code>null</code> if a matching website could not be found
1242            * @throws SystemException if a system exception occurred
1243            */
1244            public static com.liferay.portal.model.Website fetchByC_C_C_P_First(
1245                    long companyId, long classNameId, long classPK, boolean primary,
1246                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1247                    throws com.liferay.portal.kernel.exception.SystemException {
1248                    return getPersistence()
1249                                       .fetchByC_C_C_P_First(companyId, classNameId, classPK,
1250                            primary, orderByComparator);
1251            }
1252    
1253            /**
1254            * Returns the last website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1255            *
1256            * @param companyId the company ID
1257            * @param classNameId the class name ID
1258            * @param classPK the class p k
1259            * @param primary the primary
1260            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1261            * @return the last matching website
1262            * @throws com.liferay.portal.NoSuchWebsiteException if a matching website could not be found
1263            * @throws SystemException if a system exception occurred
1264            */
1265            public static com.liferay.portal.model.Website findByC_C_C_P_Last(
1266                    long companyId, long classNameId, long classPK, boolean primary,
1267                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1268                    throws com.liferay.portal.NoSuchWebsiteException,
1269                            com.liferay.portal.kernel.exception.SystemException {
1270                    return getPersistence()
1271                                       .findByC_C_C_P_Last(companyId, classNameId, classPK,
1272                            primary, orderByComparator);
1273            }
1274    
1275            /**
1276            * Returns the last website in the ordered set where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1277            *
1278            * @param companyId the company ID
1279            * @param classNameId the class name ID
1280            * @param classPK the class p k
1281            * @param primary the primary
1282            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1283            * @return the last matching website, or <code>null</code> if a matching website could not be found
1284            * @throws SystemException if a system exception occurred
1285            */
1286            public static com.liferay.portal.model.Website fetchByC_C_C_P_Last(
1287                    long companyId, long classNameId, long classPK, boolean primary,
1288                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1289                    throws com.liferay.portal.kernel.exception.SystemException {
1290                    return getPersistence()
1291                                       .fetchByC_C_C_P_Last(companyId, classNameId, classPK,
1292                            primary, orderByComparator);
1293            }
1294    
1295            /**
1296            * 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;.
1297            *
1298            * @param websiteId the primary key of the current website
1299            * @param companyId the company ID
1300            * @param classNameId the class name ID
1301            * @param classPK the class p k
1302            * @param primary the primary
1303            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1304            * @return the previous, current, and next website
1305            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
1306            * @throws SystemException if a system exception occurred
1307            */
1308            public static com.liferay.portal.model.Website[] findByC_C_C_P_PrevAndNext(
1309                    long websiteId, long companyId, long classNameId, long classPK,
1310                    boolean primary,
1311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1312                    throws com.liferay.portal.NoSuchWebsiteException,
1313                            com.liferay.portal.kernel.exception.SystemException {
1314                    return getPersistence()
1315                                       .findByC_C_C_P_PrevAndNext(websiteId, companyId,
1316                            classNameId, classPK, primary, orderByComparator);
1317            }
1318    
1319            /**
1320            * Removes all the websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63; from the database.
1321            *
1322            * @param companyId the company ID
1323            * @param classNameId the class name ID
1324            * @param classPK the class p k
1325            * @param primary the primary
1326            * @throws SystemException if a system exception occurred
1327            */
1328            public static void removeByC_C_C_P(long companyId, long classNameId,
1329                    long classPK, boolean primary)
1330                    throws com.liferay.portal.kernel.exception.SystemException {
1331                    getPersistence()
1332                            .removeByC_C_C_P(companyId, classNameId, classPK, primary);
1333            }
1334    
1335            /**
1336            * Returns the number of websites where companyId = &#63; and classNameId = &#63; and classPK = &#63; and primary = &#63;.
1337            *
1338            * @param companyId the company ID
1339            * @param classNameId the class name ID
1340            * @param classPK the class p k
1341            * @param primary the primary
1342            * @return the number of matching websites
1343            * @throws SystemException if a system exception occurred
1344            */
1345            public static int countByC_C_C_P(long companyId, long classNameId,
1346                    long classPK, boolean primary)
1347                    throws com.liferay.portal.kernel.exception.SystemException {
1348                    return getPersistence()
1349                                       .countByC_C_C_P(companyId, classNameId, classPK, primary);
1350            }
1351    
1352            /**
1353            * Caches the website in the entity cache if it is enabled.
1354            *
1355            * @param website the website
1356            */
1357            public static void cacheResult(com.liferay.portal.model.Website website) {
1358                    getPersistence().cacheResult(website);
1359            }
1360    
1361            /**
1362            * Caches the websites in the entity cache if it is enabled.
1363            *
1364            * @param websites the websites
1365            */
1366            public static void cacheResult(
1367                    java.util.List<com.liferay.portal.model.Website> websites) {
1368                    getPersistence().cacheResult(websites);
1369            }
1370    
1371            /**
1372            * Creates a new website with the primary key. Does not add the website to the database.
1373            *
1374            * @param websiteId the primary key for the new website
1375            * @return the new website
1376            */
1377            public static com.liferay.portal.model.Website create(long websiteId) {
1378                    return getPersistence().create(websiteId);
1379            }
1380    
1381            /**
1382            * Removes the website with the primary key from the database. Also notifies the appropriate model listeners.
1383            *
1384            * @param websiteId the primary key of the website
1385            * @return the website that was removed
1386            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
1387            * @throws SystemException if a system exception occurred
1388            */
1389            public static com.liferay.portal.model.Website remove(long websiteId)
1390                    throws com.liferay.portal.NoSuchWebsiteException,
1391                            com.liferay.portal.kernel.exception.SystemException {
1392                    return getPersistence().remove(websiteId);
1393            }
1394    
1395            public static com.liferay.portal.model.Website updateImpl(
1396                    com.liferay.portal.model.Website website)
1397                    throws com.liferay.portal.kernel.exception.SystemException {
1398                    return getPersistence().updateImpl(website);
1399            }
1400    
1401            /**
1402            * Returns the website with the primary key or throws a {@link com.liferay.portal.NoSuchWebsiteException} if it could not be found.
1403            *
1404            * @param websiteId the primary key of the website
1405            * @return the website
1406            * @throws com.liferay.portal.NoSuchWebsiteException if a website with the primary key could not be found
1407            * @throws SystemException if a system exception occurred
1408            */
1409            public static com.liferay.portal.model.Website findByPrimaryKey(
1410                    long websiteId)
1411                    throws com.liferay.portal.NoSuchWebsiteException,
1412                            com.liferay.portal.kernel.exception.SystemException {
1413                    return getPersistence().findByPrimaryKey(websiteId);
1414            }
1415    
1416            /**
1417            * Returns the website with the primary key or returns <code>null</code> if it could not be found.
1418            *
1419            * @param websiteId the primary key of the website
1420            * @return the website, or <code>null</code> if a website with the primary key could not be found
1421            * @throws SystemException if a system exception occurred
1422            */
1423            public static com.liferay.portal.model.Website fetchByPrimaryKey(
1424                    long websiteId)
1425                    throws com.liferay.portal.kernel.exception.SystemException {
1426                    return getPersistence().fetchByPrimaryKey(websiteId);
1427            }
1428    
1429            /**
1430            * Returns all the websites.
1431            *
1432            * @return the websites
1433            * @throws SystemException if a system exception occurred
1434            */
1435            public static java.util.List<com.liferay.portal.model.Website> findAll()
1436                    throws com.liferay.portal.kernel.exception.SystemException {
1437                    return getPersistence().findAll();
1438            }
1439    
1440            /**
1441            * Returns a range of all the websites.
1442            *
1443            * <p>
1444            * 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.
1445            * </p>
1446            *
1447            * @param start the lower bound of the range of websites
1448            * @param end the upper bound of the range of websites (not inclusive)
1449            * @return the range of websites
1450            * @throws SystemException if a system exception occurred
1451            */
1452            public static java.util.List<com.liferay.portal.model.Website> findAll(
1453                    int start, int end)
1454                    throws com.liferay.portal.kernel.exception.SystemException {
1455                    return getPersistence().findAll(start, end);
1456            }
1457    
1458            /**
1459            * Returns an ordered range of all the websites.
1460            *
1461            * <p>
1462            * 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.
1463            * </p>
1464            *
1465            * @param start the lower bound of the range of websites
1466            * @param end the upper bound of the range of websites (not inclusive)
1467            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1468            * @return the ordered range of websites
1469            * @throws SystemException if a system exception occurred
1470            */
1471            public static java.util.List<com.liferay.portal.model.Website> findAll(
1472                    int start, int end,
1473                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1474                    throws com.liferay.portal.kernel.exception.SystemException {
1475                    return getPersistence().findAll(start, end, orderByComparator);
1476            }
1477    
1478            /**
1479            * Removes all the websites from the database.
1480            *
1481            * @throws SystemException if a system exception occurred
1482            */
1483            public static void removeAll()
1484                    throws com.liferay.portal.kernel.exception.SystemException {
1485                    getPersistence().removeAll();
1486            }
1487    
1488            /**
1489            * Returns the number of websites.
1490            *
1491            * @return the number of websites
1492            * @throws SystemException if a system exception occurred
1493            */
1494            public static int countAll()
1495                    throws com.liferay.portal.kernel.exception.SystemException {
1496                    return getPersistence().countAll();
1497            }
1498    
1499            public static WebsitePersistence getPersistence() {
1500                    if (_persistence == null) {
1501                            _persistence = (WebsitePersistence)PortalBeanLocatorUtil.locate(WebsitePersistence.class.getName());
1502    
1503                            ReferenceRegistry.registerReference(WebsiteUtil.class,
1504                                    "_persistence");
1505                    }
1506    
1507                    return _persistence;
1508            }
1509    
1510            /**
1511             * @deprecated As of 6.2.0
1512             */
1513            public void setPersistence(WebsitePersistence persistence) {
1514            }
1515    
1516            private static WebsitePersistence _persistence;
1517    }