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