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