001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.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
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
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
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            * Returns 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
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            * Returns 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
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            * Returns all the portlet preferenceses where plid = &#63;.
108            *
109            * @param plid the plid
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            * Returns 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
124            * @param start the lower bound of the range of portlet preferenceses
125            * @param end the upper bound of the range of portlet preferenceses (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            * Returns 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
141            * @param start the lower bound of the range of portlet preferenceses
142            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
143            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns 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
160            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
179            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
199            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns all the portlet preferenceses where plid = &#63; and portletId = &#63;.
212            *
213            * @param plid the plid
214            * @param portletId the portlet ID
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            * Returns 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
230            * @param portletId the portlet ID
231            * @param start the lower bound of the range of portlet preferenceses
232            * @param end the upper bound of the range of portlet preferenceses (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            * Returns 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
248            * @param portletId the portlet ID
249            * @param start the lower bound of the range of portlet preferenceses
250            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
251            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns 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
268            * @param portletId the portlet ID
269            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
288            * @param portletId the portlet ID
289            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
309            * @param portletId the portlet ID
310            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
323            *
324            * @param ownerId the owner ID
325            * @param ownerType the owner type
326            * @param plid the plid
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            * Returns 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
342            * @param ownerType the owner type
343            * @param plid the plid
344            * @param start the lower bound of the range of portlet preferenceses
345            * @param end the upper bound of the range of portlet preferenceses (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            * Returns 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
361            * @param ownerType the owner type
362            * @param plid the plid
363            * @param start the lower bound of the range of portlet preferenceses
364            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
365            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns 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
382            * @param ownerType the owner type
383            * @param plid the plid
384            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
403            * @param ownerType the owner type
404            * @param plid the plid
405            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
425            * @param ownerType the owner type
426            * @param plid the plid
427            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * 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.
440            *
441            * @param ownerId the owner ID
442            * @param ownerType the owner type
443            * @param plid the plid
444            * @param portletId the portlet ID
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            * 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.
456            *
457            * @param ownerId the owner ID
458            * @param ownerType the owner type
459            * @param plid the plid
460            * @param portletId the portlet ID
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            * 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.
470            *
471            * @param ownerId the owner ID
472            * @param ownerType the owner type
473            * @param plid the plid
474            * @param portletId the portlet ID
475            * @param retrieveFromCache whether to use the finder cache
476            * @return the matching portlet preferences, or <code>null</code> if a matching portlet preferences could not be found
477            * @throws SystemException if a system exception occurred
478            */
479            public com.liferay.portal.model.PortletPreferences fetchByO_O_P_P(
480                    long ownerId, int ownerType, long plid, java.lang.String portletId,
481                    boolean retrieveFromCache)
482                    throws com.liferay.portal.kernel.exception.SystemException;
483    
484            /**
485            * Returns all the portlet preferenceses.
486            *
487            * @return the portlet preferenceses
488            * @throws SystemException if a system exception occurred
489            */
490            public java.util.List<com.liferay.portal.model.PortletPreferences> findAll()
491                    throws com.liferay.portal.kernel.exception.SystemException;
492    
493            /**
494            * Returns a range of all the portlet preferenceses.
495            *
496            * <p>
497            * 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.
498            * </p>
499            *
500            * @param start the lower bound of the range of portlet preferenceses
501            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
502            * @return the range of portlet preferenceses
503            * @throws SystemException if a system exception occurred
504            */
505            public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
506                    int start, int end)
507                    throws com.liferay.portal.kernel.exception.SystemException;
508    
509            /**
510            * Returns an ordered range of all the portlet preferenceses.
511            *
512            * <p>
513            * 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.
514            * </p>
515            *
516            * @param start the lower bound of the range of portlet preferenceses
517            * @param end the upper bound of the range of portlet preferenceses (not inclusive)
518            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
519            * @return the ordered range of portlet preferenceses
520            * @throws SystemException if a system exception occurred
521            */
522            public java.util.List<com.liferay.portal.model.PortletPreferences> findAll(
523                    int start, int end,
524                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
525                    throws com.liferay.portal.kernel.exception.SystemException;
526    
527            /**
528            * Removes all the portlet preferenceses where plid = &#63; from the database.
529            *
530            * @param plid the plid
531            * @throws SystemException if a system exception occurred
532            */
533            public void removeByPlid(long plid)
534                    throws com.liferay.portal.kernel.exception.SystemException;
535    
536            /**
537            * Removes all the portlet preferenceses where plid = &#63; and portletId = &#63; from the database.
538            *
539            * @param plid the plid
540            * @param portletId the portlet ID
541            * @throws SystemException if a system exception occurred
542            */
543            public void removeByP_P(long plid, java.lang.String portletId)
544                    throws com.liferay.portal.kernel.exception.SystemException;
545    
546            /**
547            * Removes all the portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63; from the database.
548            *
549            * @param ownerId the owner ID
550            * @param ownerType the owner type
551            * @param plid the plid
552            * @throws SystemException if a system exception occurred
553            */
554            public void removeByO_O_P(long ownerId, int ownerType, long plid)
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * Removes the portlet preferences where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63; from the database.
559            *
560            * @param ownerId the owner ID
561            * @param ownerType the owner type
562            * @param plid the plid
563            * @param portletId the portlet ID
564            * @throws SystemException if a system exception occurred
565            */
566            public void removeByO_O_P_P(long ownerId, int ownerType, long plid,
567                    java.lang.String portletId)
568                    throws com.liferay.portal.NoSuchPortletPreferencesException,
569                            com.liferay.portal.kernel.exception.SystemException;
570    
571            /**
572            * Removes all the portlet preferenceses from the database.
573            *
574            * @throws SystemException if a system exception occurred
575            */
576            public void removeAll()
577                    throws com.liferay.portal.kernel.exception.SystemException;
578    
579            /**
580            * Returns the number of portlet preferenceses where plid = &#63;.
581            *
582            * @param plid the plid
583            * @return the number of matching portlet preferenceses
584            * @throws SystemException if a system exception occurred
585            */
586            public int countByPlid(long plid)
587                    throws com.liferay.portal.kernel.exception.SystemException;
588    
589            /**
590            * Returns the number of portlet preferenceses where plid = &#63; and portletId = &#63;.
591            *
592            * @param plid the plid
593            * @param portletId the portlet ID
594            * @return the number of matching portlet preferenceses
595            * @throws SystemException if a system exception occurred
596            */
597            public int countByP_P(long plid, java.lang.String portletId)
598                    throws com.liferay.portal.kernel.exception.SystemException;
599    
600            /**
601            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63;.
602            *
603            * @param ownerId the owner ID
604            * @param ownerType the owner type
605            * @param plid the plid
606            * @return the number of matching portlet preferenceses
607            * @throws SystemException if a system exception occurred
608            */
609            public int countByO_O_P(long ownerId, int ownerType, long plid)
610                    throws com.liferay.portal.kernel.exception.SystemException;
611    
612            /**
613            * Returns the number of portlet preferenceses where ownerId = &#63; and ownerType = &#63; and plid = &#63; and portletId = &#63;.
614            *
615            * @param ownerId the owner ID
616            * @param ownerType the owner type
617            * @param plid the plid
618            * @param portletId the portlet ID
619            * @return the number of matching portlet preferenceses
620            * @throws SystemException if a system exception occurred
621            */
622            public int countByO_O_P_P(long ownerId, int ownerType, long plid,
623                    java.lang.String portletId)
624                    throws com.liferay.portal.kernel.exception.SystemException;
625    
626            /**
627            * Returns the number of portlet preferenceses.
628            *
629            * @return the number of portlet preferenceses
630            * @throws SystemException if a system exception occurred
631            */
632            public int countAll()
633                    throws com.liferay.portal.kernel.exception.SystemException;
634    
635            public PortletPreferences remove(PortletPreferences portletPreferences)
636                    throws SystemException;
637    }