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 ownerType = &#63; and portletId = &#63;.
439            *
440            * @param ownerType the owner type
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> findByO_P(
446                    int ownerType, java.lang.String portletId)
447                    throws com.liferay.portal.kernel.exception.SystemException {
448                    return getPersistence().findByO_P(ownerType, portletId);
449            }
450    
451            /**
452            * Returns a range of all the portlet preferenceses where ownerType = &#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 ownerType the owner type
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> findByO_P(
466                    int ownerType, java.lang.String portletId, int start, int end)
467                    throws com.liferay.portal.kernel.exception.SystemException {
468                    return getPersistence().findByO_P(ownerType, portletId, start, end);
469            }
470    
471            /**
472            * Returns an ordered range of all the portlet preferenceses where ownerType = &#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 ownerType the owner type
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> findByO_P(
487                    int ownerType, 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                                       .findByO_P(ownerType, portletId, start, end,
492                            orderByComparator);
493            }
494    
495            /**
496            * Returns the first portlet preferences in the ordered set where ownerType = &#63; and portletId = &#63;.
497            *
498            * @param ownerType the owner type
499            * @param portletId the portlet ID
500            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
501            * @return the first matching portlet preferences
502            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
503            * @throws SystemException if a system exception occurred
504            */
505            public static com.liferay.portal.model.PortletPreferences findByO_P_First(
506                    int ownerType, java.lang.String portletId,
507                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
508                    throws com.liferay.portal.NoSuchPortletPreferencesException,
509                            com.liferay.portal.kernel.exception.SystemException {
510                    return getPersistence()
511                                       .findByO_P_First(ownerType, portletId, orderByComparator);
512            }
513    
514            /**
515            * Returns the first portlet preferences in the ordered set where ownerType = &#63; and portletId = &#63;.
516            *
517            * @param ownerType the owner type
518            * @param portletId the portlet ID
519            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
520            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
521            * @throws SystemException if a system exception occurred
522            */
523            public static com.liferay.portal.model.PortletPreferences fetchByO_P_First(
524                    int ownerType, java.lang.String portletId,
525                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
526                    throws com.liferay.portal.kernel.exception.SystemException {
527                    return getPersistence()
528                                       .fetchByO_P_First(ownerType, portletId, orderByComparator);
529            }
530    
531            /**
532            * Returns the last portlet preferences in the ordered set where ownerType = &#63; and portletId = &#63;.
533            *
534            * @param ownerType the owner type
535            * @param portletId the portlet ID
536            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
537            * @return the last matching portlet preferences
538            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
539            * @throws SystemException if a system exception occurred
540            */
541            public static com.liferay.portal.model.PortletPreferences findByO_P_Last(
542                    int ownerType, java.lang.String portletId,
543                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
544                    throws com.liferay.portal.NoSuchPortletPreferencesException,
545                            com.liferay.portal.kernel.exception.SystemException {
546                    return getPersistence()
547                                       .findByO_P_Last(ownerType, portletId, orderByComparator);
548            }
549    
550            /**
551            * Returns the last portlet preferences in the ordered set where ownerType = &#63; and portletId = &#63;.
552            *
553            * @param ownerType the owner type
554            * @param portletId the portlet ID
555            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
556            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
557            * @throws SystemException if a system exception occurred
558            */
559            public static com.liferay.portal.model.PortletPreferences fetchByO_P_Last(
560                    int ownerType, java.lang.String portletId,
561                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
562                    throws com.liferay.portal.kernel.exception.SystemException {
563                    return getPersistence()
564                                       .fetchByO_P_Last(ownerType, portletId, orderByComparator);
565            }
566    
567            /**
568            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerType = &#63; and portletId = &#63;.
569            *
570            * @param portletPreferencesId the primary key of the current portlet preferences
571            * @param ownerType the owner type
572            * @param portletId the portlet ID
573            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
574            * @return the previous, current, and next portlet preferences
575            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
576            * @throws SystemException if a system exception occurred
577            */
578            public static com.liferay.portal.model.PortletPreferences[] findByO_P_PrevAndNext(
579                    long portletPreferencesId, int ownerType, java.lang.String portletId,
580                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
581                    throws com.liferay.portal.NoSuchPortletPreferencesException,
582                            com.liferay.portal.kernel.exception.SystemException {
583                    return getPersistence()
584                                       .findByO_P_PrevAndNext(portletPreferencesId, ownerType,
585                            portletId, orderByComparator);
586            }
587    
588            /**
589            * Removes all the portlet preferenceses where ownerType = &#63; and portletId = &#63; from the database.
590            *
591            * @param ownerType the owner type
592            * @param portletId the portlet ID
593            * @throws SystemException if a system exception occurred
594            */
595            public static void removeByO_P(int ownerType, java.lang.String portletId)
596                    throws com.liferay.portal.kernel.exception.SystemException {
597                    getPersistence().removeByO_P(ownerType, portletId);
598            }
599    
600            /**
601            * Returns the number of portlet preferenceses where ownerType = &#63; and portletId = &#63;.
602            *
603            * @param ownerType the owner type
604            * @param portletId the portlet ID
605            * @return the number of matching portlet preferenceses
606            * @throws SystemException if a system exception occurred
607            */
608            public static int countByO_P(int ownerType, java.lang.String portletId)
609                    throws com.liferay.portal.kernel.exception.SystemException {
610                    return getPersistence().countByO_P(ownerType, portletId);
611            }
612    
613            /**
614            * Returns all the portlet preferenceses where plid = &#63; and portletId = &#63;.
615            *
616            * @param plid the plid
617            * @param portletId the portlet ID
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> findByP_P(
622                    long plid, java.lang.String portletId)
623                    throws com.liferay.portal.kernel.exception.SystemException {
624                    return getPersistence().findByP_P(plid, portletId);
625            }
626    
627            /**
628            * Returns a range of all the portlet preferenceses where plid = &#63; and portletId = &#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 plid the plid
635            * @param portletId the portlet ID
636            * @param start the lower bound of the range of portlet preferenceses
637            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
638            * @return the range of matching portlet preferenceses
639            * @throws SystemException if a system exception occurred
640            */
641            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
642                    long plid, java.lang.String portletId, int start, int end)
643                    throws com.liferay.portal.kernel.exception.SystemException {
644                    return getPersistence().findByP_P(plid, portletId, start, end);
645            }
646    
647            /**
648            * Returns an ordered range of all the portlet preferenceses where plid = &#63; and portletId = &#63;.
649            *
650            * <p>
651            * 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.
652            * </p>
653            *
654            * @param plid the plid
655            * @param portletId the portlet ID
656            * @param start the lower bound of the range of portlet preferenceses
657            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
658            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
659            * @return the ordered range of matching portlet preferenceses
660            * @throws SystemException if a system exception occurred
661            */
662            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
663                    long plid, java.lang.String portletId, int start, int end,
664                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
665                    throws com.liferay.portal.kernel.exception.SystemException {
666                    return getPersistence()
667                                       .findByP_P(plid, portletId, start, end, orderByComparator);
668            }
669    
670            /**
671            * Returns the first portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
672            *
673            * @param plid the plid
674            * @param portletId the portlet ID
675            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
676            * @return the first matching portlet preferences
677            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
678            * @throws SystemException if a system exception occurred
679            */
680            public static com.liferay.portal.model.PortletPreferences findByP_P_First(
681                    long plid, java.lang.String portletId,
682                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
683                    throws com.liferay.portal.NoSuchPortletPreferencesException,
684                            com.liferay.portal.kernel.exception.SystemException {
685                    return getPersistence()
686                                       .findByP_P_First(plid, portletId, orderByComparator);
687            }
688    
689            /**
690            * Returns the first portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
691            *
692            * @param plid the plid
693            * @param portletId the portlet ID
694            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
695            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
696            * @throws SystemException if a system exception occurred
697            */
698            public static com.liferay.portal.model.PortletPreferences fetchByP_P_First(
699                    long plid, java.lang.String portletId,
700                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
701                    throws com.liferay.portal.kernel.exception.SystemException {
702                    return getPersistence()
703                                       .fetchByP_P_First(plid, portletId, orderByComparator);
704            }
705    
706            /**
707            * Returns the last portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
708            *
709            * @param plid the plid
710            * @param portletId the portlet ID
711            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
712            * @return the last matching portlet preferences
713            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
714            * @throws SystemException if a system exception occurred
715            */
716            public static com.liferay.portal.model.PortletPreferences findByP_P_Last(
717                    long plid, java.lang.String portletId,
718                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
719                    throws com.liferay.portal.NoSuchPortletPreferencesException,
720                            com.liferay.portal.kernel.exception.SystemException {
721                    return getPersistence()
722                                       .findByP_P_Last(plid, portletId, orderByComparator);
723            }
724    
725            /**
726            * Returns the last portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
727            *
728            * @param plid the plid
729            * @param portletId the portlet ID
730            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
731            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
732            * @throws SystemException if a system exception occurred
733            */
734            public static com.liferay.portal.model.PortletPreferences fetchByP_P_Last(
735                    long plid, java.lang.String portletId,
736                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
737                    throws com.liferay.portal.kernel.exception.SystemException {
738                    return getPersistence()
739                                       .fetchByP_P_Last(plid, portletId, orderByComparator);
740            }
741    
742            /**
743            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
744            *
745            * @param portletPreferencesId the primary key of the current portlet preferences
746            * @param plid the plid
747            * @param portletId the portlet ID
748            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
749            * @return the previous, current, and next portlet preferences
750            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
751            * @throws SystemException if a system exception occurred
752            */
753            public static com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext(
754                    long portletPreferencesId, long plid, java.lang.String portletId,
755                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
756                    throws com.liferay.portal.NoSuchPortletPreferencesException,
757                            com.liferay.portal.kernel.exception.SystemException {
758                    return getPersistence()
759                                       .findByP_P_PrevAndNext(portletPreferencesId, plid,
760                            portletId, orderByComparator);
761            }
762    
763            /**
764            * Removes all the portlet preferenceses where plid = &#63; and portletId = &#63; from the database.
765            *
766            * @param plid the plid
767            * @param portletId the portlet ID
768            * @throws SystemException if a system exception occurred
769            */
770            public static void removeByP_P(long plid, java.lang.String portletId)
771                    throws com.liferay.portal.kernel.exception.SystemException {
772                    getPersistence().removeByP_P(plid, portletId);
773            }
774    
775            /**
776            * Returns the number of portlet preferenceses where plid = &#63; and portletId = &#63;.
777            *
778            * @param plid the plid
779            * @param portletId the portlet ID
780            * @return the number of matching portlet preferenceses
781            * @throws SystemException if a system exception occurred
782            */
783            public static int countByP_P(long plid, java.lang.String portletId)
784                    throws com.liferay.portal.kernel.exception.SystemException {
785                    return getPersistence().countByP_P(plid, portletId);
786            }
787    
788            /**
789            * Returns all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
790            *
791            * @param ownerId the owner ID
792            * @param ownerType the owner type
793            * @param plid the plid
794            * @return the matching portlet preferenceses
795            * @throws SystemException if a system exception occurred
796            */
797            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
798                    long ownerId, int ownerType, long plid)
799                    throws com.liferay.portal.kernel.exception.SystemException {
800                    return getPersistence().findByO_O_P(ownerId, ownerType, plid);
801            }
802    
803            /**
804            * Returns a range of all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
805            *
806            * <p>
807            * 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.
808            * </p>
809            *
810            * @param ownerId the owner ID
811            * @param ownerType the owner type
812            * @param plid the plid
813            * @param start the lower bound of the range of portlet preferenceses
814            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
815            * @return the range of matching portlet preferenceses
816            * @throws SystemException if a system exception occurred
817            */
818            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
819                    long ownerId, int ownerType, long plid, int start, int end)
820                    throws com.liferay.portal.kernel.exception.SystemException {
821                    return getPersistence().findByO_O_P(ownerId, ownerType, plid, start, end);
822            }
823    
824            /**
825            * Returns an ordered range of all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
826            *
827            * <p>
828            * 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.
829            * </p>
830            *
831            * @param ownerId the owner ID
832            * @param ownerType the owner type
833            * @param plid the plid
834            * @param start the lower bound of the range of portlet preferenceses
835            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
836            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
837            * @return the ordered range of matching portlet preferenceses
838            * @throws SystemException if a system exception occurred
839            */
840            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
841                    long ownerId, int ownerType, long plid, int start, int end,
842                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
843                    throws com.liferay.portal.kernel.exception.SystemException {
844                    return getPersistence()
845                                       .findByO_O_P(ownerId, ownerType, plid, start, end,
846                            orderByComparator);
847            }
848    
849            /**
850            * Returns the first portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
851            *
852            * @param ownerId the owner ID
853            * @param ownerType the owner type
854            * @param plid the plid
855            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
856            * @return the first matching portlet preferences
857            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
858            * @throws SystemException if a system exception occurred
859            */
860            public static com.liferay.portal.model.PortletPreferences findByO_O_P_First(
861                    long ownerId, int ownerType, long plid,
862                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
863                    throws com.liferay.portal.NoSuchPortletPreferencesException,
864                            com.liferay.portal.kernel.exception.SystemException {
865                    return getPersistence()
866                                       .findByO_O_P_First(ownerId, ownerType, plid,
867                            orderByComparator);
868            }
869    
870            /**
871            * Returns the first portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
872            *
873            * @param ownerId the owner ID
874            * @param ownerType the owner type
875            * @param plid the plid
876            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
877            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
878            * @throws SystemException if a system exception occurred
879            */
880            public static com.liferay.portal.model.PortletPreferences fetchByO_O_P_First(
881                    long ownerId, int ownerType, long plid,
882                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
883                    throws com.liferay.portal.kernel.exception.SystemException {
884                    return getPersistence()
885                                       .fetchByO_O_P_First(ownerId, ownerType, plid,
886                            orderByComparator);
887            }
888    
889            /**
890            * Returns the last portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
891            *
892            * @param ownerId the owner ID
893            * @param ownerType the owner type
894            * @param plid the plid
895            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
896            * @return the last matching portlet preferences
897            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
898            * @throws SystemException if a system exception occurred
899            */
900            public static com.liferay.portal.model.PortletPreferences findByO_O_P_Last(
901                    long ownerId, int ownerType, long plid,
902                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
903                    throws com.liferay.portal.NoSuchPortletPreferencesException,
904                            com.liferay.portal.kernel.exception.SystemException {
905                    return getPersistence()
906                                       .findByO_O_P_Last(ownerId, ownerType, plid, orderByComparator);
907            }
908    
909            /**
910            * Returns the last portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
911            *
912            * @param ownerId the owner ID
913            * @param ownerType the owner type
914            * @param plid the plid
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_O_P_Last(
920                    long ownerId, int ownerType, long plid,
921                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
922                    throws com.liferay.portal.kernel.exception.SystemException {
923                    return getPersistence()
924                                       .fetchByO_O_P_Last(ownerId, ownerType, plid,
925                            orderByComparator);
926            }
927    
928            /**
929            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
930            *
931            * @param portletPreferencesId the primary key of the current portlet preferences
932            * @param ownerId the owner ID
933            * @param ownerType the owner type
934            * @param plid the plid
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_O_P_PrevAndNext(
941                    long portletPreferencesId, long ownerId, int ownerType, long plid,
942                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
943                    throws com.liferay.portal.NoSuchPortletPreferencesException,
944                            com.liferay.portal.kernel.exception.SystemException {
945                    return getPersistence()
946                                       .findByO_O_P_PrevAndNext(portletPreferencesId, ownerId,
947                            ownerType, plid, orderByComparator);
948            }
949    
950            /**
951            * Removes all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63; from the database.
952            *
953            * @param ownerId the owner ID
954            * @param ownerType the owner type
955            * @param plid the plid
956            * @throws SystemException if a system exception occurred
957            */
958            public static void removeByO_O_P(long ownerId, int ownerType, long plid)
959                    throws com.liferay.portal.kernel.exception.SystemException {
960                    getPersistence().removeByO_O_P(ownerId, ownerType, plid);
961            }
962    
963            /**
964            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
965            *
966            * @param ownerId the owner ID
967            * @param ownerType the owner type
968            * @param plid the plid
969            * @return the number of matching portlet preferenceses
970            * @throws SystemException if a system exception occurred
971            */
972            public static int countByO_O_P(long ownerId, int ownerType, long plid)
973                    throws com.liferay.portal.kernel.exception.SystemException {
974                    return getPersistence().countByO_O_P(ownerId, ownerType, plid);
975            }
976    
977            /**
978            * Returns all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
979            *
980            * @param ownerId the owner ID
981            * @param ownerType the owner type
982            * @param portletId the portlet ID
983            * @return the matching portlet preferenceses
984            * @throws SystemException if a system exception occurred
985            */
986            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_PI(
987                    long ownerId, int ownerType, java.lang.String portletId)
988                    throws com.liferay.portal.kernel.exception.SystemException {
989                    return getPersistence().findByO_O_PI(ownerId, ownerType, portletId);
990            }
991    
992            /**
993            * Returns a range of all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
994            *
995            * <p>
996            * 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.
997            * </p>
998            *
999            * @param ownerId the owner ID
1000            * @param ownerType the owner type
1001            * @param portletId the portlet ID
1002            * @param start the lower bound of the range of portlet preferenceses
1003            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
1004            * @return the range of matching portlet preferenceses
1005            * @throws SystemException if a system exception occurred
1006            */
1007            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_PI(
1008                    long ownerId, int ownerType, java.lang.String portletId, int start,
1009                    int end) throws com.liferay.portal.kernel.exception.SystemException {
1010                    return getPersistence()
1011                                       .findByO_O_PI(ownerId, ownerType, portletId, start, end);
1012            }
1013    
1014            /**
1015            * Returns an ordered range of all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
1016            *
1017            * <p>
1018            * 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.
1019            * </p>
1020            *
1021            * @param ownerId the owner ID
1022            * @param ownerType the owner type
1023            * @param portletId the portlet ID
1024            * @param start the lower bound of the range of portlet preferenceses
1025            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
1026            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1027            * @return the ordered range of matching portlet preferenceses
1028            * @throws SystemException if a system exception occurred
1029            */
1030            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_PI(
1031                    long ownerId, int ownerType, java.lang.String portletId, int start,
1032                    int end,
1033                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1034                    throws com.liferay.portal.kernel.exception.SystemException {
1035                    return getPersistence()
1036                                       .findByO_O_PI(ownerId, ownerType, portletId, start, end,
1037                            orderByComparator);
1038            }
1039    
1040            /**
1041            * Returns the first portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
1042            *
1043            * @param ownerId the owner ID
1044            * @param ownerType the owner type
1045            * @param portletId the portlet ID
1046            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1047            * @return the first matching portlet preferences
1048            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
1049            * @throws SystemException if a system exception occurred
1050            */
1051            public static com.liferay.portal.model.PortletPreferences findByO_O_PI_First(
1052                    long ownerId, int ownerType, java.lang.String portletId,
1053                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1054                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1055                            com.liferay.portal.kernel.exception.SystemException {
1056                    return getPersistence()
1057                                       .findByO_O_PI_First(ownerId, ownerType, portletId,
1058                            orderByComparator);
1059            }
1060    
1061            /**
1062            * Returns the first portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
1063            *
1064            * @param ownerId the owner ID
1065            * @param ownerType the owner type
1066            * @param portletId the portlet ID
1067            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1068            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
1069            * @throws SystemException if a system exception occurred
1070            */
1071            public static com.liferay.portal.model.PortletPreferences fetchByO_O_PI_First(
1072                    long ownerId, int ownerType, java.lang.String portletId,
1073                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1074                    throws com.liferay.portal.kernel.exception.SystemException {
1075                    return getPersistence()
1076                                       .fetchByO_O_PI_First(ownerId, ownerType, portletId,
1077                            orderByComparator);
1078            }
1079    
1080            /**
1081            * Returns the last portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
1082            *
1083            * @param ownerId the owner ID
1084            * @param ownerType the owner type
1085            * @param portletId the portlet ID
1086            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1087            * @return the last matching portlet preferences
1088            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
1089            * @throws SystemException if a system exception occurred
1090            */
1091            public static com.liferay.portal.model.PortletPreferences findByO_O_PI_Last(
1092                    long ownerId, int ownerType, java.lang.String portletId,
1093                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1094                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1095                            com.liferay.portal.kernel.exception.SystemException {
1096                    return getPersistence()
1097                                       .findByO_O_PI_Last(ownerId, ownerType, portletId,
1098                            orderByComparator);
1099            }
1100    
1101            /**
1102            * Returns the last portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
1103            *
1104            * @param ownerId the owner ID
1105            * @param ownerType the owner type
1106            * @param portletId the portlet ID
1107            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1108            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
1109            * @throws SystemException if a system exception occurred
1110            */
1111            public static com.liferay.portal.model.PortletPreferences fetchByO_O_PI_Last(
1112                    long ownerId, int ownerType, java.lang.String portletId,
1113                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1114                    throws com.liferay.portal.kernel.exception.SystemException {
1115                    return getPersistence()
1116                                       .fetchByO_O_PI_Last(ownerId, ownerType, portletId,
1117                            orderByComparator);
1118            }
1119    
1120            /**
1121            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
1122            *
1123            * @param portletPreferencesId the primary key of the current portlet preferences
1124            * @param ownerId the owner ID
1125            * @param ownerType the owner type
1126            * @param portletId the portlet ID
1127            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1128            * @return the previous, current, and next portlet preferences
1129            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
1130            * @throws SystemException if a system exception occurred
1131            */
1132            public static com.liferay.portal.model.PortletPreferences[] findByO_O_PI_PrevAndNext(
1133                    long portletPreferencesId, long ownerId, int ownerType,
1134                    java.lang.String portletId,
1135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1136                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1137                            com.liferay.portal.kernel.exception.SystemException {
1138                    return getPersistence()
1139                                       .findByO_O_PI_PrevAndNext(portletPreferencesId, ownerId,
1140                            ownerType, portletId, orderByComparator);
1141            }
1142    
1143            /**
1144            * Removes all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and portletId = &#63; from the database.
1145            *
1146            * @param ownerId the owner ID
1147            * @param ownerType the owner type
1148            * @param portletId the portlet ID
1149            * @throws SystemException if a system exception occurred
1150            */
1151            public static void removeByO_O_PI(long ownerId, int ownerType,
1152                    java.lang.String portletId)
1153                    throws com.liferay.portal.kernel.exception.SystemException {
1154                    getPersistence().removeByO_O_PI(ownerId, ownerType, portletId);
1155            }
1156    
1157            /**
1158            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and portletId = &#63;.
1159            *
1160            * @param ownerId the owner ID
1161            * @param ownerType the owner type
1162            * @param portletId the portlet ID
1163            * @return the number of matching portlet preferenceses
1164            * @throws SystemException if a system exception occurred
1165            */
1166            public static int countByO_O_PI(long ownerId, int ownerType,
1167                    java.lang.String portletId)
1168                    throws com.liferay.portal.kernel.exception.SystemException {
1169                    return getPersistence().countByO_O_PI(ownerId, ownerType, portletId);
1170            }
1171    
1172            /**
1173            * Returns all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
1174            *
1175            * @param ownerType the owner type
1176            * @param plid the plid
1177            * @param portletId the portlet ID
1178            * @return the matching portlet preferenceses
1179            * @throws SystemException if a system exception occurred
1180            */
1181            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P(
1182                    int ownerType, long plid, java.lang.String portletId)
1183                    throws com.liferay.portal.kernel.exception.SystemException {
1184                    return getPersistence().findByO_P_P(ownerType, plid, portletId);
1185            }
1186    
1187            /**
1188            * Returns a range of all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
1189            *
1190            * <p>
1191            * 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.
1192            * </p>
1193            *
1194            * @param ownerType the owner type
1195            * @param plid the plid
1196            * @param portletId the portlet ID
1197            * @param start the lower bound of the range of portlet preferenceses
1198            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
1199            * @return the range of matching portlet preferenceses
1200            * @throws SystemException if a system exception occurred
1201            */
1202            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P(
1203                    int ownerType, long plid, java.lang.String portletId, int start, int end)
1204                    throws com.liferay.portal.kernel.exception.SystemException {
1205                    return getPersistence()
1206                                       .findByO_P_P(ownerType, plid, portletId, start, end);
1207            }
1208    
1209            /**
1210            * Returns an ordered range of all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
1211            *
1212            * <p>
1213            * 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.
1214            * </p>
1215            *
1216            * @param ownerType the owner type
1217            * @param plid the plid
1218            * @param portletId the portlet ID
1219            * @param start the lower bound of the range of portlet preferenceses
1220            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
1221            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1222            * @return the ordered range of matching portlet preferenceses
1223            * @throws SystemException if a system exception occurred
1224            */
1225            public static java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P(
1226                    int ownerType, long plid, java.lang.String portletId, int start,
1227                    int end,
1228                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1229                    throws com.liferay.portal.kernel.exception.SystemException {
1230                    return getPersistence()
1231                                       .findByO_P_P(ownerType, plid, portletId, start, end,
1232                            orderByComparator);
1233            }
1234    
1235            /**
1236            * Returns the first portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
1237            *
1238            * @param ownerType the owner type
1239            * @param plid the plid
1240            * @param portletId the portlet ID
1241            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1242            * @return the first matching portlet preferences
1243            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
1244            * @throws SystemException if a system exception occurred
1245            */
1246            public static com.liferay.portal.model.PortletPreferences findByO_P_P_First(
1247                    int ownerType, long plid, java.lang.String portletId,
1248                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1249                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1250                            com.liferay.portal.kernel.exception.SystemException {
1251                    return getPersistence()
1252                                       .findByO_P_P_First(ownerType, plid, portletId,
1253                            orderByComparator);
1254            }
1255    
1256            /**
1257            * Returns the first portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
1258            *
1259            * @param ownerType the owner type
1260            * @param plid the plid
1261            * @param portletId the portlet ID
1262            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1263            * @return the first matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
1264            * @throws SystemException if a system exception occurred
1265            */
1266            public static com.liferay.portal.model.PortletPreferences fetchByO_P_P_First(
1267                    int ownerType, long plid, java.lang.String portletId,
1268                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1269                    throws com.liferay.portal.kernel.exception.SystemException {
1270                    return getPersistence()
1271                                       .fetchByO_P_P_First(ownerType, plid, portletId,
1272                            orderByComparator);
1273            }
1274    
1275            /**
1276            * Returns the last portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
1277            *
1278            * @param ownerType the owner type
1279            * @param plid the plid
1280            * @param portletId the portlet ID
1281            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1282            * @return the last matching portlet preferences
1283            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
1284            * @throws SystemException if a system exception occurred
1285            */
1286            public static com.liferay.portal.model.PortletPreferences findByO_P_P_Last(
1287                    int ownerType, long plid, java.lang.String portletId,
1288                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1289                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1290                            com.liferay.portal.kernel.exception.SystemException {
1291                    return getPersistence()
1292                                       .findByO_P_P_Last(ownerType, plid, portletId,
1293                            orderByComparator);
1294            }
1295    
1296            /**
1297            * Returns the last portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
1298            *
1299            * @param ownerType the owner type
1300            * @param plid the plid
1301            * @param portletId the portlet ID
1302            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1303            * @return the last matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
1304            * @throws SystemException if a system exception occurred
1305            */
1306            public static com.liferay.portal.model.PortletPreferences fetchByO_P_P_Last(
1307                    int ownerType, long plid, java.lang.String portletId,
1308                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1309                    throws com.liferay.portal.kernel.exception.SystemException {
1310                    return getPersistence()
1311                                       .fetchByO_P_P_Last(ownerType, plid, portletId,
1312                            orderByComparator);
1313            }
1314    
1315            /**
1316            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
1317            *
1318            * @param portletPreferencesId the primary key of the current portlet preferences
1319            * @param ownerType the owner type
1320            * @param plid the plid
1321            * @param portletId the portlet ID
1322            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1323            * @return the previous, current, and next portlet preferences
1324            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
1325            * @throws SystemException if a system exception occurred
1326            */
1327            public static com.liferay.portal.model.PortletPreferences[] findByO_P_P_PrevAndNext(
1328                    long portletPreferencesId, int ownerType, long plid,
1329                    java.lang.String portletId,
1330                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1331                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1332                            com.liferay.portal.kernel.exception.SystemException {
1333                    return getPersistence()
1334                                       .findByO_P_P_PrevAndNext(portletPreferencesId, ownerType,
1335                            plid, portletId, orderByComparator);
1336            }
1337    
1338            /**
1339            * Removes all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63; from the database.
1340            *
1341            * @param ownerType the owner type
1342            * @param plid the plid
1343            * @param portletId the portlet ID
1344            * @throws SystemException if a system exception occurred
1345            */
1346            public static void removeByO_P_P(int ownerType, long plid,
1347                    java.lang.String portletId)
1348                    throws com.liferay.portal.kernel.exception.SystemException {
1349                    getPersistence().removeByO_P_P(ownerType, plid, portletId);
1350            }
1351    
1352            /**
1353            * Returns the number of portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
1354            *
1355            * @param ownerType the owner type
1356            * @param plid the plid
1357            * @param portletId the portlet ID
1358            * @return the number of matching portlet preferenceses
1359            * @throws SystemException if a system exception occurred
1360            */
1361            public static int countByO_P_P(int ownerType, long plid,
1362                    java.lang.String portletId)
1363                    throws com.liferay.portal.kernel.exception.SystemException {
1364                    return getPersistence().countByO_P_P(ownerType, plid, portletId);
1365            }
1366    
1367            /**
1368            * 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.
1369            *
1370            * @param ownerId the owner ID
1371            * @param ownerType the owner type
1372            * @param plid the plid
1373            * @param portletId the portlet ID
1374            * @return the matching portlet preferences
1375            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
1376            * @throws SystemException if a system exception occurred
1377            */
1378            public static com.liferay.portal.model.PortletPreferences findByO_O_P_P(
1379                    long ownerId, int ownerType, long plid, java.lang.String portletId)
1380                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1381                            com.liferay.portal.kernel.exception.SystemException {
1382                    return getPersistence()
1383                                       .findByO_O_P_P(ownerId, ownerType, plid, portletId);
1384            }
1385    
1386            /**
1387            * 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.
1388            *
1389            * @param ownerId the owner ID
1390            * @param ownerType the owner type
1391            * @param plid the plid
1392            * @param portletId the portlet ID
1393            * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
1394            * @throws SystemException if a system exception occurred
1395            */
1396            public static com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
1397                    long ownerId, int ownerType, long plid, java.lang.String portletId)
1398                    throws com.liferay.portal.kernel.exception.SystemException {
1399                    return getPersistence()
1400                                       .fetchByO_O_P_P(ownerId, ownerType, plid, portletId);
1401            }
1402    
1403            /**
1404            * 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.
1405            *
1406            * @param ownerId the owner ID
1407            * @param ownerType the owner type
1408            * @param plid the plid
1409            * @param portletId the portlet ID
1410            * @param retrieveFromCache whether to use the finder cache
1411            * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
1412            * @throws SystemException if a system exception occurred
1413            */
1414            public static com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
1415                    long ownerId, int ownerType, long plid, java.lang.String portletId,
1416                    boolean retrieveFromCache)
1417                    throws com.liferay.portal.kernel.exception.SystemException {
1418                    return getPersistence()
1419                                       .fetchByO_O_P_P(ownerId, ownerType, plid, portletId,
1420                            retrieveFromCache);
1421            }
1422    
1423            /**
1424            * Removes the portlet preferences where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63; from the database.
1425            *
1426            * @param ownerId the owner ID
1427            * @param ownerType the owner type
1428            * @param plid the plid
1429            * @param portletId the portlet ID
1430            * @return the portlet preferences that was removed
1431            * @throws SystemException if a system exception occurred
1432            */
1433            public static com.liferay.portal.model.PortletPreferences removeByO_O_P_P(
1434                    long ownerId, int ownerType, long plid, java.lang.String portletId)
1435                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1436                            com.liferay.portal.kernel.exception.SystemException {
1437                    return getPersistence()
1438                                       .removeByO_O_P_P(ownerId, ownerType, plid, portletId);
1439            }
1440    
1441            /**
1442            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63;.
1443            *
1444            * @param ownerId the owner ID
1445            * @param ownerType the owner type
1446            * @param plid the plid
1447            * @param portletId the portlet ID
1448            * @return the number of matching portlet preferenceses
1449            * @throws SystemException if a system exception occurred
1450            */
1451            public static int countByO_O_P_P(long ownerId, int ownerType, long plid,
1452                    java.lang.String portletId)
1453                    throws com.liferay.portal.kernel.exception.SystemException {
1454                    return getPersistence()
1455                                       .countByO_O_P_P(ownerId, ownerType, plid, portletId);
1456            }
1457    
1458            /**
1459            * Caches the portlet preferences in the entity cache if it is enabled.
1460            *
1461            * @param portletPreferences the portlet preferences
1462            */
1463            public static void cacheResult(
1464                    com.liferay.portal.model.PortletPreferences portletPreferences) {
1465                    getPersistence().cacheResult(portletPreferences);
1466            }
1467    
1468            /**
1469            * Caches the portlet preferenceses in the entity cache if it is enabled.
1470            *
1471            * @param portletPreferenceses the portlet preferenceses
1472            */
1473            public static void cacheResult(
1474                    java.util.List<com.liferay.portal.model.PortletPreferences> portletPreferenceses) {
1475                    getPersistence().cacheResult(portletPreferenceses);
1476            }
1477    
1478            /**
1479            * Creates a new portlet preferences with the primary key. Does not add the portlet preferences to the database.
1480            *
1481            * @param portletPreferencesId the primary key for the new portlet preferences
1482            * @return the new portlet preferences
1483            */
1484            public static com.liferay.portal.model.PortletPreferences create(
1485                    long portletPreferencesId) {
1486                    return getPersistence().create(portletPreferencesId);
1487            }
1488    
1489            /**
1490            * Removes the portlet preferences with the primary key from the database. Also notifies the appropriate model listeners.
1491            *
1492            * @param portletPreferencesId the primary key of the portlet preferences
1493            * @return the portlet preferences that was removed
1494            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
1495            * @throws SystemException if a system exception occurred
1496            */
1497            public static com.liferay.portal.model.PortletPreferences remove(
1498                    long portletPreferencesId)
1499                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1500                            com.liferay.portal.kernel.exception.SystemException {
1501                    return getPersistence().remove(portletPreferencesId);
1502            }
1503    
1504            public static com.liferay.portal.model.PortletPreferences updateImpl(
1505                    com.liferay.portal.model.PortletPreferences portletPreferences)
1506                    throws com.liferay.portal.kernel.exception.SystemException {
1507                    return getPersistence().updateImpl(portletPreferences);
1508            }
1509    
1510            /**
1511            * Returns the portlet preferences with the primary key or throws a {@link com.liferay.portal.NoSuchPortletPreferencesException} if it could not be found.
1512            *
1513            * @param portletPreferencesId the primary key of the portlet preferences
1514            * @return the portlet preferences
1515            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
1516            * @throws SystemException if a system exception occurred
1517            */
1518            public static com.liferay.portal.model.PortletPreferences findByPrimaryKey(
1519                    long portletPreferencesId)
1520                    throws com.liferay.portal.NoSuchPortletPreferencesException,
1521                            com.liferay.portal.kernel.exception.SystemException {
1522                    return getPersistence().findByPrimaryKey(portletPreferencesId);
1523            }
1524    
1525            /**
1526            * Returns the portlet preferences with the primary key or returns <code>null</code> if it could not be found.
1527            *
1528            * @param portletPreferencesId the primary key of the portlet preferences
1529            * @return the portlet preferences, or <code>null</code> if a portlet preferences with the primary key could not be found
1530            * @throws SystemException if a system exception occurred
1531            */
1532            public static com.liferay.portal.model.PortletPreferences fetchByPrimaryKey(
1533                    long portletPreferencesId)
1534                    throws com.liferay.portal.kernel.exception.SystemException {
1535                    return getPersistence().fetchByPrimaryKey(portletPreferencesId);
1536            }
1537    
1538            /**
1539            * Returns all the portlet preferenceses.
1540            *
1541            * @return the portlet preferenceses
1542            * @throws SystemException if a system exception occurred
1543            */
1544            public static java.util.List<com.liferay.portal.model.PortletPreferences> findAll()
1545                    throws com.liferay.portal.kernel.exception.SystemException {
1546                    return getPersistence().findAll();
1547            }
1548    
1549            /**
1550            * Returns a range of all the portlet preferenceses.
1551            *
1552            * <p>
1553            * 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.
1554            * </p>
1555            *
1556            * @param start the lower bound of the range of portlet preferenceses
1557            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
1558            * @return the range of portlet preferenceses
1559            * @throws SystemException if a system exception occurred
1560            */
1561            public static java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
1562                    int start, int end)
1563                    throws com.liferay.portal.kernel.exception.SystemException {
1564                    return getPersistence().findAll(start, end);
1565            }
1566    
1567            /**
1568            * Returns an ordered range of all the portlet preferenceses.
1569            *
1570            * <p>
1571            * 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.
1572            * </p>
1573            *
1574            * @param start the lower bound of the range of portlet preferenceses
1575            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
1576            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1577            * @return the ordered range of portlet preferenceses
1578            * @throws SystemException if a system exception occurred
1579            */
1580            public static java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
1581                    int start, int end,
1582                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1583                    throws com.liferay.portal.kernel.exception.SystemException {
1584                    return getPersistence().findAll(start, end, orderByComparator);
1585            }
1586    
1587            /**
1588            * Removes all the portlet preferenceses from the database.
1589            *
1590            * @throws SystemException if a system exception occurred
1591            */
1592            public static void removeAll()
1593                    throws com.liferay.portal.kernel.exception.SystemException {
1594                    getPersistence().removeAll();
1595            }
1596    
1597            /**
1598            * Returns the number of portlet preferenceses.
1599            *
1600            * @return the number of portlet preferenceses
1601            * @throws SystemException if a system exception occurred
1602            */
1603            public static int countAll()
1604                    throws com.liferay.portal.kernel.exception.SystemException {
1605                    return getPersistence().countAll();
1606            }
1607    
1608            public static PortletPreferencesPersistence getPersistence() {
1609                    if (_persistence == null) {
1610                            _persistence = (PortletPreferencesPersistence)PortalBeanLocatorUtil.locate(PortletPreferencesPersistence.class.getName());
1611    
1612                            ReferenceRegistry.registerReference(PortletPreferencesUtil.class,
1613                                    "_persistence");
1614                    }
1615    
1616                    return _persistence;
1617            }
1618    
1619            /**
1620             * @deprecated As of 6.2.0
1621             */
1622            public void setPersistence(PortletPreferencesPersistence persistence) {
1623            }
1624    
1625            private static PortletPreferencesPersistence _persistence;
1626    }