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