001    /**
002     * Copyright (c) 2000-2011 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 com.liferay.portal.model.PortletPreferences;
018    
019    /**
020     * The persistence interface for the portlet preferences service.
021     *
022     * <p>
023     * Caching information and settings can be found in <code>portal.properties</code>
024     * </p>
025     *
026     * @author Brian Wing Shun Chan
027     * @see PortletPreferencesPersistenceImpl
028     * @see PortletPreferencesUtil
029     * @generated
030     */
031    public interface PortletPreferencesPersistence extends BasePersistence<PortletPreferences> {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * 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.
036             */
037    
038            /**
039            * Caches the portlet preferences in the entity cache if it is enabled.
040            *
041            * @param portletPreferences the portlet preferences
042            */
043            public void cacheResult(
044                    com.liferay.portal.model.PortletPreferences portletPreferences);
045    
046            /**
047            * Caches the portlet preferenceses in the entity cache if it is enabled.
048            *
049            * @param portletPreferenceses the portlet preferenceses
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portal.model.PortletPreferences> portletPreferenceses);
053    
054            /**
055            * Creates a new portlet preferences with the primary key. Does not add the portlet preferences to the database.
056            *
057            * @param portletPreferencesId the primary key for the new portlet preferences
058            * @return the new portlet preferences
059            */
060            public com.liferay.portal.model.PortletPreferences create(
061                    long portletPreferencesId);
062    
063            /**
064            * Removes the portlet preferences with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param portletPreferencesId the primary key of the portlet preferences
067            * @return the portlet preferences that was removed
068            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public com.liferay.portal.model.PortletPreferences remove(
072                    long portletPreferencesId)
073                    throws com.liferay.portal.NoSuchPortletPreferencesException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            public com.liferay.portal.model.PortletPreferences updateImpl(
077                    com.liferay.portal.model.PortletPreferences portletPreferences,
078                    boolean merge)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Returns the portlet preferences with the primary key or throws a {@link com.liferay.portal.NoSuchPortletPreferencesException} if it could not be found.
083            *
084            * @param portletPreferencesId the primary key of the portlet preferences
085            * @return the portlet preferences
086            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portal.model.PortletPreferences findByPrimaryKey(
090                    long portletPreferencesId)
091                    throws com.liferay.portal.NoSuchPortletPreferencesException,
092                            com.liferay.portal.kernel.exception.SystemException;
093    
094            /**
095            * Returns the portlet preferences with the primary key or returns <code>null</code> if it could not be found.
096            *
097            * @param portletPreferencesId the primary key of the portlet preferences
098            * @return the portlet preferences, or <code>null</code> if a portlet preferences with the primary key could not be found
099            * @throws SystemException if a system exception occurred
100            */
101            public com.liferay.portal.model.PortletPreferences fetchByPrimaryKey(
102                    long portletPreferencesId)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Returns all the portlet preferenceses where plid = &#63;.
107            *
108            * @param plid the plid
109            * @return the matching portlet preferenceses
110            * @throws SystemException if a system exception occurred
111            */
112            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
113                    long plid) throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns a range of all the portlet preferenceses where plid = &#63;.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param plid the plid
123            * @param start the lower bound of the range of portlet preferenceses
124            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
125            * @return the range of matching portlet preferenceses
126            * @throws SystemException if a system exception occurred
127            */
128            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
129                    long plid, int start, int end)
130                    throws com.liferay.portal.kernel.exception.SystemException;
131    
132            /**
133            * Returns an ordered range of all the portlet preferenceses where plid = &#63;.
134            *
135            * <p>
136            * 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.
137            * </p>
138            *
139            * @param plid the plid
140            * @param start the lower bound of the range of portlet preferenceses
141            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
142            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
143            * @return the ordered range of matching portlet preferenceses
144            * @throws SystemException if a system exception occurred
145            */
146            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPlid(
147                    long plid, int start, int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            /**
152            * Returns the first portlet preferences in the ordered set where plid = &#63;.
153            *
154            * <p>
155            * 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.
156            * </p>
157            *
158            * @param plid the plid
159            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
160            * @return the first matching portlet preferences
161            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
162            * @throws SystemException if a system exception occurred
163            */
164            public com.liferay.portal.model.PortletPreferences findByPlid_First(
165                    long plid,
166                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167                    throws com.liferay.portal.NoSuchPortletPreferencesException,
168                            com.liferay.portal.kernel.exception.SystemException;
169    
170            /**
171            * Returns the last portlet preferences in the ordered set where plid = &#63;.
172            *
173            * <p>
174            * 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.
175            * </p>
176            *
177            * @param plid the plid
178            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
179            * @return the last matching portlet preferences
180            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
181            * @throws SystemException if a system exception occurred
182            */
183            public com.liferay.portal.model.PortletPreferences findByPlid_Last(
184                    long plid,
185                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186                    throws com.liferay.portal.NoSuchPortletPreferencesException,
187                            com.liferay.portal.kernel.exception.SystemException;
188    
189            /**
190            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = &#63;.
191            *
192            * <p>
193            * 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.
194            * </p>
195            *
196            * @param portletPreferencesId the primary key of the current portlet preferences
197            * @param plid the plid
198            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
199            * @return the previous, current, and next portlet preferences
200            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portal.model.PortletPreferences[] findByPlid_PrevAndNext(
204                    long portletPreferencesId, long plid,
205                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206                    throws com.liferay.portal.NoSuchPortletPreferencesException,
207                            com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns all the portlet preferenceses where plid = &#63; and portletId = &#63;.
211            *
212            * @param plid the plid
213            * @param portletId the portlet ID
214            * @return the matching portlet preferenceses
215            * @throws SystemException if a system exception occurred
216            */
217            public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
218                    long plid, java.lang.String portletId)
219                    throws com.liferay.portal.kernel.exception.SystemException;
220    
221            /**
222            * Returns a range of all the portlet preferenceses where plid = &#63; and portletId = &#63;.
223            *
224            * <p>
225            * 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.
226            * </p>
227            *
228            * @param plid the plid
229            * @param portletId the portlet ID
230            * @param start the lower bound of the range of portlet preferenceses
231            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
232            * @return the range of matching portlet preferenceses
233            * @throws SystemException if a system exception occurred
234            */
235            public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
236                    long plid, java.lang.String portletId, int start, int end)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            /**
240            * Returns an ordered range of all the portlet preferenceses where plid = &#63; and portletId = &#63;.
241            *
242            * <p>
243            * 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.
244            * </p>
245            *
246            * @param plid the plid
247            * @param portletId the portlet ID
248            * @param start the lower bound of the range of portlet preferenceses
249            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
250            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
251            * @return the ordered range of matching portlet preferenceses
252            * @throws SystemException if a system exception occurred
253            */
254            public java.util.List<com.liferay.portal.model.PortletPreferences> findByP_P(
255                    long plid, java.lang.String portletId, int start, int end,
256                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            /**
260            * Returns the first portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
261            *
262            * <p>
263            * 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.
264            * </p>
265            *
266            * @param plid the plid
267            * @param portletId the portlet ID
268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
269            * @return the first matching portlet preferences
270            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
271            * @throws SystemException if a system exception occurred
272            */
273            public com.liferay.portal.model.PortletPreferences findByP_P_First(
274                    long plid, java.lang.String portletId,
275                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
276                    throws com.liferay.portal.NoSuchPortletPreferencesException,
277                            com.liferay.portal.kernel.exception.SystemException;
278    
279            /**
280            * Returns the last portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
281            *
282            * <p>
283            * 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.
284            * </p>
285            *
286            * @param plid the plid
287            * @param portletId the portlet ID
288            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
289            * @return the last matching portlet preferences
290            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
291            * @throws SystemException if a system exception occurred
292            */
293            public com.liferay.portal.model.PortletPreferences findByP_P_Last(
294                    long plid, java.lang.String portletId,
295                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296                    throws com.liferay.portal.NoSuchPortletPreferencesException,
297                            com.liferay.portal.kernel.exception.SystemException;
298    
299            /**
300            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where plid = &#63; and portletId = &#63;.
301            *
302            * <p>
303            * 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.
304            * </p>
305            *
306            * @param portletPreferencesId the primary key of the current portlet preferences
307            * @param plid the plid
308            * @param portletId the portlet ID
309            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
310            * @return the previous, current, and next portlet preferences
311            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
312            * @throws SystemException if a system exception occurred
313            */
314            public com.liferay.portal.model.PortletPreferences[] findByP_P_PrevAndNext(
315                    long portletPreferencesId, long plid, java.lang.String portletId,
316                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
317                    throws com.liferay.portal.NoSuchPortletPreferencesException,
318                            com.liferay.portal.kernel.exception.SystemException;
319    
320            /**
321            * Returns all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
322            *
323            * @param ownerId the owner ID
324            * @param ownerType the owner type
325            * @param plid the plid
326            * @return the matching portlet preferenceses
327            * @throws SystemException if a system exception occurred
328            */
329            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
330                    long ownerId, int ownerType, long plid)
331                    throws com.liferay.portal.kernel.exception.SystemException;
332    
333            /**
334            * Returns a range of all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
335            *
336            * <p>
337            * 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.
338            * </p>
339            *
340            * @param ownerId the owner ID
341            * @param ownerType the owner type
342            * @param plid the plid
343            * @param start the lower bound of the range of portlet preferenceses
344            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
345            * @return the range of matching portlet preferenceses
346            * @throws SystemException if a system exception occurred
347            */
348            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
349                    long ownerId, int ownerType, long plid, int start, int end)
350                    throws com.liferay.portal.kernel.exception.SystemException;
351    
352            /**
353            * Returns an ordered range of all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
354            *
355            * <p>
356            * 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.
357            * </p>
358            *
359            * @param ownerId the owner ID
360            * @param ownerType the owner type
361            * @param plid the plid
362            * @param start the lower bound of the range of portlet preferenceses
363            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
364            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
365            * @return the ordered range of matching portlet preferenceses
366            * @throws SystemException if a system exception occurred
367            */
368            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_O_P(
369                    long ownerId, int ownerType, long plid, int start, int end,
370                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
371                    throws com.liferay.portal.kernel.exception.SystemException;
372    
373            /**
374            * Returns the first portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
375            *
376            * <p>
377            * 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.
378            * </p>
379            *
380            * @param ownerId the owner ID
381            * @param ownerType the owner type
382            * @param plid the plid
383            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
384            * @return the first matching portlet preferences
385            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
386            * @throws SystemException if a system exception occurred
387            */
388            public com.liferay.portal.model.PortletPreferences findByO_O_P_First(
389                    long ownerId, int ownerType, long plid,
390                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
391                    throws com.liferay.portal.NoSuchPortletPreferencesException,
392                            com.liferay.portal.kernel.exception.SystemException;
393    
394            /**
395            * Returns the last portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
396            *
397            * <p>
398            * 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.
399            * </p>
400            *
401            * @param ownerId the owner ID
402            * @param ownerType the owner type
403            * @param plid the plid
404            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
405            * @return the last matching portlet preferences
406            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
407            * @throws SystemException if a system exception occurred
408            */
409            public com.liferay.portal.model.PortletPreferences findByO_O_P_Last(
410                    long ownerId, int ownerType, long plid,
411                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
412                    throws com.liferay.portal.NoSuchPortletPreferencesException,
413                            com.liferay.portal.kernel.exception.SystemException;
414    
415            /**
416            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerId = &#63; and ownerType = &#63; and plid = &#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.
420            * </p>
421            *
422            * @param portletPreferencesId the primary key of the current portlet preferences
423            * @param ownerId the owner ID
424            * @param ownerType the owner type
425            * @param plid the plid
426            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
427            * @return the previous, current, and next portlet preferences
428            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
429            * @throws SystemException if a system exception occurred
430            */
431            public com.liferay.portal.model.PortletPreferences[] findByO_O_P_PrevAndNext(
432                    long portletPreferencesId, long ownerId, int ownerType, long plid,
433                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
434                    throws com.liferay.portal.NoSuchPortletPreferencesException,
435                            com.liferay.portal.kernel.exception.SystemException;
436    
437            /**
438            * 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.
439            *
440            * @param ownerId the owner ID
441            * @param ownerType the owner type
442            * @param plid the plid
443            * @param portletId the portlet ID
444            * @return the matching portlet preferences
445            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
446            * @throws SystemException if a system exception occurred
447            */
448            public com.liferay.portal.model.PortletPreferences findByO_O_P_P(
449                    long ownerId, int ownerType, long plid, java.lang.String portletId)
450                    throws com.liferay.portal.NoSuchPortletPreferencesException,
451                            com.liferay.portal.kernel.exception.SystemException;
452    
453            /**
454            * 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.
455            *
456            * @param ownerId the owner ID
457            * @param ownerType the owner type
458            * @param plid the plid
459            * @param portletId the portlet ID
460            * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
461            * @throws SystemException if a system exception occurred
462            */
463            public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
464                    long ownerId, int ownerType, long plid, java.lang.String portletId)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * 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.
469            *
470            * @param ownerId the owner ID
471            * @param ownerType the owner type
472            * @param plid the plid
473            * @param portletId the portlet ID
474            * @param retrieveFromCache whether to use the finder cache
475            * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
476            * @throws SystemException if a system exception occurred
477            */
478            public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
479                    long ownerId, int ownerType, long plid, java.lang.String portletId,
480                    boolean retrieveFromCache)
481                    throws com.liferay.portal.kernel.exception.SystemException;
482    
483            /**
484            * Returns all the portlet preferenceses.
485            *
486            * @return the portlet preferenceses
487            * @throws SystemException if a system exception occurred
488            */
489            public java.util.List<com.liferay.portal.model.PortletPreferences> findAll()
490                    throws com.liferay.portal.kernel.exception.SystemException;
491    
492            /**
493            * Returns a range of all the portlet preferenceses.
494            *
495            * <p>
496            * 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.
497            * </p>
498            *
499            * @param start the lower bound of the range of portlet preferenceses
500            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
501            * @return the range of portlet preferenceses
502            * @throws SystemException if a system exception occurred
503            */
504            public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
505                    int start, int end)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            /**
509            * Returns an ordered range of all the portlet preferenceses.
510            *
511            * <p>
512            * 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.
513            * </p>
514            *
515            * @param start the lower bound of the range of portlet preferenceses
516            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
517            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
518            * @return the ordered range of portlet preferenceses
519            * @throws SystemException if a system exception occurred
520            */
521            public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
522                    int start, int end,
523                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
524                    throws com.liferay.portal.kernel.exception.SystemException;
525    
526            /**
527            * Removes all the portlet preferenceses where plid = &#63; from the database.
528            *
529            * @param plid the plid
530            * @throws SystemException if a system exception occurred
531            */
532            public void removeByPlid(long plid)
533                    throws com.liferay.portal.kernel.exception.SystemException;
534    
535            /**
536            * Removes all the portlet preferenceses where plid = &#63; and portletId = &#63; from the database.
537            *
538            * @param plid the plid
539            * @param portletId the portlet ID
540            * @throws SystemException if a system exception occurred
541            */
542            public void removeByP_P(long plid, java.lang.String portletId)
543                    throws com.liferay.portal.kernel.exception.SystemException;
544    
545            /**
546            * Removes all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63; from the database.
547            *
548            * @param ownerId the owner ID
549            * @param ownerType the owner type
550            * @param plid the plid
551            * @throws SystemException if a system exception occurred
552            */
553            public void removeByO_O_P(long ownerId, int ownerType, long plid)
554                    throws com.liferay.portal.kernel.exception.SystemException;
555    
556            /**
557            * Removes the portlet preferences where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63; from the database.
558            *
559            * @param ownerId the owner ID
560            * @param ownerType the owner type
561            * @param plid the plid
562            * @param portletId the portlet ID
563            * @throws SystemException if a system exception occurred
564            */
565            public void removeByO_O_P_P(long ownerId, int ownerType, long plid,
566                    java.lang.String portletId)
567                    throws com.liferay.portal.NoSuchPortletPreferencesException,
568                            com.liferay.portal.kernel.exception.SystemException;
569    
570            /**
571            * Removes all the portlet preferenceses from the database.
572            *
573            * @throws SystemException if a system exception occurred
574            */
575            public void removeAll()
576                    throws com.liferay.portal.kernel.exception.SystemException;
577    
578            /**
579            * Returns the number of portlet preferenceses where plid = &#63;.
580            *
581            * @param plid the plid
582            * @return the number of matching portlet preferenceses
583            * @throws SystemException if a system exception occurred
584            */
585            public int countByPlid(long plid)
586                    throws com.liferay.portal.kernel.exception.SystemException;
587    
588            /**
589            * Returns the number of portlet preferenceses where plid = &#63; and portletId = &#63;.
590            *
591            * @param plid the plid
592            * @param portletId the portlet ID
593            * @return the number of matching portlet preferenceses
594            * @throws SystemException if a system exception occurred
595            */
596            public int countByP_P(long plid, java.lang.String portletId)
597                    throws com.liferay.portal.kernel.exception.SystemException;
598    
599            /**
600            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
601            *
602            * @param ownerId the owner ID
603            * @param ownerType the owner type
604            * @param plid the plid
605            * @return the number of matching portlet preferenceses
606            * @throws SystemException if a system exception occurred
607            */
608            public int countByO_O_P(long ownerId, int ownerType, long plid)
609                    throws com.liferay.portal.kernel.exception.SystemException;
610    
611            /**
612            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63;.
613            *
614            * @param ownerId the owner ID
615            * @param ownerType the owner type
616            * @param plid the plid
617            * @param portletId the portlet ID
618            * @return the number of matching portlet preferenceses
619            * @throws SystemException if a system exception occurred
620            */
621            public int countByO_O_P_P(long ownerId, int ownerType, long plid,
622                    java.lang.String portletId)
623                    throws com.liferay.portal.kernel.exception.SystemException;
624    
625            /**
626            * Returns the number of portlet preferenceses.
627            *
628            * @return the number of portlet preferenceses
629            * @throws SystemException if a system exception occurred
630            */
631            public int countAll()
632                    throws com.liferay.portal.kernel.exception.SystemException;
633    }