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