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