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