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