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