001    /**
002     * Copyright (c) 2000-2012 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 all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
439            *
440            * @param ownerType the owner type
441            * @param plid the plid
442            * @param portletId the portlet ID
443            * @return the matching portlet preferenceses
444            * @throws SystemException if a system exception occurred
445            */
446            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P(
447                    int ownerType, long plid, java.lang.String portletId)
448                    throws com.liferay.portal.kernel.exception.SystemException;
449    
450            /**
451            * Returns a range of all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
452            *
453            * <p>
454            * 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.
455            * </p>
456            *
457            * @param ownerType the owner type
458            * @param plid the plid
459            * @param portletId the portlet ID
460            * @param start the lower bound of the range of portlet preferenceses
461            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
462            * @return the range of matching portlet preferenceses
463            * @throws SystemException if a system exception occurred
464            */
465            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P(
466                    int ownerType, long plid, java.lang.String portletId, int start, int end)
467                    throws com.liferay.portal.kernel.exception.SystemException;
468    
469            /**
470            * Returns an ordered range of all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
471            *
472            * <p>
473            * 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.
474            * </p>
475            *
476            * @param ownerType the owner type
477            * @param plid the plid
478            * @param portletId the portlet ID
479            * @param start the lower bound of the range of portlet preferenceses
480            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
481            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
482            * @return the ordered range of matching portlet preferenceses
483            * @throws SystemException if a system exception occurred
484            */
485            public java.util.List<com.liferay.portal.model.PortletPreferences> findByO_P_P(
486                    int ownerType, long plid, java.lang.String portletId, int start,
487                    int end,
488                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
489                    throws com.liferay.portal.kernel.exception.SystemException;
490    
491            /**
492            * Returns the first portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
493            *
494            * <p>
495            * 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.
496            * </p>
497            *
498            * @param ownerType the owner type
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 first matching portlet preferences
503            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
504            * @throws SystemException if a system exception occurred
505            */
506            public com.liferay.portal.model.PortletPreferences findByO_P_P_First(
507                    int ownerType, long plid, java.lang.String portletId,
508                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
509                    throws com.liferay.portal.NoSuchPortletPreferencesException,
510                            com.liferay.portal.kernel.exception.SystemException;
511    
512            /**
513            * Returns the last portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
514            *
515            * <p>
516            * 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.
517            * </p>
518            *
519            * @param ownerType the owner type
520            * @param plid the plid
521            * @param portletId the portlet ID
522            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
523            * @return the last matching portlet preferences
524            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
525            * @throws SystemException if a system exception occurred
526            */
527            public com.liferay.portal.model.PortletPreferences findByO_P_P_Last(
528                    int ownerType, long plid, java.lang.String portletId,
529                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
530                    throws com.liferay.portal.NoSuchPortletPreferencesException,
531                            com.liferay.portal.kernel.exception.SystemException;
532    
533            /**
534            * Returns the portlet preferenceses before and after the current portlet preferences in the ordered set where ownerType = &#63; and plid = &#63; and portletId = &#63;.
535            *
536            * <p>
537            * 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.
538            * </p>
539            *
540            * @param portletPreferencesId the primary key of the current portlet preferences
541            * @param ownerType the owner type
542            * @param plid the plid
543            * @param portletId the portlet ID
544            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
545            * @return the previous, current, and next portlet preferences
546            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a portlet preferences with the primary key could not be found
547            * @throws SystemException if a system exception occurred
548            */
549            public com.liferay.portal.model.PortletPreferences[] findByO_P_P_PrevAndNext(
550                    long portletPreferencesId, int ownerType, long plid,
551                    java.lang.String portletId,
552                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
553                    throws com.liferay.portal.NoSuchPortletPreferencesException,
554                            com.liferay.portal.kernel.exception.SystemException;
555    
556            /**
557            * 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.
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            * @return the matching portlet preferences
564            * @throws com.liferay.portal.NoSuchPortletPreferencesException if a matching portlet preferences could not be found
565            * @throws SystemException if a system exception occurred
566            */
567            public com.liferay.portal.model.PortletPreferences findByO_O_P_P(
568                    long ownerId, int ownerType, long plid, java.lang.String portletId)
569                    throws com.liferay.portal.NoSuchPortletPreferencesException,
570                            com.liferay.portal.kernel.exception.SystemException;
571    
572            /**
573            * 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.
574            *
575            * @param ownerId the owner ID
576            * @param ownerType the owner type
577            * @param plid the plid
578            * @param portletId the portlet ID
579            * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
580            * @throws SystemException if a system exception occurred
581            */
582            public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
583                    long ownerId, int ownerType, long plid, java.lang.String portletId)
584                    throws com.liferay.portal.kernel.exception.SystemException;
585    
586            /**
587            * 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.
588            *
589            * @param ownerId the owner ID
590            * @param ownerType the owner type
591            * @param plid the plid
592            * @param portletId the portlet ID
593            * @param retrieveFromCache whether to use the finder cache
594            * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
595            * @throws SystemException if a system exception occurred
596            */
597            public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
598                    long ownerId, int ownerType, long plid, java.lang.String portletId,
599                    boolean retrieveFromCache)
600                    throws com.liferay.portal.kernel.exception.SystemException;
601    
602            /**
603            * Returns all the portlet preferenceses.
604            *
605            * @return the portlet preferenceses
606            * @throws SystemException if a system exception occurred
607            */
608            public java.util.List<com.liferay.portal.model.PortletPreferences> findAll()
609                    throws com.liferay.portal.kernel.exception.SystemException;
610    
611            /**
612            * Returns a range of all the portlet preferenceses.
613            *
614            * <p>
615            * 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.
616            * </p>
617            *
618            * @param start the lower bound of the range of portlet preferenceses
619            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
620            * @return the range of portlet preferenceses
621            * @throws SystemException if a system exception occurred
622            */
623            public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
624                    int start, int end)
625                    throws com.liferay.portal.kernel.exception.SystemException;
626    
627            /**
628            * Returns an ordered range of all the portlet preferenceses.
629            *
630            * <p>
631            * 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.
632            * </p>
633            *
634            * @param start the lower bound of the range of portlet preferenceses
635            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
636            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
637            * @return the ordered range of portlet preferenceses
638            * @throws SystemException if a system exception occurred
639            */
640            public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
641                    int start, int end,
642                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
643                    throws com.liferay.portal.kernel.exception.SystemException;
644    
645            /**
646            * Removes all the portlet preferenceses where plid = &#63; from the database.
647            *
648            * @param plid the plid
649            * @throws SystemException if a system exception occurred
650            */
651            public void removeByPlid(long plid)
652                    throws com.liferay.portal.kernel.exception.SystemException;
653    
654            /**
655            * Removes all the portlet preferenceses where plid = &#63; and portletId = &#63; from the database.
656            *
657            * @param plid the plid
658            * @param portletId the portlet ID
659            * @throws SystemException if a system exception occurred
660            */
661            public void removeByP_P(long plid, java.lang.String portletId)
662                    throws com.liferay.portal.kernel.exception.SystemException;
663    
664            /**
665            * Removes all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63; from the database.
666            *
667            * @param ownerId the owner ID
668            * @param ownerType the owner type
669            * @param plid the plid
670            * @throws SystemException if a system exception occurred
671            */
672            public void removeByO_O_P(long ownerId, int ownerType, long plid)
673                    throws com.liferay.portal.kernel.exception.SystemException;
674    
675            /**
676            * Removes all the portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63; from the database.
677            *
678            * @param ownerType the owner type
679            * @param plid the plid
680            * @param portletId the portlet ID
681            * @throws SystemException if a system exception occurred
682            */
683            public void removeByO_P_P(int ownerType, long plid,
684                    java.lang.String portletId)
685                    throws com.liferay.portal.kernel.exception.SystemException;
686    
687            /**
688            * Removes the portlet preferences where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63; from the database.
689            *
690            * @param ownerId the owner ID
691            * @param ownerType the owner type
692            * @param plid the plid
693            * @param portletId the portlet ID
694            * @throws SystemException if a system exception occurred
695            */
696            public void removeByO_O_P_P(long ownerId, int ownerType, long plid,
697                    java.lang.String portletId)
698                    throws com.liferay.portal.NoSuchPortletPreferencesException,
699                            com.liferay.portal.kernel.exception.SystemException;
700    
701            /**
702            * Removes all the portlet preferenceses from the database.
703            *
704            * @throws SystemException if a system exception occurred
705            */
706            public void removeAll()
707                    throws com.liferay.portal.kernel.exception.SystemException;
708    
709            /**
710            * Returns the number of portlet preferenceses where plid = &#63;.
711            *
712            * @param plid the plid
713            * @return the number of matching portlet preferenceses
714            * @throws SystemException if a system exception occurred
715            */
716            public int countByPlid(long plid)
717                    throws com.liferay.portal.kernel.exception.SystemException;
718    
719            /**
720            * Returns the number of portlet preferenceses where plid = &#63; and portletId = &#63;.
721            *
722            * @param plid the plid
723            * @param portletId the portlet ID
724            * @return the number of matching portlet preferenceses
725            * @throws SystemException if a system exception occurred
726            */
727            public int countByP_P(long plid, java.lang.String portletId)
728                    throws com.liferay.portal.kernel.exception.SystemException;
729    
730            /**
731            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
732            *
733            * @param ownerId the owner ID
734            * @param ownerType the owner type
735            * @param plid the plid
736            * @return the number of matching portlet preferenceses
737            * @throws SystemException if a system exception occurred
738            */
739            public int countByO_O_P(long ownerId, int ownerType, long plid)
740                    throws com.liferay.portal.kernel.exception.SystemException;
741    
742            /**
743            * Returns the number of portlet preferenceses where ownerType = &#63; and plid = &#63; and portletId = &#63;.
744            *
745            * @param ownerType the owner type
746            * @param plid the plid
747            * @param portletId the portlet ID
748            * @return the number of matching portlet preferenceses
749            * @throws SystemException if a system exception occurred
750            */
751            public int countByO_P_P(int ownerType, long plid, java.lang.String portletId)
752                    throws com.liferay.portal.kernel.exception.SystemException;
753    
754            /**
755            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63;.
756            *
757            * @param ownerId the owner ID
758            * @param ownerType the owner type
759            * @param plid the plid
760            * @param portletId the portlet ID
761            * @return the number of matching portlet preferenceses
762            * @throws SystemException if a system exception occurred
763            */
764            public int countByO_O_P_P(long ownerId, int ownerType, long plid,
765                    java.lang.String portletId)
766                    throws com.liferay.portal.kernel.exception.SystemException;
767    
768            /**
769            * Returns the number of portlet preferenceses.
770            *
771            * @return the number of portlet preferenceses
772            * @throws SystemException if a system exception occurred
773            */
774            public int countAll()
775                    throws com.liferay.portal.kernel.exception.SystemException;
776    }