001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.model.PortletPreferences;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the portlet preferences service. This utility wraps {@link PortletPreferencesPersistenceImpl} 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.
029     *
030     * <p>
031     * Caching information and settings can be found in <code>portal.properties</code>
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see PortletPreferencesPersistence
036     * @see PortletPreferencesPersistenceImpl
037     * @generated
038     */
039    public class PortletPreferencesUtil {
040            /*
041             * NOTE FOR DEVELOPERS:
042             *
043             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
044             */
045    
046            /**
047             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
048             */
049            public static void clearCache() {
050                    getPersistence().clearCache();
051            }
052    
053            /**
054             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
055             */
056            public static void clearCache(PortletPreferences portletPreferences) {
057                    getPersistence().clearCache(portletPreferences);
058            }
059    
060            /**
061             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
062             */
063            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
064                    throws SystemException {
065                    return getPersistence().countWithDynamicQuery(dynamicQuery);
066            }
067    
068            /**
069             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
070             */
071            public static List<PortletPreferences> findWithDynamicQuery(
072                    DynamicQuery dynamicQuery) throws SystemException {
073                    return getPersistence().findWithDynamicQuery(dynamicQuery);
074            }
075    
076            /**
077             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
078             */
079            public static List<PortletPreferences> findWithDynamicQuery(
080                    DynamicQuery dynamicQuery, int start, int end)
081                    throws SystemException {
082                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
083            }
084    
085            /**
086             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
087             */
088            public static List<PortletPreferences> findWithDynamicQuery(
089                    DynamicQuery dynamicQuery, int start, int end,
090                    OrderByComparator orderByComparator) throws SystemException {
091                    return getPersistence()
092                                       .findWithDynamicQuery(dynamicQuery, start, end,
093                            orderByComparator);
094            }
095    
096            /**
097             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
098             */
099            public static PortletPreferences update(
100                    PortletPreferences portletPreferences, boolean merge)
101                    throws SystemException {
102                    return getPersistence().update(portletPreferences, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static PortletPreferences update(
109                    PortletPreferences portletPreferences, boolean merge,
110                    ServiceContext serviceContext) throws SystemException {
111                    return getPersistence().update(portletPreferences, merge, serviceContext);
112            }
113    
114            /**
115            * Caches the portlet preferences in the entity cache if it is enabled.
116            *
117            * @param portletPreferences the portlet preferences
118            */
119            public static void cacheResult(
120                    com.liferay.portal.model.PortletPreferences portletPreferences) {
121                    getPersistence().cacheResult(portletPreferences);
122            }
123    
124            /**
125            * Caches the portlet preferenceses in the entity cache if it is enabled.
126            *
127            * @param portletPreferenceses the portlet preferenceses
128            */
129            public static void cacheResult(
130                    java.util.List<com.liferay.portal.model.PortletPreferences> portletPreferenceses) {
131                    getPersistence().cacheResult(portletPreferenceses);
132            }
133    
134            /**
135            * Creates a new portlet preferences with the primary key. Does not add the portlet preferences to the database.
136            *
137            * @param portletPreferencesId the primary key for the new portlet preferences
138            * @return the new portlet preferences
139            */
140            public static com.liferay.portal.model.PortletPreferences create(
141                    long portletPreferencesId) {
142                    return getPersistence().create(portletPreferencesId);
143            }
144    
145            /**
146            * Removes the portlet preferences with the primary key from the database. Also notifies the appropriate model listeners.
147            *
148            * @param portletPreferencesId the primary key of the portlet preferences
149            * @return the portlet preferences that was removed
150            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public static com.liferay.portal.model.PortletPreferences remove(
154                    long portletPreferencesId)
155                    throws com.liferay.portal.NoSuchPortletPreferencesException,
156                            com.liferay.portal.kernel.exception.SystemException {
157                    return getPersistence().remove(portletPreferencesId);
158            }
159    
160            public static com.liferay.portal.model.PortletPreferences updateImpl(
161                    com.liferay.portal.model.PortletPreferences portletPreferences,
162                    boolean merge)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getPersistence().updateImpl(portletPreferences, merge);
165            }
166    
167            /**
168            * Returns the portlet preferences with the primary key or throws a {@link com.liferay.portal.NoSuchPortletPreferencesException} if it could not be found.
169            *
170            * @param portletPreferencesId the primary key of the portlet preferences
171            * @return the portlet preferences
172            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public static com.liferay.portal.model.PortletPreferences findByPrimaryKey(
176                    long portletPreferencesId)
177                    throws com.liferay.portal.NoSuchPortletPreferencesException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return getPersistence().findByPrimaryKey(portletPreferencesId);
180            }
181    
182            /**
183            * Returns the portlet preferences with the primary key or returns <code>null</code> if it could not be found.
184            *
185            * @param portletPreferencesId the primary key of the portlet preferences
186            * @return the portlet preferences, or <code>null</code> if a portlet preferences with the primary key could not be found
187            * @throws SystemException if a system exception occurred
188            */
189            public static com.liferay.portal.model.PortletPreferences fetchByPrimaryKey(
190                    long portletPreferencesId)
191                    throws com.liferay.portal.kernel.exception.SystemException {
192                    return getPersistence().fetchByPrimaryKey(portletPreferencesId);
193            }
194    
195            /**
196            * Returns all the portlet preferenceses where plid = &#63;.
197            *
198            * @param plid the plid
199            * @return the matching portlet preferenceses
200            * @throws SystemException if a system exception occurred
201            */
202            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
203                    long plid) throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByPlid(plid);
205            }
206    
207            /**
208            * Returns a range of all the portlet preferenceses where plid = &#63;.
209            *
210            * <p>
211            * 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.
212            * </p>
213            *
214            * @param plid the plid
215            * @param start the lower bound of the range of portlet preferenceses
216            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
217            * @return the range of matching portlet preferenceses
218            * @throws SystemException if a system exception occurred
219            */
220            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
221                    long plid, int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return getPersistence().findByPlid(plid, start, end);
224            }
225    
226            /**
227            * Returns an ordered range of all the portlet preferenceses where plid = &#63;.
228            *
229            * <p>
230            * 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.
231            * </p>
232            *
233            * @param plid the plid
234            * @param start the lower bound of the range of portlet preferenceses
235            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
236            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
237            * @return the ordered range of matching portlet preferenceses
238            * @throws SystemException if a system exception occurred
239            */
240            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
241                    long plid, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence().findByPlid(plid, start, end, orderByComparator);
245            }
246    
247            /**
248            * Returns the first portlet preferences in the ordered set where plid = &#63;.
249            *
250            * @param plid the plid
251            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
252            * @return the first matching portlet preferences
253            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
254            * @throws SystemException if a system exception occurred
255            */
256            public static com.liferay.portal.model.PortletPreferences findByPlid_First(
257                    long plid,
258                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259                    throws com.liferay.portal.NoSuchPortletPreferencesException,
260                            com.liferay.portal.kernel.exception.SystemException {
261                    return getPersistence().findByPlid_First(plid, orderByComparator);
262            }
263    
264            /**
265            * Returns the first portlet preferences in the ordered set where plid = &#63;.
266            *
267            * @param plid the plid
268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
269            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
270            * @throws SystemException if a system exception occurred
271            */
272            public static com.liferay.portal.model.PortletPreferences fetchByPlid_First(
273                    long plid,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return getPersistence().fetchByPlid_First(plid, orderByComparator);
277            }
278    
279            /**
280            * Returns the last portlet preferences in the ordered set where plid = &#63;.
281            *
282            * @param plid the plid
283            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
284            * @return the last matching portlet preferences
285            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
286            * @throws SystemException if a system exception occurred
287            */
288            public static com.liferay.portal.model.PortletPreferences findByPlid_Last(
289                    long plid,
290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291                    throws com.liferay.portal.NoSuchPortletPreferencesException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    return getPersistence().findByPlid_Last(plid, orderByComparator);
294            }
295    
296            /**
297            * Returns the last portlet preferences in the ordered set where plid = &#63;.
298            *
299            * @param plid the plid
300            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
301            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public static com.liferay.portal.model.PortletPreferences fetchByPlid_Last(
305                    long plid,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return getPersistence().fetchByPlid_Last(plid, orderByComparator);
309            }
310    
311            /**
312            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = &#63;.
313            *
314            * @param portletPreferencesId the primary key of the current portlet preferences
315            * @param plid the plid
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the previous, current, and next portlet preferences
318            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public static com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext(
322                    long portletPreferencesId, long plid,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.NoSuchPortletPreferencesException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    return getPersistence()
327                                       .findByPlid_PrevAndNext(portletPreferencesId, plid,
328                            orderByComparator);
329            }
330    
331            /**
332            * Returns all the portlet preferenceses where portletId = &#63;.
333            *
334            * @param portletId the portlet ID
335            * @return the matching portlet preferenceses
336            * @throws SystemException if a system exception occurred
337            */
338            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId(
339                    java.lang.String portletId)
340                    throws com.liferay.portal.kernel.exception.SystemException {
341                    return getPersistence().findByPortletId(portletId);
342            }
343    
344            /**
345            * Returns a range of all the portlet preferenceses where portletId = &#63;.
346            *
347            * <p>
348            * 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.
349            * </p>
350            *
351            * @param portletId the portlet ID
352            * @param start the lower bound of the range of portlet preferenceses
353            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
354            * @return the range of matching portlet preferenceses
355            * @throws SystemException if a system exception occurred
356            */
357            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId(
358                    java.lang.String portletId, int start, int end)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return getPersistence().findByPortletId(portletId, start, end);
361            }
362    
363            /**
364            * Returns an ordered range of all the portlet preferenceses where portletId = &#63;.
365            *
366            * <p>
367            * 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.
368            * </p>
369            *
370            * @param portletId the portlet ID
371            * @param start the lower bound of the range of portlet preferenceses
372            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
373            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
374            * @return the ordered range of matching portlet preferenceses
375            * @throws SystemException if a system exception occurred
376            */
377            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId(
378                    java.lang.String portletId, int start, int end,
379                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    return getPersistence()
382                                       .findByPortletId(portletId, start, end, orderByComparator);
383            }
384    
385            /**
386            * Returns the first portlet preferences in the ordered set where portletId = &#63;.
387            *
388            * @param portletId the portlet ID
389            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
390            * @return the first matching portlet preferences
391            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
392            * @throws SystemException if a system exception occurred
393            */
394            public static com.liferay.portal.model.PortletPreferences findByPortletId_First(
395                    java.lang.String portletId,
396                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
397                    throws com.liferay.portal.NoSuchPortletPreferencesException,
398                            com.liferay.portal.kernel.exception.SystemException {
399                    return getPersistence()
400                                       .findByPortletId_First(portletId, orderByComparator);
401            }
402    
403            /**
404            * Returns the first portlet preferences in the ordered set where portletId = &#63;.
405            *
406            * @param portletId the portlet ID
407            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
408            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
409            * @throws SystemException if a system exception occurred
410            */
411            public static com.liferay.portal.model.PortletPreferences fetchByPortletId_First(
412                    java.lang.String portletId,
413                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
414                    throws com.liferay.portal.kernel.exception.SystemException {
415                    return getPersistence()
416                                       .fetchByPortletId_First(portletId, orderByComparator);
417            }
418    
419            /**
420            * Returns the last portlet preferences in the ordered set where portletId = &#63;.
421            *
422            * @param portletId the portlet ID
423            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
424            * @return the last matching portlet preferences
425            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
426            * @throws SystemException if a system exception occurred
427            */
428            public static com.liferay.portal.model.PortletPreferences findByPortletId_Last(
429                    java.lang.String portletId,
430                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
431                    throws com.liferay.portal.NoSuchPortletPreferencesException,
432                            com.liferay.portal.kernel.exception.SystemException {
433                    return getPersistence()
434                                       .findByPortletId_Last(portletId, orderByComparator);
435            }
436    
437            /**
438            * Returns the last portlet preferences in the ordered set where portletId = &#63;.
439            *
440            * @param portletId the portlet ID
441            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
442            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
443            * @throws SystemException if a system exception occurred
444            */
445            public static com.liferay.portal.model.PortletPreferences fetchByPortletId_Last(
446                    java.lang.String portletId,
447                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
448                    throws com.liferay.portal.kernel.exception.SystemException {
449                    return getPersistence()
450                                       .fetchByPortletId_Last(portletId, orderByComparator);
451            }
452    
453            /**
454            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where portletId = &#63;.
455            *
456            * @param portletPreferencesId the primary key of the current portlet preferences
457            * @param portletId the portlet ID
458            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
459            * @return the previous, current, and next portlet preferences
460            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
461            * @throws SystemException if a system exception occurred
462            */
463            public static com.liferay.portal.model.PortletPreferences[] findByPortletId_PrevAndNext(
464                    long portletPreferencesId, java.lang.String portletId,
465                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
466                    throws com.liferay.portal.NoSuchPortletPreferencesException,
467                            com.liferay.portal.kernel.exception.SystemException {
468                    return getPersistence()
469                                       .findByPortletId_PrevAndNext(portletPreferencesId,
470                            portletId, orderByComparator);
471            }
472    
473            /**
474            * Returns all the portlet preferenceses where plid = &#63; and portletId = &#63;.
475            *
476            * @param plid the plid
477            * @param portletId the portlet ID
478            * @return the matching portlet preferenceses
479            * @throws SystemException if a system exception occurred
480            */
481            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
482                    long plid, java.lang.String portletId)
483                    throws com.liferay.portal.kernel.exception.SystemException {
484                    return getPersistence().findByP_P(plid, portletId);
485            }
486    
487            /**
488            * Returns a range of all the portlet preferenceses where plid = &#63; and portletId = &#63;.
489            *
490            * <p>
491            * 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.
492            * </p>
493            *
494            * @param plid the plid
495            * @param portletId the portlet ID
496            * @param start the lower bound of the range of portlet preferenceses
497            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
498            * @return the range of matching portlet preferenceses
499            * @throws SystemException if a system exception occurred
500            */
501            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
502                    long plid, java.lang.String portletId, int start, int end)
503                    throws com.liferay.portal.kernel.exception.SystemException {
504                    return getPersistence().findByP_P(plid, portletId, start, end);
505            }
506    
507            /**
508            * Returns an ordered range of all the portlet preferenceses where plid = &#63; and portletId = &#63;.
509            *
510            * <p>
511            * 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.
512            * </p>
513            *
514            * @param plid the plid
515            * @param portletId the portlet ID
516            * @param start the lower bound of the range of portlet preferenceses
517            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
518            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
519            * @return the ordered range of matching portlet preferenceses
520            * @throws SystemException if a system exception occurred
521            */
522            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
523                    long plid, java.lang.String portletId, int start, int end,
524                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
525                    throws com.liferay.portal.kernel.exception.SystemException {
526                    return getPersistence()
527                                       .findByP_P(plid, portletId, start, end, orderByComparator);
528            }
529    
530            /**
531            * Returns the first portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
532            *
533            * @param plid the plid
534            * @param portletId the portlet ID
535            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
536            * @return the first matching portlet preferences
537            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
538            * @throws SystemException if a system exception occurred
539            */
540            public static com.liferay.portal.model.PortletPreferences findByP_P_First(
541                    long plid, java.lang.String portletId,
542                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
543                    throws com.liferay.portal.NoSuchPortletPreferencesException,
544                            com.liferay.portal.kernel.exception.SystemException {
545                    return getPersistence()
546                                       .findByP_P_First(plid, portletId, orderByComparator);
547            }
548    
549            /**
550            * Returns the first portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
551            *
552            * @param plid the plid
553            * @param portletId the portlet ID
554            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
555            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
556            * @throws SystemException if a system exception occurred
557            */
558            public static com.liferay.portal.model.PortletPreferences fetchByP_P_First(
559                    long plid, java.lang.String portletId,
560                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
561                    throws com.liferay.portal.kernel.exception.SystemException {
562                    return getPersistence()
563                                       .fetchByP_P_First(plid, portletId, orderByComparator);
564            }
565    
566            /**
567            * Returns the last portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
568            *
569            * @param plid the plid
570            * @param portletId the portlet ID
571            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
572            * @return the last matching portlet preferences
573            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
574            * @throws SystemException if a system exception occurred
575            */
576            public static com.liferay.portal.model.PortletPreferences findByP_P_Last(
577                    long plid, java.lang.String portletId,
578                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
579                    throws com.liferay.portal.NoSuchPortletPreferencesException,
580                            com.liferay.portal.kernel.exception.SystemException {
581                    return getPersistence()
582                                       .findByP_P_Last(plid, portletId, orderByComparator);
583            }
584    
585            /**
586            * Returns the last portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
587            *
588            * @param plid the plid
589            * @param portletId the portlet ID
590            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
591            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
592            * @throws SystemException if a system exception occurred
593            */
594            public static com.liferay.portal.model.PortletPreferences fetchByP_P_Last(
595                    long plid, java.lang.String portletId,
596                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
597                    throws com.liferay.portal.kernel.exception.SystemException {
598                    return getPersistence()
599                                       .fetchByP_P_Last(plid, portletId, orderByComparator);
600            }
601    
602            /**
603            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
604            *
605            * @param portletPreferencesId the primary key of the current portlet preferences
606            * @param plid the plid
607            * @param portletId the portlet ID
608            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
609            * @return the previous, current, and next portlet preferences
610            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
611            * @throws SystemException if a system exception occurred
612            */
613            public static com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext(
614                    long portletPreferencesId, long plid, java.lang.String portletId,
615                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
616                    throws com.liferay.portal.NoSuchPortletPreferencesException,
617                            com.liferay.portal.kernel.exception.SystemException {
618                    return getPersistence()
619                                       .findByP_P_PrevAndNext(portletPreferencesId, plid,
620                            portletId, orderByComparator);
621            }
622    
623            /**
624            * Returns all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
625            *
626            * @param ownerId the owner ID
627            * @param ownerType the owner type
628            * @param plid the plid
629            * @return the matching portlet preferenceses
630            * @throws SystemException if a system exception occurred
631            */
632            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
633                    long ownerId, int ownerType, long plid)
634                    throws com.liferay.portal.kernel.exception.SystemException {
635                    return getPersistence().findByO_O_P(ownerId, ownerType, plid);
636            }
637    
638            /**
639            * Returns a range of all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
640            *
641            * <p>
642            * 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.
643            * </p>
644            *
645            * @param ownerId the owner ID
646            * @param ownerType the owner type
647            * @param plid the plid
648            * @param start the lower bound of the range of portlet preferenceses
649            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
650            * @return the range of matching portlet preferenceses
651            * @throws SystemException if a system exception occurred
652            */
653            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
654                    long ownerId, int ownerType, long plid, int start, int end)
655                    throws com.liferay.portal.kernel.exception.SystemException {
656                    return getPersistence().findByO_O_P(ownerId, ownerType, plid, start, end);
657            }
658    
659            /**
660            * Returns an ordered range of all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
661            *
662            * <p>
663            * 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.
664            * </p>
665            *
666            * @param ownerId the owner ID
667            * @param ownerType the owner type
668            * @param plid the plid
669            * @param start the lower bound of the range of portlet preferenceses
670            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
671            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
672            * @return the ordered range of matching portlet preferenceses
673            * @throws SystemException if a system exception occurred
674            */
675            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
676                    long ownerId, int ownerType, long plid, int start, int end,
677                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
678                    throws com.liferay.portal.kernel.exception.SystemException {
679                    return getPersistence()
680                                       .findByO_O_P(ownerId, ownerType, plid, start, end,
681                            orderByComparator);
682            }
683    
684            /**
685            * Returns the first portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
686            *
687            * @param ownerId the owner ID
688            * @param ownerType the owner type
689            * @param plid the plid
690            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
691            * @return the first matching portlet preferences
692            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
693            * @throws SystemException if a system exception occurred
694            */
695            public static com.liferay.portal.model.PortletPreferences findByO_O_P_First(
696                    long ownerId, int ownerType, long plid,
697                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
698                    throws com.liferay.portal.NoSuchPortletPreferencesException,
699                            com.liferay.portal.kernel.exception.SystemException {
700                    return getPersistence()
701                                       .findByO_O_P_First(ownerId, ownerType, plid,
702                            orderByComparator);
703            }
704    
705            /**
706            * Returns the first portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
707            *
708            * @param ownerId the owner ID
709            * @param ownerType the owner type
710            * @param plid the plid
711            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
712            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
713            * @throws SystemException if a system exception occurred
714            */
715            public static com.liferay.portal.model.PortletPreferences fetchByO_O_P_First(
716                    long ownerId, int ownerType, long plid,
717                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
718                    throws com.liferay.portal.kernel.exception.SystemException {
719                    return getPersistence()
720                                       .fetchByO_O_P_First(ownerId, ownerType, plid,
721                            orderByComparator);
722            }
723    
724            /**
725            * Returns the last portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
726            *
727            * @param ownerId the owner ID
728            * @param ownerType the owner type
729            * @param plid the plid
730            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
731            * @return the last matching portlet preferences
732            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
733            * @throws SystemException if a system exception occurred
734            */
735            public static com.liferay.portal.model.PortletPreferences findByO_O_P_Last(
736                    long ownerId, int ownerType, long plid,
737                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
738                    throws com.liferay.portal.NoSuchPortletPreferencesException,
739                            com.liferay.portal.kernel.exception.SystemException {
740                    return getPersistence()
741                                       .findByO_O_P_Last(ownerId, ownerType, plid, orderByComparator);
742            }
743    
744            /**
745            * Returns the last portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
746            *
747            * @param ownerId the owner ID
748            * @param ownerType the owner type
749            * @param plid the plid
750            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
751            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
752            * @throws SystemException if a system exception occurred
753            */
754            public static com.liferay.portal.model.PortletPreferences fetchByO_O_P_Last(
755                    long ownerId, int ownerType, long plid,
756                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
757                    throws com.liferay.portal.kernel.exception.SystemException {
758                    return getPersistence()
759                                       .fetchByO_O_P_Last(ownerId, ownerType, plid,
760                            orderByComparator);
761            }
762    
763            /**
764            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
765            *
766            * @param portletPreferencesId the primary key of the current portlet preferences
767            * @param ownerId the owner ID
768            * @param ownerType the owner type
769            * @param plid the plid
770            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
771            * @return the previous, current, and next portlet preferences
772            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
773            * @throws SystemException if a system exception occurred
774            */
775            public static com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext(
776                    long portletPreferencesId, long ownerId, int ownerType, long plid,
777                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
778                    throws com.liferay.portal.NoSuchPortletPreferencesException,
779                            com.liferay.portal.kernel.exception.SystemException {
780                    return getPersistence()
781                                       .findByO_O_P_PrevAndNext(portletPreferencesId, ownerId,
782                            ownerType, plid, orderByComparator);
783            }
784    
785            /**
786            * Returns all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
787            *
788            * @param ownerType the owner type
789            * @param plid the plid
790            * @param portletId the portlet ID
791            * @return the matching portlet preferenceses
792            * @throws SystemException if a system exception occurred
793            */
794            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P(
795                    int ownerType, long plid, java.lang.String portletId)
796                    throws com.liferay.portal.kernel.exception.SystemException {
797                    return getPersistence().findByO_P_P(ownerType, plid, portletId);
798            }
799    
800            /**
801            * Returns a range of all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
802            *
803            * <p>
804            * 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.
805            * </p>
806            *
807            * @param ownerType the owner type
808            * @param plid the plid
809            * @param portletId the portlet ID
810            * @param start the lower bound of the range of portlet preferenceses
811            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
812            * @return the range of matching portlet preferenceses
813            * @throws SystemException if a system exception occurred
814            */
815            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P(
816                    int ownerType, long plid, java.lang.String portletId, int start, int end)
817                    throws com.liferay.portal.kernel.exception.SystemException {
818                    return getPersistence()
819                                       .findByO_P_P(ownerType, plid, portletId, start, end);
820            }
821    
822            /**
823            * Returns an ordered range of all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
824            *
825            * <p>
826            * 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.
827            * </p>
828            *
829            * @param ownerType the owner type
830            * @param plid the plid
831            * @param portletId the portlet ID
832            * @param start the lower bound of the range of portlet preferenceses
833            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
834            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
835            * @return the ordered range of matching portlet preferenceses
836            * @throws SystemException if a system exception occurred
837            */
838            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P(
839                    int ownerType, long plid, java.lang.String portletId, int start,
840                    int end,
841                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
842                    throws com.liferay.portal.kernel.exception.SystemException {
843                    return getPersistence()
844                                       .findByO_P_P(ownerType, plid, portletId, start, end,
845                            orderByComparator);
846            }
847    
848            /**
849            * Returns the first portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
850            *
851            * @param ownerType the owner type
852            * @param plid the plid
853            * @param portletId the portlet ID
854            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
855            * @return the first matching portlet preferences
856            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
857            * @throws SystemException if a system exception occurred
858            */
859            public static com.liferay.portal.model.PortletPreferences findByO_P_P_First(
860                    int ownerType, long plid, java.lang.String portletId,
861                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
862                    throws com.liferay.portal.NoSuchPortletPreferencesException,
863                            com.liferay.portal.kernel.exception.SystemException {
864                    return getPersistence()
865                                       .findByO_P_P_First(ownerType, plid, portletId,
866                            orderByComparator);
867            }
868    
869            /**
870            * Returns the first portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
871            *
872            * @param ownerType the owner type
873            * @param plid the plid
874            * @param portletId the portlet ID
875            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
876            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
877            * @throws SystemException if a system exception occurred
878            */
879            public static com.liferay.portal.model.PortletPreferences fetchByO_P_P_First(
880                    int ownerType, long plid, java.lang.String portletId,
881                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
882                    throws com.liferay.portal.kernel.exception.SystemException {
883                    return getPersistence()
884                                       .fetchByO_P_P_First(ownerType, plid, portletId,
885                            orderByComparator);
886            }
887    
888            /**
889            * Returns the last portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
890            *
891            * @param ownerType the owner type
892            * @param plid the plid
893            * @param portletId the portlet ID
894            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
895            * @return the last matching portlet preferences
896            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
897            * @throws SystemException if a system exception occurred
898            */
899            public static com.liferay.portal.model.PortletPreferences findByO_P_P_Last(
900                    int ownerType, long plid, java.lang.String portletId,
901                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
902                    throws com.liferay.portal.NoSuchPortletPreferencesException,
903                            com.liferay.portal.kernel.exception.SystemException {
904                    return getPersistence()
905                                       .findByO_P_P_Last(ownerType, plid, portletId,
906                            orderByComparator);
907            }
908    
909            /**
910            * Returns the last portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
911            *
912            * @param ownerType the owner type
913            * @param plid the plid
914            * @param portletId the portlet ID
915            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
916            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
917            * @throws SystemException if a system exception occurred
918            */
919            public static com.liferay.portal.model.PortletPreferences fetchByO_P_P_Last(
920                    int ownerType, long plid, java.lang.String portletId,
921                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
922                    throws com.liferay.portal.kernel.exception.SystemException {
923                    return getPersistence()
924                                       .fetchByO_P_P_Last(ownerType, plid, portletId,
925                            orderByComparator);
926            }
927    
928            /**
929            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
930            *
931            * @param portletPreferencesId the primary key of the current portlet preferences
932            * @param ownerType the owner type
933            * @param plid the plid
934            * @param portletId the portlet ID
935            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
936            * @return the previous, current, and next portlet preferences
937            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
938            * @throws SystemException if a system exception occurred
939            */
940            public static com.liferay.portal.model.PortletPreferences[] findByO_P_P_PrevAndNext(
941                    long portletPreferencesId, int ownerType, long plid,
942                    java.lang.String portletId,
943                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
944                    throws com.liferay.portal.NoSuchPortletPreferencesException,
945                            com.liferay.portal.kernel.exception.SystemException {
946                    return getPersistence()
947                                       .findByO_P_P_PrevAndNext(portletPreferencesId, ownerType,
948                            plid, portletId, orderByComparator);
949            }
950    
951            /**
952            * Returns the portlet preferences where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63; or throws a {@link com.liferay.portal.NoSuchPortletPreferencesException} if it could not be found.
953            *
954            * @param ownerId the owner ID
955            * @param ownerType the owner type
956            * @param plid the plid
957            * @param portletId the portlet ID
958            * @return the matching portlet preferences
959            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
960            * @throws SystemException if a system exception occurred
961            */
962            public static com.liferay.portal.model.PortletPreferences findByO_O_P_P(
963                    long ownerId, int ownerType, long plid, java.lang.String portletId)
964                    throws com.liferay.portal.NoSuchPortletPreferencesException,
965                            com.liferay.portal.kernel.exception.SystemException {
966                    return getPersistence()
967                                       .findByO_O_P_P(ownerId, ownerType, plid, portletId);
968            }
969    
970            /**
971            * Returns the portlet preferences where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
972            *
973            * @param ownerId the owner ID
974            * @param ownerType the owner type
975            * @param plid the plid
976            * @param portletId the portlet ID
977            * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
978            * @throws SystemException if a system exception occurred
979            */
980            public static com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
981                    long ownerId, int ownerType, long plid, java.lang.String portletId)
982                    throws com.liferay.portal.kernel.exception.SystemException {
983                    return getPersistence()
984                                       .fetchByO_O_P_P(ownerId, ownerType, plid, portletId);
985            }
986    
987            /**
988            * Returns the portlet preferences where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
989            *
990            * @param ownerId the owner ID
991            * @param ownerType the owner type
992            * @param plid the plid
993            * @param portletId the portlet ID
994            * @param retrieveFromCache whether to use the finder cache
995            * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
996            * @throws SystemException if a system exception occurred
997            */
998            public static com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
999                    long ownerId, int ownerType, long plid, java.lang.String portletId,
1000                    boolean retrieveFromCache)
1001                    throws com.liferay.portal.kernel.exception.SystemException {
1002                    return getPersistence()
1003                                       .fetchByO_O_P_P(ownerId, ownerType, plid, portletId,
1004                            retrieveFromCache);
1005            }
1006    
1007            /**
1008            * Returns all the portlet preferenceses.
1009            *
1010            * @return the portlet preferenceses
1011            * @throws SystemException if a system exception occurred
1012            */
1013            public static java.util.List<com.liferay.portal.model.PortletPreferences> findAll()
1014                    throws com.liferay.portal.kernel.exception.SystemException {
1015                    return getPersistence().findAll();
1016            }
1017    
1018            /**
1019            * Returns a range of all the portlet preferenceses.
1020            *
1021            * <p>
1022            * 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.
1023            * </p>
1024            *
1025            * @param start the lower bound of the range of portlet preferenceses
1026            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
1027            * @return the range of portlet preferenceses
1028            * @throws SystemException if a system exception occurred
1029            */
1030            public static java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
1031                    int start, int end)
1032                    throws com.liferay.portal.kernel.exception.SystemException {
1033                    return getPersistence().findAll(start, end);
1034            }
1035    
1036            /**
1037            * Returns an ordered range of all the portlet preferenceses.
1038            *
1039            * <p>
1040            * 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.
1041            * </p>
1042            *
1043            * @param start the lower bound of the range of portlet preferenceses
1044            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
1045            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1046            * @return the ordered range of portlet preferenceses
1047            * @throws SystemException if a system exception occurred
1048            */
1049            public static java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
1050                    int start, int end,
1051                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1052                    throws com.liferay.portal.kernel.exception.SystemException {
1053                    return getPersistence().findAll(start, end, orderByComparator);
1054            }
1055    
1056            /**
1057            * Removes all the portlet preferenceses where plid = &#63; from the database.
1058            *
1059            * @param plid the plid
1060            * @throws SystemException if a system exception occurred
1061            */
1062            public static void removeByPlid(long plid)
1063                    throws com.liferay.portal.kernel.exception.SystemException {
1064                    getPersistence().removeByPlid(plid);
1065            }
1066    
1067            /**
1068            * Removes all the portlet preferenceses where portletId = &#63; from the database.
1069            *
1070            * @param portletId the portlet ID
1071            * @throws SystemException if a system exception occurred
1072            */
1073            public static void removeByPortletId(java.lang.String portletId)
1074                    throws com.liferay.portal.kernel.exception.SystemException {
1075                    getPersistence().removeByPortletId(portletId);
1076            }
1077    
1078            /**
1079            * Removes all the portlet preferenceses where plid = &#63; and portletId = &#63; from the database.
1080            *
1081            * @param plid the plid
1082            * @param portletId the portlet ID
1083            * @throws SystemException if a system exception occurred
1084            */
1085            public static void removeByP_P(long plid, java.lang.String portletId)
1086                    throws com.liferay.portal.kernel.exception.SystemException {
1087                    getPersistence().removeByP_P(plid, portletId);
1088            }
1089    
1090            /**
1091            * Removes all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63; from the database.
1092            *
1093            * @param ownerId the owner ID
1094            * @param ownerType the owner type
1095            * @param plid the plid
1096            * @throws SystemException if a system exception occurred
1097            */
1098            public static void removeByO_O_P(long ownerId, int ownerType, long plid)
1099                    throws com.liferay.portal.kernel.exception.SystemException {
1100                    getPersistence().removeByO_O_P(ownerId, ownerType, plid);
1101            }
1102    
1103            /**
1104            * Removes all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63; from the database.
1105            *
1106            * @param ownerType the owner type
1107            * @param plid the plid
1108            * @param portletId the portlet ID
1109            * @throws SystemException if a system exception occurred
1110            */
1111            public static void removeByO_P_P(int ownerType, long plid,
1112                    java.lang.String portletId)
1113                    throws com.liferay.portal.kernel.exception.SystemException {
1114                    getPersistence().removeByO_P_P(ownerType, plid, portletId);
1115            }
1116    
1117            /**
1118            * Removes the portlet preferences where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63; from the database.
1119            *
1120            * @param ownerId the owner ID
1121            * @param ownerType the owner type
1122            * @param plid the plid
1123            * @param portletId the portlet ID
1124            * @return the portlet preferences that was removed
1125            * @throws SystemException if a system exception occurred
1126            */
1127            public static com.liferay.portal.model.PortletPreferences removeByO_O_P_P(
1128                    long ownerId, int ownerType, long plid, java.lang.String portletId)
1129                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1130                            com.liferay.portal.kernel.exception.SystemException {
1131                    return getPersistence()
1132                                       .removeByO_O_P_P(ownerId, ownerType, plid, portletId);
1133            }
1134    
1135            /**
1136            * Removes all the portlet preferenceses from the database.
1137            *
1138            * @throws SystemException if a system exception occurred
1139            */
1140            public static void removeAll()
1141                    throws com.liferay.portal.kernel.exception.SystemException {
1142                    getPersistence().removeAll();
1143            }
1144    
1145            /**
1146            * Returns the number of portlet preferenceses where plid = &#63;.
1147            *
1148            * @param plid the plid
1149            * @return the number of matching portlet preferenceses
1150            * @throws SystemException if a system exception occurred
1151            */
1152            public static int countByPlid(long plid)
1153                    throws com.liferay.portal.kernel.exception.SystemException {
1154                    return getPersistence().countByPlid(plid);
1155            }
1156    
1157            /**
1158            * Returns the number of portlet preferenceses where portletId = &#63;.
1159            *
1160            * @param portletId the portlet ID
1161            * @return the number of matching portlet preferenceses
1162            * @throws SystemException if a system exception occurred
1163            */
1164            public static int countByPortletId(java.lang.String portletId)
1165                    throws com.liferay.portal.kernel.exception.SystemException {
1166                    return getPersistence().countByPortletId(portletId);
1167            }
1168    
1169            /**
1170            * Returns the number of portlet preferenceses where plid = &#63; and portletId = &#63;.
1171            *
1172            * @param plid the plid
1173            * @param portletId the portlet ID
1174            * @return the number of matching portlet preferenceses
1175            * @throws SystemException if a system exception occurred
1176            */
1177            public static int countByP_P(long plid, java.lang.String portletId)
1178                    throws com.liferay.portal.kernel.exception.SystemException {
1179                    return getPersistence().countByP_P(plid, portletId);
1180            }
1181    
1182            /**
1183            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
1184            *
1185            * @param ownerId the owner ID
1186            * @param ownerType the owner type
1187            * @param plid the plid
1188            * @return the number of matching portlet preferenceses
1189            * @throws SystemException if a system exception occurred
1190            */
1191            public static int countByO_O_P(long ownerId, int ownerType, long plid)
1192                    throws com.liferay.portal.kernel.exception.SystemException {
1193                    return getPersistence().countByO_O_P(ownerId, ownerType, plid);
1194            }
1195    
1196            /**
1197            * Returns the number of portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
1198            *
1199            * @param ownerType the owner type
1200            * @param plid the plid
1201            * @param portletId the portlet ID
1202            * @return the number of matching portlet preferenceses
1203            * @throws SystemException if a system exception occurred
1204            */
1205            public static int countByO_P_P(int ownerType, long plid,
1206                    java.lang.String portletId)
1207                    throws com.liferay.portal.kernel.exception.SystemException {
1208                    return getPersistence().countByO_P_P(ownerType, plid, portletId);
1209            }
1210    
1211            /**
1212            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63;.
1213            *
1214            * @param ownerId the owner ID
1215            * @param ownerType the owner type
1216            * @param plid the plid
1217            * @param portletId the portlet ID
1218            * @return the number of matching portlet preferenceses
1219            * @throws SystemException if a system exception occurred
1220            */
1221            public static int countByO_O_P_P(long ownerId, int ownerType, long plid,
1222                    java.lang.String portletId)
1223                    throws com.liferay.portal.kernel.exception.SystemException {
1224                    return getPersistence()
1225                                       .countByO_O_P_P(ownerId, ownerType, plid, portletId);
1226            }
1227    
1228            /**
1229            * Returns the number of portlet preferenceses.
1230            *
1231            * @return the number of portlet preferenceses
1232            * @throws SystemException if a system exception occurred
1233            */
1234            public static int countAll()
1235                    throws com.liferay.portal.kernel.exception.SystemException {
1236                    return getPersistence().countAll();
1237            }
1238    
1239            public static PortletPreferencesPersistence getPersistence() {
1240                    if (_persistence == null) {
1241                            _persistence = (PortletPreferencesPersistence)PortalBeanLocatorUtil.locate(PortletPreferencesPersistence.class.getName());
1242    
1243                            ReferenceRegistry.registerReference(PortletPreferencesUtil.class,
1244                                    "_persistence");
1245                    }
1246    
1247                    return _persistence;
1248            }
1249    
1250            /**
1251             * @deprecated
1252             */
1253            public void setPersistence(PortletPreferencesPersistence persistence) {
1254            }
1255    
1256            private static PortletPreferencesPersistence _persistence;
1257    }